Old 10-09-2003, 23:08   #1 (permalink)
flatcat
beauty through chaos
 
flatcat's Avatar
 
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
  Reply With Quote
Old 11-09-2003, 00:53   #2 (permalink)
flatcat
beauty through chaos
 
flatcat's Avatar
 
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
  Reply With Quote
Old 11-09-2003, 04:17   #3 (permalink)
dan
Iris Folder
 
dan's Avatar
 
Join Date: Apr 2003
Location: smokey
Posts: 2,672
And I was just about to take a look.

Glad you got it sorted
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8