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/
|