How to open a modal boxy after this code

56 views
Skip to first unread message

maroon

unread,
Apr 11, 2012, 9:32:20 PM4/11/12
to boxy-...@googlegroups.com
 I ahve the following code
and i want to open boxy at the end
where dlgopen(url, '_blank', 700, 500);
currently its opens browser window
but how do i open the boxy modal here

my code
$('#create').click(function() { submitme(); });

    var submitme = function() {
      top.restoreSession();
      var f = document.forms[0];

      if (validate(f)) {
        if (force_submit) {
          // In this case dups were shown already and Save should just save.
          f.submit();
          return;
        }

        // Build and invoke the URL to create the dup-checker dialog.
        var url = 'new_search_popup.php';
        var flds = new Array(<?php echo $mflist; ?>);
        var separator = '?';
        for (var i = 0; i < flds.length; ++i) {
          var fval = $('#form_' + flds[i]).val();
          if (fval && fval != '') {
            url += separator;
            separator = '&';
            url += 'mf_' + flds[i] + '=' + encodeURIComponent(fval);
          }
        }
        dlgopen(url, '_blank', 700, 500);

      } // end if validate
    } // end function

maroon

unread,
Apr 12, 2012, 5:26:14 AM4/12/12
to boxy-...@googlegroups.com
anyone there please help me

Gerardo Pacheco Chalchis

unread,
Apr 12, 2012, 1:14:43 PM4/12/12
to boxy-...@googlegroups.com
not sure I understand your problem you can show some screenshoot

On Thu, Apr 12, 2012 at 4:26 AM, maroon <aryanh...@gmail.com> wrote:
anyone there please help me

--
You received this message because you are subscribed to the Google
Groups "boxy" group.
To post to this group, send email to boxy-...@googlegroups.com
To unsubscribe from this group, send email to
boxy-plugin...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/boxy-plugin?hl=en



--
Gerardo Pacheco
Reply all
Reply to author
Forward
0 new messages