Page 1 of 1

How to create dynamic Jquery popup

Posted: Fri Sep 11, 2015 4:39 pm
by Dongzhi Yang7528784

Dear Team,

When I using Jquery popup, I found that , a Popup component has to be set up on the page in design time.

This is troublesome, because I have potentially put a Popup component on every page.

Is there a way to allow creating Jquery Popup dynamically with Javascript?

Thanks

Dongzhi


How to create dynamic Jquery popup

Posted: Fri Sep 11, 2015 6:16 pm
by Jack Bua

I do not think that is how JS should be used. It is my understanding that HTML is for creation and JS is for manipulation.

You can however, set up all of your popup's components in one grid cell and then save that grid as a custom component. Should make recreating that popup much faster on your other pages.


How to create dynamic Jquery popup

Posted: Sat Sep 12, 2015 4:34 am
by Kapow36

You can append any html to a page using javascript. For example, with a page load event, I could write the code to append any html element to the mobile container:

Apperyio('mobilecontainer').append($("< p just some text but could be any html< /p ")); (if you copy and paste this code remove the spaces in the tag)