Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Submit the form using a Link and javascript
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedSubmit the form using a Link and javascript

 Post Reply Post Reply
Author
Nalfaren View Drop Down
Newbie
Newbie


Joined: 23 April 2006
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nalfaren Quote  Post ReplyReply Direct Link To This Post Topic: Submit the form using a Link and javascript
    Posted: 08 June 2006 at 11:50am
Hello again! :)
Love your WW RTE, i have a problem...
 
How do i submit the values of a RTE form using javascript and
a link on for an example an image or textlink. It works if i use
a regular Submit button but not with for example this code..
 
 
It actually submits, but the values are the predefined info
and never the newly edited data.
 
<a href="javascript:document.MyForm.submit()">
 
 
Appreciate all your help.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 08 June 2006 at 12:57pm
Try using a button with an onSubmit or onClick event that fires your javascript
Back to Top
Nalfaren View Drop Down
Newbie
Newbie


Joined: 23 April 2006
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nalfaren Quote  Post ReplyReply Direct Link To This Post Posted: 08 June 2006 at 1:03pm
Originally posted by -boRg- -boRg- wrote:

Try using a button with an onSubmit or onClick event that fires your javascript
 
 
The thing is that i CAN'T use a regular submit button, i'm trying to
incorporate the RTE into an existing design. It uses regular images
as buttons with a A href link around them. Is it possible to modify the
javascript submit call to actually post the correct field values.
 
It does post and submit, but it only posts the data in the
textarea that is there when i first load the page. If i would edit
and add some text, it will still only display the old value.
But if i change to a submitbutton the new values is displayed.
 
I saw this in another post:
document.getElementById('WebWizRTE').contentWindow.document.body.innerHTML

its not something like this i need to call the submit link?
 
Thanks again
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 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 Notice

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 at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

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