SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict MarekS's Avatar
    Join Date
    Jan 2003
    Location
    Estonia / Tallinn
    Posts
    201
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    popup without an URL (or file)

    Is it possible to popup a new window while not using the external file or url as the parameter - instead - I'd want/need/like to pass the source (of a popup window) somehow as the parameter?

    Why? Well... I am dealing with a PHP debugger page and ... on the popup window I would like to display the debugging data that I collected from the same request/response.

    Any ideas?

    Thank U,

    - MarekS -

  2. #2
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When you say "source", do you mean "HTML source"?
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  3. #3
    SitePoint Addict MarekS's Avatar
    Join Date
    Jan 2003
    Location
    Estonia / Tallinn
    Posts
    201
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes I ment HTML (XHTML in my debug case)... but I already found (a minute ago) one possible solution:

    Code:
    <SCRIPT>
        debugWindow = window.open("","debug")
        debugWindow.document.write('echo echo ... this data (XHTML) will be dynamically inserted');
    </SCRIPT>
    - MarekS -

  4. #4
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yup, that's certainly one way to do it. Just make sure to do this when you're done

    debugWindow.document.close();
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev





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
  •