[jQuery] Ajax and 404 errors.

2009-04-21 Thread Leanan
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:

[jQuery] Odd behavior with 'this'?

2008-12-09 Thread Leanan
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:

[jQuery] Re: show/hide opacity gets stuck sometimes

2008-12-09 Thread Leanan
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

[jQuery] Re: show/hide opacity gets stuck sometimes

2008-12-09 Thread Leanan
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

[jQuery] jquery history_remote IE bug?

2008-10-13 Thread Leanan
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

[jQuery] Re: Intercept Back button click on browser

2008-10-10 Thread Leanan
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

[jQuery] Re: Intercept Back button click on browser

2008-10-10 Thread Leanan
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

[jQuery] Re: Intercept Back button click on browser

2008-10-08 Thread Leanan
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

[jQuery] Re: Intercept Back button click on browser

2008-10-08 Thread Leanan
The duplication is something else. However the fix you made works.

[jQuery] Re: Intercept Back button click on browser

2008-10-07 Thread Leanan
();     }); }); --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

[jQuery] Re: Intercept Back button click on browser

2008-10-07 Thread Leanan
I forgot to note that when I do a console.info(this) inside that function, I get the following in firebug: Window index.html

[jQuery] Re: Intercept Back button click on browser

2008-10-07 Thread Leanan
').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

[jQuery] Re: Intercept Back button click on browser

2008-10-07 Thread Leanan
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

[jQuery] Re: Intercept Back button click on browser

2008-10-06 Thread Leanan
*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

[jQuery] Re: Trouble getting 1 hover to work at a time

2008-10-06 Thread Leanan
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

[jQuery] Re: Intercept Back button click on browser

2008-10-06 Thread Leanan
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

[jQuery] Re: Intercept Back button click on browser

2008-10-06 Thread Leanan
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

[jQuery] Re: Intercept Back button click on browser

2008-10-03 Thread Leanan
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

[jQuery] Intercept Back button click on browser

2008-09-30 Thread Leanan
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

[jQuery] Re: Repeating a function call on hover/mouseover/etc

2008-09-02 Thread Leanan
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

[jQuery] Repeating a function call on hover/mouseover/etc

2008-08-29 Thread Leanan
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.

[jQuery] Re: help with array for flot

2008-06-04 Thread Leanan
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

[jQuery] Re: click(fn) question

2008-06-03 Thread Leanan
Thanks for the assistance, guys. All is well now.

[jQuery] Re: click(fn) question

2008-06-03 Thread Leanan
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

[jQuery] click(fn) question

2008-06-02 Thread Leanan
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

[jQuery] Question about .click

2008-06-02 Thread Leanan
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

[jQuery] Re: click(fn) question

2008-06-02 Thread Leanan
I hadn't thought about that... I'll look into it.

[jQuery] Re: jquery tabs: removing old loaded content from DOM

2008-05-05 Thread Leanan
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

[jQuery] Get number of times a link has been toggled or clicked?

2008-04-28 Thread Leanan
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?

[jQuery] IE doesn't like .css(stuff)?

2008-04-10 Thread Leanan
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

[jQuery] Re: IE doesn't like .css(stuff)?

2008-04-10 Thread Leanan
Fixed it.

[jQuery] Re: jqGrid final preview

2008-03-07 Thread Leanan
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...

[jQuery] Re: jqGrid final preview

2008-03-07 Thread Leanan
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)?

[jQuery] Re: jqGrid final preview

2008-03-07 Thread Leanan
I stand corrected, Tony. Fantastic! Thank you for the clarification. That'll teach me to be eager.

[jQuery] Re: [POLL] Online jQuery Training from John Resig

2008-03-06 Thread Leanan
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

[jQuery] Plugin Authoring Help pt 2

2008-03-04 Thread Leanan
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:

[jQuery] Re: Plugin Help

2008-03-03 Thread Leanan
() { // 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

[jQuery] Re: Tablesorter plugin

2008-02-08 Thread Leanan
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,

[jQuery] Tablesorter plugin

2008-02-07 Thread Leanan
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

[jQuery] Re: Tablesorter plugin

2008-02-07 Thread Leanan
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();

[jQuery] multiselect help?

2008-02-01 Thread Leanan
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.

[jQuery] Re: sorting values with commas with tablesorter 2.0

2008-01-24 Thread Leanan
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

[jQuery] Help with a basic module

2008-01-23 Thread Leanan
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 =