473,388 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Javascript help - use writedocument with opennewwindow

Hi,

I have a javascript automatically created by adobe captivate 2 to generate an html file that integrates the desired my.swf file and the skin for the flash player (my_skin.swf).

The script within the html page is this:

[HTML]<script type="text/javascript">
<!--
writeDocument('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="790" height="565" ID="Captivate1">'+
'<param name="movie" value="supplier_list_skin.swf">'+
'<param name="quality" value="high">'+
'<param name="loop" value="0">'+
'<embed src="supplier_list_skin.swf" width="790" height="565" loop="0" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false"></embed>'+
'</object>');
//-->
</script>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="790" height="575">
<param name="movie" value="supplier_list_skin.swf">
<param name="quality" value="high">
<param name="loop" value="0">
<embed src="supplier_list_skin.swf" width="790" height="575" loop="0" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false"></embed>
</object>
</noscript>
[/HTML]
The script in standard.js is this:

Expand|Select|Wrap|Line Numbers
  1. function writeDocument(s){document.write(s);}
What I want to know is how do I integrate this script with one that will open a new window that has no scrollbars, no toolbar, no menubar, etc. I want to control the window that the flash file will play in. Right now it's just loading a normal new window.

Any help would be GREATLY appreciated.

Thanks,
Loredana
Nov 24 '06 #1
3 2733
AricC
1,892 Expert 1GB
Here is an example. Basically you want javascript to open a new window with your flash code.
Nov 25 '06 #2
I am facing the same issues and I am trying to implement a solution that I discovered at pipwerks website. So far I am still struggling but what you do is set a value on a click box as a variable and then read that variable into a javascript function. So far I have gotten simple examples to work but I am running into issues with the complex Adobe Javascript in their webpage failing in IE. Here is the main function and then inside of Captivate just set identify"mario" to one button and then a different launch window button set to indetify"luigi" you can call the variable whatever you want, I just kept the example name the same.

Expand|Select|Wrap|Line Numbers
  1. function identify(person){
  2.  
  3.     var feedback = document.getElementById("feedback");
  4.     switch(person){
  5.         case "mario" : {window.open("index.html","UDDI Web Services Course","menubar=no,address=no,location=no,resizeable=no,toolbar=no,scrollbars=no,directories=no,width=1024,height=825");}
  6.         break;
  7.         case "luigi" : {window.open("navigation.html","Course Navigation","menubar=no,location=no,resizeable=no,toolbar=no,scrollbars=no,address=no,directories=no,width=1024,height=825");}
  8.         break;
  9.     }
Oct 31 '08 #3
acoder
16,027 Expert Mod 8TB
Show an example of code which fails, i.e. more of the code including HTML.

PS. welcome to Bytes!
Nov 1 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: J Fisk | last post by:
Hi, I've been banging my head on the wall over this for about two days now so any thoughts are much appreciated. I have a static .svg file with embedded onclick="open()"'s all over. The svg...
5
by: Roger Withnell | last post by:
This is a framed webpage with the navigation bar in "NavBar" and the main window in "Main". When opening a new page in "Main" from "NavBar" with: function OpenFrameWindow(src) { var...
1
by: JumpingOffPlace | last post by:
Hi, I'm hoping that the wealth of knowledge here can stop me from spinning my wheels on this syntax error for hours. :) Below is the code, and the error I am recieving.... Code: <!DOCTYPE...
1
by: helixpoint | last post by:
I get object does not support this property function openNewWindow() { var new_window; new_window=window.open('topicBuilder.aspx?...
2
by: spiralof5 | last post by:
Hi. I must first say I'm not an experienced scripter. Here's my problem and how far I am so far. I struggled for awhile to get the browser to fill most of it with my flash movie and keep it...
2
by: =?Utf-8?B?V2FubmFiZQ==?= | last post by:
I have a page that has the following Javascript on it: Page.ClientScript.RegisterStartupScript(typeof(string), "OpenWindow", "<script langauge='javascript'>OpenNewWindow('MyPage.aspx', '" +...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.