spurl bookmarklet does not work
Posted by:
alejobd
Date: August 18, 2006 07:26PM
I have a spurl bookmarklet that adds a page to my collection (spurl is an online bookmark service, BTW). I have it in my bookmarks toolbar. In other browsers (Firefox) is does work well: I go to a page I want to add, I press the bookmarklet, and a new tab/layer opens, with a form to add that page.
But in k-meleon, I only got a blank new tab.
This is the code of the bookmarklet:
javascript:d=document;void(window.open('
http://www.spurl.net/spurl.php?v=3&title='+encodeURIComponent(d.title)+'&url='+encodeURIComponent(d.location.href)+'&blocked='+encodeURIComponent(d.selection?d.selection.createRange().text:d.getSelection()),'_blank','width=450,height=550,status=no,resizable=yes,scrollbars=auto'
)
Is something wrong with the JavaScript support or the DOM of k-meleon? Is there any solution now or soon?
Re: spurl bookmarklet does not work
Posted by:
kko
Date: August 19, 2006 01:49PM
This is a known bug. Scripts in the url bar are cut off after 260 characters (when I remember right). We are aware of the problem. Can't tell you though when it will be fixed...
Re: spurl bookmarklet does not work
Posted by:
rmn
Date: August 19, 2006 02:59PM
kko wrote:
>
> This is a known bug. Scripts in the url bar are cut off after
> 260 characters (when I remember right).
Almost. 259. :-)
> We are aware of the
> problem. Can't tell you though when it will be fixed...
Is this in the BTS? It should be filed there....
Re: spurl bookmarklet does not work
Posted by:
rmn
Date: August 19, 2006 03:08PM
rmn wrote:
>
> Is this in the BTS? It should be filed there....
Oh, and if you want an easy test case to put in the report, just use a long query to the BTS search page, something like
this.
Re: spurl bookmarklet does not work
Posted by:
Dorian
Date: August 19, 2006 05:19PM
Set kmeleon.MRU.maxURLs to 0 when the browser is not running for a workaround.
Re: spurl bookmarklet does not work
Posted by:
alejobd
Date: August 22, 2006 11:36AM
I don't think this is a problem with the lenght of the script, because this little script:
javascript:void(window.open('
http://www.google.com'
)
does not work either, and it does in other browsers.
I changed the "kmeleon.MRU.maxURLs" setting, with no result (it didn't seem related to me, but I tested it nonetheless)
Re: spurl bookmarklet does not work
Posted by:
kko
Date: August 22, 2006 03:07PM
Well, it won't work of course as long as the popup blocker is enabled.
Re: spurl bookmarklet does not work
Posted by:
alejobd
Date: August 23, 2006 04:12PM
As I said in my first post, a new tab/layer DOES indeed get opened, but a blank one. I disabled the popup blocker, but the behaviour is the same.
Re: spurl bookmarklet does not work
Posted by:
alejobd
Date: August 25, 2006 04:38PM
Yes, you are right.
It was a combination of the two things you mentioned.
Without the popup blocker disabled, there are created indeed two new layers: a blank one, as you say, and the javascript popup (I think that the creation of the blank layer is a little bug, because it is not a logical thing, and it does not happen in Firefox and other browsers, with the same bookmarklet and bookmarks set to open in new tabs, but it is not a very important one now that I know that the bookmarklet one is also created)
With the popup blocker enabled, there is only created the blank layer, and I thought that it was the javascript popup without the content, but it is the "added one".
When I disabled the popup blocker before, the focus was, as you say, in the blank layer, and I didn't realize that there was the javascript popup also.
Thanks
Re: spurl bookmarklet does not work
Posted by:
lumo
Date: February 19, 2007 07:03PM
I use a right-click popup menu to Spurl and Furl.
For the Furl menu see this thread
For the Spurl menu use this...
----- In macros.cfg:
### Spurl stuff
SpurlBasic{
$old=getclipboard();setclipboard("");id(ID_EDIT_COPY);$t=getclipboard();setclipboard($old);
$pu=getpref(BOOL, $popups);
$pu=="true"?setpref(BOOL, $popups, false):"";
open("javascript:d=document;void(window.open('
http://www.spurl.net/spurl.php?v=3&title='+encodeURIComponent(d.title)+'&url='+encodeURIComponent(d.location.href)+'&blocked='+encodeURIComponent(d.selection?d.selection.createRange().text:d.getSelection()),'_blank','width=450,height=550,status=no,resizable=yes,scrollbars=auto'))"
;
$pu=="true"?setpref(BOOL, $popups, true):"";
}
SpurlView{
opennew("
http://www.spurl.net/myspurls/quick_links.php"
;
}
----- In menus.cfg:
Spurl{
macros(SpurlBasic, Spurl It)
macros(SpurlView, View My Archive)
}
# and locate the 'DocumentPopup' menu definition and add before !Fullscreen
:Furl
Hope this helps
John
Re: spurl bookmarklet does not work
Posted by:
lumo
Date: February 19, 2007 07:40PM
Sorry, the Furl thread link didn't paste from where I wrongly posted this subject
so
its here
Theres also a Spurl search engine
here