Re: [jQuery] AJAX and the Content-Type response header

2009-12-18 Thread Xi Shen
i am afraid you have no way to parse the "Content-Type" in your javascript. because it the the header of the response, and you can only get the body (the content) of the response. actually, for a ajax to be able to work correctly, you MUST guarantee the request you send with ajax can get what you

[jQuery] Re: Synchronous call in JQuery?

2009-09-28 Thread Xi Shen
http://plugins.jquery.com/project/ajaxqueue maybe this is what you want. On Mon, Sep 28, 2009 at 10:55 PM, Mesquite wrote: > > I'm trying to load a JQuery dialog containing content from the > backend. > JQuery places this dialog vertically in the middle of the page when > the dialog open call

[jQuery] Re: Want the submitted data from page loaded in iframe in parent page.

2009-09-24 Thread Xi Shen
so where is your js reside? in the iframe or out side? i think the best way is put your js in the iframe, so your parent frame does not need to operate your iframe at all. On Thu, Sep 24, 2009 at 12:44 PM, Nils wrote: > > Hi all, >         I am relatively starter in php, javascript & jquery. I

[jQuery] Re: select cannot check checkboxes' states

2009-09-24 Thread Xi Shen
t;> tried Sam Doyle's response yet? It looks like that might be the proper way. >> $("input[type=checkbox]:checked").each(function(){}); >> >> Jonathan >> >> >> >> Xi Shen wrote: >> >> > tried, not working ;( >> >>

[jQuery] Re: Creating a new tag

2009-09-24 Thread Xi Shen
$('a') means selecting all the 'a' tag element and set their attribute. if you want to create an new element and add it to your page, try var newAtag = $(document.createElement("a")).attr(...); $("select the parent element").append(newAtag); On Thu, Sep 24, 2009 at 5:06 PM, Coxy wrote: > > Ho

[jQuery] Re: select cannot check checkboxes' states

2009-09-24 Thread Xi Shen
tried, not working ;( On Thu, Sep 24, 2009 at 5:03 PM, Jonathan Vanherpe (T & T NV) wrote: > > Xi Shen wrote: >> >> hi, >> >> i have a group of check boxes, and i want to iterator over all the >> checked ones. i use the following code, but without luc

[jQuery] select cannot check checkboxes' states

2009-09-24 Thread Xi Shen
hi, i have a group of check boxes, and i want to iterator over all the checked ones. i use the following code, but without luck. $("input[type=checkbox][checked=true]").each(function()...); can someone give a better solution? -- Best Regards, David Shen http://twitter.com/davidshen84/ http:

[jQuery] Re: position of js code

2009-09-22 Thread Xi Shen
i like MorningZ's answer haha~~~ i think by convention, people put it in the . but there's performance problem with IE, i do not know if other browsers have similar issue, that is IE can d/l one JS file at a time. The consequence is that is you have many JS file, or a big one, it would take a lon

[jQuery] Re: $.each cannot iterator my array

2009-08-28 Thread Xi Shen
yes, i made a fool mistake, and mislead jquery. thanks a lot ;) On Fri, Aug 28, 2009 at 7:05 PM, Nick Fitzsimons wrote: > > 2009/8/28 davidshe...@googlemail.com : >> i have an array initialized like >> var myArr = new Array(); >> >> later I use >> >> myArray['somestring'] = new Array(); >> myAr

[jQuery] Re: $.each cannot iterator my array

2009-08-28 Thread Xi Shen
but my program want to iterator the outer array first to find out how many arrays in the myArray variable. On Fri, Aug 28, 2009 at 5:33 PM, Dhruva Sagar wrote: > You have initiallized myArray['somestring'] = new Array(); > should you be doing $.each(myArray['something'], function() {...}); ? > T