Making anchors to submit

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Making anchors to submit

Sebastian Sastre-2
Hi there,

        the submit buttons look change from system to system but anchors are
consistent so I'm trying to use anchors to submit forms by using

        html anchor
                callback:[self someAction];
                submitFormNamed: 'someFormId';
                yourslef

        Is anybody using anchors with #submitFormNamed: succesfully?

        cheers,

Sebastian
PS: amazingly it works as expected with IE but not in FF, nor Opera nor
Safari for windows

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: Making anchors to submit

Boris Popov, DeepCove Labs (SNN)
While it is certainly doable with anchors, I haven't actually tried it
myself. It is preferred to use proper submit buttons AFAIAC anyway as
highlighted by the whole GWA debacle,

http://shiflett.org/blog/2006/dec/google-web-accelerator-debate

Instead you can style submit buttons to suit your needs, see attached
for what we use in our application as well as the following,

http://developer.yahoo.com/yui/examples/button/btn_example05.html

Hope this helps,

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

> -----Original Message-----
> From: [hidden email] [mailto:seaside-
> [hidden email]] On Behalf Of Sebastian Sastre
> Sent: Monday, December 10, 2007 3:50 PM
> To: 'Seaside - general discussion'
> Subject: [Seaside] Making anchors to submit
>
> Hi there,
>
> the submit buttons look change from system to system but anchors
are

> consistent so I'm trying to use anchors to submit forms by using
>
> html anchor
> callback:[self someAction];
> submitFormNamed: 'someFormId';
> yourslef
>
> Is anybody using anchors with #submitFormNamed: succesfully?
>
> cheers,
>
> Sebastian
> PS: amazingly it works as expected with IE but not in FF, nor Opera
nor
> Safari for windows
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: Making anchors to submit

Boris Popov, DeepCove Labs (SNN)
Never mind, what am I thinking? GWA wouldn't do anything to your forms,
it only becomes a problem with you have an anchor with a callback that
deletes or alters something, JavaScript is okay to use in this case.

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

> -----Original Message-----
> From: Boris Popov
> Sent: Monday, December 10, 2007 4:04 PM
> To: 'Seaside - general discussion'
> Subject: RE: [Seaside] Making anchors to submit
>
> While it is certainly doable with anchors, I haven't actually tried it
> myself. It is preferred to use proper submit buttons AFAIAC anyway as
> highlighted by the whole GWA debacle,
>
> http://shiflett.org/blog/2006/dec/google-web-accelerator-debate
>
> Instead you can style submit buttons to suit your needs, see attached
for

> what we use in our application as well as the following,
>
> http://developer.yahoo.com/yui/examples/button/btn_example05.html
>
> Hope this helps,
>
> -Boris
>
> --
> +1.604.689.0322
> DeepCove Labs Ltd.
> 4th floor 595 Howe Street
> Vancouver, Canada V6C 2T5
> http://tinyurl.com/r7uw4
>
> [hidden email]
>
> CONFIDENTIALITY NOTICE
>
> This email is intended only for the persons named in the message
> header. Unless otherwise indicated, it contains information that is
> private and confidential. If you have received it in error, please
> notify the sender and delete the entire message including any
> attachments.
>
> Thank you.
>
> > -----Original Message-----
> > From: [hidden email] [mailto:seaside-
> > [hidden email]] On Behalf Of Sebastian Sastre
> > Sent: Monday, December 10, 2007 3:50 PM
> > To: 'Seaside - general discussion'
> > Subject: [Seaside] Making anchors to submit
> >
> > Hi there,
> >
> > the submit buttons look change from system to system but anchors
are

> > consistent so I'm trying to use anchors to submit forms by using
> >
> > html anchor
> > callback:[self someAction];
> > submitFormNamed: 'someFormId';
> > yourslef
> >
> > Is anybody using anchors with #submitFormNamed: succesfully?
> >
> > cheers,
> >
> > Sebastian
> > PS: amazingly it works as expected with IE but not in FF, nor Opera
nor
> > Safari for windows
> >
> > _______________________________________________
> > seaside mailing list
> > [hidden email]
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Making anchors to submit

Carl Gundel
In reply to this post by Sebastian Sastre-2
I've been using them successfully using exactly the sort of code you include.  I'm still on Seaside 2.6 if that makes a difference.

-Carl Gundel
http://www.runbasic.com

> Hi there,
>
> the submit buttons look change from system to system but anchors
> are consistent so I'm trying to use anchors to submit forms by using
>
> html anchor
> callback:[self someAction];
> submitFormNamed: 'someFormId';
> yourslef
>
> Is anybody using anchors with #submitFormNamed: succesfully?
>
> cheers,
>
> Sebastian
> PS: amazingly it works as expected with IE but not in FF, nor Opera
> nor Safari for windows
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Making anchors to submit

Michael Lucas-Smith-3
In reply to this post by Sebastian Sastre-2
Sebastian Sastre wrote:

> Hi there,
>
> the submit buttons look change from system to system but anchors are
> consistent so I'm trying to use anchors to submit forms by using
>
> html anchor
> callback:[self someAction];
> submitFormNamed: 'someFormId';
> yourslef
>
> Is anybody using anchors with #submitFormNamed: succesfully?
>
> cheers,
>
> Sebastian
> PS: amazingly it works as expected with IE but not in FF, nor Opera nor
> Safari for windows
>  
On the other mailing list we came to the conclusion that the method
should be removed. FF, Opera and Safari all perform the POST
asynchronously - there's no way to tell it to run synchronously. As
such, you're better off using the form XmlHttpRequest calls supplied by
Mootools, Prototype, etc... or simply use a real button and style it to
look like a link (if that's what you're actually after).

You can do that with styling along the lines of:

button { border: none; text-decoration: underline; background-color:
none; color: blue }

I didn't doubt check this in a browser, just going off the top of my
head here... so if it isn't quite right, just fiddle and play until it
looks the way you want it too.

Cheers,
Michael
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: Making anchors to submit

Sebastian Sastre-2
Yes I'll try styling submit buttons like anchors. Other anchors only
underline while a:hover so my style challenge for that submit button will be
that. But I think a mouseover and mouse out adding and removing a custom css
class could do it.

        thanks,

Sebastian Sastre

 

> -----Mensaje original-----
> De: [hidden email]
> [mailto:[hidden email]] En nombre
> de Michael Lucas-Smith
> Enviado el: Martes, 11 de Diciembre de 2007 03:23
> Para: Seaside - general discussion
> Asunto: Re: [Seaside] Making anchors to submit
>
> Sebastian Sastre wrote:
> > Hi there,
> >
> > the submit buttons look change from system to system
> but anchors are
> > consistent so I'm trying to use anchors to submit forms by using
> >
> > html anchor
> > callback:[self someAction];
> > submitFormNamed: 'someFormId';
> > yourslef
> >
> > Is anybody using anchors with #submitFormNamed: succesfully?
> >
> > cheers,
> >
> > Sebastian
> > PS: amazingly it works as expected with IE but not in FF, nor Opera
> > nor Safari for windows
> >  
> On the other mailing list we came to the conclusion that the
> method should be removed. FF, Opera and Safari all perform
> the POST asynchronously - there's no way to tell it to run
> synchronously. As such, you're better off using the form
> XmlHttpRequest calls supplied by Mootools, Prototype, etc...
> or simply use a real button and style it to look like a link
> (if that's what you're actually after).
>
> You can do that with styling along the lines of:
>
> button { border: none; text-decoration: underline; background-color:
> none; color: blue }
>
> I didn't doubt check this in a browser, just going off the
> top of my head here... so if it isn't quite right, just
> fiddle and play until it looks the way you want it too.
>
> Cheers,
> Michael
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Making anchors to submit

Lukas Renggli
> Yes I'll try styling submit buttons like anchors. Other anchors only
> underline while a:hover so my style challenge for that submit button will be
> that. But I think a mouseover and mouse out adding and removing a custom css
> class could do it.

Why not use the implicit :hover pseudo-class?

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Making anchors to submit

Michael Lucas-Smith-3
Lukas Renggli wrote:
>> Yes I'll try styling submit buttons like anchors. Other anchors only
>> underline while a:hover so my style challenge for that submit button will be
>> that. But I think a mouseover and mouse out adding and removing a custom css
>> class could do it.
>>    
>
> Why not use the implicit :hover pseudo-class?
>  
Since it's not an anchor tag, IE6 won't use the :hover pseudo-class
unless you load the IE7 javascript pack to make IE6 behave more like
IE7... that said, you can possibly ignore this problem and pretend it's
okay... or use javascript mouseover/mouseout to simulate the :hover.

Personally, I'd just use the :hover pseudo-class and not worry about IE6-.

Michael
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Making anchors to submit

Philippe Marschall
2007/12/11, Michael Lucas-Smith <[hidden email]>:

> Lukas Renggli wrote:
> >> Yes I'll try styling submit buttons like anchors. Other anchors only
> >> underline while a:hover so my style challenge for that submit button will be
> >> that. But I think a mouseover and mouse out adding and removing a custom css
> >> class could do it.
> >>
> >
> > Why not use the implicit :hover pseudo-class?
> >
> Since it's not an anchor tag, IE6 won't use the :hover pseudo-class
> unless you load the IE7 javascript pack to make IE6 behave more like
> IE7... that said, you can possibly ignore this problem and pretend it's
> okay... or use javascript mouseover/mouseout to simulate the :hover.
>
> Personally, I'd just use the :hover pseudo-class and not worry about IE6-.

Yeah right. As long as you don't have customers, that's a very cool option.

Cheers
Philippe
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: Making anchors to submit

Boris Popov, DeepCove Labs (SNN)
I would have to agree, as much as everyone would like not to have to
deal with 6.0, its still out there and according to the last few days of
my logs dominating 7.0 as far as our specific client base is concerned,

Cheers!

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

> -----Original Message-----
> From: [hidden email] [mailto:seaside-
> [hidden email]] On Behalf Of Philippe Marschall
> Sent: Tuesday, December 11, 2007 8:38 AM
> To: Seaside - general discussion
> Subject: Re: [Seaside] Making anchors to submit
>
> 2007/12/11, Michael Lucas-Smith <[hidden email]>:
> > Lukas Renggli wrote:
> > >> Yes I'll try styling submit buttons like anchors. Other anchors
only
> > >> underline while a:hover so my style challenge for that submit
button

> will be
> > >> that. But I think a mouseover and mouse out adding and removing a
> custom css
> > >> class could do it.
> > >>
> > >
> > > Why not use the implicit :hover pseudo-class?
> > >
> > Since it's not an anchor tag, IE6 won't use the :hover pseudo-class
> > unless you load the IE7 javascript pack to make IE6 behave more like
> > IE7... that said, you can possibly ignore this problem and pretend
it's

> > okay... or use javascript mouseover/mouseout to simulate the :hover.
> >
> > Personally, I'd just use the :hover pseudo-class and not worry about
> IE6-.
>
> Yeah right. As long as you don't have customers, that's a very cool
> option.
>
> Cheers
> Philippe
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

overall.png (28K) Download Attachment
6vs7.png (24K) Download Attachment
map.png (114K) Download Attachment