Click to See Complete Forum and Search --> : Need design advice


RandomWalk
03-02-2006, 10:13 AM
I'm new to HTML, JavaScript, etc. but need to design a page for a very narrow use. I've written a Python server side script that gathers data about some changing files. I'd like the user to have a page that has an area that can be updated by a call to the Python script - not the whole page. That is, the person brings up the page, it calls the script and the data are displayed. Later the person clicks on a button and the data are updated. (Actually clicking on the button will start a timer for updates every n minutes but that's a detail.)

What's a suitable object for the display area? I had thought it was a frame ...?

TIA

KDLA
03-02-2006, 11:16 AM
<DIV> might be better.

KDLA

RandomWalk
03-02-2006, 11:34 AM
<DIV> might be better.

KDLA

Can the contents of the DIV block be changed dynamicaly?

KDLA
03-02-2006, 11:52 AM
Yes, if you code it that way. I've got a doc. that I'm working with that creates divs, based on js scripting and internal css, dynamically.

Kravvitz
03-02-2006, 11:59 AM
You can use AJAX (http://www.google.com/search?q=AJAX+%7Etutorial) to do that or you could use an iframe. They both have advantages and disadvantages.

Keep in mind that about 10% of Internet users use a browser that doesn't have JavaScript enabled. (http://www.thecounter.com/stats/2006/January/javas.php)

RandomWalk
03-04-2006, 12:21 PM
Thanks, for this particular page its use will be in-house for only one user! I noticed yesterday that IFRAMES work differently on Opera, Firefox, and IE.