rbrindley: branch 2.0 r4943 - /branches/2.0/config/upload_form.html
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Tue Jun 23 13:15:01 CDT 2009
Author: rbrindley
Date: Tue Jun 23 13:14:58 2009
New Revision: 4943
URL: http://svn.asterisk.org/svn-view/asterisk-gui?view=rev&rev=4943
Log:
- Added the following to the Upload Form page
- <html>, <head>, <title>, and "Content-Type" <meta>
- moved js to the bottom
Modified:
branches/2.0/config/upload_form.html
Modified: branches/2.0/config/upload_form.html
URL: http://svn.asterisk.org/svn-view/asterisk-gui/branches/2.0/config/upload_form.html?view=diff&rev=4943&r1=4942&r2=4943
==============================================================================
--- branches/2.0/config/upload_form.html (original)
+++ branches/2.0/config/upload_form.html Tue Jun 23 13:14:58 2009
@@ -1,46 +1,54 @@
-<script>
-//parent.onUploadForm_beforeUploading(); // if you want to do some thing right before uploading
-//parent.onUploadForm_load(); // if you want to do some thing when this page(Upload FORM) is loaded - this is where you set the action path
-//parent.onUploadForm_unload(); // if you want to do some thing after the file is uploaded
-// parent.upload_Filename // upload file name
+<html>
+<head>
+ <title>Upload Form</title>
+ <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" />
+</head>
+<body onload='localinit();' onunload="hidetheupload();">
+ <div align=center style="font-family:'trebuchet ms',helvetica,sans-serif;">
+ <FORM method="POST" enctype="multipart/form-data" id="form22">
+ <BR> <nobr>Choose file to Upload: <input name="uImage" type="file" id="uf1"></nobr> <BR><BR>
+ <div align=center><input type="button" value="Upload" onclick="beforeupload();" id='UploadFORM_UPLOAD_BUTTON'></div>
+ </FORM>
+ </div>
-var frm ;
+ <script>
+ //parent.onUploadForm_beforeUploading(); // if you want to do some thing right before uploading
+ //parent.onUploadForm_load(); // if you want to do some thing when this page(Upload FORM) is loaded - this is where you set the action path
+ //parent.onUploadForm_unload(); // if you want to do some thing after the file is uploaded
+ // parent.upload_Filename // upload file name
-function localinit(){
- frm = document.getElementById('form22') ;
- var t = parent.onUploadForm_load();
+ var frm ;
-}
+ function localinit(){
+ frm = document.getElementById('form22') ;
+ var t = parent.onUploadForm_load();
-function beforeupload(){
- if(!frm.action){
- top.log.error('AG101');
- alert('Aborting Upload : Error Code AG101');
- return;
}
- var fullpath = document.getElementById("uf1").value ;
- if(!fullpath){ top.ASTGUI.dialog.alertmsg("Please select file to upload"); return; }
- var a = fullpath.lastIndexOf("\\");
- if (a == -1){ a = fullpath.lastIndexOf("/"); }
+ function beforeupload(){
+ if(!frm.action){
+ top.log.error('AG101');
+ alert('Aborting Upload : Error Code AG101');
+ return;
+ }
- parent.upload_Filename = fullpath.substr(a+1);
+ var fullpath = document.getElementById("uf1").value ;
+ if(!fullpath){ top.ASTGUI.dialog.alertmsg("Please select file to upload"); return; }
+ var a = fullpath.lastIndexOf("\\");
+ if (a == -1){ a = fullpath.lastIndexOf("/"); }
- if( parent.onUploadForm_beforeUploading() ){
- frm.submit();
+ parent.upload_Filename = fullpath.substr(a+1);
+
+ if( parent.onUploadForm_beforeUploading() ){
+ frm.submit();
+ }
}
-}
-function hidetheupload(){
- parent.onUploadForm_unload();
-}
+ function hidetheupload(){
+ parent.onUploadForm_unload();
+ }
-</script>
-<body onload='localinit();' onunload="hidetheupload();">
-<div align=center style="font-family:'trebuchet ms',helvetica,sans-serif;">
- <FORM method="POST" enctype="multipart/form-data" id="form22">
- <BR> <nobr>Choose file to Upload: <input name="uImage" type="file" id="uf1"></nobr> <BR><BR>
- <div align=center><input type="button" value="Upload" onclick="beforeupload();" id='UploadFORM_UPLOAD_BUTTON'></div>
- </FORM>
-</div>
+ </script>
+</body>
+</html>
More information about the asterisk-gui-commits
mailing list