Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old February 11th, 2005, 06:14 PM
dflory dflory is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Henrietta, NY, USA
Posts: 2 dflory User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to dflory
Getting Javascript generated data

It's possible this belongs in the php coding site, not sure. My html page consists of 2 lists defined as so:
<select name=list onClick='dropItem(this.form)'>
and
<select name=number onClick='addItem(this.form)'>
If the user clicks on an item in either list, the item they clicked goes to the other list with following javascript:
function addItem(form)
{
form.list.options[form.list.options.length] = new Option(form.number[form.number.selectedIndex].text, form.number[form.number.selectedIndex].value);
form.number.remove(form.number.selectedIndex);
}
function dropItem(form)
{
form.number.options[form.number.options.length] = new Option(form.list [form.list.selectedIndex].text, form.list[form.list.selectedIndex].value);
form.list.remove(form.list.selectedIndex);
}
Once done setting the lists, the user clicks on a button and a php script is called. I cannot seem to find the name value pairs in which the list values are returned. I've tried $_POST, $_REQUEST, I've looked at $number (as an array and not), $list (as an array and not), but everthing comes back empty. Is there something in the javascript that causes the data to come back under a different name maybe?

thanx for any assistance,
dusty

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Getting Javascript generated data


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 6 hosted by Hostway