Output Array to textarea?

admin

Administrator
Staff member
I only use Javascript occassionally, so please bear with me.

I have a web page where customers can look up a distributor by entering a postal code.
An array contains company, address, location, phone, and web for each distributor.

I haven't been able to figure out a nice way to display the results on my web page so that there is a line break between each data field. The results come out as one string separated by commas. Where do the commas come from??

I've tried popup windows, textarea boxes, buttons, etc., but html is ignored and I cant't get rid of the commas and put line breaks in. I'd like to avoid a popup window, due to popup killers. With some examples I've used to write the results nothing appears.
Any ideas?
Thanks much!!
 
Back
Top