Posted on 2009-02-20
Last Modified: 2013-11-24
I'm trying to use window.showModalDialog to open a jsp that uses struts but I'm having problems getting the url right. See code snippet below. This code opens a window, but not to the correct url and when I close the dialog box  the alert reads returnValueDialog: undefined. Any help would be greatly appreciated.
sURL = "";

var returnValueDialog  = window.showModalDialog(sURL, "", "dialogWidth:9cm; dialogHeight:6cm; status:yes")

alert("returnValueDialog: "+returnValueDialog);

Open in new window

Question by:GlobexCorp
    LVL 92

    Accepted Solution

    the url needs to be relative to the url of thae page that code pappears in

    LVL 15

    Expert Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
    Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
    This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
    Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now