Results 1 to 4 of 4

Thread: JavaScript: printing " [Resolved]

  1. #1

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    JavaScript: printing " [Resolved]

    I have some problems here....I am using a costum toolbar, so I should probably ask them. But will test you guys first....

    On a line like this I am writing the name of a link, and where it shold point to:

    SI("musikk_vinyl.htm","12 anmeldelser","");

    In the name field it should say 12" anmeldelser. But I can't write an " in the field then everything gets screwed up. What should I write to get an " in JS?


    And an other thing is that it doesn't handel Norwegian letters...anyone got an idea about this. My home page is using UTF-8, and in works in the HTML but not in the JS....
    Last edited by NoteMe; Apr 2nd, 2004 at 06:28 PM.

  2. #2

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Hmmm....looks like I can get an å if I write

    å


    hmmm....nice..

  3. #3
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    Code:
    a = "The following word will have speech marks around it: \"NoteMe\""
    document.write(a)
    basically \" will insert a " into the string.
    Have I helped you? Please Rate my posts.

  4. #4

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    I was trying that....but I must have used / in stead of \.......thanks...a bit to tired here I think...

Posting Permissions

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



Click Here to Expand Forum to Full Width