treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Cross Domain iFrame Resizing Issue

  • Hello everyone,

    I'm trying to implement Chris' Cross Domain iframe Resizing trick http://css-tricks.com/cross-domain-iframe-resizing/.

    I almost have it working, but was hoping to get a bit of help troubleshooting.

    The test page is: http://www.nwcenter.org/taleo/jobs_jtd.htm

    The error I get in FireBug is: "frameId is undefined"

    Not really sure how to get past this one.

    Any ideas?

    Many thanks,
    Jacob
  • I've made a bunch of progress on this over night.

    What I've found:
    the iframe url is: http://tbe.taleo.net/NA12/ats/careers/s ... nFrame=yes

    The ?org=... seems to be confusing this url hash parsing method, which puts a kybosh on the iframe resizing.

    the contents of the iframe are multi-paged

    when a link is clicked that would normally take the user to a new page within the iframe, the new page loads and then immediately redirects to the original page.
    Is this a shortcoming of this technique? or is there a workaround?

    Many thanks to anyone who has any ideas.

    -Jacob
  • One last comment on the internal iframe page navigation:

    When a link is clicked, another string is added to the url.

    So, instead of: http://tbe.taleo.net/NA12/ats/careers/s ... nFrame=yes, it is pointing to:
    http://tbe.taleo.net/NA12/ats/careers/s ... es&rid=401

    -Jacob