Print Page | Close Window

Submit the form using a Link and javascript

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Rich Text Editor (RTE)
Forum Description: Support forum for the Web Wiz Rich Text Editor (RTE).
URL: https://forums.webwiz.net/forum_posts.asp?TID=20226
Printed Date: 29 March 2026 at 10:25am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Submit the form using a Link and javascript
Posted By: Nalfaren
Subject: Submit the form using a Link and javascript
Date 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.



Replies:
Posted By: WebWiz-Bruce
Date Posted: 08 June 2006 at 12:57pm
Try using a button with an onSubmit or onClick event that fires your javascript

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Nalfaren
Date 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
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net