Dashboard > stripes > Browse Space > Mail Archive > Re: [Stripes-users] Re: Ajax question
Stripes Log In   View a printable version of the current page.
Re: [Stripes-users] Re: Ajax question
Subject:   Re: [Stripes-users] Re: Ajax question (find more)
From:   Sean Blezard <hidden> (find more)
Date:   Jan 18, 2006

Hey Tim,

Does the Stripes form support onsubmit - I know the standard HTML  
form does but I couldn't see onsubmit as an option on the Stripes form.

Sean.

On 18 Jan 2006, at 21:36, Tim Fennell wrote:

> I think what you can do in that case (if memory serves) is provide  
> an onsubmit hander for the form that calls your JS code to do the  
> AJAX submit and then returns false preventing the regular form  
> submission from occuring.  I think.
>
> -t
> On Jan 18, 2006, at 4:33 PM, Sean Blezard wrote:
>
>> OK,
>>
>> It turns out that I needed to put HTML tags around the text - then  
>> Firefox plays fair. Makes sense I guess.
>>
>> My problem now is a Safari one of all things - the old pressing  
>> enter on a text field causing form submit problem. This form  
>> submit goes to another page rather than calling the javascript  
>> xmlhttprequest submit.
>>
>>
>> On 18 Jan 2006, at 13:57, Sean Blezard wrote:
>>
>>> Hi,
>>>
>>> I had a go with cribbing the calculator example into our code - a  
>>> basic form submit roundtrip to the action bean which returns a  
>>> simple String a la the calculator example. Now, it does truck off  
>>> to the server and does return the string. However, on Firefox  
>>> 1.5  it also returns several hundred characters of junk. I'm  
>>> thinking this is going to be a Javascript in Firefox problem  
>>> rather than a Stripes problem but I wondered if other people had  
>>> come across this type of issue.
>>>
>>> Cheers,
>>> Sean.
>>
>>
>>
>> -------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc. Do you grep through  
>> log files
>> for problems?  Stop!  Download the new AJAX search engine that makes
>> searching your log files as easy as surfing the  web.  DOWNLOAD  
>> SPLUNK!
>> http://sel.as-us.falkag.net/sel?
>> cmd=lnk&kid=103432&bid=230486&dat=121642
>> _______________________________________________
>> Stripes-users mailing list
>> hidden
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through  
> log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD  
> SPLUNK!
> http://sel.as-us.falkag.net/sel?
> cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Stripes-users mailing list
> hidden
> https://lists.sourceforge.net/lists/listinfo/stripes-users



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Stripes-users mailing list
hidden
https://lists.sourceforge.net/lists/listinfo/stripes-users
Entire Thread (Showing 4 of 6)

  • [Stripes-users] Re: Ajax question

    OK, It turns out that I needed to put HTML tags around the text - then Firefox plays fair. Makes sense I guess.

    • Re: [Stripes-users] Re: Ajax question

      I think what you can do in that case (if memory serves) is provide an onsubmit hander for the form that calls your JS code to do the AJAX submit and then returns false preventing the regular form submission from occuring. I think.

      • Re: [Stripes-users] Re: Ajax question

        • Re: [Stripes-users] Re: Ajax question

          Ooops. Sorry, I forgot about that. It's a bug in the current release. It's fixed in the latest source, and there will be a new release soon, but right now you can't just do onsubmit="". I think you should be able to workaround this by doing: (1 more message in this thread)

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.7 Build:#524 Jul 28, 2006) - Bug/feature request - Contact Administrators