How do I link to a specific record using iFrame?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hugh G. Johnson

    How do I link to a specific record using iFrame?

    I have a knowledgebase (KB) system I installed into my existing dynamicly
    driven site. I used iFrame to grab the KB and place it in the content area
    of the page. This works great, but I realize now that I can't reference a
    certain article, such as /article.aspx?id =10221. Adding the record number
    does nothing since the iFrame references the article.aspx.

    What can I do to pass a variable to the iFrame?

    Thanks!

    Hugh


  • Hywel

    #2
    Re: How do I link to a specific record using iFrame?

    In article <dbKdnQQ9pod8uR zcRVn-qw@comcast.com> , Hugh G. Johnson says...[color=blue]
    > I have a knowledgebase (KB) system I installed into my existing dynamicly
    > driven site. I used iFrame to grab the KB and place it in the content area
    > of the page. This works great, but I realize now that I can't reference a
    > certain article, such as /article.aspx?id =10221. Adding the record number
    > does nothing since the iFrame references the article.aspx.[/color]

    The code in article.aspx has to handle the ID.
    [color=blue]
    > What can I do to pass a variable to the iFrame?[/color]

    Just as you are doing. Is there any code in article.aspx to make any
    use of the ID you pass it?

    --
    Hywel


    Comment

    • Hugh G. Johnson

      #3
      Re: How do I link to a specific record using iFrame?

      Thank you Hywel.

      I'm not sure what the code would need to be since I have two pages that I am
      working with. The parent page is called knowledgebase.a spx and has the
      iframe script below. Would I need to put this in the parent page, or the
      iFrame below?:

      <SCRIPT language=JavaSc ript>
      <!--
      function calcHeight()
      {
      //find the height of the internal page
      var the_height =
      document.getEle mentById('the_i frame').content Window.document .body.scrollHei ght;

      //change the height of the iframe
      document.getEle mentById('the_i frame').height = the_height;
      }
      //-->
      </SCRIPT>
      <IFRAME id=the_iframe align=left src="/knowledgebase/default.aspx"
      frameBorder=0
      width="100%" scrolling=no onload=calcHeig ht();
      height=446>
      Houston, we have a problem. We got a bit ahead of ourselves and made this
      with iFrame browsers in mind. We're so sorry. Please visit the knowledge
      base directly <href="http://www.anydomain.c om/knowledgebase/">here.</a>
      </IFRAME>



      "Hywel" <hyweljenkins@h otmail.com> wrote in message
      news:MPG.1beb3b f8d6ef6dfa98991 6@news.individu al.net...[color=blue]
      > In article <dbKdnQQ9pod8uR zcRVn-qw@comcast.com> , Hugh G. Johnson says...[color=green]
      >> I have a knowledgebase (KB) system I installed into my existing dynamicly
      >> driven site. I used iFrame to grab the KB and place it in the content
      >> area
      >> of the page. This works great, but I realize now that I can't reference a
      >> certain article, such as /article.aspx?id =10221. Adding the record number
      >> does nothing since the iFrame references the article.aspx.[/color]
      >
      > The code in article.aspx has to handle the ID.
      >[color=green]
      >> What can I do to pass a variable to the iFrame?[/color]
      >
      > Just as you are doing. Is there any code in article.aspx to make any
      > use of the ID you pass it?
      >
      > --
      > Hywel
      >
      > http://sponsorhywel.org.uk/[/color]


      Comment

      • Hywel

        #4
        Re: How do I link to a specific record using iFrame?

        In article <v_KdnS5wba3arB zcRVn-jg@comcast.com> , Hugh G. Johnson says...[color=blue]
        > "Hywel" <hyweljenkins@h otmail.com> wrote in message
        > news:MPG.1beb3b f8d6ef6dfa98991 6@news.individu al.net...[color=green]
        > > In article <dbKdnQQ9pod8uR zcRVn-qw@comcast.com> , Hugh G. Johnson says...[color=darkred]
        > >> I have a knowledgebase (KB) system I installed into my existing dynamicly
        > >> driven site. I used iFrame to grab the KB and place it in the content
        > >> area
        > >> of the page. This works great, but I realize now that I can't reference a
        > >> certain article, such as /article.aspx?id =10221. Adding the record number
        > >> does nothing since the iFrame references the article.aspx.[/color]
        > >
        > > The code in article.aspx has to handle the ID.
        > >[color=darkred]
        > >> What can I do to pass a variable to the iFrame?[/color]
        > >
        > > Just as you are doing. Is there any code in article.aspx to make any
        > > use of the ID you pass it?[/color][/color]
        [color=blue]
        > Thank you Hywel.
        >
        > I'm not sure what the code would need to be since I have two pages that I am
        > working with. The parent page is called knowledgebase.a spx and has the
        > iframe script below. Would I need to put this in the parent page, or the
        > iFrame below?:[/color]

        That client-side JS is probably irrelevant - you need to edit the
        server-side code.

        --
        Hywel


        Comment

        Working...