LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   capture parameter from iframe to main.html (http://www.linuxquestions.org/questions/programming-9/capture-parameter-from-iframe-to-main-html-829020/)

shifter 08-28-2010 11:56 AM

capture parameter from iframe to main.html
 
I have the following HTML code in main.html:
Quote:

.............
.............
<tr align="right">
<td width="50%">
...
...
...
</td>
<td width="50%">
<iframe src="../createproject.html width="100%" height="400pt" frameborder="0" scrolling="no">
</iframe>
</td>
</tr>
...........
...........
and createproject.html:
Quote:

<html>
<head>
<link rel="stylesheet" type="text/css" href="../user.css" />
<script type="text/javascript" src="../projects.js"></script>
<head>
<body onload="return capture_profile()">
<div align="right" class="data-font">
<form action="/cgi-bin/createproj.cgi" method="POST">
<fieldset>
.......
.......
.......
</fieldset>
</form><br/>
</div>
</body>
</html>
I'd like capture with capture_profile() function in createproject.html a value into main.html page.
How can I solve this problem with javascript?

smoker 08-28-2010 05:21 PM

top.object.property.value = this.object.property.value
or
parent.object.property.value = self.object.property.value

http://www.howtocreate.co.uk/tutoria...wserinspecific

Obviously you will have to create the objects and use their real names and properties instead of just object.property


All times are GMT -5. The time now is 01:03 PM.