Page 1 of 1
Table fill in on button click without refresh
Posted: Fri Apr 16, 2010 6:41 pm
by winteriii
I'm looking for a way to fill in a table with some random results when a button is pushed on a web page. What is the best way to do this? I'm a newbie at web programming. I know with php I could get the results I want if I refresh the page. With JavaScript I could get the results without refreshing the page, but I don't want the ActiveX warnings that seem to accompany js code.
Any suggestions?
Thanks,
Matt
Re: Table fill in on button click without refresh
Posted: Fri Apr 16, 2010 7:27 pm
by califdon
I think you've pretty well described the options. Anything that takes place after the page has been sent to the browser MUST involve client-side programming, which is pretty much javascript. I don't know exactly what ActiveX warnings you're seeing, but there's no reason I can think of why they should appear for a piece of javascript code that merely sets innerHTML values for a bunch of table cells. That would mean that the warnings would be appearing on the majority of web pages you view, which surely isn't happening. Just code it in javascript. If you have problems with the algorithm or the syntax, post here again.