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

    Join Date
    Mar 2000
    Posts
    1
    Rep Power
    0
    I'm trying to invoke user defined function
    by js HREF that resides in another frame that uses a function in the frame that invoked it.
    Here's the barebones of the issues:

    header frame :
    function doit() {
    document.write("here i am")
    }
    <a href="javascript:go()" target="main"> X </a>
    --------------------------------------
    main frame :
    function go() {
    parent.frames[0].focus()
    doit() };

    -------------------------

    When I click on X in header form it gives
    me error saying "object expected" referring
    to the doit() function as if it didn't exist.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 1999
    Posts
    84
    Rep Power
    16
    <a href="javascriptarent.mainframename.go();">X</a>

    Spookster

Similar Threads

  1. Passing pointers between functions
    By heygirls_uk in forum C Programming
    Replies: 2
    Last Post: January 9th, 2004, 03:26 PM
  2. frames w/o frames?
    By XxKainexX in forum Beginner Programming
    Replies: 3
    Last Post: June 21st, 2003, 02:55 AM
  3. Using functions within functions.
    By winddancer in forum PHP Development
    Replies: 7
    Last Post: May 4th, 2003, 12:25 PM
  4. the path to various frames
    By Garrett_44 in forum HTML Programming
    Replies: 1
    Last Post: October 31st, 2001, 10:43 PM
  5. floating frames and functions
    By scream in forum HTML Programming
    Replies: 1
    Last Post: February 27th, 2001, 01:28 AM

IMN logo majestic logo threadwatch logo seochat tools logo