Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing to screen question

Status
Not open for further replies.

jcale4

Programmer
Aug 31, 2004
63
US
HI!

I have an application that allows a user to populate a series of <input> boxes and <select> boxes which are essentially filters on this application. when the boxes are populated and the user hits "apply", i need to gather the contents with a javascript function, then spit them onto the page to display the filters in plain text, also allowing more filters to be added which will append the results in text format below the previous filter. Is this possible? Thanks!
 
Of course it's possible. Show us the code you have already and let us know what you're having problems with.

Lee
 

You ideally need to combine some kind of server-side code into the solution. Without knowing more about the code - it's hard to ever offer much in the way of thoughts either!

Let us know if your ISP allows PHP, JSP or ASP -- and, if possible, give us an idea of what direction your current code has taken you.

Cheers,
Jeff

 
I really have no code so far,, I just didnt know if it was possible. I believe the only way for me to print text onto the screen in a particular area is to have <input> boxes that have no borders and identical background color as the <body> so that i can reference their names (or ID's) to print the text to the correct place. Otherwise, when i perform a document.write from a javascript function, it prints the text on a new page.

j
 
I would add the filters as a new option in a select box and include a button that will remove the selected filters when pressed. Also, you may want to add the filters to a hidden form field so you can retrieve them on the server when the filters are applied.

Adam

¡ph ¥0u c4n r34d d¡5 ¥0u n33d 70 g37 l4¡d
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top