473,699 Members | 2,752 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 1481
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
4572
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
4759
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
4067
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
8617
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
9035
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...
0
8884
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7751
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...
0
5875
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
4376
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3057
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2347
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2009
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.