Re: [jQuery] Jquery Ajax $post to a new window

2006-09-01 Thread Jonathan Howard
Couldn't you just do the post and grab the resulting XML and drop it as the content of a new window?   pseudo-code:   $.post(data, url, function(xml){     //open window //window contents set to xml });  On 9/1/06, Francisco Brito <[EMAIL PROTECTED]> wrote: I'm sorry, I was writing pseudo-code.

[jQuery] Event Handling Problem

2006-08-29 Thread Jonathan Howard
I'm having an issue in Internet Explorer with the new jQuery 1.0 and event handling.  I have a button which I dynamically add an event to (being used as a folder browser).  The problem is in IE the button event fires twice, so if I'm two directories down, it goes up two directories on click inste

[jQuery] Event Handling Problem

2006-08-29 Thread Jonathan Howard
I'm having an issue in Internet Explorer with the new jQuery 1.0 and event handling.  I have a button which I dynamically add an event to (being used as a folder browser).  The problem is in IE the button event fires twice, so if I'm two directories down, it goes up two directories on click instead

Re: [jQuery] Can the content of a node of xml be placed inside a div when xml source is loaded using .get

2006-08-25 Thread Jonathan Howard
Try:   $("main",xml).html()   instead of:   $("main",xml).text()   On 8/25/06, Sam Sherlock <[EMAIL PROTECTED]> wrote: the dynamic xml source creates a structure along the following lines   my title       about     

   the jquery code that I am using to take load the xml source and tak

Re: [jQuery] replaced content losing it's 'binding'

2006-08-15 Thread Jonathan Howard
You reattach it the same way you attack it the first time.  Because you're going to be rebinding, move the stuff in the first bind (where you bind the submit action) into it's own function (outside of the $(document).ready() function, only put stuff there that you want firing when the page loads). 

Re: [jQuery] replaced content losing it's 'binding'

2006-08-15 Thread Jonathan Howard
First off, $(document).ready() only fires once.  When the document is first ready.   Second, if you have events on a dom object, and create an identical dom object, you need to reattach the events to this new dom object when it's created (or really, whenever) for the events to fire.  I don't even r

Re: [jQuery] Where is the cursor?

2006-08-10 Thread Jonathan Howard
Not sure if I completely understand the question here.  Can you give an example of the HTML?  Are you talking:       Stuff   And hide child when you mouse off unless still over parent?  If that's the case, wouldn't it make more sense to:   $("#parent").hover(function(){ $("#child").show(); },func

Re: [jQuery] Horiz. Menu with the DOM

2006-08-09 Thread Jonathan Howard
Just put the submenu tags within the parent menu tag.  That way, being over the sub menu means you ARE over the parent menu (because it will expand to contain the sub menu). On 8/9/06, Acuff, Daniel (Comm Lines, PAC) <[EMAIL PROTECTED]> wrote: Anyone know how to test if the mouse is over an ID a

Re: [jQuery] Loading a thickbox from a link retrieved by AJAX

2006-08-08 Thread Jonathan Howard
Thickbox does some initialization on links.  You'll need to redo this after getting your link from ajax, because the events won't have been attached to your new link.   You should be able to recall the thickbox setup function in the ajax callback procedure.  (I believe it's something like TB_Setup(