Click to See Complete Forum and Search --> : validation without submit button
xavikevicious
February 10th, 2005, 01:44 PM
hi everyone,
i want to validate one form without submit button. better explain:
i have one select list that has database results in each row. when i will select one row i want to refresh my form because other select list will show database results in relation with first select list. Do you understand??
thanks in advance
xavik
khp
February 10th, 2005, 02:07 PM
perhaps you could show us what you have got so far, to better explain what you are twying to do.
But from what you are saying I would say that the easiest solution, would be to select the first selection to the httpserver and then have the http server query the database, for the contests of the other select lists, and then have the http server return the updated page.
It might be possible to use Javascript to populate the other lists without making a request to the server. But this this means that all possible contents of the lists has to be preloaded to the client, depending on your useage this might massivly increase the loadtime of you page.
xavikevicious
February 10th, 2005, 06:08 PM
hi again,
i have one form with 4 select lists in my homepage (they will show database querys). the first has relation with second (if i have filled the first, its results have consequence with second and then with the second i get the third..).
i know that if i will request the first select, then i can reloaded the page with the second (but i need a submit button for this). i want these reload but without this submit button. Do you undestand me?
xavik
khp
February 10th, 2005, 06:28 PM
Do you undestand me?
No, not really. I think that was why I suggested you post your code.
What you want to do is preform a submit on a form, without having a submit button ?. That easy enough. Of course you have to be one **** of a lot more specific if you want anyone to help you.
bigBA
February 11th, 2005, 11:52 AM
hi again,
i have one form with 4 select lists in my homepage (they will show database querys). the first has relation with second (if i have filled the first, its results have consequence with second and then with the second i get the third..).
i know that if i will request the first select, then i can reloaded the page with the second (but i need a submit button for this). i want these reload but without this submit button. Do you undestand me?
xavik
you can use javascript for this just place a ochange="submit()" in you select tag.
<select name="BLA" onChange="submit()">...</select>
so every time the user selects an entry out of the select field, the browser submits the form.
in your script you can get the content of BLA and so fill the second and so on.
got it?
AndyTower
February 14th, 2005, 08:03 PM
Sorry, but if you using JavaScript you can have all information on client.
In first time you can read information from database to client.
This information possible very big!
I think you can't solve this problem without reloading page or you transfer big data to client
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.