64 users online (1 members and 63 guests)  

Thread: javascropt:opn(


  Results 1 to 3 of 3
  1. #1
    convinceme's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2003
    Posts
    1

    javascropt:opn(

    var moreTemp1 = "<a href=\"javascript:opn('489', '250', 'yes', 'Calendar.htm#";
    var moreTemp2 = "');\" title=\"Open this Event in a New Window...\"><img src=http://www.hangout.com.pk/Images/nw.gif border=0></a>";

    i have this in my blah.js file and when i change this
    "<a href=\"javascript:opn('489', '250', 'yes', 'Calendar.htm#";
    to
    "<a href=\"Calendar.htm#";
    it works .. means atleast the page exists.. but wont work with tht javascript to get me the function which i require.. waiting or help thanks

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hi, welcome to the forum.

    I dont really understand exactly what your problem is, your post is a little sketchy. However, I can tell you this is incorrect:
    Code:
    'Calendar.htm#";
    should be

    Code:
    'Calendar.htm#';"
    Try that.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    woodknut's Avatar
    Disabled

    Status
    Offline
    Join Date
    Dec 2003
    Posts
    32
    Some points to ponder:

    Do you have a <SCRIPT LANGUAGE="JavaScript" src="javascript/blah.js"></script>
    in the <head> portion of your page? (assuming the file/folder structure).

    Are you sure the function opn() has the variables in the right order? i.e. width, height, scrollbars, URL as shown?

    Is the file Calendar.htm in the same folder as the page referencing it? or a parent folder?

    W.



Tags for this Thread