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 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Oct 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Hi. I have a question:

    In IFrame, is it possible to set the location in the src page from which the iframe will start feeding?
    I mean, Iframe usally takes the area of its width and height, starting with the left top corner of the src page; is it possible to start from another point in the src page, without accessing the src page code?

    Maybe with another element/tag (of HTML/JS/ASP.net)?
    Is it possible to set the scroll of the Iframe exactly to the desirable point (through the code)?

  • #2
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You should be able to use Javascript.

    window.IFRAME_NAME.scrollTo(PixelsFromLeft,PixelsFromTop);

  • #3
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,300
    Thanks
    28
    Thanked 275 Times in 269 Posts
    You could also reference an ID within the URI: page.html#elementID.
    For every complex problem, there is an answer that is clear, simple, and wrong.

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    But since you are trying to do this in the first place it seems like you might not have any control of the 2nd page therefore you will get a "Permission Denied" error from the JS and you obviously won't have an anchor where you want it to be because you won't be able to edit that page. If you are able to edit the page then the above solutions would work but you might as well make a page with just the information you want on it.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    New to the CF scene
    Join Date
    Oct 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ye, it doesn't work. Any other options, that work on a page which I don't have access to?
    Last edited by Uripo; 11-01-2006 at 03:28 PM.

  • #6
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    What is the page and what part are you trying to get from it?
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #7
    New to the CF scene
    Join Date
    Oct 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Not something specific. I need an Iframe with the ablity I mentioned before, and not something specific for a single page.
    Is it possible?


  •  

    Posting Permissions

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