Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2011
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts

    window.open and php

    I have a page that has a few links that are using window.open to open another window with some information on it without the address bar etc...When I had the page in html format it worked perfectly now that ive put the page into php for a few other things im doing on the page you click a window.open link and it pulls up the window but says it cannot find the html file its linked to. I changed the file its linked to to php and it works but the second page is not loading the css style sheet so with window.open any ideas why it wont open the html file put will open the same exact file if its in php?

    Code Example:

    <head>
    <script language="JavaScript">
    function deposits(){
    window.open
    ("cardscripts/deposits.html/","","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=600, height=610");
    }
    </script>
    </head>

    Code for the link:

    <a href="javascript:deposits()" value="Open Window">Deposits</a>

    The page this was on was in html, then I changed the page to php, when i change the link that the window.open goes to to php it loads the page but not the style sheet, if i keep deposits.html as html it says it cant find the page.
    Last edited by brock029; 08-20-2011 at 06:25 AM.

  • #2
    New to the CF scene
    Join Date
    Aug 2011
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Fixed it, just removed the / on the end of the link in the window.open function. went from

    cardscripts/deposits.html/
    to
    cardscripts/deposits.html


  •  

    Posting Permissions

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