JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

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:
  #1  
Old October 31st, 2007, 10:49 AM
Cloverlick Cloverlick is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Posts: 2 Cloverlick User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 56 sec
Reputation Power: 0
Need Help Debugging Script/Error in Script - Passing Variables and submitting a form with onClick

We're trying to pass variables, execute a script and submit a form with a single link click...

<a href="#" onclick="document.queue0form.NAproc.value='SubmitPW';proces sDivs(document.forms.queue0form,{});document.forms .queue0form.submit();">

The script (processDivs) and the form submit work... but when we add the variables, it fails... What are we doing wrong?

The form has fields that are populated by the end-user...
Each link on the page will exe the script and submit the form, with the following set of variables:

NAscreentitle
NAscreen
NAproc
NAaction
NArecord
NAmessage
NAmessagestyle
NAlevel

(We only included one variable in the example above, but we need all 8)

Can you help?

Reply With Quote
  #2  
Old October 31st, 2007, 02:50 PM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 549 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 7 h 3 m
Reputation Power: 4
form variables

Hi Cloverlick, welcome to the forums,
If the form has - method="get" - then the input variables should be getting added to the URL.
__________________
WP plugins - Error Reporting, Clean Options
http://www.mittineague.com/dev/er.php
http://www.mittineague.com/dev/co.php

Last edited by Mittineague : October 31st, 2007 at 02:53 PM.

Reply With Quote
  #3  
Old November 1st, 2007, 07:25 AM
Cloverlick Cloverlick is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Posts: 2 Cloverlick User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 56 sec
Reputation Power: 0
Quote:
Originally Posted by Mittineague
Hi Cloverlick, welcome to the forums,
If the form has - method="get" - then the input variables should be getting added to the URL.


Thanks. No, the form is post.

Reply With Quote
  #4  
Old November 3rd, 2007, 05:11 PM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 549 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 7 h 3 m
Reputation Power: 4
form method

If the form is using the "post" method, does the file targeted in the form's action attribute have a way of accessing the POST array?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Need Help Debugging Script/Error in Script - Passing Variables and submitting a form with onClick


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 2 hosted by Hostway
Stay green...Green IT