Re: [jQuery] $.ajax call works with 1.04 but not with 1.1

2007-01-17 Thread Sasha Oros

Jörn,


I found out that when I use 1.04 a 'test' variable gets a list of the user
names, but when I switch to 1.1 it gets  value.

var test = $(/viewentries/viewentry/[EMAIL PROTECTED]'1'],
xml).text();




Jörn Zaefferer wrote:
 
 Sasha Oros schrieb:
 By the way, all the variable values (url, columnNo  elementID) are the
 same
 for both jQuery libraries.
   
 Can you post a test page? Can't spot any obvious errors in your code.
 
 -- 
 Jörn Zaefferer
 
 http://bassistance.de
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/%24.ajax-call-works-with-1.04-but-not-with-1.1-tf3016787.html#a8417846
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] $.ajax call works with 1.04 but not with 1.1

2007-01-16 Thread Jörn Zaefferer
Sasha Oros schrieb:
 By the way, all the variable values (url, columnNo  elementID) are the same
 for both jQuery libraries.
   
Can you post a test page? Can't spot any obvious errors in your code.

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] $.ajax call works with 1.04 but not with 1.1

2007-01-15 Thread Sasha Oros

Hi, 

Below ajax call works fine with jQuery 1.04 and returns  sets multi-value
to an input text field. But, when I try the same code with jQuery 1.1 it
fails without any error (no error message, no result,... nothing happens).

Not sure if I missed anything (regarding to upgrade changes), so any help is
greatly appreciated.

$.ajax({
type:   'GET',
url:  url,
dataType:'xml',
timeout:  1,
async:  true,
success:   function( xml ) {
var result = [];
$(viewentry/[EMAIL 
PROTECTED]' + columnNo + '], xml).each(
function(i) {
var $this = 
$(this); 
result[i] = 
$this.text();
}); 

var element = $(# + 
elementID);
if ( 
element.attr(type) === null ) {
element.html( 
result ); 
} else {

element.val( 
result );  
}
},
error:  function( xml ) {
alert( Error );
}
});

By the way, all the variable values (url, columnNo  elementID) are the same
for both jQuery libraries.

Thanks,
Sasha
-- 
View this message in context: 
http://www.nabble.com/%24.ajax-call-works-with-1.04-but-not-with-1.1-tf3016254.html#a8376407
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] $.ajax call works with 1.04 but not with 1.1

2007-01-15 Thread Sasha Oros

Hi, 

Below ajax call works fine with jQuery 1.04 and returns  sets multi-value
to an input text field. But, when I try the same code with jQuery 1.1 it
fails without any error (no error message, no result,... nothing happens).

Not sure if I missed anything (regarding to upgrade changes), so any help is
greatly appreciated.

$.ajax({
type:   'GET',
url:  url,
dataType:'xml',
timeout:  1,
async:  true,
success:   function( xml ) {
var result = [];
$(viewentry/[EMAIL 
PROTECTED]' + columnNo + '], xml).each(
function(i) {
var $this = 
$(this); 
result[i] = 
$this.text();
}); 

var element = $(# + 
elementID);
if ( 
element.attr(type) === null ) {
element.html( 
result ); 
} else {

element.val( 
result );  
}
},
error:  function( xml ) {
alert( Error );
}
});

By the way, all the variable values (url, columnNo  elementID) are the same
for both jQuery libraries.

Thanks,
Sasha
-- 
View this message in context: 
http://www.nabble.com/%24.ajax-call-works-with-1.04-but-not-with-1.1-tf3016256.html#a8376410
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/