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
Old 08-22-2006, 01:44 PM submission of values
Average Talker

Posts: 18
Trades: 0
Hi I have a dropdown list of regions like abc,def,ghi,jkl
to submit those regions I am using follwing function using onchange event.
problem-when user changes the value result comes.But In dropdown when user want result for current visible value no results(obviously because same value is used which was before clicking on dropdown).
Now I wanna modify this function using if else like conditiion that if onchange happens value will be submitted else whatever value visible in jsp should be submitted.regionform where getter and setter property is set for form.
<script language="javascript">
function submitRegion()
{
document.regionForm.submit();
}
</script>
somsahi is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-22-2006, 02:12 PM Re: submission of values
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
Sorry, I'm having trouble understanding your english. It sounds like you want to check the chosen value of the select box to see if it is something other than the initial blank value. (I'm assuming the first choice is something like "Choose one..." with a blank value) and if it is not blank then submit? I don't understand the part about the .jsp page. Can you show us you example and try to explain again? Thanks.
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 08-23-2006, 01:23 PM Re: submission of values
Average Talker

Posts: 18
Trades: 0
Hi thanxs for your effort.
wahtever I am asking it is impossible i came to know that

regards
somsahi is offline
Reply With Quote
View Public Profile
 
Old 08-24-2006, 06:08 AM Re: submission of values
Ultra Talker

Posts: 256
Location: Auckland, New Zealand
Trades: 0
I don't think what you're asking is impossible, but what you've said I don't think anyone can understand it.

From what I gather, you're using the onchange event for that action, but if there's already a value set that hasn't been changed to and is what they want, you'd want to do something with it.

You'll use the onload event, and you'll do similar but you'll need to grab the value of the selection that is selected first. Am I close or way off the mark?

Cheers,

MC
__________________
#------------------------------signature---------------------------------------------------------------------------------#
Quote:
I am well recognised for what I don't do than what I do. Chores are just one of those things.
mastercomputers is offline
Reply With Quote
View Public Profile Visit mastercomputers's homepage!
 
Old 08-25-2006, 10:16 AM Re: submission of values
saadatshah's Avatar
Extreme Talker

Posts: 215
Name: Syed Saadat Ali
Location: Lahore, Pakistan
Trades: 0
Rephrase your Question Dude
__________________
- -- --- ---- ----- ------ ------- ---------------
If you have knowledge, let others light their candles in it.
saadatshah is offline
Reply With Quote
View Public Profile Visit saadatshah's homepage!
 
Old 08-25-2006, 06:08 PM Re: submission of values
kIDJOE's Avatar
Extreme Talker

Posts: 186
Location: Hollywood, CA
Trades: 0
Not impossible whatever you are trying aint impossible... Hidden Fields and maybe lots of code but try using Hidden Fields, Flags, and If's and Then's

cheers
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

kIDJOE is offline
Reply With Quote
View Public Profile Visit kIDJOE's homepage!
 
Reply     « Reply to submission of values
 

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.70048 seconds with 12 queries