|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
/////////I added this code where an embedded Flash movie can reference this code:
<SCRIPT LANGUAGE="JavaScript"> function popup01() { window.open('pp_Honda_airstrut.htm','','toolbar=no ,location=no,directories=no,status=no,menubar=no,s crollbars=yes,resizable=yes,width=200,height=200,l eft=200,top=200'); } </script> <SCRIPT LANGUAGE="JavaScript"> function popup02() { window.open('pp_Honda_airstrut.htm','','toolbar=no ,location=no,directories=no,status=no,menubar=no,s crollbars=yes,resizable=yes,width=200,height=200,l eft=200,top=200'); } </script> /////////The First function seems to work ok. But the second function doesn't work at all! The code on the Flash button goes like this: Button #1 code: on (release) { getURL("JavaScript opup01();");} Button #2 code: on (release) { getURL("JavaScript opup02();");} Somebody please hep me, -Sofa King We Todd did |
|
#2
|
||||
|
||||
|
Weird. Does it provide an error or just not pop up? Are you sure it's not popping up? Since you're sending the same page in both functions, it could actually be working, but since the page is cached, you're not noticing a reload. Also, since the windows aren't named, it's possible that both functions are using the same window and not focusing on the second popup, which would also make it appear that this isn't working. Try changing the filename in the second function and see if you notice any different results.
You might also consider making this just one function and passing a filename as a parameter to it, then using the parameter rather than a static string as the first argument to window.open().
__________________
Please don't PM me asking for solutions outside the scope of a thread. Keeping all responses in a thread stands to help others who come along later, which is after all what this forum's all about. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Opening windows |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|