• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

IFRAME with POST

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic