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 4 of 4
  1. #1
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts

    still someting is weird...

    I mean

    That reference works only when I use a precise href:

    <a href="page.html" onclick="top.frames['nameofiframe'].thatfunction()">Go somewere on iframe</a>

    that means I load the page in iframe each time I want to go on certain <a name>, which is exactly the thing I wanna avoid.

    The reference does not work when I try something like

    <a href="#" onclick="top.frames['nameofiframe'].thatfunction()">Go somewere on iframe</a>

    or

    <a href="javascript:void(top.frames['nameofiframe'].thatfunction())">Go somewere on iframe</a>
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,042
    Thanks
    0
    Thanked 251 Times in 247 Posts
    you should have not start a new thread so others can follow what you're saying.

    <a href="#" onclick="top.frames['nameofiframe'].thatfunction();return false">Go somewere on iframe</a>

    Can you post the content of thatfunction()?

    For the sake of others, here's the original thread.

  • #3
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    sorry, I have clicked the New instead of Replay... I was thinking at too many things at the same time, sorry

    But... the problem still remains the same... I forgot to mention that I've tried the return false either, with teh same result... I mean that the result is that the event open me a new, undefined page, either I use return false or not... I don't understand why
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,042
    Thanks
    0
    Thanked 251 Times in 247 Posts
    can you post the code in thatfunction() and the iframe tag?


  •  

    Posting Permissions

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