¡@

Home 

2014/10/16 ¤W¤È 12:01:50

jquery Programming Glossary: addtoplaylist

Function inside jquery returns undefined

http://stackoverflow.com/questions/2504950/function-inside-jquery-returns-undefined

and it returns correct data when I firebugged it. function addToPlaylist component_type add_to_pl_value pl_list_no add_to_pl_value_split.. Try again in a while 'document' .ready function addToPlaylist '#component_type' .val ui_item 0 This one returns undefined.. as it returns from the callback function not your addToPlaylist function. You have a couple of choices. The first one is better...

Function inside jquery returns undefined

http://stackoverflow.com/questions/2504950/function-inside-jquery-returns-undefined

inside jquery returns undefined. I checked the function and it returns correct data when I firebugged it. function addToPlaylist component_type add_to_pl_value pl_list_no add_to_pl_value_split add_to_pl_value.split .ajax type POST url ds index.php.. error function alert An error occured while updating. Try again in a while 'document' .ready function addToPlaylist '#component_type' .val ui_item 0 This one returns undefined javascript jquery function undefined share improve this.. AJAX request completes. In fact your return statement is meaningless as it returns from the callback function not your addToPlaylist function. You have a couple of choices. The first one is better. First you can work with the asynchronous nature of the..