Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

popupwindow problem

Status
Not open for further replies.

firegambler

Technical User
Sep 25, 2002
455
AT
hi,

for a website i needed a popup.

here is how i did it:

i put this on the main timeline:
Code:
Object.prototype.flashworker_popup_v2 = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
	getURL ("javascript:newwin = window.open('"+url+"','"+winName+"','"+"width="+w+",height="+h+",toolbar="+toolbar+",location="+location+",directories="+directories+",status="+status+",menubar="+menubar+",scrollbars="+scrollbars+",resizable="+resizable+",top='+((screen.height/2)-("+h/1.5+"))+',screenY='+((screen.height/2)-("+h/1.5+"))+',left='+((screen.width/2)-("+w/2+"))+',screenX='+((screen.width/2)-("+w/2+"))+'"+"');setTimeout('newwin.focus();',900);void(0);");
};

then i used this script on the button that should open the popup:
Code:
on (release){
	//url,†winName,†width,†height,†toolbar,†location,†directories,†status,†menubar,†scrollbars,†resizable
	flashworker_popup_v2("[URL unfurl="true"]http://www.weinbau-neumayer.net/florian/index3.htm","BirthdayOfMusical",750,425,0,0,0,0,0,0,0);[/URL]
}


the problem is:
it works perfectly on my computer but on some others i get a "this site cannot be displayed"-error.

can anybody tell me why?

here you can see the case:
thanks in advance

(ps: both, calling a javascript function from the html-site
and the fBrowserWindow from flashcomponents.net resultet in the same error - but not necessarily on the same computers)

regards

tektips.gif
 
i changed the popup opener into a html-button, should work now but anyway i'm interested why the flashversion didn't work.

again thanks in advance

regards

tektips.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top