I've encountered a minor issue performance wise.
For some reason, after injecting the text into a UI tab the
performance of the tabs suffers greatly. Why would getting the
contents of a file and injecting them into a tab as text slow the
performance of tab switching after the injection?
On Apr
Does the .load() at least work?
- Your first method -
$(#thisDiv).text().replaceWith(lt);
that's going to fill #thisDiv with
- Your second method ---
$(#thisDiv).text().html();
is going to be a string value after .text() and
Thanks MorningZ, I gave this approach whirl and in a roundabout sort
of way it seems to accomplish the same thing I was doing in my third
example.
$(#thisDiv).load(../sample.html, { }, function() {
var div = document.createElement(div);
var text =
Thanks MorningZ, I gave this approach whirl and in a roundabout sort
of way it seems to accomplish the same thing I was doing in my third
example.
$(#thisDiv).load(../sample.html, { }, function() {
var div = document.createElement(div);
var text =
Anyone have any ideas or input on this one?
On Apr 3, 6:29 pm, Nikola nik.cod...@gmail.com wrote:
Thanks MorningZ, I gave this approach whirl and in a roundabout sort
of way it seems to accomplish the same thing I was doing in my third
example.
$(#thisDiv).load(../sample.html, { },
Hi There,
If I am getting this right.. you are trying to get the contents of
another file and inject it into an element, but ensuring it shows as
plain text and javascripts are not executed.
Can you try replacing $('#thisDiv').load with a $.get request and do
the following:
Perfect. Thank you, I did try using a $.get request but I was tyring
to replace charecters instead of injecting the data as text. This is
exactly what I was trying to do. I thought there was a very simple
and clean way to do it but I wasn't sure how. Thank you much!
On Apr 4, 12:08 am,
7 matches
Mail list logo