Hi,
I have 10 radio buttons on a form, on click of one of them I want the page to refresh itself and enter a value (of the chosen radio button) to a database, how do I know which button had been chosen and how do I refresh the page on that event
Thanks
Eyal
you can have a Java script...
function radio_click(radio1)
{
//radio1.value will give u the value of the button clicked
//the page can be refreshed using document.frm1.submit();
}
Thanks,
On this page I got a picture that is taken from a database, I'm showing the picture using "img src=rs.imageUrl", on each click on the radio buttons I want the recordset to move to the next record, where should I write the "rs.movenext" ?
Thanks again
Eyal
I have more than 10 images, in the future I'll have hundrads, I want on every click on any of the radio buttons to switch image, is it possible?
Thanks
Eyal
You can still do it...
To be efficient, you will have to load the image urls into the array taking care that the radio button's value and the array index match..
For a radio button value of '1', the image URL should be in imgArr[1] and so on. The code above will work for any no: of images... jus' that it will take more time for the page to load, since the array has to be populated with the image Urls... Try it out and see if the time-factor suits your requirements...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.