ts-7000
[Top] [All Lists]

Re: [ts-7000] html web page GUI changes to blank after button push....

To:
Subject: Re: [ts-7000] html web page GUI changes to blank after button push....
From: "Theodore A. Roth" <>
Date: Sat, 6 Sep 2008 08:29:05 -0700
On Fri, Sep 5, 2008 at 9:44 PM, sccjazz1 <> wrote:
>
> Is there a way to keep the web page GUI from switching to blank after
> pushing the button?
> Any help is appreciated...if you need more info, let me know.
> Thanks,
> Steve
>

You need to use javascript to do this. Write an 'onClick' event
handler and attach it to the button. Best if the button does not have
type=submit. Use the XmlHttpResponse mechanism to send the GET to the
server (aka start thinking about AJAX). Also, you are better off using
POST methods instead of GET since IE will cache results from a GET
leaving you scratching your head (should want some data back from the
GPIO).

I've been working on a project along similar lines which has the user
interface as a web app on either a 7800 or 7390 system. I started
using Dojo a few weeks ago and it can let you do some rather amazing
things with very little effort, case in point the XmlHttpResponse
stuff. I would suggest you have a look into it and especially this
page:

http://dojotoolkit.org/book/dojo-book-0-9/part-3-programmatic-dijit-and-dojo/ajax-transports

Hope that helps.

Ted Roth

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU