vitch / jScrollPane

Pretty, customisable, cross browser replacement scrollbars

Home Page:http://jscrollpane.kelvinluck.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

possible issue with inline <script> tags

mblase75 opened this issue · comments

This isn't comprehensively tested because I'm busy with something else, but:

While trying to implement Google's reCAPTCHA technology, I was getting strange failures -- the content of the jScrollPane panel would render up until it got to the auto-generated reCAPTCHA code, and then everything vanished. Using the browser's DOM inspector revealed that the jScrollPane div contained nothing at all.

Eventually I figured out that if I manually removed the 'script' tags from the generated reCAPTCHA code, it would render inside of the jScrollPane div just fine. Apparently jScrollPane has issues with inline script tags, which aren't exactly part of the DOM.

If this can be fixed, wonderful. For now, I'm adding a line of code that circumvents jScrollPane's initializer whenever a 'recaptcha_area' div is found.

Does the fix in #160 fix this issue for you?

Not quite. I think the slash in "type=text/javascript" needs to be
escaped -- "type=text/javascript" -- but now I'm getting new errors
from the recaptcha code.

On Sun, Jun 24, 2012 at 12:58 PM, Kelvin Luck
reply@reply.github.com
wrote:

Does the fix in #160 fix this issue for you?


Reply to this email directly or view it on GitHub:
#156 (comment)

If this is still issue please write a note