I believe this question will involve AJAX, jQuery, PHP, and sessions. I've tried for days and can't crack this. Starting fresh after many walks.
I simply want a form with a dropdown box that does NOT refresh/reload the screen. Saves the selection as a SESSION and "selects" or highlights the dropdown choice based on the session they just set.
So in a nutshell...
- Client selects the option (must use onchange event instead of clicking submit)
- using jQuery / AJAX this helps to prevent the page from reloading (correct?)
- dropdown choice is "remembered" because it uses the session to compare and "selects" it.
- Also able to echo / print the session on the same page.
I'm going to be using this simple example in multiple steps of an ordering form which uses check boxes, radios, input boxes, and dropdown menu.
If anyone knows of a simple example using a dropdown box, that would get me started.
The attempts I had before would only set a session using the first or last of the dropdown list instead of the one chosen.
Register and join over 40,000 other developers!
Recent Topics
-
Print specific values from dictionary with a specific key name
Siten0308 - Jun 20 2019 01:43 PM
-
Learn algorithms and programming concepts
johnnylo - Apr 23 2019 07:49 AM
-
Job Gig PHP Form Needed
PJohnson - Apr 18 2019 03:55 AM
-
How to make code run differently depending on the platform it is running on?
xarzu - Apr 05 2019 09:17 AM
-
How do I set a breakpoint in an attached process in visual studio
xarzu - Apr 04 2019 11:47 AM
Recent Blog Entries
Recent Status Updates
Popular Tags
- networking
- Managed C++
- stream
- console
- database
- authentication
- Visual Basic 4 / 5 / 6
- session
- Connection
- asp.net
- import
- syntax
- hardware
- html5
- array
- mysql
- java
- php
- c++
- string
- C#
- html
- loop
- timer
- jquery
- ajax
- javascript
- programming
- android
- css
- assembly
- c
- form
- vb.net
- xml
- linked list
- login
- encryption
- pseudocode
- calculator
- sql
- python
- setup
- help
- game
- combobox
- binary
- hello world
- grid
- innerHTML

I Believe This Question Will Involve Ajax, Jquery, Php, And Sessions. I've Tried For Days And Can't Crack This. Starting Fresh After Many Walks. I
Started by cde111, Jun 03 2012 01:29 PM
jQuery dropdown session ajax jquery
No replies to this topic
#1
Posted 03 June 2012 - 01:29 PM
Also tagged with one or more of these keywords: jQuery, dropdown, session, ajax, jquery
Language Forums →
HTML, CSS and Javascript →
Jquery .hasClass not returning true for a classnameStarted by Wackostylee, 13 Oct 2018 ![]() |
|
![]() |
||
Language Forums →
Other Languages →
ASP, ASP.NET and Coldfusion →
Dynamic controls and asp:button postbackStarted by Tchpowdog, 12 Jun 2016 ![]() |
|
![]() |
||
Language Forums →
HTML, CSS and Javascript →
Syntax and Reference Error?Started by Tonyobyo, 10 Jun 2016 ![]() |
|
![]() |
||
Language Forums →
HTML, CSS and Javascript →
Redirect after successful data post in AjaxStarted by PuddingEatsPanda, 16 Feb 2016 ![]() |
|
![]() |
||
Language Forums →
HTML, CSS and Javascript →
JQuery/NodeJS AJAX Response HelpStarted by Poe, 27 Jan 2016 ![]() |
|
![]() |
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download