473,401 Members | 2,068 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,401 software developers and data experts.

javascript presentation CD

zorgi
431 Expert 256MB
Hi everyone

I am not sure if this is the place to post this question but ...
Well I was asked to do presentational CD using HTML and Javascripting. No problem I thought and few hour later everything was ready and it worked great on my hard drive. I than look up in google for how to create autorun and my CD was ready. But then we tested it around the office on different machines with different default browsers and all kinds of security messages started poping up. Cd works but only after one clicks several times to confirm this or that.

Here is code from my start.html page:
Expand|Select|Wrap|Line Numbers
  1. <script>
  2. window.open("index2.html",true,"status=no,toolbar=no,menubar=no,location=no,titlebar=no,channelmode=yes");
  3. window.opener = self;
  4. window.open('','_parent','');
  5. window.focus();
  6. self.close();
  7. </script>
  8.  
The code above is my main problem.

In firefox does happens one of two:

1) It starts only start page never opening index2.html OR
2) It starts everything including index2.html but never closes start.html

In IE works fine but if you have sp-2 than you get yellow activX warnings on both start.html and index2.html

I looked around and found no solution to this problem. I am now asking myself if this is at all suppose to be done in this way because everything I found are some half way hacks.

Thank you for your help
May 9 '08 #1
5 1181
acoder
16,027 Expert Mod 8TB
It seems what you're trying to do is open a window and close the parent (opening) window. Why would you want to do that?
May 9 '08 #2
zorgi
431 Expert 256MB
It seems what you're trying to do is open a window and close the parent (opening) window. Why would you want to do that?
Hello acoder

Because only window that is opened via javascript can be closed without getting dialog box from the browser. This script is all that is on the first page. It is ment to open child window and than close itself. That way I can have full screen for Child window and use window.close() on it without dialog box poping up.
May 9 '08 #3
acoder
16,027 Expert Mod 8TB
This can't work with default settings. You will need to run this with privileges (e.g. trusted zone) to allow it to work. Note also that channelmode is IE-only.
May 9 '08 #4
zorgi
431 Expert 256MB
Yeah. Thanks. I think guys at work are finding different solution to the problem (Not using default browser for presentation). I'll be happy to pass this problem on :)

Once more Thank you
May 9 '08 #5
acoder
16,027 Expert Mod 8TB
You're welcome! Let us know if you manage to solve it.
May 9 '08 #6

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

Similar topics

8
by: Matt Kruse | last post by:
http://news.zdnet.com/2100-1009_22-6121608.html Hackers claim zero-day flaw in Firefox 09 / 30 / 06 | By Joris Evers SAN DIEGO--The open-source Firefox Web browser is critically flawed in...
18
by: Andrew Wan | last post by:
I have been developing web applications with ASP & Javascript for a long time. I have been using Visual Studio 2003.NET. While VS2003 is okay for intellisense of ASP & Javascript, it's still not...
9
by: mevryck | last post by:
Greetings I have a huge Javascript with inclusion of external scripts and all. I got this by doing a XSLT . Now I have the contents in a Javascript variable, but I'm not able to update the...
22
by: Dan Rumney | last post by:
Hi all, I've been writing Javascript for quite a while now and have, of late, been writing quite a lot of AJAX and AJAX-related code. In the main, my dynamically generated pages are created...
4
by: hyperman7 | last post by:
I saved the code below to an external file which I called colorFader.js, and I'm calling it with: <script type="text/javascript" src="js/colorFader.js"></script> My path (above) is correct, so...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
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...
0
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,...
0
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...

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.