| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
beauty through chaos
Join Date: Jul 2003
Location: Vancouver, British Columbia
Posts: 775
|
Ignore that other one now ;P
I'm using the following code for my javascript function to launch the window: <script language="JavaScript"> function NewWindow(mypage, myname, w, h, scroll) { var winl = (screen.width - w) / 2; var wint = (screen.height - h) / 2; winprops = 'height='+h+',width='+w+', top='+wint+',left='+winl+',scrollbars='+scroll+',r esizable' win = window.open(mypage, myname, winprops) if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } } </script> and I'm calling it using a getURL function, however the point of using this script was the ability to enter in the appropriate values depending on what file it was. I would like to be able to just change one getURL function for each execution by simply changing the variable values that are being sent to the javascript function, however, when I use the getURL function with my dynamic variables, I get the following in the output: javascript:NewWindow(_root.dynUrl,'thewin','400',' 300','no') anyone know how I can get flash to convert the values of my variables to values that will be sent to the javascript properly? this is all supposed to be dynamically generated off of xml which is why I can't just specify the values myself =\ audentes fortuna iuvat
Flatcat |
|
|
|
|
|
#2 (permalink) |
|
beauty through chaos
Join Date: Jul 2003
Location: Vancouver, British Columbia
Posts: 775
|
and ignore this one, heh, my buddy that's hardcore javascript/cgi/php/etc. fixed it for me without even knowing flash getURL("javascript:NewWindow('"+eval('_root.dynUrl ')+"','thewin','400','300','no')"); just hafta take this and adust it for the rest of the vars, thnx a lot if you guys were going over it audentes fortuna iuvat
Flatcat |
|
![]() |