473,327 Members | 2,012 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Updating main page with iframe

3
Hello,
I have an iframe inside my main page, this main page has a form with several textareas.
I would like that when I click on a link in my iframe, a text associated with this link would insert into the textarea that has the focus in my main page.

Is this possible? this will be sort of a clipboard facility for my users.

your help is very much appreciated.
thanks
Mar 1 '07 #1
1 1396
Hello,
I have an iframe inside my main page, this main page has a form with several textareas.
I would like that when I click on a link in my iframe, a text associated with this link would insert into the textarea that has the focus in my main page.

Is this possible? this will be sort of a clipboard facility for my users.

your help is very much appreciated.
thanks
If I understand right your problem, in my opinion this is the solution:

<textarea id='mytextarea'></textarea>
<iframe>
<a href="#" onclick=myfunction('this is my text')>mylink</a>
</iframe>
<script>
function myfunction(text)
{
document.parent.getElementById('mytextarea').inner HTML=text;
}
</script>
Mar 2 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Antonio Delgado | last post by:
I was wondering if anybody could help me out a little. My goal is to update some information about a system every 2-5 seconds. The information needs to be displayed in some sort of table, but the...
3
by: Guogang | last post by:
In a .aspx web page, I created a button that will do a postback What I want to do: let the button do postback, and process the postback data in my code behind, but the client side's page won't be...
8
by: TC | last post by:
Hello, I am making an asynchronous call to a webservice and trying to update the web page with the results. The page is not updating. Does anybody know why??? Below is my code:
0
by: Oswaldo Rod?guez via .NET 247 | last post by:
Hi.. i have two aspx pages(master.aspx, detail.aspx). Both ofthem contain a datagrid. In master.aspx, i have an iframe thatloads detail.aspx, and in the master.aspx datagrid i have abuttonColumn. The...
0
by: Dennis | last post by:
Hello, I have an aspx page with a Multipage webcontrol. In 1 Pageview i have an iframe which directs to another aspx (InfoEdit) page. On this InfoEdit page i have a datagrid in which data can be...
2
by: hgl1976 | last post by:
Hi! I have a web page that from a query that loads the search result into an iframe on the page. In the search result inside the iframe i would like to be able to load content into div tag that...
6
by: jojoba | last post by:
hi everyone! i'm serving up an asp.net page using ajax futures. long story short: i have two update panels. one has a webpage in it (e.g. www.google.com). the other has an image inside of a...
16
by: Stevo | last post by:
I'm guessing this is a laughably obvious answer to many here, but it's not to me (and I don't have a server or any knowledge of PHP to be able to try it). It's not strictly a PHP question, but...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.