JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
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  
Old August 10th, 2004, 05:26 PM
epdsn epdsn is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: AZ
Posts: 3 epdsn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Opening windows

/////////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("JavaScriptopup01();");
}

Button #2 code:
on (release) {
getURL("JavaScriptopup02();");
}

Somebody please hep me,

-Sofa King We Todd did

Reply With Quote
  #2  
Old August 11th, 2004, 07:03 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
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.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Opening windows


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway