Friday, 15 April 2011

asp.net - JQuery Dialog doesn't seem to work with large amount of data -



asp.net - JQuery Dialog doesn't seem to work with large amount of data -

jquery code in .ascx page <script type="text/javascript"> function showdialog(title, message) { $("#warrantcjisresponse").find("#dialogmessage").appendto(message); $("#warrantcjisresponse").dialog(); } </script> <!-- button within of <asp:repeater> --> <asp:button id="qdpbutton" type="button" text="qdp" runat="server"/> <div id="warrantcjisresponse" > <pre id="dialogmessage"></pre> </div> //code behind setting click handler , params button.onclientclick = "showdialog('qdp','" + message + "')";

if set "message" little amount of info "test", works. if set big amount of data, doesn't work, page flashes , nil happens.

if you're trying append 'message' #dialogmessage, you're using wrong function. switch appendto() append().

http://api.jquery.com/append/

http://api.jquery.com/appendto/

jquery asp.net

No comments:

Post a Comment