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 3 of 3
  1. #1
    Join Date
    Jul 2008
    Location
    Gloucester
    Posts
    976
    Tokens
    0

    Default Removing code from a site shown within a frame

    My friend and I are currently working on a project the main part of which would be displaying webpages within our site but I have a question:

    There are certain objects within the pages we wish to display that we want to remove without going through every single page that would be used (as there are thousands of them) and remove them manually, is there a code we could put somewhere that would remove certain parts or block them from being loaded?

    Thanks





  2. #2
    Join Date
    Oct 2006
    Location
    Peterborough, UK
    Posts
    3,855
    Tokens
    216

    Latest Awards:

    Default

    If you loaded it using js and put it in a div (ajax if you want) then yes, but an iframe, not that I know of. Give it a test, something like this I'd assume:

    var theframe = document.getElementById('iframeid').innerHTML;
    var thehtml = theframe.replace(/whatever/i, 'whatever');
    document.getElementById('iframeid').innerHTML = thehtml;

    I think something like that should do it for an iframe, I'm not sure though.


    visit my internet web site on the internet
    http://dong.engineer/
    it is just videos by bill wurtz videos you have been warned

  3. #3
    Join Date
    Jul 2008
    Location
    Gloucester
    Posts
    976
    Tokens
    0

    Default

    If I did it with javascript would the external page that loads still let you log in (as it may require it)?





Posting Permissions

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