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:
The name (Chinese Swimming Club) is retrieved from my database (I am using Microsoft SQL Server 2005)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(); }
Please help. Thank you.




Reply With Quote