The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniWeb Bug Reports (http://forums.omnigroup.com/forumdisplay.php?f=27)
-   -   JavaScript bookmarklet doesn't work anymore. (http://forums.omnigroup.com/showthread.php?t=383)

Gregory 2006-05-05 06:41 AM

JavaScript bookmarklet doesn't work anymore.
 
[CODE]Cannot Load Address

Stopped loading
<javascript:self.resizeTo(950,screen.availHeight);self.moveTo((screen.availWidth-950)/2,22);>:
Cannot show URL[/CODE]

possibly related to post [URL="http://forums.omnigroup.com/showthread.php?t=360"]Bookmarklet new window is blocked[/URL]?


later...

it's a bug?

1. new window without any URL.
2. run the bookmarklet.
-> returns the error.
3. load any URL, eg [url]www.apple.com[/url]
4. run the bookmarklet.
-> it works...
but as with 5.0, you have to run the bookmarklet twice. the first time, the left/top positions of the window are set. the second time, the width and length of the window are set.

troyb 2006-05-06 12:51 AM

It is related to that other post. When this bookmarklet doesn't work it's being blocked by "Allow scripts to resize windows".

Right now this setting will only allow javascript to resize a window if it contains no history and has only one tab. It doesn't care if the javascript is coming from a bookmarklet or not.


All times are GMT -8. The time now is 08:49 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.