The moose likes HTML, CSS and JavaScript and the fly likes IFRAME with POST Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "IFRAME with POST" Watch "IFRAME with POST" New topic
Author

IFRAME with POST

Srinivas Ivaturi
Ranch Hand

Joined: Jan 28, 2003
Posts: 50
Hi
I have two questions Lemme post one by one.
First Question:
----------------
Ex: <iFRAME src="test.html"></iFRAME>
The above code brings the test.html code into my current page as Frame.
I dont want to give html page or something. I want to add some data between the <iFRAME> tag, Is it possible??
Ex: <iFrame> Test Data </iFrame> --> Is it valid?? For me in browser nothing is displayed.
Second Question:
----------------
If we right click on the iFRAME it shows the entire URL from where the data has come including parameters. Instead of this I want to post the data to the target html page. Is it possible? if so please tell me.
Ex:
<iFRAME src="test.html?uName=test&passWord=test"></iFRAME>
I dont want that parameters to be shown when I right click so I want to post that Data using JavaScript. Is there anyway please tell me.

Thanks for your time in advance
Srinvias Ivaturi.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
write content into a iframe with the code in the link:
http://webxpertz.net/forums/showthread.php?t=28700
If you put the paramters in a query string, then people will be able to see them. You can reference them off of the parent page if you stick them in a hidden element or if you are posting a form then you can use the target attribute and use the iframes name. target="theName"
Eric
 
IntelliJ Java IDE
 
subject: IFRAME with POST
 
Threads others viewed
confused between attributes and parameters
Having trouble with javascript ...
Java Script or what
JSP Invoking another JSP in Iframe
reading a "non-context" HTML file in JSP
MyEclipse, The Clear Choice