1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Favlet (aka Bookmarklet) failing on IE9 (and IE8) 32-bit (works on 64-bit)

Discussion in 'Internet Explorer & Microsoft Edge' started by Kevin2, 2012/06/10.

  1. 2012/06/10
    Kevin2

    Kevin2 Inactive Thread Starter

    Joined:
    2012/06/10
    Messages:
    1
    Likes Received:
    0
    I am running Windows 7 Home Premium 64-bit

    I am using Internet Explorer 8, 32-bit.

    I click a "Favlet" that should open a new window and display html content... this fails.

    When I click the Favlet, a new window (or tab) opens as expected, but the window is empty (address bar shows: "about:blank ") and the content is not displayed.

    My original test-example Favlet was:
    Code:
    javascript:(function(){x=window.open();x.document.write('<html>\n\n\n<head><title><\/title><\/head><body%20bgcolor=\'#dddddd\'><pre>Hello !!<br>\n\n<\/pre><\/body>\n\n\n\n\n\n\n<\/html>');x.document.close();})();
    

    After some modifications suggested by others, I now have tried this:

    If I expand that, it looks like this:
    Code:
    javascript:(function(){
      var x=window.open( "about:blank ");
      x.document.open();
      x.document.write('<!-- saved from url=(0014)about:internet -->\n<html><head><title>Testing</title></head><body><pre>Hello !!<br></pre></body></html>');
      x.document.close();
    }
    )();
    

    (I have also tried numerous variations of these changes, including:
    var x=window.open();)

    I save this code as a Favorite, either on my Favorites-Bar, or anywhere else in Favorites.

    So here it is, step by step after I open IE9 32-bit:
    1) I open a web-page (example: http://msdn.microsoft.com/en-us/)
    2) I click the Favlet as shown above...
    3) A new tab opens
    4) The address bar shows: "about:blank "
    5) The page is blank.
    6) The "Title" (on the Tab) shows "Blank Page" (I would have expected Title= "Testing ")
    7) If I click "View "-> "Source ", I see:
    "<HTML></HTML> "

    Still in IE9 32-bit...
    If I do this with the debugger turned on, it breaks at "x.document.open()" and the error in the debugger shows: "SCRIPT1733: The tag is invalid." ... "script block (1), line 1 character 46 ".

    I have noticed that depending on the web-page I am viewing, or perhaps it is somewhat random, I have seen these two errors: 1) "Access Denied ", 2) "The tag is invalid. ". I have not seen any other error messages while debugging this. With the debugger not running, I do not see any error messages.

    If I re-try this using IE9 64-bit or FireFox (and previously on IE8 - 64 bit):
    1) I open a web-page (Same as example for 32 bit above)
    2) I click the Favlet as shown above...
    3) A new tab opens
    4) The address bar shows: "about:blank "
    5) The page correctly shows the expected text: "Hello !! "
    6) The "Title" (on the Tab) correctly shows "Testing "
    7) If I click "View "-> "Source ", I see:
    "<!-- saved from url=(0014)about:internet -->
    <html><head><title>Testing</title></head><body><pre>Hello !!<br></pre></body></html> "


    So, on IE9 32-bit (and previously on IE8 32-bit), the Favlet seems to always fail and only open a Blank tab (page).

    And on IE9 64-bit, and FireFox (and previously on IE8 - 64 bit), the Favlet seems to always work... a new tab (page) is opened containing the text from the "x.document.write(...) "

    I tried adding the web-page domain to trusted sites.

    I have IE9 pop-up blocker turned off, and all other 3rd-party pop-up blockers turned off.

    I disabled Google-Toolbar, and nearly all other toolbars and BHO's are disabled.

    The results are the same.

    I ran IE9 in "Safe Mode" (no-add-ons) using:
    >iexplore "“extoff

    The results are still the same.

    I also tried:
    Tools -> Internet Options -> Advanced tab -> Uncheck "enable third-party browser extensions "
    Tools -> Internet Options -> Security tab -> click "Reset all Zones to default "
    Taskmanager-> kill all instances of IE

    Again, the results are the same.

    Are there any settings (pref/options/registry/policy) that I should check ?
    What could be the difference between IE9 32-bit, and IE9 64-bit ?

    Kevin
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.