Table fill in on button click without refresh

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
winteriii
Forum Newbie
Posts: 1
Joined: Fri Apr 16, 2010 5:34 pm

Table fill in on button click without refresh

Post 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
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Table fill in on button click without refresh

Post 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.
Post Reply