Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old February 17th, 2003, 10:26 AM
tobycatlin tobycatlin is offline
Hooner
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: norwich
Posts: 51 tobycatlin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
submitting two forms with one button

I want to use the marvous WYSIWYG editor and a series of standard input boxes on the same page. I have been through the forum and someone hinted at some ideas and i couldn't get them to work. I was hoping someone could give me some more detailed explaination or any other ideas.

The problem is that the editor cannot be inside a form, so my input boxes are in one form and the editor is submitted by another button (inside a form). I could use 2 buttons but i want to avoid this if poss.


here is the code lifted from the forum:

<input type="submit" value="Email" onSubmit="document.all.form_name.action='something else.php';">

or

<form name="myform">
</form>
.......editor stuff.........
# Now for "special" IE code...
<button onclick="document.myform.submit()">Submit</button>

Reply With Quote
  #2  
Old February 17th, 2003, 12:13 PM
laidbak laidbak is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Location: In Tha IE -- San Bernardino COUNTY
Posts: 788 laidbak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 4 m 2 sec
Reputation Power: 7
Send a message via ICQ to laidbak Send a message via AIM to laidbak Send a message via MSN to laidbak Send a message via Yahoo to laidbak
Why not have a hidden field such as:

<input type=hidden name="msg" value="">

Then just populate this field when the submit button is pressed like so:


Code:
<input type="SUBMIT" name="submit" value="send"
    onclick="document.all.msg.value = document.all.editor.value">
__________________
__________________________________________________ _
Wil Moore III, MCP | Integrations Specialist | Senior Consultant
Are You Listed...? | DigitallySmooth Inc.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > submitting two forms with one button


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway