Whoops, posted answer to ferherke and just now saw Vacanuta's response. I will try both sets of code. I want to learn multiple ways to code.
Thanks, Jeremy
OK, I see. I got confused thinking that Vacunita's comments right after your 12 Oct 11 3:26 post related to your code. After reading it again, I see his comment were directed to my code.
I copied your function into my code. Still not quite working for me. I'm assuming the variable section...
OK, I see. I got confused thinking that Vacunita's comments right after your 12 Oct 11 3:26 post related to your code. After reading it again, I see his comment were directed to my code.
I copied your function into my code. Still not quite working for me. I'm assuming the variable section...
The problem is that I don't understand how to define the multiple answers that would need to occur in my function.
For example, when clicking on the first set of coordinates, the student would need to enter the capital for that province. If they enter the correct city, then an alert box should...
Thanks for your help. I appreciate the input. I started working on this again tonight and I see that I'm confusing myself by what I was trying. So I've changed my code (see below).
Can someone please tell me how I can add
"if the variable 'name' equals X then alert(Correct) else alert(Try...
Thank you again. What if I want the students to have immediate feedback after they enter each capital city? I've tried to get the code going below (what I think is a 'nested if else') but it's not working. I think it might have to do with my use of open and closed braces? Any suggestions for...
Thank you very much! Using your suggestion, I came up with the following idea for the function.
<script type="text/javascript">
function askforCapital(provinceVal){
if(provinceVal=='BC'){
prompt("What is the the Capital of British Columbia");
}
if(provinceVal=='AB'){
prompt("What is...
I have a map of Canada. When the mouse rolls over one of the province, I'd like a pop up that asks, "Is the capital of this province A or B?". Is that just a matter of besting one JavaScript inside another?
Thanks,
Jeremy
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.