Re: [jQuery] Dom Updates?

2007-01-25 Thread tmcw
Ah, it was Google Analytics all along. Everything's patched up and improved a bit (added loading indications, some speed enhancements, and hypemachine search) As before, it's at http://rockpolka.workingidea.com/ Daemach wrote: > > Must be, and I hear you :) > > > > tmcw wrote: >> >> Arg. C

Re: [jQuery] Dom Updates?

2007-01-25 Thread Daemach
Must be, and I hear you :) tmcw wrote: > > Arg. Could it be a conflict of some kind? The callback problem is killing > me. > > > Daemach wrote: >> >> Nuts - I just saw the link to your source file. Oddly, the >> document.ready function isn't firing an alert on my page if I submit a >> for

Re: [jQuery] Dom Updates?

2007-01-25 Thread tmcw
Arg. Could it be a conflict of some kind? The callback problem is killing me. Daemach wrote: > > Nuts - I just saw the link to your source file. Oddly, the document.ready > function isn't firing an alert on my page if I submit a form then hit the > back button to get to my original page >

Re: [jQuery] Dom Updates?

2007-01-24 Thread Daemach
Nuts - I just saw the link to your source file. Oddly, the document.ready function isn't firing an alert on my page if I submit a form then hit the back button to get to my original page tmcw wrote: > > Thanks, I've got it fixed now, for the most part. Ha, except I think it's > encounterin

Re: [jQuery] Dom Updates?

2007-01-24 Thread tmcw
The code is here - http://rockpolka.workingidea.com/js/driver.js I don't understand how this just abruptly stopped working and now I can't get it to ever work with a callback. tmcw wrote: > > Can the callback be the function that it's in? For some reason, if I try > it with another function, f

Re: [jQuery] Dom Updates?

2007-01-24 Thread Daemach
I notice that if I use history to go back to a page with the alert box "links prepared" you are able to capture that and re-prepare the links. I am trying to solve a window/page focus/loading event issue. Would you mind posting how you're doing the binding that calls that function? tmcw wrote

Re: [jQuery] Dom Updates?

2007-01-24 Thread tmcw
Can the callback be the function that it's in? For some reason, if I try it with another function, for instance, test_alert, it runs, but it the callback is the exterior function nothing at all happens. wycats wrote: > > Yep. I think there should be a way to encapsulate it, but I'll have to > g

Re: [jQuery] Dom Updates?

2007-01-20 Thread Bruce MacKay
Hi Yehuda, Can this approach be extended to JSON data? I return html content of multiple divs using the pattern... $("#nlinks2").html(sLinks); where sLinks is a JSON field. I cannot work out how to "hook" the call to docReady to this code. Any help here? Thanks, Bruce At 12:46 p.m. 19/0

Re: [jQuery] Dom Updates?

2007-01-18 Thread tmcw
The problem is that when I call $('').appendTo("#data").load(newid, null, function() { The callback isn't being... called back. tmcw wrote: > > I'm trying to get some sort of blocking scenario going on here, because it > had race conditions... > > if(block ==

Re: [jQuery] Dom Updates?

2007-01-18 Thread tmcw
I'm trying to get some sort of blocking scenario going on here, because it had race conditions... if(block == false) { block = true; var newid = "/artist

Re: [jQuery] Dom Updates?

2007-01-18 Thread tmcw
Scratch that for the moment, something's awry here... tmcw wrote: > > Thanks, I've got it fixed now, for the most part. Ha, except I think it's > encountering race conditions and my CS major-in-progress might actually > come into use, but probably not. You can check it out here - > http://rockp

Re: [jQuery] Dom Updates?

2007-01-18 Thread tmcw
Thanks, I've got it fixed now, for the most part. Ha, except I think it's encountering race conditions and my CS major-in-progress might actually come into use, but probably not. You can check it out here - http://rockpolka.workingidea.com/ Jörn Zaefferer wrote: > > tmcw schrieb: >> Does jQuery

Re: [jQuery] Dom Updates?

2007-01-18 Thread Yehuda Katz
Yep. I think there should be a way to encapsulate it, but I'll have to give it more thought. I use this technique in an app that has some people insisting on using Prototype, and the great thing is that they can use it to. They simply call docReady("#theirId") -- Yehuda On 1/18/07, Justin Carter

Re: [jQuery] Dom Updates?

2007-01-18 Thread Justin Carter
On 1/19/07, Yehuda Katz <[EMAIL PROTECTED]> wrote: > What I do is apply a context to the function called by document.ready, and > use that context in all of the calls I make in it. Then, on load()'s > complete, I pass the stuff being updated into that method. > > docReady = function(cx) { > cx =

Re: [jQuery] Dom Updates?

2007-01-18 Thread Yehuda Katz
What I do is apply a context to the function called by document.ready, and use that context in all of the calls I make in it. Then, on load()'s complete, I pass the stuff being updated into that method. docReady = function(cx) { cx = cx || document; $("tr:odd", cx).addClass("odd") } $(docReady

Re: [jQuery] Dom Updates?

2007-01-18 Thread Jörn Zaefferer
tmcw schrieb: > Does jQuery automatically update the DOM after new content is loaded via the > .load() function? It seems like it's working in some cases and failing on > others right now. If not, is there a way to manually update it? I'm binding > a function to links with a certain class on docume

Re: [jQuery] Dom Updates?

2007-01-18 Thread Ⓙⓐⓚⓔ
and don't forget to bind the new nodes in the complete call back too! On 1/18/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote: > no, it updates later. You can use the complete call back to know when > the load is loaded. > > On 1/18/07, tmcw <[EMAIL PROTECTED]> wrote: > > > > Does jQuery automatically update t

Re: [jQuery] Dom Updates?

2007-01-18 Thread Ⓙⓐⓚⓔ
no, it updates later. You can use the complete call back to know when the load is loaded. On 1/18/07, tmcw <[EMAIL PROTECTED]> wrote: > > Does jQuery automatically update the DOM after new content is loaded via the > .load() function? It seems like it's working in some cases and failing on > other

[jQuery] Dom Updates?

2007-01-18 Thread tmcw
Does jQuery automatically update the DOM after new content is loaded via the .load() function? It seems like it's working in some cases and failing on others right now. If not, is there a way to manually update it? I'm binding a function to links with a certain class on document.ready, but when ne