Pass data via ajax to dialog Jquery

Posted by user342391 on Stack Overflow See other posts from Stack Overflow or by user342391
Published on 2010-06-05T10:04:41Z Indexed on 2010/06/05 10:12 UTC
Read the original article Hit count: 158

Filed under:
|
|
|

I am trying to post data from my form to a jquery dialog that loads external content.

I am serializing the form data which works (appears in the url) but the dialog won't open:

      $("#wavajax button").click(function() {
  $.post({url: 'player/index.php', data: $("#wavajax").serialize(), 
         success: function (data) {

                     $("#recordingdialog").load("player/index.php", [], function(){
               $("#recordingdialog").dialog("open");

                 }
  });
  return false;
});

What am I doing wrong, am I going about it the right way???

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about AJAX