Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > HTML and JavaScript

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-05-2004, 08:57 PM   #1
blaqreign
Registered User
 
Join Date: Apr 2004
Posts: 56
Default perplexing JS problem..

I thought this would have been easy, however it's turning out to be rather tricky.

I need to launch a system checker .exe located on our website from a Flash tour. When a user clicks the button it launches the download box and they can save the .exe or run it, their choice.

On the button inside of flash i have:
sysCheck_btn.onRelease = function() {
getURL("javascript:sysChecker();");
};

In the html page i have the following function:
function sysChecker() {
window.location.href="www.mywebsite.com/_download/SysReqtsCheck.exe"
}

In the html i also have several other functions that open a new common window (named newWin) based on different web pages. Sounds like it works right?

Well when the button for the system checker appears and you click it the download dialog opens, BUT if you cancel the download none of the other functions that link to webpages work. A runtime error pops up at line 0 and the page housing the flash tour goes blank.

So, i took the js function out all together and just used a getURL on the button with a straight link to the .exe location. SAME EXACT thing (if you cancel the DL it kills the other links. To make things more bizzare i used "window.open" in the function and that would open a browser window for a split second before the download dialog opens. This works ok in W2K, however XPsp2 blocks this by default. I think it's blocked because it's an exe being called from js.

I was hoping to keep the links outside of flash so that other web developers could just change the URL in the function if needed without having to change the Flash file.

Any suggestions or ideas would be helpful.

thx
blaqreign is offline   Reply With Quote
Old 11-07-2004, 12:16 AM   #2
Ruben
Me
 
Ruben's Avatar
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 3,510
Send a message via MSN to Ruben Send a message via Skype™ to Ruben
Default

Well, try opening a popup with in it a page which does the sysChecker()-function onLoad....
Place a link (<a href>) to the exe in the popup-document as well for browsers that don't agree with such actions onLoad

- Ruben

PS. Wild guess, haven't tested it or anything...tell me how it worked out...
__________________
.
Originally Posted by MichaelxxOA
"He sounded like he knew which words he was going to use before he knew what he was going to say. I hate that shit."
Ruben is offline   Reply With Quote
Reply


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:42 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.