Forum Moderators: coopster
For example
http://www.example.com/page.php?data=dataToBePassed
Also every row has a checkbox in it.
My problem is that if the user check the checkbox and clicks some row, the checkbox state is lost (Due to a new page loading).
Is there anyway I can save the checkbox state before the user goes to another page?
I think sessions would be the way to go but I am not sure if it is even possible to figure out the checkbox state before the user has submitted the form.
Best Regards
NooK
[edited by: dreamcatcher at 1:35 pm (utc) on Oct. 23, 2007]
[edit reason] Use example.com, thanks. [/edit]
I think sessions would be the way to go but I am not sure if it is even possible to figure out the checkbox state before the user has submitted the form.
To get the values of a checkbox you will need to submit the form.
My problem is that if the user check the checkbox and clicks some row, the checkbox state is lost (Due to a new page loading).
Your problem lies here I guess. Why do you need to reload the page?
Habtom
Basically the table rows are basic information about an order (So to speak) and the user can click the row to show more detailed information on the order
And at the same time each row header has a checkbox which would be used to place the order (Sending all checked orders once he presses the save button on the bottom of the page to submit the form).
Would Ajax allow me to send data to be stored in the server to be later retrieved once the used has clicked another row?
The reason I need to reload the page is because I send some data in the address field depending on what row the users click, and this data is used to get the extra information from the database and show it under the row.
Best Regards
NooK
[edited by: NooK at 11:49 am (utc) on Oct. 23, 2007]
The only downside of AJAX is what happens for those people who turn javascript off?
[edited by: PHP_Chimp at 12:32 pm (utc) on Oct. 23, 2007]
I mean currently the user can only see the detailed info on one order (row) but with the ajax loading the user will just be able to click row after row. Is there anyway to unload the current row before loading the data for the next one without reloading the site?
Best Regards
NooK
If it is just javascript then you can just overwrite the variables with your new ones.