SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Detect id ..

  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2005
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Detect id ..

    Hi to all of you,
    i need your help for a small thing...

    I use the script that you could find on this page: http://cross-browser.com/x/examples/drag2.php

    if i do that xhide(ele) it close the right div.....
    however i've created iframe within those div and i'd like to refresh those.

    if i simply do parent.fen1.location='fen1.html' it works perfectly!


    however i need to do this folliwing the id!!
    cosequently i've tried do that:

    parent.ele.location=''fen1.html' just for a try bu it tells me ele is not an object or is NULL:

    How am i suppose to make it work!
    ps: names of the first iframe is currently fen1 same thing for ele i thought...


    Thanks in advance for any help
    Darkange

  2. #2
    SitePoint Enthusiast
    Join Date
    Mar 2005
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    indeed i've tried with code such as:

    if (eleId == 'fen1') { parent....

    it works but i thought there were an easiest way...


Bookmarks

Posting Permissions

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