473,748 Members | 2,422 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript help - use writedocument with opennewwindow

3 New Member
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.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=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_l ist_skin.swf" width="790" height="565" loop="0" quality="high" pluginspage="ht tp://www.macromedia. com/go/getflashplayer" type="applicati on/x-shockwave-flash" menu="false"></embed>'+
'</object>');
//-->
</script>
<object classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=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_l ist_skin.swf" width="790" height="575" loop="0" quality="high" pluginspage="ht tp://www.macromedia. com/go/getflashplayer" type="applicati on/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 2761
AricC
1,892 Recognized Expert Top Contributor
Here is an example. Basically you want javascript to open a new window with your flash code.
Nov 25 '06 #2
milododds
1 New Member
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 Recognized Expert Moderator MVP
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
7707
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 is <embed>ded in a minimal .html file. The onclick's work fine in IE w/Adobe SVG viewer 3: click and a new
5
2163
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 NewWindow = window.open(src, "Main"); NewWindow.focus(); }
1
1989
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 HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <%@ taglib uri="/WEB-INF/tag-lib/struts-html-el.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/tag-lib/struts-bean.tld" prefix="bean" %>
1
1578
by: helixpoint | last post by:
I get object does not support this property function openNewWindow() { var new_window; new_window=window.open('topicBuilder.aspx? formname=aspnetForm.ctl00_contentArea_ArticleHeaderImage&HiddenFileFolder=articlePath&elenum1=1&elenum2=2&ID=1','name','width=800, height=600,status=yes') new_window.focus();
2
1796
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 proportional if the user chooses to size up or size down. This pretty much takes care of the browser size complications. Here is original script and it works. But now I have few problems after this. CODE#1 <!-- masked --> <html> <head>...
2
1384
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', '" + queryString + "', 'anotherName');</script>"); I was asked to add Ajax to the grid so it would load faster. Trouble is when I did that, it broke the above line of code. When a user selects an item in the grid, it should open a new window with the...
0
9558
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9378
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9331
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8250
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6798
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3316
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2216
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.