SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jun 2011
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    URGENT -- DOJO Dialog Box -- How come there is quotation marks ?

    As shown in the picture below, you can see the word "Chinese Swimming Club" in the dialog box
    Why is the quotation marks there ?
    Is it possible to remove the quotation marks and just display the pic + the words Chinese Swimming Club ?

    Part of the coding:
    Code JavaScript:
    //Display name on infoWindow
    function displayTitle(name, x, y, address){
    	return name + " <a href='#' onClick='showDirectionsDiaglog(\""+name+"\", "+x+", "+y+", \""+address+"\")'><img src='images/direction.png' alt='Get driving directions'/></a>";
     }
     
    //Display dialog box
     function showDirectionsDiaglog(name, x, y, address){
     
        omap.map.infoWindow.hide();   
        omap.map.setLevel(0);
     
    	var d = dijit.byId("dialogDirections");
    	d.set("title", "<center><img src='images/direction.png'>&nbsp;\""+name+"\"</center>");	
    	d.closeButtonNode.style.display = "none";
    	document.getElementById("txtTo").value = address;
    	d.show();
     
    }

    The name (Chinese Swimming Club) is retrieved from my database (I am using Microsoft SQL Server 2005)

    Please help. Thank you.
    Attached Images Attached Images

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,203
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    I don't see an apostrophe there. Do you mean the quotation marks around Chinese Swimming Club?

  3. #3
    SitePoint Member
    Join Date
    Jun 2011
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ralph.m View Post
    I don't see an apostrophe there. Do you mean the quotation marks around Chinese Swimming Club?
    I'm sorry, I am bad in the names of punctuation marks.

    Yes, the quotation marks. Can they be removed ?

  4. #4
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,707
    Mentioned
    102 Post(s)
    Tagged
    4 Thread(s)
    Those will be the escaped quotes that are around the name.

    They look like this in the code: \"

    Remove them.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  5. #5
    SitePoint Member
    Join Date
    Jun 2011
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by paul_wilkins View Post
    Those will be the escaped quotes that are around the name.

    They look like this in the code: \"

    Remove them.
    thank you for your help


Bookmarks

Posting Permissions

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