W3C home > Mailing lists > Public > www-forms@w3.org > November 2007

Re: Need help with XForms

From: Mark Birbeck <mark.birbeck@formsPlayer.com>
Date: Fri, 23 Nov 2007 20:26:41 +0000
Message-ID: <a707f8300711231226r725e7a51n5bf2697da6b90be1@mail.gmail.com>
To: "Carlos NarvŠez" <crakup@gmail.com>
Cc: www-forms@w3.org

Hi Carlos,

Are you trying to create an XForms form, or an HTML one? The first
part of your message is HTML, the second XForms.

Also, which tutorial are you looking at? There is no <xf:script>
element, for example, so whichever tutorial you are using is possibly
misleading.

Can I suggest you look at our 'Introduction to XForms' tutorial? It
will take you through the initial steps to get a form working, and
explains a lot about XForms on the way:

  <http://www.formsplayer.com/introduction-to-xforms>

Once you've been through that you should have a reasonable overview,
and then you can start looking at some more advanced tutorials, and
different run-time processors.

Regards,

Mark

-- 
  Mark Birbeck, formsPlayer

  mark.birbeck@formsPlayer.com | +44 (0) 20 7689 9232
  http://www.formsPlayer.com | http://internet-apps.blogspot.com

  standards. innovation.


On 23/11/2007, Carlos NarvŠez <crakup@gmail.com> wrote:
>
> Hi, i'm having some problems with my html form, this is what i have:
>
>
> <form>
> <input type="button" value="Agree" onClick="location.href='admit.html'">
> <input type="button" value="Disagree" onClick="location.href='deny.html'">
> </form>
>
> Just 2 buttons that redirect the user when pushed.
>
> I went to a w3 tutorial and have looked over the button section but
> can't seem to get it right.
>
> I added this to the html tag,
>
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:f="http://www.w3.org/2002/xforms"
> xmlns:ev="http://www.w3.org/2001/xml-events">
>
> I added this to the head,
>
> <f:model>
> <f:submission action="http://example.com/home.php" method="get" id="s"/>
> </f:model>
>
> I added this to the body,
>
> <f:trigger>
> <f:label>Agree</f:label>
> <f:script ev:event="DOMActivate" type="text/javascript"><!--
> onClick="location.href='agree.html'"; --></f:script>
> </f:trigger>
>
> It only prints out the text Agree, no button.
>
> Any help will be much appreciated.
>
> --
> Carlos NarvŠez
> http://www.aderezame.com
>
>
>
Received on Friday, 23 November 2007 20:26:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:11 GMT