[jQuery] Re: Text Button

2007-05-27 Thread james_027
Hi rob, Thanks a lot. Your answers are very helpful. cheers, james On May 23, 4:25 pm, "Rob Desbois" <[EMAIL PROTECTED]> wrote: > Karl, > Any particular reason why you would use a link to click the button to > perform the button's task, rather than just disposing of the button and > assigning i

[jQuery] Re: Text Button

2007-05-23 Thread Karl Rudd
Rob, I work at a university (in Australia) doing what can be best described as "web front-end construction". Most of our work is for government and/or educational groups so there are certain guidelines and regulations that we need to follow. A submit button is needed because most of the sites w

[jQuery] Re: Text Button

2007-05-23 Thread Rob Desbois
Karl, Any particular reason why you would use a link to click the button to perform the button's task, rather than just disposing of the button and assigning its task to the link? If that made no sense ;-) take an example: why create an invisible button to save, then use jQuery to create a link ou

[jQuery] Re: Text Button

2007-05-22 Thread james_027
Hi rob, Thanks very much, that really gives me a lot info. I'll take your suggestion ... Another question ... You mention about the browser to update its DOM with $('p').click(...) does this update can be seen when your view the source or it is done internally? Thanks again james On May 22, 10:

[jQuery] Re: Text Button

2007-05-22 Thread Karl Rudd
This has come up a number of times. My suggestion is to use a "proxy link". When the link is pressed it "clicks" the button. Something like this: $(function() { $('input.proxy').each( function() { var input = $(this); $('' + this.value + '')

[jQuery] Re: Text Button

2007-05-22 Thread Rob Desbois
James, The tag is a different element created to allow much more control over styling and content - you can include markup such as images and styling in a tag which is not possible with As for which of the two approaches I prefer - I'd go for as the javascript IS the link target, creating an

[jQuery] Re: Text Button

2007-05-22 Thread james_027
Hi, Thanks a lot, exactly what I am looking for. Cheers james On May 22, 6:50 pm, "Alexandre Plennevaux" <[EMAIL PROTECTED]> wrote: > 1/ you can make any tag clickable by adding a "click" event. That's thanks > to javascript, but jquery makes it more easily accessible. > > $('p').click(function

[jQuery] Re: Text Button

2007-05-22 Thread james_027
Hi, what is the difference between to Thanks james On May 22, 5:20 pm, Bob den Otter <[EMAIL PROTECTED]> wrote: > james_027 wrote: > > Hi, > > > Is this the best way to make a text button? > > > Click Me! > > Slightly offtopic, but you might want to look into > this:http://particletree.com/fe

[jQuery] Re: Text Button

2007-05-22 Thread james_027
Hi, Thanks Rob. Just want to ask you which of the two suggestion is more optimize or efficient? Thanks On May 22, 5:16 pm, "Rob Desbois" <[EMAIL PROTECTED]> wrote: > When you say 'text button' I'm assuming that you don't want the usual button > created with one of: > > > > Two ways to g

[jQuery] Re: Text Button

2007-05-22 Thread james_027
Hi, What I mean is when the cursor go over the tag, it doesn't show that it is clickable ... hope you got what I mean. james On May 22, 5:15 pm, Michael Stuhr <[EMAIL PROTECTED]> wrote: > james_027 schrieb: > > > Hi, > > > Is this the best way to make a text button? > > > Click Me! > > > It's n

[jQuery] Re: Text Button

2007-05-22 Thread Alexandre Plennevaux
1/ you can make any tag clickable by adding a "click" event. That's thanks to javascript, but jquery makes it more easily accessible. $('p').click(function(){ // do this and do that ... }); As for the cursor "hand" look , you can do that in css p{ Cursor: pointer; } -Original Messag

[jQuery] Re: Text Button

2007-05-22 Thread Rob Desbois
Nice article - however it is incorrect when it says the element 'behaves in exactly the same way as [the tag]'. MSIE's implementation of is...a pain in the backside at best! Information on that is at http://www.peterbe.com/plog/button-tag-in-IE --rob On 5/22/07, Bob den Otter <[EMAIL PROTECT

[jQuery] Re: Text Button

2007-05-22 Thread Bob den Otter
james_027 wrote: Hi, Is this the best way to make a text button? Click Me! Slightly offtopic, but you might want to look into this: http://particletree.com/features/rediscovering-the-button-element/ Besides the tag, they also go into styling tags to resemble buttons. Best, Bob.

[jQuery] Re: Text Button

2007-05-22 Thread Rob Desbois
When you say 'text button' I'm assuming that you don't want the usual button created with one of: Two ways to get an anchor tag to invoke a javascript action instead of navigating to a different page / anchor: Click Me! Click Me! If you want to make any tag have the usual clickable lin

[jQuery] Re: Text Button

2007-05-22 Thread Michael Stuhr
james_027 schrieb: Hi, Is this the best way to make a text button? Click Me! It's nice that even with using jquery could make almost any tag to have click event, but the problem is the cursor doesn't indicate that it's clickable. what do you mean by "the cursor doesn't indicate that it's