Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

Initialize multiple popups

$
0
0

I am trying to put two popups in a custom dialog. I am having trouble though because I can't figure out how to initialize the two different arrays that hold the choices for the two popups. When I use this code it, the first popup shows sub1 for the choices but popup2 doesn't show any choices. Any direction on how to fix this would be very helpful!

 

     initialize: function(dialog)

     {

          dialog.load(

          {

          "sub1":

          {

               "example1": -1,

               "example2": -2,

               "example3": -3,

               "example4": -4

          }

          },

          {

          "sub2":

          {

               "example5": -1,

               "example6": -2,

               "example7": -3,

               "example8": -4

          }

          });

     },

 

//In the description where I create the popups

                    {

                         type: "cluster",

                         name: "Popup1",

                         elements:

                         [

                              {

                                   type: "static_text",

                                   name: "Make a choice",

                                   font: "default"

                              },

                              {

                                   type: "popup",

                                   item_id: "sub1",

                                   width: 200

                              }

                         ]

                    },

                    {

                         type: "cluster",

                         name: "Popup2",

                         elements:

                         [

                              {

                                   type: "static_text",

                                   name: "Make a choice",

                                   font: "default"

                              },

                              {

                                   type: "popup",

                                   item_id: "sub2",

                                   width: 200

                              }

                         ]

                    }


Viewing all articles
Browse latest Browse all 12130

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>