Closed GoogleCodeExporter closed 9 years ago
Hi,
This isn't the correct place to report issues for jScrollPane any more. You
should use the Github issues list as mentioned on the jScrollPane homepage.
Also, an example that I can see and interact with (e.g. hosted or on
jsfiddle.net ) is more useful than an attachment.
Those points aside, from a quick look at your example I would say that it is
not recommended to use document.write after a page load and doing so will have
all sorts of undesirable effects. Why not use something like
$('SELECTOR').html('What you want to write')?
Original comment by kelvin.l...@gmail.com
on 13 Oct 2011 at 8:04
> This isn't the correct place to report issues for jScrollPane any more. You
should use the Github issues list as mentioned on the jScrollPane homepage.
Thank you for clarification, please let me know, if I need to resubmit the
issue to Github.
> Those points aside, from a quick look at your example I would say that it is
not recommended to use document.write after a page load and doing so will have
all sorts of undesirable effects. Why not use something like
$('SELECTOR').html('What you want to write')?
Our product (ecwid.com) is actually a javascript widget, that does not depend
on jquery and must build it's DOM tree dynamically after a page is loaded. Our
code is more complex, than just document.write(...), so I created that simple
html-file to outline the key point of conflict between our widget and
jscrollpane.
Please, let me know, if more info is required.
Original comment by kurgu...@gmail.com
on 13 Oct 2011 at 10:31
I would still recommend against using document.write. It will have unexpected
results on a whole variety of pages. You should be appending your new elements
to the document instead using the DOM.
Here is an example of how you could do that:
http://www.sitepoint.com/insert-in-place-without-documentwrite/
Original comment by kelvin.l...@gmail.com
on 13 Oct 2011 at 10:42
Thank you for your reply. Unforutnately, this approach is based on already
having a unique id, to which the new DOM element can be added. In our case the
element must be added into that very place, where we called our function,
without knowing id of it's surrounding element (if it has id at all).
My concern is to provide you with necessary and sufficient information about
the problem, so feel free to ask, if I missed something in my description.
Original comment by kurgu...@gmail.com
on 13 Oct 2011 at 11:01
Original issue reported on code.google.com by
kurgu...@gmail.com
on 13 Oct 2011 at 5:35Attachments: