472,791 Members | 1,344 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,791 software developers and data experts.

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
Jul 23 '05 #1
3 1435
In article <db********************@comcast.com>, Hugh G. Johnson says...
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.
The code in article.aspx has to handle the ID.
What can I do to pass a variable to the iFrame?


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/
Jul 23 '05 #2
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.aspx and has the
iframe script below. Would I need to put this in the parent page, or the
iFrame below?:

<SCRIPT language=JavaScript>
<!--
function calcHeight()
{
//find the height of the internal page
var the_height =
document.getElementById('the_iframe').contentWindo w.document.body.scrollHeight;

//change the height of the iframe
document.getElementById('the_iframe').height = the_height;
}
//-->
</SCRIPT>
<IFRAME id=the_iframe align=left src="/knowledgebase/default.aspx"
frameBorder=0
width="100%" scrolling=no onload=calcHeight();
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.com/knowledgebase/">here.</a>
</IFRAME>

"Hywel" <hy**********@hotmail.com> wrote in message
news:MP************************@news.individual.ne t...
In article <db********************@comcast.com>, Hugh G. Johnson says...
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.


The code in article.aspx has to handle the ID.
What can I do to pass a variable to the iFrame?


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/

Jul 23 '05 #3
In article <v_********************@comcast.com>, Hugh G. Johnson says...
"Hywel" <hy**********@hotmail.com> wrote in message
news:MP************************@news.individual.ne t...
In article <db********************@comcast.com>, Hugh G. Johnson says...
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.
The code in article.aspx has to handle the ID.
What can I do to pass a variable to the iFrame?


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

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.aspx and has the
iframe script below. Would I need to put this in the parent page, or the
iFrame below?:


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

--
Hywel

http://sponsorhywel.org.uk/
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: SigRob | last post by:
I have PAGE1 with the link to PAGE2 with iframe. (iframe load several naked html). I want to add directive to the link to point sprcific content of iframe. to make it clear link on PAGE1 ->...
6
by: jeet_sen | last post by:
Hi, I have generated a table and have attached a pop up to display at onmouseover event of each cell. For each cell the pop up will display cell specific detailed data. I have generated the pop...
11
by: nma | last post by:
Hi How can I make the anchor link once I do onclick? <td width="<?php echo ($cellwidth); ?>" height="17" bgcolor="#00ff00" onMouseOver="this.style.background ='red'" ...
2
by: eko99312 | last post by:
Let's say I have this form called Attendance List. The list was in datasheet form. In the list there were names and date checklist. The question is, I want to edit one of the names by double clicking...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.