Ask a Question related to Macromedia Dreamweaver, Design and Development.
-
cooped webforumsuser@macromedia.com #1
Changing button's URLs based upon text field
I have created a quiz using the Coursebuilder extensions in DWMX, which puts their score in a text field on the page (no data base is used). What I would like is if they score an 80 or higher, the Next button would direct them to one html page, but if they failed (79 or lower) the same Next button would direct them to a different page. Any ideas?
cooped webforumsuser@macromedia.com Guest
-
Dinamically changing the Text Field of a LinkButton in a DataGrid
Hello, I've run into a problem and I'm not sure if this is a limitation of dotNet or I'm doing something bad, I've a TemplateColumn in a... -
Changing text in a text field
I have another noob question, I'm trying to change the text in a filed depending on what the user clicks on. What's the line of code I need to... -
display text field based on the selection choices
I want to display credit card fields when the user selects the option paid membership. If user selects the option free membership, then the credit... -
SQL SELECT Based on *PART* a text Field?
Hello, I'm trying to figure out some SQL here and am wondering this: Is it possible to select data based on a sub-string of a text field? ... -
Button's text
Hi, I'm using a button, generated in the code behind: Dim button As New System.Web.UI.HtmlControls.HtmlButton button.Attributes.Add("value",... -
Kaosweaver #2
Re: Changing button's URLs based upon text field
"cooped" [email]webforumsuser@macromedia.com[/email] wrote:
Add this to the button (if it is submit, change it to button):> I have created a quiz using the Coursebuilder extensions in DWMX, which puts their score in a text field on the page (no data base is used). What I would like is if they score an 80 or higher, the Next button would direct them to one html page, but if they failed (79 or lower) the same Next button would direct them to a different page. Any ideas?
onClick="checkScore()"
then add this to the page:
<script>
function checkScore(){
d=document.myFormName.myTestScoreFieldName.value
window.location=(d<80)?'urlforlessthan80.html":"ur lform80plus.html";
}
</script>
Replace the myFormName with your form's name (sometimes form1) and
replace the myTestScoreFieldName with your test score field name.
================
Paul Davis
[url]http://www.kaosweaver.com/[/url]
Visit for an extension or a few.
Home of the inTensa Design Gallery and the Calendar Popup Behavior.
Kaosweaver Extension Support:
[url]http://www.kaosweaver.com/forum/[/url]
Kaosweaver Guest



Reply With Quote

