How to display a popup from an external file in YUI? -


I am using my application to display message box popups and other dialogs.

I am not sure what recommended / clear way to prepare popups obtained from external HTML files. I am showing 'more information' about a product, including text and images.

The closest to what I want to do "shows that a graphic wait, while this asynchronous loads external data, but when finished, that data is shown in the body of the page And not inside any popup.

Now I know how I can use this example to show a 'wait' dialog, and when finished, show Other popups with returned data.

However, I was hoping that an external file was created in the functionality to load in a popup because:

a) This would be less code for me and Event handling will

b) Popup will contain images and I want to wait for that to stay until the screen is loaded in it. This will be very simple for me

Simon,

YUI The containers (panel, dialog, simple dialies) do not have the facility of loading external data.

You can use the workflow of your description (you can put data in a new panel) or, External / XHR data is found through 'Connection Manager (); Wait "in the body of the panel and then resize it / refresh. The latter will be more efficient, as you suggest, because you will not have to make another panel.

Use the setBody method to add your new content to your panel () body.

- Eric


Comments