Web Wiz - Solar Powered Eco Web Hosting

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

blnSaveSubmit: floppy-disk icon submits

 Post Reply Post Reply
Author
BobStein View Drop Down
Newbie
Newbie


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

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.07
Copyright ©2001-2024 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Policy

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2024 Web Wiz Ltd. All rights reserved.