1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Rep Power
    I have been following a topic about passing data to a client window,
    that was here some time ago, but i can't get it to work, any suggestions ?

    The function is in the HTML part of the page :

    <head><title>Web Database Sample Index</title>
    <SCRIPT LAGUAGE="JavaScript">
    function new_window(idsel)
    window.open('info-basis.php3?id=idsel','Client','width=300,height=350,directories=no,location=no,menubar=no,status=no, toolbar=no,resizable=no,left=340,top=150,screenX=150,screenY=1 50')

    The call is made from a line created with PHP

    $event = $r["event"];
    echo '<tr><td><a href="javascript:new_window()">', $item_regel_font_start, $event, $item_regel_font_stop, '</a></td><td>', $item_regel_font_start, $city, $item_regel_font_stop, '</td><td>', $item_regel_font_start, $location, $item_regel_font_stop, '</td><td>', $item_regel_font_start, $times, $item_regel_font_stop, '</td></tr>';

    The above works in that the window pops up, but as soon as i put data in the call like :

    echo '<tr><td><a href="javascript:new_window(', $event, ')">', $item_regel_font_start, $event, $item_regel_font_stop, '</a></td><td>', $item_regel_font_start, $city, $item_regel_font_stop, '</td><td>', $item_regel_font_start, $location, $item_regel_font_stop, '</td><td>', $item_regel_font_start, $times, $item_regel_font_stop, '</td></tr>';

    i will see -javascript:new_window(My Data)- in the status line of netscape,
    but the client window won't open.

    Thanks in advance
  2. #2
  3. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Rep Power
    See their is a very small problem in your java script function:

    function new_window(idsel)

    you should concatenate java script variable
    here other wise it will conside that as simple text

    ie,it should be,

    function new_window(idsel)

    hope it will accept your value...

    SR -

    "The fear of the LORD is the beginning of knowledge..."

Similar Threads

  1. passing data with hidden fields to an email account
    By BKL in forum ASP Programming
    Replies: 1
    Last Post: February 6th, 2004, 02:37 AM
  2. Replies: 0
    Last Post: January 27th, 2004, 12:42 PM
  3. post data to new window then do redirect
    By theDano in forum PHP Development
    Replies: 2
    Last Post: January 24th, 2004, 06:08 PM
  4. Passing data to form(s) ???
    By hbcontract in forum PHP Development
    Replies: 1
    Last Post: January 17th, 2004, 05:31 PM
  5. my comp sux lately , need help from pro's
    By Hykinsel007 in forum Windows Help
    Replies: 2
    Last Post: January 5th, 2004, 01:52 PM

IMN logo majestic logo threadwatch logo seochat tools logo