![]() Topic awaiting preservation: Capture data from page... (Page 1 of 1) |
|
---|---|
Maniac (V) Inmate From: under the bed |
![]() Hi guys |
Paranoid (IV) Inmate From: Madison, Indiana, USA |
![]() |
Paranoid (IV) Inmate From: Norway |
![]() |
Paranoid (IV) Mad Librarian From: GlieBeGe |
![]() quote:
code: javascript:location.href='http://del.icio.us/kuckus?v=3&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)
|
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() Small Update to kuckus' code: javascript: location.href='myadminpage.php?s=' +encodeURIComponent(window.getSelection())+'&h=' +encodeURIComponent(location.href)+ '&t='+encodeURIComponent(document.title);
|
Maniac (V) Inmate From: under the bed |
![]() quote:
|
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() yep |
Paranoid (IV) Mad Librarian From: GlieBeGe |
![]() quote:
code: /* * * * Quote (part of) a post */ // Inspired by Emperor, http://www.the-emperor.org/ function quotePost(quoteID) { quoteAuthor = stripHTML(getObj("post_" + quoteID + "_author").innerHTML); quoteText = stripHTML(getObj("post_" + quoteID).innerHTML); // Get selection if ((clientVer >= 4) && is_ie && is_win) { // Internet Explorer theSelection = stripHTML(document.selection.createRange().htmlText); } else if (document.getSelection) { // Mozilla theSelection = document.getSelection(); } // check if the selection is part of the post if (theSelection && filterWhitespace(quoteText).indexOf(filterWhitespace(theSelection)) != -1) { quoteText = theSelection; } quoteText = trim(decodeHTMLEntities(quoteText)); quoteUBB = "[quote]\n[b]" + quoteAuthor + " said:[/b]\n\n" + quoteText + "\n[/quote]\n"; insertCode(quoteUBB); } // Strip HTML tags, replace <br />s with line breaks function stripHTML(str) { return str.split("\n").join("").replace(/<\/p>\r<p>/gi, "\r\n\r\n").replace(/<br \/>/gi, "\r\n").replace(/<[^>]*>/g, ""); }
|
Maniac (V) Inmate From: under the bed |
![]() excellent - thanks for the link. |
Maniac (V) Inmate From: under the bed |
![]() working beautifully =) |