View Single Post
Old 10-09-2003, 23:08   #1 (permalink)
flatcat
Balinese Buddah Sensei
 
flatcat's Avatar
 
Join Date: Jul 2003
Location: Vancouver, British Columbia
Posts: 763
Send a message via MSN to flatcat Send a message via Skype™ to flatcat
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
  Reply With Quote