sorry about that.
I figured it out. one flippin #
$('dialog_'+uid).dialog({
should be
$('#dialog_'+uid).dialog({
Thanks!
On Nov 18, 3:42 pm, Mean Mike <[email protected]> wrote:
> your code was a bit strange to me so I cleaned it up see if that helps
>
> $(function() {
> $('a.writemsg').click(function() {
> var uid = $(this).attr('id');
> $('dialog_'+uid).dialog({
> autoOpen: false,
> show: 'blind',
> hide: 'fold',
> width: 300,
> height: 300,
> modal: true,
> buttons: {
> 'Send message': function() {
> var bValid = true;
> bValid = bValid &&
> checkLength(note,"note",3,255);
> if (bValid) {
> console.log(bValid);
> //$('#users
> tbody').append('<tr>' +
> // '<td>' + note.val() +
> '</td>' +
> // '</tr>');
> $(this).dialog('close');
> }
> },
> Cancel: function() {
> $(this).dialog('close');
> },
> close: function() {
>
> //allFields.val('').removeClass('ui-state-error');
> }
> });
> $('dialog_'+uid).dialog('open');
> });
>
> });
>
> On Nov 18, 3:29 pm, dbinaz <[email protected]> wrote:
>
> > $(function() {
> > $('a.writemsg').click(function() {
> > var uid = $(this).attr('id');
> > //console.log(uid);
> > $('dialog_'+uid).dialog({
> > autoOpen: false,
> > show: 'blind',
> > hide: 'fold',
> > width: 300,
> > height: 300,
> > modal: true,
> > buttons: {
> > 'Send message': function() {
> > var bValid = true;
> > bValid = bValid &&
> > checkLength(note,"note",3,255);
> > if (bValid) {
> > console.log(bValid);
> > //$('#users
> > tbody').append('<tr>' +
> > // '<td>' + note.val()
> > + '</td>' +
> > // '</tr>');
> > $(this).dialog('close');
> > }
> > },
> > Cancel: function() {
> > $(this).dialog('close');
> > }
> > },
> > close: function() {
> >
> > //allFields.val('').removeClass('ui-state-error');
> > }
> > }).dialog('open')
>
> > });
> > });
>
> > uid is a number say 8.
>
> > HTML Code
> > <span class="sprite-email_edit"><a href="javascript:void(0);"
> > id="#pendingReqs.id#" class="writemsg">Write Message</a></span>
> > <div id="dialog_#pendingReqs.id#" title="Send note"
> > style="display:none">
> > <form>
> > <fieldset>
> > <label for="name">Note:</label>
> > <input type="text" name="note" id="note_#pendingReqs.id#"
> > class="text ui-widget-content ui-corner-all" />
> > </fieldset>
> > </form>
> > <button id="sendnote_#pendingReqs.id#" class="ui-button ui-state-
> > default ui-corner-all">Send note</button>
> > </div>
>
> > also if I remove the display:none, the form shows inline. Didn't think
> > I had to do that to make it not show?
>
> > Thx,
> > Derek
--
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en.