Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: jscc
  • Order by date
  1. jscc

    Nesting JavaScript functions

    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
  2. jscc

    Nesting JavaScript functions

    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...
  3. jscc

    Nesting JavaScript functions

    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...
  4. jscc

    Nesting JavaScript functions

    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...
  5. jscc

    Nesting JavaScript functions

    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...
  6. jscc

    Nesting JavaScript functions

    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...
  7. jscc

    Nesting JavaScript functions

    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...
  8. jscc

    Nesting JavaScript functions

    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

Part and Inventory Search

Back
Top