Results 1 to 6 of 6

Thread: Popup Box II... want it to take a JSP page

  1. #1
    Join Date
    Jul 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Popup Box II... want it to take a JSP page

    1) Script Title: Popup Box II

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex11/abox2.htm

    3) Describe problem: Is there a way to insert a JSP page inside this popup? Currently this code in the above URL only takes in HTML code. I want it to display a JSP page.

    Thanks
    -mschat

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I don't know much about jsp but, if it is anything like asp and php, can't you just put an include in place of the HTML?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    the exact code location which takes in the HTML text in the popup.js is:

    line 207: content.innerHTML=text;

    So even if I give a JSP file include in the popUp() funtion...it will convert it to plain text and/or throw an error. The final output of the page is a .html page where as I want it to be a .jsp page. In other words the window which will 'popup' should be my .jsp page and not the original HTML.

    Thanks
    -mschat
    Last edited by mschat; 07-14-2006 at 11:17 PM.

  4. #4
    Join Date
    Apr 2006
    Posts
    429
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    could u post a link to ur problematic page? lets see if i could remember my JSP
    Please don't mind me. I am just posting a lot of nonsense.

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by mschat
    the exact code location which takes in the HTML text in the popup.js is:

    line 207: content.innerHTML=text;

    So even if I give a JSP file include in the popUp() funtion...it will convert it to plain text and/or throw an error. The final output of the page is a .html page where as I want it to be a .jsp page. In other words the window which will 'popup' should be my .jsp page and not the original HTML.

    Thanks
    -mschat
    Well, in asp and in php you can rename the file to:

    popup.asp

    or:

    popup.php

    Once you do that, you can use includes or whatever on it. It can still be linked to the page that uses it as a javascript file, in your case, the link would look like so:

    HTML Code:
    <script type="text/javascript" src="popup.jsp">
    I'm most familiar with asp. In that, most of the script would remain as is except that it could have:

    <!--#include virtual="/includes/some.asp"-->

    type things in it where desired, and even VBscript (the server side scripting language of choice in asp) within asp delimiters if desired.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    Jul 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hmm... so I need to change the extension of my popup file in order to insert my jsp file....ok will try it out on monday and let u know if it worked !
    Thanks !
    -mschat

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •