Since we are discussing about macros functions, I have some problems with current string concatenation in macros.I posted it on another form here on kmeleon
http://kmeleonbrowser.org/forum/read.php?f=4&i=2410&t=2410.
Here is a short summary of what is happening.
I created a macro to do split browsing similar to the one in konqueror under kde. The following macro splits the screen and you can browse the same site side by side.
split_screen{
menu=&Split screen
$split="javascript:{var message=\"<html> <frameset cols=\\"50%,*\\"> <frame src=\\"\"+location.href+\"\\"> <frame src=\\"\"+location.href+\"\\"> </frameset></html>\";document.write(message);}";
open($split);
}
As you can see I am simulating a split browser using frames. I wanted to attach this macro to link pop up and I wanted current link selected to be shown in the split browser. So I exactly used above macro except that I used getclipboard() function to get current link. Here is how it looks
split_screen{
menu=&Split screen
id(ID_COPY_LINK_LOCATION);
$split="javascript:{var message=\"<html> <frameset cols=\\"50%,*\\"> <frame src=\\"\"+location.href+\"\\"> <frame src=\\"\"" . getclipboard() . "\"\\"> </frameset></html>\";document.write(message);}";
open($split);
}
This is supposed to open current selected link in a split browser in the right side frame. But it gives me a bunch of errors.
-Sesh .J