Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: How to fix the "click to activate and use this control" problem

  1. #1
    Join Date
    Apr 2007
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to fix the "click to activate and use this control" problem

    How can we get rid of this problem in flash object:
    click to activate and use this control

    Can we get rid of this problem?

  2. #2
    Join Date
    Nov 2005
    Location
    Austin TX,US
    Posts
    71
    Thanks
    2
    Thanked 0 Times in 0 Posts

  3. #3
    Join Date
    Apr 2007
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks,

    I have just found the solution:

    place the following javascript code below the last OBJECT tag on the page:

    =======code=====

    objects = document.getElementsByTagName("object");
    for (var i = 0; i < objects.length; i++)
    {
    objects[i].outerHTML = objects[i].outerHTML;
    }

    =======code ends======

    You can also save it as .js file and call the file after the last OBJECT code....

  4. #4
    Join Date
    Jan 2007
    Posts
    181
    Thanks
    5
    Thanked 3 Times in 3 Posts

    Default

    Hmm, i cant seem to get it to work on my site... I tried putting the above code under the last object tag, but nothing happened.

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I don't see why this is a problem.
    objects[i].outerHTML = objects[i].outerHTML;
    This will cause an error to be displayed in non-IE browsers.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Jan 2007
    Posts
    181
    Thanks
    5
    Thanked 3 Times in 3 Posts

    Default

    Oh, so this only works for ie?

  7. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Only IE displays the message (natively, there's a Firefox extension called FlashBlock that performs the same function but I don't think it's so easily circumventable).
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  8. #8
    Join Date
    Jan 2007
    Posts
    181
    Thanks
    5
    Thanked 3 Times in 3 Posts

    Default

    Oh, I see..

    So i put:

    objects[i].outerHTML = objects[i].outerHTML;

    right after "</object>" in the html page, right?

  9. #9
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Put this at the bottom of your page:
    Code:
    <script type="text/javascript">
      for(var i = 0, es = document.getElementsByTagName("object"), e = es[0]; i < es.length; e = es[++i])
        if(e.outerHTML)
          e.outerHTML = e.outerHTML;
    </script>
    This is the principle of which Raj spoke, but I don't know how effective it will be (I work with neither Flash nor IE). I still fail to understand why this message is a problem.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  10. #10
    Join Date
    Jan 2007
    Posts
    181
    Thanks
    5
    Thanked 3 Times in 3 Posts

    Default

    Its a bit of a burden to have to double click on nav's. Clients dont fancy it much. Thanks, ill let you know if it works.

Bookmarks

Posting Permissions

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