Hi,

I'm new in this of Jquery UI and I really like it, I have tested differents
features and I like it. 
Now I'm trying to create a dialog box which shows the content of a external
page.

This is my situtation:

I have a .jsp page called 'x.jsp'. In this page I have a link which open a
popup window using simple javascript (openWindow). This popup shows a second
.jsp file called 'b.jsp'. 
In order to show information on the popup with the b.jsp I'm using this
javascipt on x.jsp:

function productInfo(country_cd,destination_cd,resort_cd,product_cd)
{
        var url = '<ww:print value="@prodInfo.targetPage"/>&country_cd=' +
country_cd + '&destination_cd=' + destination_cd + '&resort_cd=' + resort_cd
+ '&product_cd=' + product_cd;
        openWindow(url,'ProductInfo');
}

where <ww:print value="@prodInfo.targetPage"/> is the page which will show
the information (b.jsp)

I did something like this to test the same behaviour with jquery ui dialog
on the same x.jsp:

function productInfo(country_cd,destination_cd,resort_cd,product_cd)
{
        var url = '<ww:print value="@prodInfo.targetPage"/>&country_cd=' +
country_cd + '&destination_cd=' + destination_cd + '&resort_cd=' + resort_cd
+ '&product_cd=' + product_cd;
        //openWindow(url,'ProductInfo');
        $j('#specDiv').load(url);
        showDialog();
}


var dialogVar;
        $j(document).ready(function(){
                dialogVar = $j('#specDiv').dialog({ autoOpen: false, title: 
'<ww:print
value="@label.header"/>', width: 600 });
        });
        function showDialog()
        {
                dialogVar.dialog('open');
        }

And i have a div with a id=specDiv on the same page 'x.jsp'.

Right now i can see the information on the dilog box but since I'm not
loading any other .jsp page all the information shows on the id=specDiv div. 

How can I show the b.jsp page on the dialog box instead? 

Best regards
Jarkaos
-- 
View this message in context: 
http://old.nabble.com/How-to-Jquery-UI-Dialog-showing-external-information-tp26955938s27240p26955938.html
Sent from the jQuery UI Discussion mailing list archive at Nabble.com.

--

You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to jquery...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.


Reply via email to