Re: [rspec-users] webrat question, form without buttons

2008-09-04 Thread Scott Taylor


On Sep 3, 2008, at 1:51 PM, Nick Hoffman wrote:


On 2008-09-03, at 13:38, Zach Dennis wrote:
When the user clicks a button, but all of the handy dandy work is  
done

in unobtrusive-style javascript. It's not a submit button. It's a
CSS-made button with listeners attached,


I'm afraid I can't be of much help with that. I've barely used  
Webrat. Sorry, mate!


Sounds like this is out of RSpec / Story land.  Maybe you guys should  
petition Brian to start a Webrat mailing list (or just start one  
yourself).


Scott

___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


[rspec-users] webrat question, form without buttons

2008-09-03 Thread Zach Dennis
Can you submit a form that has no submit button/image?

-- 
Zach Dennis
http://www.continuousthinking.com
http://www.mutuallyhuman.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


Re: [rspec-users] webrat question, form without buttons

2008-09-03 Thread Nick Hoffman

On 2008-09-03, at 12:06, Zach Dennis wrote:

Can you submit a form that has no submit button/image?


You can submit a form using Javascript.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


Re: [rspec-users] webrat question, form without buttons

2008-09-03 Thread Zach Dennis
On Wed, Sep 3, 2008 at 12:40 PM, Nick Hoffman [EMAIL PROTECTED] wrote:
 On 2008-09-03, at 12:06, Zach Dennis wrote:

 Can you submit a form that has no submit button/image?

 You can submit a form using Javascript.

That's why we don't have submit buttons. =)

But in the context of webrat, if there is a form w/o a submit button,
how can you submit it? Obviossly, clicks_button doesn't work anymore.
Thanks,



-- 
Zach Dennis
http://www.continuousthinking.com
http://www.mutuallyhuman.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


Re: [rspec-users] webrat question, form without buttons

2008-09-03 Thread Nick Hoffman

On 2008-09-03, at 13:38, Zach Dennis wrote:

When the user clicks a button, but all of the handy dandy work is done
in unobtrusive-style javascript. It's not a submit button. It's a
CSS-made button with listeners attached,


I'm afraid I can't be of much help with that. I've barely used Webrat.  
Sorry, mate!

___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


Re: [rspec-users] webrat question, form without buttons

2008-09-03 Thread Zach Dennis
On Wed, Sep 3, 2008 at 1:31 PM, Nick Hoffman [EMAIL PROTECTED] wrote:
 On 2008-09-03, at 13:15, Zach Dennis wrote:

 On Wed, Sep 3, 2008 at 12:40 PM, Nick Hoffman [EMAIL PROTECTED] wrote:

 You can submit a form using Javascript.

 That's why we don't have submit buttons. =)

 But in the context of webrat, if there is a form w/o a submit button,
 how can you submit it? Obviossly, clicks_button doesn't work anymore.
 Thanks,

 During regular use in a browser, how is your form submitted?


When the user clicks a button, but all of the handy dandy work is done
in unobtrusive-style javascript. It's not a submit button. It's a
CSS-made button with listeners attached,

-- 
Zach Dennis
http://www.continuousthinking.com
http://www.mutuallyhuman.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


Re: [rspec-users] webrat question, form without buttons

2008-09-03 Thread Jarkko Laine


On 3.9.2008, at 19.38, Zach Dennis wrote:

On Wed, Sep 3, 2008 at 1:31 PM, Nick Hoffman [EMAIL PROTECTED]  
wrote:

On 2008-09-03, at 13:15, Zach Dennis wrote:


On Wed, Sep 3, 2008 at 12:40 PM, Nick Hoffman  
[EMAIL PROTECTED] wrote:


You can submit a form using Javascript.


That's why we don't have submit buttons. =)

But in the context of webrat, if there is a form w/o a submit  
button,
how can you submit it? Obviossly, clicks_button doesn't work  
anymore.

Thanks,


During regular use in a browser, how is your form submitted?



When the user clicks a button, but all of the handy dandy work is done
in unobtrusive-style javascript. It's not a submit button. It's a
CSS-made button with listeners attached,


If you're going unobtrusive, why not go all the way and have a real  
submit button there that gets replaced by the javascript with your  
custom button?


//jarkko

--
Jarkko Laine
http://jlaine.net
http://dotherightthing.com
http://www.railsecommerce.com
http://odesign.fi


___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


Re: [rspec-users] webrat question, form without buttons

2008-09-03 Thread Ben Mabey
Jarkko Laine wrote:

 On 3.9.2008, at 19.38, Zach Dennis wrote:

 On Wed, Sep 3, 2008 at 1:31 PM, Nick Hoffman [EMAIL PROTECTED]
 wrote:
 On 2008-09-03, at 13:15, Zach Dennis wrote:

 On Wed, Sep 3, 2008 at 12:40 PM, Nick Hoffman [EMAIL PROTECTED]
 wrote:

 You can submit a form using Javascript.

 That's why we don't have submit buttons. =)

 But in the context of webrat, if there is a form w/o a submit button,
 how can you submit it? Obviossly, clicks_button doesn't work anymore.
 Thanks,

 During regular use in a browser, how is your form submitted?


 When the user clicks a button, but all of the handy dandy work is done
 in unobtrusive-style javascript. It's not a submit button. It's a
 CSS-made button with listeners attached,

 If you're going unobtrusive, why not go all the way and have a real
 submit button there that gets replaced by the javascript with your
 custom button?

+1
In fact that is really,IMO, what unobtrusive JS means.  People without
JS should still have buttons and can use the site, they just don't get
all the pretty colors.
If you don't want to hide it with JS you could also just embed the
buttons within noscript tags.

-Ben
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


Re: [rspec-users] webrat question, form without buttons

2008-09-03 Thread Zach Dennis
On Wed, Sep 3, 2008 at 6:21 PM, Ben Mabey [EMAIL PROTECTED] wrote:
 Jarkko Laine wrote:

 On 3.9.2008, at 19.38, Zach Dennis wrote:

 On Wed, Sep 3, 2008 at 1:31 PM, Nick Hoffman [EMAIL PROTECTED]
 wrote:
 On 2008-09-03, at 13:15, Zach Dennis wrote:

 On Wed, Sep 3, 2008 at 12:40 PM, Nick Hoffman [EMAIL PROTECTED]
 wrote:

 You can submit a form using Javascript.

 That's why we don't have submit buttons. =)

 But in the context of webrat, if there is a form w/o a submit button,
 how can you submit it? Obviossly, clicks_button doesn't work anymore.
 Thanks,

 During regular use in a browser, how is your form submitted?


 When the user clicks a button, but all of the handy dandy work is done
 in unobtrusive-style javascript. It's not a submit button. It's a
 CSS-made button with listeners attached,

 If you're going unobtrusive, why not go all the way and have a real
 submit button there that gets replaced by the javascript with your
 custom button?

 +1
 In fact that is really,IMO, what unobtrusive JS means.  People without
 JS should still have buttons and can use the site, they just don't get
 all the pretty colors.
 If you don't want to hide it with JS you could also just embed the
 buttons within noscript tags.


Thanks for your feedback Jarkko  and Ben. It's just what I needed. A
button for degradation is coming soon to a project near me. thx guys,

-- 
Zach Dennis
http://www.continuousthinking.com
http://www.mutuallyhuman.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users