[jquery-ui] Re: Populate a modal?
There are at least a couple of ways to do this. One is to populate the field before you call the dialog() method to open the dialog. Another is to do that in a function you associate with the open event. See Events tab on http://jqueryui.com/demos/dialog/. -- You received this message because you are subscribed to the Google Groups jQuery UI group. To post to this group, send email to jquery...@googlegroups.com. To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.
Re: [jquery-ui] Re: Populate a modal?
Sorry, I'm not getting it - I tried this: open: function() { $(#save_hist_dialog input[id='url']).val(url); }, But it's not working... The full js is here: http://pastebin.com/e8YBb6B9 On Tue, Mar 2, 2010 at 5:19 PM, Roman roman...@gmail.com wrote: There are at least a couple of ways to do this. One is to populate the field before you call the dialog() method to open the dialog. Another is to do that in a function you associate with the open event. See Events tab on http://jqueryui.com/demos/dialog/. -- You received this message because you are subscribed to the Google Groups jQuery UI group. To post to this group, send email to jquery...@googlegroups.com. To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en. -- __ Clayton Dukes __ -- You received this message because you are subscribed to the Google Groups jQuery UI group. To post to this group, send email to jquery...@googlegroups.com. To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.
[jquery-ui] Re: Populate a modal?
First of all, it seems that you'd get a syntax error because you don't a semicolon after var url = $(#q_hist).val() Secondly, does $(#save_hist_dialog input[id='url']).val(url) do its job by itself (to be sure you have the correct selector)? -- You received this message because you are subscribed to the Google Groups jQuery UI group. To post to this group, send email to jquery...@googlegroups.com. To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.
Re: [jquery-ui] Re: Populate a modal?
I got it...(yay!) You're question clued me in - I had copied that from somewhere else and thought that it would find the dialog window and populate the id of url with my data. In fact, all I needed was: $(#url).val(url); Thanks!!! On Tue, Mar 2, 2010 at 6:04 PM, Roman roman...@gmail.com wrote: First of all, it seems that you'd get a syntax error because you don't a semicolon after var url = $(#q_hist).val() Secondly, does $(#save_hist_dialog input[id='url']).val(url) do its job by itself (to be sure you have the correct selector)? -- You received this message because you are subscribed to the Google Groups jQuery UI group. To post to this group, send email to jquery...@googlegroups.com. To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en. -- __ Clayton Dukes __ -- You received this message because you are subscribed to the Google Groups jQuery UI group. To post to this group, send email to jquery...@googlegroups.com. To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.