473,748 Members | 10,737 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1485
In article <db************ ********@comcas t.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.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" <hy**********@h otmail.com> wrote in message
news:MP******** *************** *@news.individu al.net...
In article <db************ ********@comcas t.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_************ ********@comcas t.com>, Hugh G. Johnson says...
"Hywel" <hy**********@h otmail.com> wrote in message
news:MP******** *************** *@news.individu al.net...
In article <db************ ********@comcas t.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.a spx 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
4573
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 -> load PAGE2 with iframe -> iframe content is specified on link = whole PAGE2 with iframe with desired content... Please help...
6
4760
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 up using iframe and it is working fine. On mouseout event of each cell I have destroyed the created the iframe. This is working fine. But if I try to move the cursor over the iframe, the mouseout event is fired and my iframe is vanishing off.
11
4073
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'" onMouseOut="this.style.background='#00ff00'" onClick="window.frames.eventsDisplay.location = 'MB2eventlistTimeline.php?movieID=<?php echo $movie->movieID;?>&events=<?php echo $timeline->eventCategory;?>'; parent.playClip(<?php echo $timeline->eventID?>, <?php echo...
2
3535
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 on the datasheet and it will pop up Employee Form. To pop up Employee Form by double clicking on the names are easy, but the trick is I want the Employee Form shows the specific name that I wanted (or the specific name record), normally it will open...
0
8830
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9541
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9370
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9321
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8242
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2782
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.