| View previous topic :: View next topic |
| Author |
Message |
psridhar
Joined: 29 Aug 2005 Posts: 5
|
Posted: Thu Sep 01, 2005 3:29 am Format input text box |
|
|
|
Hi
I have the following code which I paste in notepad and save as test.doc.
<html>
<p style="font-family:Verdana, sans-serif;font-size:smaller;">
My name is Mr. <input type="text" value="myName">
and my age is <input type="text" value="myAge">
. My gender is <input type="text" value="myGender">
</p>
</html
When I open this word file, I am getting three input text boxes and they contain values as "myName", "myAge" and "myGender".
Can anyboby help me in formating this input text boxes. I want to apply font color, alignment, back ground color, etc... to this boxes.
For the following two reasons, I want to save it as .doc.
1. I should be able to modify the data inside the text boxes and that data should be stored. Is it possible if I open it as .html?
2. I want to get the entire data in to a text file for my further processing. Let me explain some thing more here. I basically work in mainframe technology. I want to provide an user interface ( as the above example) by fetching the data from database.
For that, I write a program in mainframes, which reads the data from database and formulates html code. I transfer this code from mainframes to windows. Now user should be able to edit the data in the text boxes and that data needs to be saved and updated back in my mainframe database. Mainframe can receive only *.txt files in readable format. So I need to convert my windows file ( doc or html or what ever it may me ) text file so that I can send the updated data back to mainframe. Now I will write another program in mainframe which reads this updated data and updates my database.
Hope I am clear.....
Please come up with a solution....
Thanks
Sridhar P |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8423 Location: Castle Pines North, CO USA
|
Posted: Thu Sep 01, 2005 4:12 am |
|
|
|
You are not apply CSS to the input:
| Code: |
input
{
background-color: #ececec;
font-family: arial;
font-size: 10pt;
color: #000000;
border-style:groove;
} |
is something that you can use. Tweak it as necessary |
|
psridhar
Joined: 29 Aug 2005 Posts: 5
|
Posted: Thu Sep 01, 2005 7:49 pm |
|
|
|
Hi
I have tried the below code but it did not work when I open it as test.doc. It works fine if I open as test.html
But my requirement is as follows... The user should be able to edit the data insite the text boxes and that should be saved. When he opens the file for the next time, he should get the updated value.
Is there any way I can achieve it....
Regards
Sridhar P
<html>
<p style="font-family:Verdana, sans-serif;font-size:smaller;">
My name is Mr. <input type="text" value="myName" style="color:red;text-align:center;background:blue;width:300px">
and my age is <input type="text" value="myAge" style="color:red;text-align:center;background:blue;">
My gender is <input type="text" value="myGender" style="color:red;text-align:center;background:blue;">
</p>
</html> |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8423 Location: Castle Pines North, CO USA
|
Posted: Thu Sep 01, 2005 7:54 pm |
|
|
|
| Are you creating an HTML document or a Word document? |
|
psridhar
Joined: 29 Aug 2005 Posts: 5
|
Posted: Fri Sep 02, 2005 12:55 am |
|
|
|
Hi Corey Bryant,
My requirement is as follows....
1. I should be able to modify the data inside the text boxes and that data should be stored. Is it possible if I open it as .html?
2. I want to get the entire data in to a text file for my further processing. Let me explain some thing more here. I basically work in mainframe technology. I want to provide an user interface ( as the above example) by fetching the data from database.
For that, I write a program in mainframes, which reads the data from database and formulates html code. I transfer this code from mainframes to windows. Now user should be able to edit the data in the text boxes and that data needs to be saved and updated back in my mainframe database. Mainframe can receive only *.txt files in readable format. So I need to convert my windows file ( doc or html or what ever it may me ) text file so that I can send the updated data back to mainframe. Now I will write another program in mainframe which reads this updated data and updates my database.
Hope I am clear.....
Please come up with a solution....
Thanks
Sridhar P |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8423 Location: Castle Pines North, CO USA
|
Posted: Fri Sep 02, 2005 4:07 am |
|
|
|
| Retreiving data from a database cannot be be done via HTML. I am not exactly sure what you are trying to accomplish, but you can get a free account at Experts Exchange - this site should be able to help you |
|
psridhar
Joined: 29 Aug 2005 Posts: 5
|
Posted: Fri Sep 02, 2005 4:17 am |
|
|
|
I think I confused you with my requirement....
Forget about database and all.....
I need an user interface ( HTML or WORD or what ever...) in which I will show some data in input text boxes. Now user should be able to edit that data and the new data should be stored. When user re opens that file, he should be able to see the updated data...
Hope I am clear now... |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8423 Location: Castle Pines North, CO USA
|
Posted: Fri Sep 02, 2005 4:34 am |
|
|
|
| You would need to use a server side langauge to write to the database and read from the database, HTML cannot do it. |
|
|