LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 08-28-2010, 12:56 PM   #1
shifter
Member
 
Registered: May 2006
Distribution: Slackware, DragonFly
Posts: 233

Rep: Reputation: 30
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?
 
Old 08-28-2010, 06:21 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
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

Last edited by smoker; 08-28-2010 at 06:24 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parameter passing in HTML john2 Programming 3 06-12-2010 05:22 PM
A virus changed all my index files with iframe, how to remove that iframe line? Farman Linux - Security 10 07-16-2009 09:40 AM
force iframe content to remain in iframe? frieza Programming 1 09-17-2008 07:29 AM
how to change and pass thread parameter back to main dragondad Programming 3 09-19-2005 02:58 PM
How to change function parameter value and return back to the main shell program Bassam Linux - General 1 01-26-2004 11:02 AM


All times are GMT -5. The time now is 08:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration