New user. Need help. Very frustrated with a script.

Discussion in 'Scripts' started by omegax80, Oct 24, 2010.

  1. #1
    Hello.

    My site is www.michaeldworkis.com/TheNew

    I have a dropdown script that loads the selected page in frame I1. I want links clicked from that frame to load into I2, but instead it always opens in a new window. I HAD the WORKING, and then something happened, I do not know what, and now it always opens in a new window and not frame I2.

    Can someone please help me out?
     
    omegax80, Oct 24, 2010 IP
  2. scriptinstaller

    scriptinstaller Peon

    Messages:
    109
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Both have targets of "main" which can't be right... target is your problem
     
    scriptinstaller, Oct 24, 2010 IP
  3. omegax80

    omegax80 Active Member

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    86
    #3
    Both = Which files? Can you give me more details as to what needs to be changed?
     
    omegax80, Oct 24, 2010 IP
  4. jivens

    jivens Peon

    Messages:
    254
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i agree with scriptinstaller.
     
    jivens, Oct 24, 2010 IP
  5. omegax80

    omegax80 Active Member

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    86
    #5
    Ok... but I need some help to figure out how to make it work...
     
    omegax80, Oct 24, 2010 IP
  6. omegax80

    omegax80 Active Member

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    86
    #6
    Can one of you point me in the right direction? all my links are directed to I2, but does not open there. What needs to be changed, and what does it need to be changed to?
     
    omegax80, Oct 24, 2010 IP
  7. scriptinstaller

    scriptinstaller Peon

    Messages:
    109
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    its your html code your links have target tagsto point to the "frame".

    Look for target, you will see both links are to open in target main, change the target of the first window to open in the name of the other specified frame
     
    scriptinstaller, Oct 24, 2010 IP
  8. omegax80

    omegax80 Active Member

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    86
    #8
    made changes, but still does not seem to work. If you noticed, the link in the first frame does open in the second. But yet, when I choose an option from the drop down menu, it opens in the first frame, but then a link there opens in a new window.

    Any other ideas?
     
    omegax80, Oct 24, 2010 IP
  9. scriptinstaller

    scriptinstaller Peon

    Messages:
    109
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I don't think target is a valid property of <iframe>
    also seen it used somewhere else incorrectly

    I would start google for examples on iframes, i would never use an iframe personally, so i hav no experience
    you do need a base ref, and you need to assign, target is only used in the <a> tag
     
    scriptinstaller, Oct 24, 2010 IP
  10. omegax80

    omegax80 Active Member

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    86
    #10
    I looked online, and it seems correct.
    Maybe there is something wrong with the page loading in I1?

    I'm not the best at scripts, but it was working at one point, and now it isn't. Could it be something in the pages that load in I1?

    Sorry for being a pain, but its frustrating when something that was working broke and I can't figure out why.
     
    omegax80, Oct 25, 2010 IP
  11. scriptinstaller

    scriptinstaller Peon

    Messages:
    109
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    scriptinstaller, Oct 25, 2010 IP