Hi,
I'am trying to make JS application - I want to open link in new window without making info or pop-up window.
I've got feature layer, where one atributte is URL, where are stored diferent links.
Something like on click function.
I heard something about ajax(?), but I'm new in Javascript and don't know where (or how) to start.
Thanks for advance
Vojta
Maybe u can use some of this...
var strWindowFeatures = "location=yes,height=570,width=520,scrollbars=yes,status=yes";
var URL = "https://www.linkedin.com/cws/share?mini=true&url=" + location.href;
var win = window.open(URL, "_blank", strWindowFeatures);
Vojta,
Does the attribute field have a full url (i.e. http://www.someserver/something)?
Yes attribute field is full url.
Thanks
Vojtěch,
How are you wanting people to get to activate the link if you are not wanting to use a popup info window?
Pop up in smartphones are not good for me
Hi Vojta,
Attach "click" event handler with FeatureLayer:
on(featureLayer, "click", function(evt){
var url = evt.graphic.attributes["urlFieldName"];
var windowFeatures = "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes";
if(url) window.open(url,'featureInfoWindow', windowFeatures );
});
Hopefully this help.
-Girish
Thanks a lot for advices. I appreciate it