I'm trying to load some javascript files via ajax, and for the life of
me, I can't get it to catch 404 errors. I've tried searching, but
everything I've found says that I should check the status on the
request object to catch it but it's not even getting that far.
I've tried:
$.ajax({
url:
Here's some behavior I've run into that is not quite what I expected.
So the question is, should I expect something different or is this a
bug / gotcha?
I'm working on a plugin for manipulating tables (the ones that are
published do not suit my needs).
So I have the following inside my plugin:
I've never worked with the .stop function before, so I searched for it
in google (jquery .stop) to read up on it to see if that might shed
some light... One of the very first links I found was this:
http://www.pengoworks.com/workshop/jquery/stop_bug.htm
Glancing over it, I think this is what
You're welcome. Glad it proved useful.
On Dec 9, 1:22 pm, Tijmen Smit [EMAIL PROTECTED] wrote:
Thanks a lot :)
The clearQueue option for the stop() did the trick, for some reason I
completely missed it on docs.jquery.com
On Dec 9, 6:04 pm, Leanan [EMAIL PROTECTED] wrote:
I've never
I'm not sure if this is a bug so I thought I'd ask folks and see what
they had to say.
I have some export links on a page, and despite me not using $.remote
or $.history (I use $.click) when a user clicks on these export links
in IE, if they use the browser back button afterwards, it tries to
for Opera (I think, haven't looked again and am
operating on memory). Perhaps I need to add something similar to
Firefox and / or IE? Ideas?
On Oct 9, 4:36 am, Klaus Hartl [EMAIL PROTECTED] wrote:
On 8 Okt., 18:57, Leanan [EMAIL PROTECTED] wrote:
The duplication is something else.
However
split on whether or not this is something the plugin should handle,
though I do feel that the $.history method should prevent the second
click like the $.remote function does for firefox.
On Oct 10, 9:01 am, Leanan [EMAIL PROTECTED] wrote:
Well, originally I had thought that the duplication went
Fantastic, thank you.
Where might I be able to get this?
Also, it seems sometimes that even though I'm using
$('a#myidxxx').history(function() {
$.get(myurl,function(data) {
$(myappenddiv).append(data);
});
});
that the data is still getting appended twice.
This doesn't happen all
The duplication is something else.
However the fix you made works.
();
});
});
--Klaus
On 7 Okt., 14:26, Leanan [EMAIL PROTECTED] wrote:
Not having a test for Chap3 was a typo. That last if should be
adjusted accordingly.
Klaus-
I don't want to use .remote, because I only want to make the ajax call
once. If the content we expect to be there isn't
I forgot to note that when I do a console.info(this) inside that
function, I get the following in firebug:
Window index.html
').remote('#div2', function() {
//callback
});
$.ajaxHistory.initialize();
The show/hide of div1/div2 looks to me like a workaround you don't
need but I'm not sure.
--Klaus
On 6 Okt., 22:52, Leanan [EMAIL PROTECTED] wrote:
Klaus,
I've created a demo that exhibits this behavior
to make it
so that
$('a.stuff').history(function() {
console.info(this);
)};
was returning this as Window index.html instead of the object for the
link. Is this a bug or just user error?
On Oct 7, 9:59 am, Leanan [EMAIL PROTECTED] wrote:
I forgot to note that when I do a console.info
*sigh*
Ok. I've decided upon the jquery.history_remote.js plugin by Klaus.
I have it working, except there is one slight problem, and I can't
figure out how to fix it.
I have a table of links that, when you click on a link, they pull up
more detailed data, load it into a div, so on and so
I haven't tested this, but I would try something along the following:
$('.appHelpPopup').children('span').show();
The problem is that you have more than one DOM element classed as
appHelpPopup with a span under it, so that selector is grabbing all of
them, and applying show to all of them. You
I'll see if I can create a demo that has the same behavior.
On Oct 6, 4:25 pm, Klaus Hartl [EMAIL PROTECTED] wrote:
Is it possible for you to put up a demo?
--Klaus
On 6 Okt., 22:11, Leanan [EMAIL PROTECTED] wrote:
*sigh*
Ok. I've decided upon the jquery.history_remote.js plugin
Klaus,
I've created a demo that exhibits this behavior. I modified your demo
that is included with the script at http://www.stilbuero.de/jquery/history/
All you should have to do is change your index.html to be the
following:
html lang=en
head
meta http-equiv=Content-Type
I've looked at the plugins, but I don't think they are what I want.
I basically have two divs, div#a and div#b.
When I click on a link in div#a, I want to do one of two things:
If this is the first click on the link in div#a, do some ajax and then
hide div#a and show div#b (where the ajax
So here's the situation:
I have a page that could potentially contain a massive amount of
data. To try to decrease initial load time, I've broken it all out
into nice chunks that get loaded via ajax. This works great. Some of
the chunks need to appear as if they are their own page. To save
as you can, as fast as you can possibly call it, which
isn't really cpu-friendly ;)
try this instead:
var int = null;
$('#element').hover(function() {
int = setInterval(someFunc, 100);}, function() {
clearInterval(int);
});
-micah
On Aug 29, 2:00 pm, Leanan [EMAIL PROTECTED] wrote
Hey guys.
I've poured over the docs, and mouseover/hover/etc only trigger once.
I want it to continue to trigger a function while the element is
hovered.
I've tried:
$('#element').hover(function() {
while(true) {
someFunc;
}
}, function() {});
Unfortunately, this screws things up.
This is kinda pseudocodish, but it should do what you want:
$('button selector').click(function() {
$('table tr').each(function() {
x = $(this + 'td:eq(1)'); //should grab the second td
y = $(this + 'td:eq(2)'); //should grab the third td
push(array,[x,y]);
});
});
Of course
Thanks for the assistance, guys. All is well now.
Sorry guys.
There are two options you can specify for UI tabs, I forget off the
top of my head what they are (there's an example of it's usage in the
docs for UI tabs). One is for a function to be run when a tab is
clicked, the other for after the tab is loaded. So all I had to do
was set the
I apologize if this gets posted twice, but it looks like my last
attempt to post got swallowed by the ether.
I'll make it short:
I have flot and ui tabs. Because I'm processing a rather large set of
data, and excanvas, switching the datasets graphed takes a few
seconds. I want to add
Hello there ladies and gents, hopefully someone can point me in the
right direction.
I'm using a combination of flot and ui tabs, and I want the following
behavior:
When the user clicks on the tab, the text and background get changed
to display a loading message while the flot graph is drawn
I hadn't thought about that... I'll look into it.
There are a lot of different tabs plugins but I'm guessing you're
using the jquery UI tabs? You should try using firefox w/ firebug,
and take a look at the classes the tabs are given when they are
selected / hidden (or read the docs on that plugin as they should have
that info as well). I don't
Hey guys.
I was curious if it was possible to query how many times something
that has toggle bound to it has been clicked. Is this possible?
Afternoon ladies and gents.
I'm experiencing a weird issue. I have a div that contains popup
information for when users hover over specific items on the page.
Everything looks beautiful in firefox, but IE takes a dump (go
figure).
I was wondering if anyone might have an idea why?
Here's what
Fixed it.
I have to say good job! I really like what I see. This looks like it
might be exactly the type of thing I need...
Hmm, I only have one thing I'm not sure I like: it looks like all the
sorting is done on the backend? Do I have to write my own sort
routines then? Are there any plans to integrate it with tablesorter,
or to have sorting like tablesorter (client side, not server side)?
I stand corrected, Tony. Fantastic! Thank you for the
clarification. That'll teach me to be eager.
Hmm, interesting indeed. I said I'm interested but whether or not I
would do it depends on most of the things mentioned above:
cost
time
ability to get recordings
The last one is especially important to me, as I have an infant and as
anyone with kids can attest, trying to get something done at
Ok, I'm really trying to wrap my head around this, and it's irritating
me. I've checked out the following pages:
http://docs.jquery.com/Plugins/Authoring
http://www.learningjquery.com/2007/10/a-plugin-development-pattern
And they help some but there's one problem I'm running into.
I have:
() {
// more rockin' code
}
};
})(jQuery);
On Feb 29, 2:45 pm, Leanan [EMAIL PROTECTED] wrote:
I apologize if this seems noobish.
So let's say I want to write my own plugin (who woudln't?)
So I spec it out like this:
(function
I fixed it:
The content I was having issues with was loaded via AJAX, and on that
page I included jQuery and the jQuery tablesorter script. Well, it
also turns out that the page I was loading this content into also
included jQuery. Apparently IE doesn't like that very much. Firefox,
however,
Anyone had any issues with the latest version of this in IE?
I have a page that uses this, and I've made use of the sortStart and
sortEnd triggers. For whatever reason, the sortEnd trigger never
fires -- so the message box I have show never goes away. Also, the
zebra striping isn't working at
Well, I've gotten the triggers to work, but I had to strip
*everything* out. And I had to add a hide.
So now I have:
$(document).ready(function(){
$(#'display-div.hide();
$('table').tablesorter();
$('table').bind(sortStart,function(){
$('#display-div.show();
I'm hoping one of you guys can help me out.
I've got a multiselect that I can't get to work with the multiselect
plugin I obtained from http://lab.arc90.com/tools/jquery_multiselect/
Unfortunately, for whatever reason, I can't get to the main page so I
can't look up the examples listed there.
I know a while back I was trying to sort percentages and they weren't
working. That's because the percentages I had to sort were of the
format xx.yy%. The parser for percent in tableSorter only handled
them if they were of the format xx%. I ended up modifying the parser
for percent to handle
I'm trying to get an understanding of jQuery modules, so I thought I'd
start simple (perhaps too simple...)
Anyway, here is what I have:
jQuery.table.js:
(function($) {
$.Table = {
build: function(settings) {
var table = $('table class=testTable/table');
var headRow =
43 matches
Mail list logo