AW: Ajax-only-Form?

2008-09-19 Thread Markus
Hi Richard,

that seems a very good idea, thank you, didn´t come into my mind...  *d0h*  ;)

Regards
Markus

-Ursprüngliche Nachricht-
Von: richardwilko [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 19. September 2008 15:17
An: users@wicket.apache.org
Betreff: Re: Ajax-only-Form?


In that case use an ajax submit link rather than a button (which uses a href
and an onclick), with no button in the form.

However I dont think this will stop the enter key from submitting the
form...

You could also try lazy loading the form with ajax, that way you can be sure
that if they see the form they have javascript enabled, actually this is
probably the best way of doing it.

Cheers,

Richard



Markus-66 wrote:
> 
> Hi Richard,
> 
> thank you for your answer. But my Problem is, I want to "cut out" the
> people
> with JavaScript deactivated because they cannot use the
> GoogleMaps-functionality, what makes it kinda useless to submit the form.
> Your prototype-approach won´t work that way.
> 
> Perhaps I only add a warning-div on the top and do nothing. Any further
> ideas would be appreaciated.
> 
> Regards
> Markus
> 
> -Ursprüngliche Nachricht-
> Von: richardwilko [mailto:[EMAIL PROTECTED] 
> Gesendet: Freitag, 19. September 2008 15:01
> An: users@wicket.apache.org
> Betreff: Re: Ajax-only-Form?
> 
> 
> So if im understanding correctly your form is submitting in the non-ajax
> standard way when you press return on the input field?
> 
> If so then this is my solution:
> 
> http://www.richard-wilkinson.co.uk/2008/04/05/how-to-stop-non-ajax-form-subm
> its-in-wicket/
> 
> Hope it helps,
> 
> Richard
> 
> 
> 
> Markus-66 wrote:
>> 
>> Hi all,
>> 
>>  
>> 
>> I have an issue with a Form I want only to be available to users with
>> Javascript turned on, so I used a AjaxButton, and set DefaultButton to
>> the
>> AjaxButton. 
>> 
>> But the Form still submits using 'Return' - rendering the Body only also
>> kills the AjaxButton.  Can anyone help me how to achieve this? Hiding the
>> Button and appending a onchange-event to the first input-field is in my
>> opinion a very bad way of doing it. Also "in-page" javascripting seems
>> not
>> so nice.
>> 
>>  
>> 
>> Regards
>> 
>> Markus
>> 
>> 
>> 
> 
> 
> -
> http://www.richard-wilkinson.co.uk My blog:
> http://www.richard-wilkinson.co.uk 
> -- 
> View this message in context:
> http://www.nabble.com/Ajax-only-Form--tp19569839p19571913.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


-
http://www.richard-wilkinson.co.uk My blog:
http://www.richard-wilkinson.co.uk 
-- 
View this message in context: 
http://www.nabble.com/Ajax-only-Form--tp19569839p19572180.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ajax-only-Form?

2008-09-19 Thread richardwilko

In that case use an ajax submit link rather than a button (which uses a href
and an onclick), with no button in the form.

However I dont think this will stop the enter key from submitting the
form...

You could also try lazy loading the form with ajax, that way you can be sure
that if they see the form they have javascript enabled, actually this is
probably the best way of doing it.

Cheers,

Richard



Markus-66 wrote:
> 
> Hi Richard,
> 
> thank you for your answer. But my Problem is, I want to "cut out" the
> people
> with JavaScript deactivated because they cannot use the
> GoogleMaps-functionality, what makes it kinda useless to submit the form.
> Your prototype-approach won´t work that way.
> 
> Perhaps I only add a warning-div on the top and do nothing. Any further
> ideas would be appreaciated.
> 
> Regards
> Markus
> 
> -Ursprüngliche Nachricht-
> Von: richardwilko [mailto:[EMAIL PROTECTED] 
> Gesendet: Freitag, 19. September 2008 15:01
> An: users@wicket.apache.org
> Betreff: Re: Ajax-only-Form?
> 
> 
> So if im understanding correctly your form is submitting in the non-ajax
> standard way when you press return on the input field?
> 
> If so then this is my solution:
> 
> http://www.richard-wilkinson.co.uk/2008/04/05/how-to-stop-non-ajax-form-subm
> its-in-wicket/
> 
> Hope it helps,
> 
> Richard
> 
> 
> 
> Markus-66 wrote:
>> 
>> Hi all,
>> 
>>  
>> 
>> I have an issue with a Form I want only to be available to users with
>> Javascript turned on, so I used a AjaxButton, and set DefaultButton to
>> the
>> AjaxButton. 
>> 
>> But the Form still submits using 'Return' - rendering the Body only also
>> kills the AjaxButton.  Can anyone help me how to achieve this? Hiding the
>> Button and appending a onchange-event to the first input-field is in my
>> opinion a very bad way of doing it. Also "in-page" javascripting seems
>> not
>> so nice.
>> 
>>  
>> 
>> Regards
>> 
>> Markus
>> 
>> 
>> 
> 
> 
> -
> http://www.richard-wilkinson.co.uk My blog:
> http://www.richard-wilkinson.co.uk 
> -- 
> View this message in context:
> http://www.nabble.com/Ajax-only-Form--tp19569839p19571913.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


-
http://www.richard-wilkinson.co.uk My blog:
http://www.richard-wilkinson.co.uk 
-- 
View this message in context: 
http://www.nabble.com/Ajax-only-Form--tp19569839p19572180.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ajax-only-Form?

2008-09-19 Thread Markus
Hi Richard,

thank you for your answer. But my Problem is, I want to "cut out" the people
with JavaScript deactivated because they cannot use the
GoogleMaps-functionality, what makes it kinda useless to submit the form.
Your prototype-approach won´t work that way.

Perhaps I only add a warning-div on the top and do nothing. Any further
ideas would be appreaciated.

Regards
Markus

-Ursprüngliche Nachricht-
Von: richardwilko [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 19. September 2008 15:01
An: users@wicket.apache.org
Betreff: Re: Ajax-only-Form?


So if im understanding correctly your form is submitting in the non-ajax
standard way when you press return on the input field?

If so then this is my solution:

http://www.richard-wilkinson.co.uk/2008/04/05/how-to-stop-non-ajax-form-subm
its-in-wicket/

Hope it helps,

Richard



Markus-66 wrote:
> 
> Hi all,
> 
>  
> 
> I have an issue with a Form I want only to be available to users with
> Javascript turned on, so I used a AjaxButton, and set DefaultButton to the
> AjaxButton. 
> 
> But the Form still submits using 'Return' - rendering the Body only also
> kills the AjaxButton.  Can anyone help me how to achieve this? Hiding the
> Button and appending a onchange-event to the first input-field is in my
> opinion a very bad way of doing it. Also "in-page" javascripting seems not
> so nice.
> 
>  
> 
> Regards
> 
> Markus
> 
> 
> 


-
http://www.richard-wilkinson.co.uk My blog:
http://www.richard-wilkinson.co.uk 
-- 
View this message in context:
http://www.nabble.com/Ajax-only-Form--tp19569839p19571913.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ajax-only-Form?

2008-09-19 Thread richardwilko

So if im understanding correctly your form is submitting in the non-ajax
standard way when you press return on the input field?

If so then this is my solution:

http://www.richard-wilkinson.co.uk/2008/04/05/how-to-stop-non-ajax-form-submits-in-wicket/

Hope it helps,

Richard



Markus-66 wrote:
> 
> Hi all,
> 
>  
> 
> I have an issue with a Form I want only to be available to users with
> Javascript turned on, so I used a AjaxButton, and set DefaultButton to the
> AjaxButton. 
> 
> But the Form still submits using 'Return' - rendering the Body only also
> kills the AjaxButton.  Can anyone help me how to achieve this? Hiding the
> Button and appending a onchange-event to the first input-field is in my
> opinion a very bad way of doing it. Also "in-page" javascripting seems not
> so nice.
> 
>  
> 
> Regards
> 
> Markus
> 
> 
> 


-
http://www.richard-wilkinson.co.uk My blog:
http://www.richard-wilkinson.co.uk 
-- 
View this message in context: 
http://www.nabble.com/Ajax-only-Form--tp19569839p19571913.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Ajax-only-Form?

2008-09-19 Thread Markus
Hi all,

 

I have an issue with a Form I want only to be available to users with
Javascript turned on, so I used a AjaxButton, and set DefaultButton to the
AjaxButton. 

But the Form still submits using 'Return' - rendering the Body only also
kills the AjaxButton.  Can anyone help me how to achieve this? Hiding the
Button and appending a onchange-event to the first input-field is in my
opinion a very bad way of doing it. Also "in-page" javascripting seems not
so nice.

 

Regards

Markus