Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

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 Dev Shed Forums Sponsor:
  #1  
Old March 16th, 2004, 10:16 PM
roypython roypython is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 71 roypython User rank is Lance Corporal (50 - 100 Reputation Level)roypython User rank is Lance Corporal (50 - 100 Reputation Level)roypython User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 h 20 m 49 sec
Reputation Power: 10
Detecting values in GET Http header

Hi. I have a small but annoying problem.
I'm using HTML with GET. In the page there are:
1.Combo box in which : 1.1. a value is always selected
1.2 'On change' event causes the form to
submit
2. Some submit buttons
The problem is:
After the form is posted to the server, I do not know if it was submitted
because that the user changed the value in the combo box, or beacuse he clicked one of the submit buttons.
( the GET ALWAYS contains the value selected in the selected box)
Possible Solutions:
1. On combo box's ON change event -> submit a hidden button,
and then check on the server if this button name was sent to the server.
( but I was able to do it with type="Submit" NOT with type="button"
So, as a result the 'hidden' button appears on the page!!!
2. Using CSS to hide the button doesn't work as well.

That's all, if you have any solutions id'e love to hear it
thanks
roy

Reply With Quote
  #2  
Old March 16th, 2004, 10:47 PM
roypython roypython is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 71 roypython User rank is Lance Corporal (50 - 100 Reputation Level)roypython User rank is Lance Corporal (50 - 100 Reputation Level)roypython User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 h 20 m 49 sec
Reputation Power: 10
Answer

It is simple, but I couldn't saee it before...
<input type="submit" name="b2" id="b2" style="display: none">

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Detecting values in GET Http header

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap