Click to See Complete Forum and Search --> : printing a new window


marshall_73
07-29-2003, 01:40 PM
Hi,

I have a form on my website with both textboxes and menulist-boxes (select). Now i have a script to write the input from the textboxes to a new window, using document.write(textbox-id.value+".....").

My question is how to do the same with the menulist-boxes (or selectboxes). "document.write" does not work.

After the window is created (with the input from the form), i would like to print that window. But when I put "window.print" in the same funtion, it does not print the new window, but the website where the form is.

Can someone help me please???

Thank you very much,

Marshall

webHeretic
07-29-2003, 06:19 PM
Are you opening a pre-existing .html and then just populating it with the data from the form on the parent window? If so, you should be able to put a window.print() function in the javascript of the child window. When it opens, it will print.

Can you share your code - it would help solve the problem.

Thanks,

wH

marshall_73
07-29-2003, 06:29 PM
Originally posted by webHeretic

Can you share your code - it would help solve the problem.

Thanks,

wH

I'm sorry, I already opened a new threat about this issue, because I realised that my question was a little bit incomplete. Here's the new threat (with the code):

Here it is (http://forums.webdeveloper.com/showthread.php?s=&threadid=14241)