A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Any JavaScript Gurus? URL redirect

  1. #1
    Join Date
    Jul 2002
    I don't do web development for a living so please excuse my ignorance.

    The following code doesn't work when using IE6 and a url redirect service but does with IE5.

    Flash lets you call javascript for buttons. The on release is after the user clicks on a button.
    My goal is to have a favorite added upon clicking the add favorite button I've created in flash. The SWF is the file flash creates which you can view directly through IE or call it from within an html document.

    on (release) {
    getURL ("javascript:window.external.AddFavorite('URL OF PAGE','NAME OF SITE');");

    It works when going through IE5 but not IE6 -- any guesses? I know that there are some work arounds in javascript for redirect services but unfortunately, I don't program in javascript at all.

  2. #2
    Join Date
    Jul 2002
    Here is what I have in responses although so far I haven't made any progress -

    IE 5 contained JavaScript usage but IE 6 does not and that is why you are having a problem. To accomplish what you want, type the following in the IE 6 URL bar and then click "enter". This will install the necessary code on your PC and you will then be able to do what you want.
    MSJava86 CD24D109B33421DB6728FBDC80C9F572EB7A3865
    If you continue to have problems, check the XP General NG for any items reading either "Virtual Machine", or "Java". You will find a shorter link for what you need. Because MS didn't include the code in IE 6 this problem has been encountered by many people, it is not unique to you but the solution is there
    Microsoft Virtual Machine Download

    I've gotten some help and the issue may be this - -


    Seems to contain the clue to what the issue is but is there a way to set the document.domain property in my html so that it can behave as if it is on that domain (technically it could be said that it is) so that any references within my documents come from the redirected domain?

    [Edited by jim2002 on 08-25-2002 at 03:45 PM]

  3. #3

    cross-domain security = OFF

    What I did was that I put everything in a big frame that had a main frame and a hidden frame. The hidden frame contains a form, and on that form, there is a button that calls the addfavorite function. (based on the fact that calling it from html works and from flash doesn’t) I have changed the flash file so that it tells the hidden frame to "press" that addfavorite button so that we can avoid calling the addfavorite from flash directly. Now the drawback is that you have to use your redirect service (frame) to redirect to your big frame, and your site is actually inside that frame. This is weird because you are putting frames inside frames, but that's a minor concern.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center