SunQuest
 
      Javascript
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Tutorialized ForumsWeb Design & DevelopmentJavascript

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old April 10th, 2008, 02:10 PM
SinSoul SinSoul is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 1 SinSoul User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 26 sec
Reputation Power: 0
Window.open tracing - help required

Hello everyone!
I was willing to make a script for my radio not to be realoaded each time user presses any link on the page. I thought I'll create it in popup window, but the site also has embedded radio, so I need it to be hidden or showed depending on that popup window, if it is active div tag will hold some text, if not it will hold that radio. Or to make a script which will popup that window only once through all time user browses my site. In any case I need somehow to trace that opened window, I don't know how to do it AFTER user presses any link and the page being updated. Script doesn't reallize anymore that window was already opened Any help will be appretiated!

Here's part of my script, on which I was working:

Code:
<script LANGUAGE='JavaScript'>
<!--
function openWindow() {
    if (!window.window2) {
        window2 = window.open('','windowRef','width=200,height=30,re  sizable=0,scrollbars=0');
		window2.window.resizeTo(323,50);
		window2.document.write("<object id='WinMedia' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject' height='50' width='323'>");
		window2.document.write("<param name='FileName' value='http://server2.digital-webstream.de:10780'>");
		window2.document.write("<param name='AutoStart' value='true'>");
		window2.document.write("<param name='ShowControls' value='true'>");
		window2.document.write("<embed type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' src='http://server2.digital-webstream.de:10780' name='MediaPlayer' autostart='1' showcontrols='1' height='50' width='323'>");
		window2.document.write("</object>");
		window2.closed();	
    }
	
}
-->
</script>

<a href="#" onClick="openWindow()" />Popitup</a>
<div id="holder"><!--here will also be script for the radio and it will dinamically be showed or hidden
depending on that if window is opened or not--></div>

Reply With Quote
Reply

Viewing: Tutorialized ForumsWeb Design & DevelopmentJavascript > Window.open tracing - help required


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 4 hosted by Hostway