![]() |
| |||||||
![]() | « Previous Thread | Next Thread » |
| | LinkBack | Thread Tools | Display Modes |
| |||
| Hi, I have a problem and need some help how to solve it I have a questionnare of 25 questions every time the user fills out question 1 it will submit the page to itself and then display question 2 but what happens is when you fill out question 13 the page will refresh and then you have to scroll way down to see question 14 is there a way when a user completes the question the page will submit to itself and then display the next question and it will take them to that question instead of scrolling down Or i can also take them down to the bottom of the page because thats where the question will be displayed here is an example of how the question looks like Code: <table>
<tr>
<td>1)What is your gender?</td>
<td>
<input type="radio" name="age" id="age" value="Female"
<% if Request.form("age")= "Female" then
Response.Write "checked=""true"""
Else
Response.Write ""
end if
%>
onClick="this.form.action = '<%=Request.ServerVariables("Script_Name")%>'; this.form.submit();">Female
<input type="radio" name="age" id="age" value="Male" <% if Request.form("age")= "Male" then
Response.Write "checked=""true"""
Else
Response.Write ""
end if
%>
onClick="this.form.action = '<%=Request.ServerVariables("Script_Name")%>'; this.form.submit();">Male
<input type="radio" name="age" id="age" value="Prefer Not To Answer" <% if Request.form("age")= "Prefer Not To Answer" then
Response.Write "checked=""true"""
Else
Response.Write ""
end if
%>
onClick="this.form.action = '<%=Request.ServerVariables("Script_Name")%>'; this.form.submit();">Prefer Not To Answer
</td>
</tr>
<%
Dim getage
getage=Trim(Request.form("age"))
If getage <> "" then
%>
Question 2 goes here
<%
End if
%>
</table>
|
| Sponsored Links |
| |||
| Hi, I didnt understand what you said. Whats happening is when the questions are more the page becomes big and when the page is submitted to itself i see the top questions When the page is submitted i want to see the next question on the screen i donr want to scroll down to find the question todd |
| ||||
| Just an idle thought really, but could you use anchors and move the anchor point down with each post so that the most recent question scrolls to the top of the screen?
__________________ Wolffy ------------------------ Opinions expressed are my own and do not necessity reflect those of any sane person. Any code provided is intended to be an example and is provided AS IS. Rework for your specific environment may be required. Void where prohibited by law. Not valid in California. Your mileage may vary. |
| ||||
| Wolffy's suggestion using the anchor tag would be your best bet.
__________________ jmurrayhead Did I help you out? Make me popular by clicking the icon!If you found a post helpful, please click the button in the lower right-hand corner of the post.Powered by ASP.Net |
| ||||
| Code: <div id="qu1">Your question markup here</div> This should give you the desired effect. |
| |||
| hi, Here is the code that does the page submit onClick="this.form.action = '<%=Request.ServerVariables("Script_Name")%>#qu1' ; this.form.submit();" it didnt work i am doing it in the right way todd |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| display problem checkbox | todd2006 | JavaScript Programming | 4 | May 30th, 2008 03:58 PM |
| display textboxes problem | todd2006 | JavaScript Programming | 13 | May 22nd, 2008 02:54 PM |
| display problem | todd2006 | JavaScript Programming | 19 | May 12th, 2008 02:08 PM |
| text display problem | todd2006 | HTML & CSS Help | 10 | May 7th, 2008 08:14 PM |
| IE and Mozilla display problem | todd2006 | HTML & CSS Help | 11 | April 18th, 2008 01:17 PM |
| Sponsored Links |
| ASP.NET Resource Index a directory of ASP.NET tutorials, applications, scripts, assemblies and articles for the novice to professional developer. Free Web Directory Including Chats and Forums Resources, Offer automatic, instant and free directory submissions. | URLZ Web Directory URLZ Web Directory Free Web Directory - Add Your Link The Little Web Directory | Free Web Directory Pegasus free web directory is a free directory organised by categories. Web Directory & SEO Services dirroot web directory |