Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Why does selected index NOT maintain position
Old 06-12-2007, 11:44 AM Why does selected index NOT maintain position
numbenator's Avatar
Webmaster Talker

Posts: 516
Location: London
Trades: 0
Hi,

I am usng a select drop down list with onchange which renders a new part of a form depending on users choice.

<select name="blockType" id="blockType" onChange="checkBlockType(this)" >

chechBlockType calls a function that uses xmlHTTPRequest which renders the necessary form part.

My problem is that blockType does not maintain it's selected index. It returns to 0 index which is "Select block type ...." value 0. This is messing up my code when form submited as I require the blockType to have value selected. As i would expect , any attempt to re select my choice, merely kicks in the onchange again and again resets.

Any ideas would be appreciated.

cheers
__________________

Please login or register to view this content. Registration is FREE
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
 
Register now for full access!
Old 06-12-2007, 12:16 PM Re: Why does selected index NOT maintain position
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Where's the code?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 06-12-2007, 12:20 PM Re: Why does selected index NOT maintain position
numbenator's Avatar
Webmaster Talker

Posts: 516
Location: London
Trades: 0
well it's multi part and here.
Whicdo you inquire about? The html, js or php?
__________________

Please login or register to view this content. Registration is FREE
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
Old 06-16-2007, 05:26 PM Re: Why does selected index NOT maintain position
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
you will have to send the value back when the page reloads.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-16-2007, 05:28 PM Re: Why does selected index NOT maintain position
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
The page that is giving you the problem. HTML and JS is fine in this case.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Reply     « Reply to Why does selected index NOT maintain position
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20934 seconds with 12 queries