You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

pdedecker

Beginner

  • "pdedecker" started this thread

Posts: 8

Location: Limburg, Belgium

  • Send private message

1

Wednesday, March 28th 2007, 2:53pm

[Konqueror] Alternative for 'javascript:' links?

I have a bookmarklet to post items to ma.gnolia with a single click. This is what's in the location field:

Quoted

javascript:s=String(window.getSelection()).replace(/ {2,}/g,' ').replace(/^ | $/g,'');m='';d='';metas=document.getElementsByTagName('meta');for(count=0;count<metas.length;count++){if(metas[count].name.toLowerCase()=='description'){m=metas[count].content;}}if(s!=''){d=encodeURIComponent(s);}else if(m!=''){d=encodeURIComponent(m);};var w=window.open('http://ma.gnolia.com/bookmarklet/popup/add?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&description='+d,'magnolia','scrollbars=1,status=0,location=0,toolbar=0');(function(){setTimeout('w.focus()',1000);})();
Konqueror seems to be unable to open this link as it doesn't support javascript: links. Is there a way to make this work anyway? Do I have to replace 'javascript:' with something else?
Kubuntu 6.10