Script-Free Mozilla XUL Form Submission Prototype Upcoming

Gerald Bauer <[email protected]>
Newsgroups gmane.comp.lang.xul.announce
Message-ID <[email protected]>
Hello,

  Alex Vincent writes in his blog story titled "A
bigger toolkit, better tools" about his upcoming XUL
form submission tags and attributes. Alex writes:

  I'm working on an <xul:form/> element so that XUL
can be a client-side user interface for a server-side
application. XUL was originally designed to be the
Mozilla chrome language, but HTML forms occasionally
leave something to be desired. It's a worthwhile goal,
I think.

  Seriously, I'd like to start creating widgets in
XBL+JavaScript which Mozilla App Suite and its child
applications (Mozilla Firebird, Mozilla Thunderbird,
Composer++ to name a few) can start using. I'd really
like to see others contribute such widgets, and maybe
we can get a few of them in for Mozilla 2.0.

  There are of course good reasons to not add every
widget we come across (think code bloat). But a few
good ones would be beneficial. I invite you to comment
not only on whether or not widgets should be added for
2.0, but also widgets you can implement (but not
widgets you'd like to see and haven't got a clue how
to do).

  UPDATE: Turns out <xul:form/> wasn't such a bright
element name, so, here is a partially tested
demonstration XUL file for <xul:serverpost/>.


  In case you wondered what the XUL file looks like,
here's a snippet:
        

    <groupbox>
      <textbox name="text" serverpostnames="foo"
value="text" />
      <checkbox name="checkbox" serverpostnames="foo"
label="checkbox" checked="true"/>
      <radiogroup name="radio" serverpostnames="baz
foo bar" id="radioGroup">
        <radio value="one" label="one"
selected="true"/>
        <radio value="two" label="two"/>
        <radio value="three" label="three"/>
      </radiogroup>
      <serverpost id="foo"
targetURL="http://bdsmedberg.no-ip.org/xulform/test.cgi"
            onHTTPResponseReceived="var k =
this.statusText + '\n' + this.responseHeaders + '\n\n'
+ this.responseText;
                                       
document.getElementById('textbox').value = k;"/>

    </groupbox>


   Full story @
http://weblogs.mozillazine.org/weirdal/archives/004700.html

   - Gerald


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.