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

2006-09-01 Thread Gholias
Ill try the 2 solution and send the result to the list Jonathan Howard escreveu: 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 t

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.

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

2006-09-01 Thread Francisco Brito
I'm sorry, I was writing pseudo-code. I just don't remember right now the syntax, but for example, if you had:$.post(url, formData);now you'd have:var newWindow = window.open(...);newWindow.$.post(url, formData); BritoOn 9/1/06, Gholias <[EMAIL PROTECTED]> wrote: win.post(myformData);This is from j

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

2006-09-01 Thread Gholias
win.post(myformData); This is from jquery or js native? what is myformData? an array? Francisco Brito escreveu: > I'd say you need to open the window first, then post through it: > > var win = window.open(...); > win.post(myformData); > > You will need jQuery on your new window to be able to us

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

2006-09-01 Thread Francisco Brito
I'd say you need to open the window first, then post through it:var win = window.open(...);win.post(myformData);You will need jQuery on your new window to be able to use the ajax plugin, so it can't be an empty document. I hope this helps,BritoOn 9/1/06, Gholias <[EMAIL PROTECTED]> wrote: Hi, I nee

[jQuery] Jquery Ajax $post to a new window

2006-09-01 Thread Gholias
Hi, I need create a print version of my page I need open this print version on a new window The page is rendered using variables from a post made the ajax plugin how can I use Jquery to force this post to open a new window? like a target _blank on http://jquery.com/discuss/