#1
  1. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    May 2002
    Location
    UK
    Posts
    563
    Rep Power
    13

    Big problems with javascript popups.


    I am have a problem with using javascript pop up functions. The first page which uses the function is fine but on subsequent pages the pop up function would not work at all. So I tried to use the javascript window.open and while the window did open the PHP job_id value did not parse to the pop up page. I think I have tried all variations, but the following is the closest so far.
    PHP Code:
    <a href="javascript: void window.open('jobsuppamend2.php?job_id =
    <?php echo ("$job_id");?>','','width=700, height=200, resizable=yes');">
    <img src="../../images/support_person.gif" alt="" height="32" width="32" border="0"></a><br>
    </a><font size="2"><b>Change Support</b></font></td>
    I am more PHP than javascript so your help is appreciated.
    By the way I can not use sessions because when I go to open the next job the previous value is shown.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    May 2002
    Location
    UK
    Posts
    563
    Rep Power
    13
    OKKKKKKKKKK. Managed to sort it myself. Seems as though javascript does'nt like PHP being contained with in. Thought I would take PHP to Java and sorted problem. See Code:

    PHP Code:
    <a href="<?php echo 
    "javascript: void window.open('jobchildadd2.php?job_id=$job_id',
    '','width=700, height=550, resizable=yes')"
    ;?>;">Close and Open Child Job</a>

IMN logo majestic logo threadwatch logo seochat tools logo