Topic: the quote-button doesn't seem to work in google's chrome. (Page 1 of 1) |
|
---|---|
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
![]() |
Maniac (V) Inmate From: there...no..there..... |
![]() what's "the quote button" ?? |
Maniac (V) Inmate From: there...no..there..... |
![]() eigh....never mind. I gotcha |
Paranoid (IV) Inmate From: Norway |
![]() |
Paranoid (IV) Inmate From: Florida |
![]() s/google's chrome/WebKit/ |
Paranoid (IV) Mad Librarian From: ber/ger |
![]() 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 any) var userSelection; if (window.getSelection) { // Mozilla way userSelection = window.getSelection(); } else if (document.selection) { // Microsoft way (should come last; Opera!) userSelection = document.selection.createRange(); } var selectedText = userSelection; if (userSelection.text) selectedText = userSelection.text; // Check if the selection is part of the post if (selectedText && filterWhitespace(quoteText).indexOf(filterWhitespace(selectedText)) != -1) { quoteText = selectedText; } quoteText = trim(decodeHTMLEntities(quoteText)); quoteUBB = "[quote]\n[b]" + quoteAuthor + " said:[/b]\n\n" + quoteText + "\n[/quote]\n"; insertCode(quoteUBB); } |
Maniac (V) Mad Scientist with Finglongers From: Germany |
![]() changed to kuckus code - seems to break in opera though. |
Paranoid (IV) Inmate From: Florida |
![]() Yeah, Quote doesn't work in Firefox now, either. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
![]() got another version for me kuckus? Or shall I revert to the old code for now? |
Maniac (V) Mad Librarian From: Seoul, Korea |
![]() Can we please revert until we get something that works in FF and Opera? |
Paranoid (IV) Inmate From: Florida |
![]() I'm glad you said it, Suho, so I didn't have to. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
![]() Well, I've been waiting for kuckus to reply. Sorry, should have reverted sooner. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
![]() all right, finally got access again - we're back to the original (working) quote code. |
Lunatic (VI) Mad Scientist From: The Happy Hunting Grounds... |
![]() Thanks, TP! |
Paranoid (IV) Mad Librarian From: ber/ger |
![]() I'm sorry, totally forgot about this |
Maniac (V) Mad Scientist with Finglongers From: Germany |
![]() any luck with this, kuckus? |