Web Wiz
Home
Home
Hosting Services
Hosting Services
Knowledgebase
Knowledgebase
Community and Support Forums
Support Forums
Customer Login
Customer Login

  New Posts New Posts RSS Feed - blnSaveSubmit:  floppy-disk icon submits
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Windows Web Hosting 30 Day Free Trial

Windows Web Hosting 30 Day Free Trial

Windows Hosting 30 Day Free Trial, with no obligation, on all our Windows Web and Reseller Hosting Packages.

For moreĀ informationĀ see our Windows Hosting 30 Day Free Trial page.

blnSaveSubmit: floppy-disk icon submits

 Post Reply Post Reply
Author
BobStein View Drop Down
Newbie
Newbie
Avatar

Joined: 27 June 2011
Location: Lyme, NH
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote BobStein Quote  Post ReplyReply Direct Link To This Post Topic: blnSaveSubmit: floppy-disk icon submits
    Posted: 27 June 2011 at 4:39am
 I added an option to make the save icon (floppy disk) trigger a form submit.  The main weirdness was I had to call form.onsubmit() first because that isn't automatically triggered by calling form.submit().

RTE/RTE_configuration/RTE_setup.asp circa line 107 added:
Const blnSaveSubmit = true  'make save-icon do a form submit


RTE/includes/RTE_toolbar_inc.asp circa line 57:
old (one line):
If blnSave  Then Response.Write("<img src=""" & strRTEImagePath & "post_button_save.gif"" align=""absmiddle"" border=""0"" title=""" & strTxtSave & """ onClick=""winOpener(\'RTE_popup_save_file.asp\',\'save\',0,0,600,290)"" class=""WebWizRTEbutton"" onmouseover=""overIcon(this)"" onmouseout=""outIcon(this)"" />")

new (two lines):
If blnSave AND     blnSaveSubmit Then Response.Write("<img src=""" & strRTEImagePath & "post_button_save.gif"" align=""absmiddle"" border=""0"" title=""" & strTxtSave & """ onClick=""document.' + formName + '.onsubmit();document.' + formName + '.submit();"" class=""WebWizRTEbutton"" onmouseover=""overIcon(this)"" onmouseout=""outIcon(this)"" />")
If blnSave AND NOT blnSaveSubmit Then Response.Write("<img src=""" & strRTEImagePath & "post_button_save.gif"" align=""absmiddle"" border=""0"" title=""" & strTxtSave & """ onClick=""winOpener(\'RTE_popup_save_file.asp\',\'save\',0,0,600,290)"" class=""WebWizRTEbutton"" onmouseover=""overIcon(this)"" onmouseout=""outIcon(this)"" />")

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



Become a Fan on Facebook Follow us on Twitter Web Wiz on Google+ Community Forums Web Wiz Blogs Web Wiz News
Company Information | Contact Web Wiz | Terms & Conditions | Privacy Policy

Prices exclude VAT unless otherwise stated - $, € prices shown as a guideline only
Web Wiz Ltd, Unit 10E Dawkins Road Ind. Est, Poole, Dorset, UK, BH15 4JD
Copyright ©2001-2012 Web Wiz - All rights reserved