[jQuery] selection by XPath

2010-01-15 Thread Anton Koval'
hello all. I need some help in understanding XPath selection in JQuery: i.e. i have this html code: html head script language='javascript' src='jquery.js'/script script language='javascript' function f() { alert($('//body/div')); } /script /head

[jQuery] Re: selection by XPath

2010-01-15 Thread Anton Koval'
version of jquery is 1.3.2

[jQuery] Re: $.ajax POST on ff3.5 and Chrome

2009-12-18 Thread Anton Koval'
So, i've figured out why that happens: in case of ff and chrome that is just some security policy, which forbids to do post on remote host. Solution is quite simple - place controller and hmtl page with your scripts on same host, and after that parameter url in $.ajax post will transformed to

[jQuery] $.ajax POST on ff3.5 and Chrome

2009-12-17 Thread Anton Koval'
good day guys! i have next code in my js-script: $.ajax({ url: 'http://localhost:9090/api?callback=?_=?', type: 'post', dataType: 'json', data: {sites :$.toJSON(in_res), out_res_http: