WordPress.org

Ready to get started?Download WordPress

Forums

Advanced iFrame
[resolved] Selecting id to show (13 posts)

  1. robsanders
    Member
    Posted 1 year ago #

    Looks like the right plugin for my site.

    Trying to get just the main part of this site (http://mycricket.cricket.com.au/common/pages/public/rv/SeasonResults.aspx?entityid=445) and to select the class "primary-content" using class="primary-content" in my short code. Where am i going wrong?

    Thanks.

    http://wordpress.org/extend/plugins/advanced-iframe/

  2. mdempfle
    Member
    Plugin Author

    Posted 1 year ago #

    What do you want? because with
    class="primary-content"
    you only set the class primary-content to the iframe.

    If you want only to show this part you have to read the instructions in the settings and use the right shortcode (or configure it there).

  3. robsanders
    Member
    Posted 1 year ago #

    From what i have read, i tried to add the class of the section i only want to show in the "Javascript iframe onload options" under "Show only one element" and enter .primary-content but it did not seem to work.

  4. mdempfle
    Member
    Plugin Author

    Posted 1 year ago #

    what is the site the iframe is in?

  5. robsanders
    Member
    Posted 1 year ago #

    Hey mdempfle,

    The address is : http://kolonel.net/senior-seconds/

    Much appreciated if you can have a look to see what i am doing wrong.

    Regards
    Rob

  6. mdempfle
    Member
    Plugin Author

    Posted 1 year ago #

    Wrong is that they are on different domains and like the description says this function is only possible on the same domain because of security issues.
    But I'm planning a new function where you can only display a part of the iframe which also works across different domains.

  7. robsanders
    Member
    Posted 1 year ago #

    Thanks for checking that out mdempfle.

    How did you check that they were on different domains? I assumed they were on the same website domain.

    Thanks again, and look forward to your plans.

  8. mdempfle
    Member
    Plugin Author

    Posted 1 year ago #

  9. robsanders
    Member
    Posted 1 year ago #

    Hmmmm....

    I would have thought that the section of that website was what i could have show in the iframe. If you are going to have a different website inside the iframe wouldn't they always have different domains.

    Maybe i misunderstood the usage.

    Thanks anyway.

  10. mdempfle
    Member
    Plugin Author

    Posted 1 year ago #

    Different website yes - but many users e.g. want to show part of their own website also on a different page.

  11. robsanders
    Member
    Posted 11 months ago #

    Sorry to do this to you champ, but i really want to understand this correctly.

    I wanted to put the class .primary-content only from the page (http://mycricket.cricket.com.au/common/pages/public/rv/SeasonResults.aspx?entityid=445) into my site at http://kolonel.net/senior-seconds but don't understand why it can't.

    You make mention that the page is on a different domain than my website but isn't that the reason we want to use it on my website.

    Apologies for not getting this just trying to get a better understanding of this awesome concept.

    Rob

  12. robsanders
    Member
    Posted 11 months ago #

    Thought of a better solution.

    Want to re-size the source webpage in the iframe so it can fit without any scroll-bars. Is this possible?

    Played around with a couple parameters but couldn't quite get it right.

    Regards

  13. mdempfle
    Member
    Plugin Author

    Posted 11 months ago #

    You cannot modify a web page in an iframe if it is on a different domain.
    If this would be allowed you could modify a content from someone else which would be a real security issue.
    In the pro version of the advanced iframe plugin I have implemented a solution wher you can only show a defined area of an iframe.
    See http://codecanyon.net/item/advanced-iframe-pro/5344999

    Best, Michael

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags