Click to See Complete Forum and Search --> : Holding the scroll at Dynamic radio button


drewex
06-30-2004, 02:50 AM
Hi all,

I am adding dynamic input boxes to the page and onclick i make it submit. But when it submits it loses the place it was and jumps all the way back to the top of the page. I need it to stay at the same place like its a fixed object on the page. Is there a way to get it to the same place.

Response.Write("<TD width=5><input checked onclick=""Form1.submit();"" id=""Processor"" name=""Processor"" type=""radio"" runat=""server"" value=""" & Rs("Processor") & """ ></TD>" & vbCrLf)

Note: i use #processor it goes to the right place but i moves the scroll a bit every time it goes certain spot. I need it to stay where it was before submit.
Please help

simflex
06-30-2004, 12:19 PM
looks like you are using .net?

Well, I am not a dot net person but you can try using a redirect before your submit.

like response.redirect " Where it needs to be.apx or asp"

Do this on the processing page.

drewex
06-30-2004, 12:32 PM
No thats not even close for what im looking for.
Your trying to redirct me .why need. I need something to get to the same place before submitting.
thanks for the try

roteague
06-30-2004, 03:10 PM
First, why are you creating a dynamic input box? If you don't want to show the Input box, just set it's visibility to "False". Much easier and cleaner than trying to do Respose.Write. It's why we have "Server" side controls.

Second, set "SmartNavigation" = True. This will have the effect of creating an iFrame on your page. One thing, it doesn't seem to work well on Mac IE.

drewex
06-30-2004, 03:36 PM
First, why are you creating a dynamic input box? If you don't want to show the Input box, just set it's visibility to "False". Much easier and cleaner than trying to do Respose.Write. It's why we have "Server" side controls.

The bad part of that is how many do i have to put in. if i have 100 items to show up what are we going to.

And for the "SmartNavigation" = True. ill try it tonight. Thank u