Quantcast
Java help - Beyond.ca - Car Forums
Results 1 to 3 of 3

Thread: Java help

  1. #1
    Join Date
    Sep 2006
    Location
    Victoria, BC
    My Ride
    '97 BMW 328is M-Sport
    Posts
    2,064
    Rep Power
    20

    Default Java help

    I need to add a link to a switch string, and I know not a ton about javascript. Here's an example:

    switch(thisContent){
    case "One":
    var thisStuff = "<p>Case one</p>";
    break;
    case "Two":
    var thisStuff = "<p>Case two.</p>";
    break;
    case "Three":
    var thisStuff = "<p>Case three</p>";
    break;

    } //close switch

    Now, if I put in <a href="something.htm">Something</a> in any of those cases, it fucks it up. I'm assuming it's because of the quotation marks messing with the javascript. How the hell do I put a link in there?
    Originally posted by FraserB
    I think their main complaint is that they did not receive the stolen property they paid for.

  2. #2
    Join Date
    Sep 2006
    Location
    Victoria, BC
    My Ride
    '97 BMW 328is M-Sport
    Posts
    2,064
    Rep Power
    20

    Default

    Got it! I need to use single quotes in the java stuff...yay
    Originally posted by FraserB
    I think their main complaint is that they did not receive the stolen property they paid for.

  3. #3
    Join Date
    Sep 2004
    Location
    Calgary
    Posts
    341
    Rep Power
    20

    Default

    Javas a whore. Glad our instructor gave us answers to the labs and set the exams up to be mainly theoretical on data structures otherwise I'd be repeating.

Similar Threads

  1. quick, help, java

    By Chester in forum Campus Chat
    Replies: 1
    Latest Threads: 02-03-2006, 03:39 AM
  2. Java help

    By KLCC in forum Computers, Consoles, and other Electronics
    Replies: 5
    Latest Threads: 10-12-2005, 12:54 AM
  3. html and java help?

    By Shaolin in forum Computers, Consoles, and other Electronics
    Replies: 3
    Latest Threads: 07-05-2004, 08:42 PM
  4. help with java!!!!

    By Impreza in forum Campus Chat
    Replies: 6
    Latest Threads: 11-04-2003, 11:55 AM
  5. Replies: 10
    Latest Threads: 09-10-2003, 10:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •