Select to view content in your preferred language

infowindow and customized popup size  - reloaded

610
3
05-07-2010 06:55 AM
MarioDel_Castello
Emerging Contributor
Sorry for double posting about this issues, but I???d really like to figure out how to solve the problem (I need to top up my programming skills???).
I have the feeling that my problem resides in the first code line, although the flex builder is not returning any error. As suggested by Robert Scheitlin in the old forum???s thread, I used the same syntax to open a single web page via the command: var url:String = "http://mywebpage.html". Now I???m dealing with distinct web pages that are multiple record in a column of a feature class. I did manage to get the distinct web pages to open, but they don???t respect the 450/360 pop up size as set at the end of the code (pasted). Did anyone incur in the same problem?

Thanks in advance! Mario


//show link

private function showLink():void

{

var url = navigateToURL (new URLRequest(infoData.link));

var window:String = "_blank";

var features:String = "toolbar=no,location=no,resizable=no,directories=n o,status=no,scrollbars=no,copyhistory=no,width=450 ,height=360";



var WINDOW_OPEN_FUNCTION : String = "window.open";

ExternalInterface.call( WINDOW_OPEN_FUNCTION, url, window, features );


}
Tags (2)
0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus
Mario,

    The issue I see is here

var url = navigateToURL (new URLRequest(infoData.link));


the navigateToURL does not return anything so setting the var url to it is doing nothing.

navigateToURL is opening a window, but it does not take any of the features that are var'd below into account.

Try this code

//show link

private function showLink():void

{
 var url:String = infoData.link;

 var window:String = "_blank";

 var features:String = "toolbar=no,location=no,resizable=no,directori es=n o,status=no,scrollbars=no,copyhistory=no,width=450 ,height=360";

 var WINDOW_OPEN_FUNCTION:String = "window.open";

 ExternalInterface.call( WINDOW_OPEN_FUNCTION, url, window, features );
}
0 Kudos
MarioDel_Castello
Emerging Contributor
Robert,

we fixed the code after your suggestions and the pop-up appears correctly sized now.

thanks a lot for your help!

mario
0 Kudos
pronky
by
New Contributor
Hiiiiiiiiiiiiiiiiiiiiiii im a newbie ..............im glad to being with us......
0 Kudos