473,372 Members | 1,365 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,372 software developers and data experts.

IFRAME AS FORM TARGET! POSSIBLE?

Hi all,

does somebody know how to target the answer of a form to an iframe (in
ie expecially)???? I use iframe as temporary object to redirect the content
do a layer built with a <div...> tag; this is possible with an hiperlink:
clicking on it i can change the layer content whit a file in a URL location
storing the answer first in the iframe and then sending is content to the
<div...>. Here following the code:

<script>
function showText(){
theText = window.textFile.document.body.innerHTML;
MM_setTextOfLayer('Layer1','',theText)
if(theText>"")
alert(theText);
}
</script>

[...]

<div id="Layer1" style="position:absolute; left:218px; top:120px;
width:205px; height:134px; z-index:1"></div>
<p onClick="window.textFile.location = 'testo.txt'">prova </p>

testo.txt is just a static file; now i need to upgrad the final <div...>
layer with the answer of a form gived by a php script who accep GCI variable
.... i need to target the temp <iframe...> with a real html form. Somebody
know how can i do?????

Thank you very much. Federico.

Jul 20 '05 #1
1 13794
The target attribute of the form must match the name attribute of the IFrame. But it won't work in anything but IE (as I recall.) So you should dynamically set the target on document load after determining that the browser has an implementation of the object model that treats IFrames in the same way it treats regular frames (check the frames collection of the window for the IFrame element.)

"Federico Bari" <fe********@tiscali.it> wrote in message news:bj**********@lacerta.tiscalinet.it...
| Hi all,
|
| does somebody know how to target the answer of a form to an iframe (in
| ie expecially)???? I use iframe as temporary object to redirect the content
| do a layer built with a <div...> tag; this is possible with an hiperlink:
| clicking on it i can change the layer content whit a file in a URL location
| storing the answer first in the iframe and then sending is content to the
| <div...>. Here following the code:
|
| <script>
| function showText(){
| theText = window.textFile.document.body.innerHTML;
| MM_setTextOfLayer('Layer1','',theText)
| if(theText>"")
| alert(theText);
| }
| </script>
|
| [...]
|
| <div id="Layer1" style="position:absolute; left:218px; top:120px;
| width:205px; height:134px; z-index:1"></div>
| <p onClick="window.textFile.location = 'testo.txt'">prova </p>
|
| testo.txt is just a static file; now i need to upgrad the final <div...>
| layer with the answer of a form gived by a php script who accep GCI variable
| ... i need to target the temp <iframe...> with a real html form. Somebody
| know how can i do?????
|
| Thank you very much. Federico.
|
|
|

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: doug | last post by:
Hi, Just wondering how (or if it's possible) to post from my page to another .asp page within an iframe? Hopefully that question make sense? I know how to launch load a page with an iframe,...
7
by: Christopher J. Hahn | last post by:
I'm trying to use a script-generated form to submit to a script-generated iframe. The problem I'm running into is that the iframe is not assuming the name I assign it. IE6 on Win2000. FF1.0.2+...
1
by: Naim | last post by:
hi I have this situation where I need to do some server side execution without posting the page. I used to do this in asp using IFrame, but it's not working in asp.net. I had a form and...
2
by: bhosle | last post by:
hi ppl.. i'm new to jsp and iframes.. and here is what i want to do - take input from the user in a form, and load an iframe with that url.. any suggestions? thx.. AB
1
by: XP | last post by:
Hello Everyone, I was stuck with this really frustrating problem for sometime. Let me explain what I am trying to achieve: There is a form and an inner iframe. The form's target is set to the...
4
by: linuskamb | last post by:
I have a problem which is a slight twist on discussions I have seen previously here and elsewhere. I have a form with an input select combo box whose target is an internal static iframe. The form...
0
by: tequilamala | last post by:
I have an Iframe in one of the pages i am developing... the iframe is suppose to scroll up and down and the links target the iframe. the problem is that the iframe scrolls side to side on internet...
1
by: epower | last post by:
Hello, I am working on an ASP .NET application in Visual Studio 2005 and running IE7. This application has a page that contains an iframe which loads an .aspx page and hyperlinks that...
23
by: vunet | last post by:
It is recommended by some sources I found to create IFrames in IE using document.createElement('<iframe src="#">') instead of document.createElement('iframe'). Why and what browser versions to...
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
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.