1 Attachment(s)
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'> \""+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.
Re: URGENT -- DOJO Dialog Box -- How come there is quotation marks ?
Quote:
Originally Posted by
MrAsian
Why is the quotation marks there ?
Code:
d.set("title", "<center><img src='images/direction.png'> \""+name+"\"</center>");
They're there because you put them there. Remove the red text from my quote above and the quotes will be gone.
Re: URGENT -- DOJO Dialog Box -- How come there is quotation marks ?
Quote:
Originally Posted by
kows
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 :)
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.