Results 1 to 4 of 4

Thread: DOJO Dialog Box -- How come there is quotation marks ?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2011
    Posts
    10

    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:
    //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  
    Last edited by MrAsian; Aug 4th, 2011 at 10:32 PM.

  2. #2
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

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

    Quote Originally Posted by MrAsian View Post
    Why is the quotation marks there ?

    Code:
    d.set("title", "<center><img src='images/direction.png'>&nbsp;\""+name+"\"</center>");
    They're there because you put them there. Remove the red text from my quote above and the quotes will be gone.
    Like Archer? Check out some Sterling Archer quotes.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2011
    Posts
    10

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

    Quote Originally Posted by kows View Post
    They're there because you put them there. Remove the red text from my quote above and the quotes will be gone.
    thank you for your solution

  4. #4
    Lively Member
    Join Date
    Jul 2011
    Posts
    127

    Re: DOJO Dialog Box -- How come there is quotation marks ?

    i think ur not the one who code this. mark this thread resolved if you no longer have problem with this.

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