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

Updating an IFRAME with form data

Hello all,

I am helping to develop a system in which we would like the user to have the ability to type in a message and set its text colour, and then be able to preview what they entered into the form within an IFRAME on the same page.

So basically I would like a simple form with 2 text fields and a submit button. The user enters some text and a hex value into the text fields and presses submit. What they entered is captured into variables, which are used by and displayed within the IFRAME.

Basically, I need to know whether this can be done.

Any help would be greatly appreciated.
Oct 5 '07 #1
1 1155
pbmods
5,821 Expert 4TB
Heya, Ollie.

Try using:
Expand|Select|Wrap|Line Numbers
  1. var thePfhrame = documet.getElementById('idOfIframe');
  2.  
  3. thePfhrame.document.open();
  4. thePfhrame.document.write( ... );
  5. thePfhrame.document.close();
  6.  
Oct 6 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Rhys | last post by:
I have a page which has an IFrame on it. The src of the IFrame is a page with a datagrid on it. The Datagrid has bound template columns. The columns of the datagrid pass the bound data value of...
3
by: Guogang | last post by:
In a .aspx web page, I created a button that will do a postback What I want to do: let the button do postback, and process the postback data in my code behind, but the client side's page won't be...
2
by: FP | last post by:
I'm displaying a list of messages. Each message can be checkmarked as done or not done. When a user clicks on the checkmark I want the following to happen; - checkbox status is toggled between...
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.