Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 10 of 10
  1. #1
    Join Date
    Jun 2008
    Location
    England, On a beach somewhere
    Posts
    2,483
    Tokens
    691

    Latest Awards:

    Default Why does this happen?

    Hey Guys! Right, I was wondering why when I use iframes it makes new pages popup in ie and firefox. If anyone can't help I'll just do javascript or something.

  2. #2
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Quote Originally Posted by Mickword View Post
    Hey Guys! Right, I was wondering why when I use iframes it makes new pages popup in ie and firefox. If anyone can't help I'll just do javascript or something.
    Do you mean links IN the IFrame open in a new page OR do you mean links that should be opening in the IFrame open in a new page? If it's the former try setting the links "target" attribute to "self" or if it's the latter then make sure the links "target" attribute is set to the IFrame's name.
    Last edited by Invent; 29-12-2009 at 06:09 PM.

  3. #3
    Join Date
    Apr 2008
    Location
    Derby
    Posts
    4,668
    Tokens
    262

    Latest Awards:

    Default

    use php includes, soo much simpler

  4. #4
    Join Date
    Jun 2008
    Location
    England, On a beach somewhere
    Posts
    2,483
    Tokens
    691

    Latest Awards:

    Default

    Yeah, the links should like to the iframe, I have done the target but it doesnt work?

  5. #5
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    You must have done it wrong, can you post your code?

  6. #6
    Join Date
    Jun 2008
    Location
    England, On a beach somewhere
    Posts
    2,483
    Tokens
    691

    Latest Awards:

    Default

    CBA lol. Ill just do what apps said. .

  7. #7
    Join Date
    Jun 2008
    Location
    England, On a beach somewhere
    Posts
    2,483
    Tokens
    691

    Latest Awards:

    Default

    Soz for double post, but I am now using Dynamic Ajax Content and it isnt working aswell :S.

  8. #8
    Join Date
    Jul 2004
    Location
    Ottawa, Canada
    Posts
    1,363
    Tokens
    106
    Habbo
    Yonder

    Latest Awards:

    Default

    Well sorry but we cant help you if you "cba" to post your code, it is hard to guess what we are trying to fix.

  9. #9
    Join Date
    Sep 2009
    Location
    Hull
    Posts
    827
    Tokens
    0

    Latest Awards:

    Default

    <iframe scr="lol.htm" id="iframe" name="content" > </iframe>

    the tarfet name wud be "content"



    Lew.
    Im not here to be loved, I love to be hated :-}


  10. #10
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Quote Originally Posted by Lewiie15 View Post
    <iframe scr="lol.htm" id="iframe" name="content" > </iframe>

    the tarfet name wud be "content"



    Lew.
    Erm... No.

    HTML Code:
    <iframe src="page.php" class="iframe class" style="border: 0; width: 100px; height: 100px;" name="iframe">
      <p>Sorry, your browser does not support iframes.</p>
    </iframe>
    To link to the iframe

    HTML Code:
    <a href="page.php" target="iframe">lol</a>
    target in the link = name of the iframe.

Posting Permissions

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