Hi,
Is it possible to create a button in the infoWindow to launch a new window/web page??
Thanks,
Clive
Also tried this, does not work ... error
In webpage
>>>>>>>>>>>>
map.infoWindow.setTitle("Identify Results");
map.infoWindow.setText(<a target='_blank' href=http://en.wikipedia.org/wiki/"+ +">Wikipedia Entry</a>");
map.infoWindow.setContent(tc.domNode);
map.infoWindow.resize(360, 200);
>>>>>>>>>>>>
In infoWindow
>>>>>>>>>>>>
this._closeButton = dojo.create("div", { "class": "close", title: "Close" }, this.domNode);
this._title = dojo.create("div", { "class": "title" }, this.domNode);
this._setText = dojo.create("div", { "class": "text" }, this.domNode);
this._content = dojo.create("div", { "class": "content" }, this.domNode);
>>>>>>>>>>>>
infoTemplate.content="<input type='button' value='open newpage' onclick='window.open(...)'/>"
Hi Zhu,
I added the code you suggested, still getting an error.
I am trying to get a button at the top of the infoWindow.
>>>>>>>>>>>>>
map.infoWindow.setTitle("Identify Results");
map.infoWindow.setText(infoTemplate.content=="<input type='button' value='open newpage' onclick='window.open(http://www.google.co.uk)'/>" );
map.infoWindow.setContent(tc.domNode);
map.infoWindow.resize(360, 200);
>>>>>>>>>>>>>>>>>>>>>>>