In javascript, I get the dialog as follow:
var url = CQ.HTTP.externalize(pathToDialog+".infinity.json");
var dialog = CQ.HTTP.eval(url);
my Question is How to convert this dialog
to CQ:Dialog Widget, sothat I can use CQ:Dialog Methods like find( String prop, String value ), which u can find in the CQ5 Widget API
Thanks for help
JavaScript - Dialog Boxes. JavaScript supports three important types of dialog boxes. These dialog boxes can be used to raise and alert, or to get confirmation on any input or to have a kind of input from the users. Here we will discuss each dialog box one by one.
You can use a confirmation dialog box as follows. The prompt dialog box is very useful when you want to pop-up a text box to get user input. Thus, it enables you to interact with the user. The user needs to fill in the field and then click OK.
Prompt Dialog Box. The prompt dialog box is very useful when you want to pop-up a text box to get user input. Thus, it enables you to interact with the user. The user needs to fill in the field and then click OK.
These dialog boxes can be used to raise and alert, or to get confirmation on any input or to have a kind of input from the users. Here we will discuss each dialog box one by one. An alert dialog box is mostly used to give a warning message to the users.
You can use the getDialog() method of CQ.WCM class to get the dialog object for the url. Additionally, you can also pass a config object to perform functions like caching the dialog, looking for the dialog in the cache alone and so on.
var dialog = CQ.WCM.getDialog(pathToDialog + ".infinity.json");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With