Results 1 to 7 of 7

Thread: JQuery question about 2 diferent versions

  1. #1
    Luis Cortes
    Guest

    Default JQuery question about 2 diferent versions

    Hello again.

    Well,you know me now I'm the one with lots of questions

    I inserted a inline frame and because I need that the height adjust
    automaticaly, used the jquery "thing"...
    That worked ok, but I started to notice some strange errors.
    Went to see, and found that the page that I want to put inside the inline
    frame has allreadythe reference of other jquery version.
    So, I have a page with jquery that I want to put inside other page that need
    jquery to work like I want.
    Is there any chance of do that?

    My other message (Inline Frame question about size of it) has all help that
    you gave to me.

    Thanks in advance
    Luis Cortes


  2. #2
    Technology Ideas
    Guest

    Default Re: JQuery question about 2 diferent versions

    Luis

    Posted previously - another way to do this without jQuery is as follows
    Credit to Paul from Adendum:

    Automatic iFrame Expansion

    1. Put the following into "Between Head Tags" of your page

    <script type="text/javascript">
    function autoIframe(frameId){
    try{
    frame = document.getElementById(frameId);
    innerDoc = (frame.contentDocument) ? frame.contentDocument :
    frame.contentWindow.document;
    objToResize = (frame.style) ? frame.style : frame;
    objToResize.height = innerDoc.body.scrollHeight + 10;
    }
    catch(err){
    window.status = err.message;
    }
    }
    </script>


    2. Add this to the "Inside Tag" of the iFrame link

    onload="if (window.parent && window.parent.autoIframe)
    {window.parent.autoIframe('InlineFrame1');}">


    Change the "InlineFrame1" so it matches the name of your Inline Frame
    Properties name (if you have changed it).

    You don't get to see it work in preview mode but it does when published.

    Get from http://www.kaali.co.uk/index.pl?art=94

    --
    Andrew Baker
    Technology Ideas
    http://www.technologyideas.com.au
    Australia

    "Luis Cortes" <lcortes.pt@gmail.com> wrote in message
    news:hof9ch$5ve$1@DailyPlanet.news.netobjects.com. ..
    > Hello again.
    >
    > Well,you know me now I'm the one with lots of questions
    >
    > I inserted a inline frame and because I need that the height adjust
    > automaticaly, used the jquery "thing"...
    > That worked ok, but I started to notice some strange errors.
    > Went to see, and found that the page that I want to put inside the inline
    > frame has allreadythe reference of other jquery version.
    > So, I have a page with jquery that I want to put inside other page that
    > need jquery to work like I want.
    > Is there any chance of do that?
    >
    > My other message (Inline Frame question about size of it) has all help
    > that you gave to me.
    >
    > Thanks in advance
    > Luis Cortes
    >




  3. #3
    Luis Cortes
    Guest

    Default Re: JQuery question about 2 diferent versions

    Hello my friend.

    Another nice tip. Thank you.

    I tryed and worked fine.
    The "problem" stays the same... some strange errors...
    I tryed to access the page that I put inside the iframe and some times it
    gives me errors also.
    Maybe this is because I'm using a free web host (xtreemhost.com)

    Well, because this is becaming "serious" I'll think of a payd host now

    Thank you again
    Luis Cortes


    "Technology Ideas" <info@(remove)technologyideas.com.au> escreveu na
    mensagem news:hof9ug$678$1@DailyPlanet.news.netobjects.com. ..
    > Luis
    >
    > Posted previously - another way to do this without jQuery is as follows
    > Credit to Paul from Adendum:
    >
    > Automatic iFrame Expansion
    >
    > 1. Put the following into "Between Head Tags" of your page
    >
    > <script type="text/javascript">
    > function autoIframe(frameId){
    > try{
    > frame = document.getElementById(frameId);
    > innerDoc = (frame.contentDocument) ? frame.contentDocument :
    > frame.contentWindow.document;
    > objToResize = (frame.style) ? frame.style : frame;
    > objToResize.height = innerDoc.body.scrollHeight + 10;
    > }
    > catch(err){
    > window.status = err.message;
    > }
    > }
    > </script>
    >
    >
    > 2. Add this to the "Inside Tag" of the iFrame link
    >
    > onload="if (window.parent && window.parent.autoIframe)
    > {window.parent.autoIframe('InlineFrame1');}">
    >
    >
    > Change the "InlineFrame1" so it matches the name of your Inline Frame
    > Properties name (if you have changed it).
    >
    > You don't get to see it work in preview mode but it does when published.
    >
    > Get from http://www.kaali.co.uk/index.pl?art=94
    >
    > --
    > Andrew Baker
    > Technology Ideas
    > http://www.technologyideas.com.au
    > Australia
    >
    > "Luis Cortes" <lcortes.pt@gmail.com> wrote in message
    > news:hof9ch$5ve$1@DailyPlanet.news.netobjects.com. ..
    >> Hello again.
    >>
    >> Well,you know me now I'm the one with lots of questions
    >>
    >> I inserted a inline frame and because I need that the height adjust
    >> automaticaly, used the jquery "thing"...
    >> That worked ok, but I started to notice some strange errors.
    >> Went to see, and found that the page that I want to put inside the inline
    >> frame has allreadythe reference of other jquery version.
    >> So, I have a page with jquery that I want to put inside other page that
    >> need jquery to work like I want.
    >> Is there any chance of do that?
    >>
    >> My other message (Inline Frame question about size of it) has all help
    >> that you gave to me.
    >>
    >> Thanks in advance
    >> Luis Cortes
    >>

    >
    >



  4. #4
    Luis Cortes
    Guest

    Default Re: JQuery question about 2 diferent versions (SOLVED)

    OK, the problem is solved.
    I'm just writing here because it could help someone in future.

    The problem that I ha was that the page that I would like to inlcude in
    IFrame has already jQuery component, so when I had another to the main page
    some conflics (that I dont understand) appeared.

    Then I had another good tip and tryed it but the error was the same. Now, I
    had some extra time and try to find out whats wrong and every thing is
    working ok.

    Because I have a free host service, it is so slow that the changes that I
    made now apear 2 or 3 houres later
    By the way, I'm seeking a paid (but no much) web host service that allow me
    to have 3 different domains (sites)

    Thank you again to all
    you are great

    Luis Cortes

    "Technology Ideas" <info@(remove)technologyideas.com.au> escreveu na
    mensagem news:hof9ug$678$1@DailyPlanet.news.netobjects.com. ..
    > Luis
    >
    > Posted previously - another way to do this without jQuery is as follows
    > Credit to Paul from Adendum:
    >
    > Automatic iFrame Expansion
    >
    > 1. Put the following into "Between Head Tags" of your page
    >
    > <script type="text/javascript">
    > function autoIframe(frameId){
    > try{
    > frame = document.getElementById(frameId);
    > innerDoc = (frame.contentDocument) ? frame.contentDocument :
    > frame.contentWindow.document;
    > objToResize = (frame.style) ? frame.style : frame;
    > objToResize.height = innerDoc.body.scrollHeight + 10;
    > }
    > catch(err){
    > window.status = err.message;
    > }
    > }
    > </script>
    >
    >
    > 2. Add this to the "Inside Tag" of the iFrame link
    >
    > onload="if (window.parent && window.parent.autoIframe)
    > {window.parent.autoIframe('InlineFrame1');}">
    >
    >
    > Change the "InlineFrame1" so it matches the name of your Inline Frame
    > Properties name (if you have changed it).
    >
    > You don't get to see it work in preview mode but it does when published.
    >
    > Get from http://www.kaali.co.uk/index.pl?art=94
    >
    > --
    > Andrew Baker
    > Technology Ideas
    > http://www.technologyideas.com.au
    > Australia
    >
    > "Luis Cortes" <lcortes.pt@gmail.com> wrote in message
    > news:hof9ch$5ve$1@DailyPlanet.news.netobjects.com. ..
    >> Hello again.
    >>
    >> Well,you know me now I'm the one with lots of questions
    >>
    >> I inserted a inline frame and because I need that the height adjust
    >> automaticaly, used the jquery "thing"...
    >> That worked ok, but I started to notice some strange errors.
    >> Went to see, and found that the page that I want to put inside the inline
    >> frame has allreadythe reference of other jquery version.
    >> So, I have a page with jquery that I want to put inside other page that
    >> need jquery to work like I want.
    >> Is there any chance of do that?
    >>
    >> My other message (Inline Frame question about size of it) has all help
    >> that you gave to me.
    >>
    >> Thanks in advance
    >> Luis Cortes
    >>

    >
    >



  5. #5
    Adendum
    Guest

    Default Re: JQuery question about 2 diferent versions

    Luis, Andrew,

    Firstly I can't take credit as it's not my code and secondly I'm not
    using it to control/manage iFrame heights as I didn't know it even did that!

    The reason I am using it is to ensure that if someone uses Google or any
    search engine and the search results point to the iFrame content I
    wanted the holding page to load rather than the iFrame, otherwise the
    visitor would be faced with no navigation.

    Paul

    On 25/03/2010 09:14, Technology Ideas wrote:
    > Luis
    >
    > Posted previously - another way to do this without jQuery is as follows
    > Credit to Paul from Adendum:
    >
    > Automatic iFrame Expansion
    >
    > 1. Put the following into "Between Head Tags" of your page
    >
    > <script type="text/javascript">
    > function autoIframe(frameId){
    > try{
    > frame = document.getElementById(frameId);
    > innerDoc = (frame.contentDocument) ? frame.contentDocument :
    > frame.contentWindow.document;
    > objToResize = (frame.style) ? frame.style : frame;
    > objToResize.height = innerDoc.body.scrollHeight + 10;
    > }
    > catch(err){
    > window.status = err.message;
    > }
    > }
    > </script>
    >
    >
    > 2. Add this to the "Inside Tag" of the iFrame link
    >
    > onload="if (window.parent&& window.parent.autoIframe)
    > {window.parent.autoIframe('InlineFrame1');}">
    >
    >
    > Change the "InlineFrame1" so it matches the name of your Inline Frame
    > Properties name (if you have changed it).
    >
    > You don't get to see it work in preview mode but it does when published.
    >
    > Get from http://www.kaali.co.uk/index.pl?art=94
    >


  6. #6
    Technology Ideas
    Guest

    Default Re: JQuery question about 2 diferent versions

    Just to clarify, this really only works with internal links in NOF, not
    external URLs as you will possibly get script conflicts. It does work
    perfectly for internal iFrames though, as long as the width stays the same;
    the length automatically changes.
    --
    Andrew Baker
    Technology Ideas
    http://www.technologyideas.com.au
    Australia

    "Adendum" <Adendum@hotmail.co.uk> wrote in message
    news:hogldc$rhm$1@DailyPlanet.news.netobjects.com. ..
    > Luis, Andrew,
    >
    > Firstly I can't take credit as it's not my code and secondly I'm not using
    > it to control/manage iFrame heights as I didn't know it even did that!
    >
    > The reason I am using it is to ensure that if someone uses Google or any
    > search engine and the search results point to the iFrame content I wanted
    > the holding page to load rather than the iFrame, otherwise the visitor
    > would be faced with no navigation.
    >
    > Paul
    >
    > On 25/03/2010 09:14, Technology Ideas wrote:
    >> Luis
    >>
    >> Posted previously - another way to do this without jQuery is as follows
    >> Credit to Paul from Adendum:
    >>
    >> Automatic iFrame Expansion
    >>
    >> 1. Put the following into "Between Head Tags" of your page
    >>
    >> <script type="text/javascript">
    >> function autoIframe(frameId){
    >> try{
    >> frame = document.getElementById(frameId);
    >> innerDoc = (frame.contentDocument) ? frame.contentDocument :
    >> frame.contentWindow.document;
    >> objToResize = (frame.style) ? frame.style : frame;
    >> objToResize.height = innerDoc.body.scrollHeight + 10;
    >> }
    >> catch(err){
    >> window.status = err.message;
    >> }
    >> }
    >> </script>
    >>
    >>
    >> 2. Add this to the "Inside Tag" of the iFrame link
    >>
    >> onload="if (window.parent&& window.parent.autoIframe)
    >> {window.parent.autoIframe('InlineFrame1');}">
    >>
    >>
    >> Change the "InlineFrame1" so it matches the name of your Inline Frame
    >> Properties name (if you have changed it).
    >>
    >> You don't get to see it work in preview mode but it does when published.
    >>
    >> Get from http://www.kaali.co.uk/index.pl?art=94
    >>




  7. #7

    Default

    Do you love creating cartoons, but are just a beginner now and you want to learn more about this field? If yes, then it is time to install this amazing app known as Flipaclip within your device. Yes, this device is simple to download and can download for making some stunning artwork online. You do not need to be concerned about anything since this app will help you to create the finest illustrations for the cartoon. It has everything, every tool and thing that is required for making an advanced cartoon creature. The great thing about the program is that it will aid you in creating your cartoon creature even if you aren't sure how to make that. It will provide you with the proper guide through which you can make the creature at no cost. https://vidmateapkdownloadoldversion...apps-download/

Posting Permissions

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