[jQuery] Re: Var from Ajax success not defined?

2009-02-26 Thread Mike Alsup
 alert(typeof(how_many));  is string alert(how_many==undefined); is false This may help: http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_get_and_use_the_server_response_from_an_AJAX_request.3F

[jQuery] Re: Var from Ajax success not defined?

2009-02-26 Thread heohni
great! Thanks a lot! On 26 Feb., 13:40, Mike Alsup mal...@gmail.com wrote:  alert(typeof(how_many));  is string alert(how_many==undefined); is false This may help: http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_get_and_us...

[jQuery] Re: Var from Ajax success not defined?

2009-02-25 Thread system div
var how_many_checked= ''; $.ajax({ type: POST, url: /ajax_add_selected_product_to_session.php, success: function(msg){ /* add here what to do on success */ //alert(msg);

[jQuery] Re: Var from Ajax success not defined?

2009-02-25 Thread heohni
Ok, thanks a lot!! On 25 Feb., 10:38, system div divsys...@gmail.com wrote:  var how_many_checked= ''; $.ajax({                type: POST,                url: /ajax_add_selected_product_to_session.php,                success: function(msg){                        /* add here what to do on

[jQuery] Re: Var from Ajax success not defined?

2009-02-25 Thread heohni
Sorry, another question... I just playing arround with different possibilities: $(document).ready(function(){ // on default, disable the submit button $(.requestbutton).attr(disabled, disabled); function check_how_many_products_checked(){ $.ajax({

[jQuery] Re: Var from Ajax success not defined?

2009-02-25 Thread system div
you try alert(check_how_many_products_checked()); //var x = ; On Wed, Feb 25, 2009 at 6:11 PM, heohni heidi.anselstet...@consultingteam.de wrote: Sorry, another question... I just playing arround with different possibilities: $(document).ready(function(){        // on default, disable

[jQuery] Re: Var from Ajax success not defined?

2009-02-25 Thread heohni
Currently my code looks like: var how_many = ; $.ajax({ type: POST, url: /ajax_add_selected_product_to_session.php, success: function(msg){ /* add here what to do on success */ //alert(msg);

[jQuery] Re: Var from Ajax success not defined?

2009-02-25 Thread system div
alert(typeof(how_many)); is string alert(how_many==undefined); is false On Wed, Feb 25, 2009 at 7:26 PM, heohni heidi.anselstet...@consultingteam.de wrote: Currently my code looks like: var how_many = ;        $.ajax({                type: POST,                url: