Results 1 to 2 of 2

Thread: generate some poopus

  1. #1
    holdjul is offline Member
    Join Date
    Jul 2007
    Posts
    5

    Default generate some poopus

    Hi everybody,

    I just want to know how can I generate more than one popup on the same time.

    On my exemple, i make a "while" on id of invoices. And foreach selected invoices (on the checklist), i should generate a excel document . So, i developped a script which generate my excel doc ( but only one). My problem is that when i generate a document, i apply to a popup which asked to user if he wants to generate it or not. And this popup breaks my 'while', so i can't build other documents.

    So i would like to know how can i generate popups without breaking the script of the main page.

    TY for helping me.


    // I'm french so don't blame me because of my english

  2. #2
    ivolator's Avatar
    ivolator is offline Sugar Community Member
    Join Date
    Sep 2006
    Location
    Dagobah
    Posts
    98

    Arrow Re: generate some poopus

    I am not understanding the exact flow of your actions, but it seems that you might be able to build the JavaScript first and then execute it at once.
    For example in php you do something like this
    PHP Code:
    $my_javascript '';
    while (
    $condition == true){
        
    $my_javascript .= 'popupscript($some params)';
    }

    $xtpl->assign('POPUPSCRIPTLOGIC',$my_javascript); 

    In your template

    you'll do

    <script language="javascript" >
    {POPUPSCRIPTLOGIC}
    </script>

    Your POPUPSCRIPTLOGIC will contain sequence of js calls that invokes the popups

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. how generate an ID ?
    By UNi[FR] in forum Developer Help
    Replies: 1
    Last Post: 2006-05-04, 09:24 AM
  2. Replies: 2
    Last Post: 2006-04-12, 02:20 PM
  3. Replies: 0
    Last Post: 2004-12-12, 06:33 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •