The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniWeb > OmniWeb General
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Javascript bookmarklet new window problems Thread Tools Search this Thread Display Modes
I use a javascript bookmarklet that works with the del.icio.us client
Pukka. It works similarly to any pop-up del.icio.us boormarklets, only
it creates a pukka url that loads the fields into Pukka. Lately, I
seem to be getting really weird results with this bookmarklet. I can't
tell where the problem lies, but it seems to me that it has to do with
the way OmniWeb is handling Javascript. See below for the bookmarklet
code.

javascript:document.location.href='pukka:url='+enc odeURIComponent(location.href)+'&title='+encodeURI Component(document.title)+'&extended='+encodeURICo mponent(window.getSelection());

Sometimes, OmniWeb gives me an error page saying that javascript is
not a recognized protocol. When that happens, I change one of the
Javascript related preferences under the Security preferences and then
it seems to work.

But other times, the bookmarklet does not work at all. Clicking on it
in my favorites bar produces absolutely no reaction except that the
background of the bookmarklet highlights briefly. It seems like
OmniWeb isn't even trying to execute the Javascript. This problem
appears to be related to specific pages, because other pages will work
except the one that I'm trying to bookmark. Today, one such page is
http://www.interaktion.info/growl-di...tyle-growlhud/. I tried
restarting OmniWeb and copying the URL in a new page, but nothing
works.

Other bookmarklets that are supposed to generate a new window also exhibit the same problem on the same pages.

Anybody else experienced this?

Last edited by tamaracks; 2007-10-21 at 02:26 PM..
 
We recently fixed a problem that could cause javascript bookmarklets to stop working. If you continue to have this issue though, please let us know!
 
This has actually made me switch back to Safari for my default. I like to use bookmarklets to move my windows around, etc, and my handmade javascript bookmarklets simply don't work in a window that has tabs open. They work fine in a 1 tab (i.e. no tab) window. Most of my first 10 favorites (w/ shortcuts) follow this model:
javascript:self.resizeTo(200,200);self.moveTo(0,0) ;self.resizeTo((screen.availWidth*.5),screen.avail Height);self.moveTo((screen.availWidth/2),0);
I also have a Google Bookmarks bookmarklet that creates a popup. It works with a 1 tab (i.e. no tab) window, but if there's more than 1 tab open when I invoke it, the window that should be a popup is instead made into a new tab at the end of the tabs in the window. Much more inconvenient than a popup.
javascript:(function(){var%20a=window,b=document,c =encodeURIComponent,d=a.open(%22http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=%22+c(b.location)+% 22&title=%22+c(b.title),%22bkmk_popup%22,%22left=% 22+((a.screenX||a.screenLeft)+10)+%22,top=%22+((a. screenY||a.screenTop)+10)+%22,height=420px,width=5 50px,resizable=1,alwaysRaised=1%22);a.setTimeout(f unction(){d.focus()},300)})();
Is this something I'll have to grin and bear, or could I get these bookmarklets to work the way I want them to
 
Quote:
Originally Posted by circumforaneus.wayne View Post
This has actually made me switch back to Safari for my default. I like to use bookmarklets to move my windows around, etc, and my handmade javascript bookmarklets simply don't work in a window that has tabs open. They work fine in a 1 tab (i.e. no tab) window. Most of my first 10 favorites (w/ shortcuts) follow this model:
Under the security preference pane do you have "Allow scripts to resize windows" and "Allow scripts to reorder windows"? Try turning them off and see if the problem continues.
Quote:
I also have a Google Bookmarks bookmarklet that creates a popup. It works with a 1 tab (i.e. no tab) window, but if there's more than 1 tab open when I invoke it, the window that should be a popup is instead made into a new tab at the end of the tabs in the window. Much more inconvenient than a popup.
I'm not sure why this bookmarklet would stop working with multiple tabs open. Perhaps the particular tab you're on has a site preference that is causing problems.
 
Quote:
Originally Posted by troyb View Post
Under the security preference pane do you have "Allow scripts to resize windows" and "Allow scripts to reorder windows"? Try turning them off and see if the problem continues.

I'm not sure why this bookmarklet would stop working with multiple tabs open. Perhaps the particular tab you're on has a site preference that is causing problems.
Changing the security prefs doesn't fix it. My window bookmarklets ONLY work if there's only 1 tab. More than 1, the Bookmarks menu flashes when i type the keyboard command-1 through command-4 (set as window bookmarklets), but the window doesn't move an inch.

No, I checked and this bookmarklet doesn't make a popup for any window with multiple tabs open, regardless of the current tab and whether it has site specific preferences set (I checked). And now, it won't make a popup for a single tab window, either--it opens what should be the popup in a new tab.

I get the sense this kind of stuff is only happening to me. Maybe I have too much old junk in my OmniWeb defaults? I know there are some obsolete usernames in there where directories are referenced (I migrated my user account and changed short names, and often wonder if that's the source of any occasional weirdness I encounter).

I'm glad to hear that this is an error and not something that everyone deals with. I'll export my bookmarks to another user account and try it there.
 
If you do continue having trouble, feel free to send us mail at: omniweb5@omnigroup.com and we'll try to figure out what's going on :)
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
JavaScript bug: popup window doesn't come to the front Ward OmniWeb Bug Reports 0 2007-11-09 10:27 AM
Javascript problems dteare OmniWeb Bug Reports 3 2006-10-26 03:18 AM
JavaScript bookmarklet doesn't work anymore. Gregory OmniWeb Bug Reports 1 2006-05-06 12:51 AM
Bookmarklet new window is blocked neilio OmniWeb Bug Reports 3 2006-05-04 11:25 PM
Javascript drop down menu problems darcy1b OmniWeb Bug Reports 0 2006-04-11 05:52 PM


All times are GMT -8. The time now is 01:51 AM.


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