Re: Can i make an entire table row an ajax link?

2007-01-17 Thread Chris Hartjes


On 1/17/07, quincy [EMAIL PROTECTED] wrote:


I'm listing records in a table, and each has a link view which uses
ajax to display the full record detail below the list, and alter the
css so the row in the list table is highlighted.  In a nutshell, i want
to be able to click anywhere on a row in the table and have it become
selected that way, rather than just a small link in a cell at the right
of the row.

I hope this makes sense!! I'm aiming for that authentic desktop app
look and feel for my CMS system.



Well, I would wrap the entire row in a div and then create an action
that responds to clicking on the entire div.

Hope that helps.

--
Chris Hartjes

My motto for 2007:  Just build it, damnit!

rallyhat.com - digitial photo scavenger hunt
@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Can i make an entire table row an ajax link?

2007-01-17 Thread djiize


in w3c specs, a tr cannot be in a div, tables cannot contain div
unless in td
did you try to put your action on the tr ?

Chris Hartjes a écrit :

On 1/17/07, quincy [EMAIL PROTECTED] wrote:

 I'm listing records in a table, and each has a link view which uses
 ajax to display the full record detail below the list, and alter the
 css so the row in the list table is highlighted.  In a nutshell, i want
 to be able to click anywhere on a row in the table and have it become
 selected that way, rather than just a small link in a cell at the right
 of the row.

 I hope this makes sense!! I'm aiming for that authentic desktop app
 look and feel for my CMS system.


Well, I would wrap the entire row in a div and then create an action
that responds to clicking on the entire div.

Hope that helps.

--
Chris Hartjes

My motto for 2007:  Just build it, damnit!

rallyhat.com - digitial photo scavenger hunt
@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Can i make an entire table row an ajax link?

2007-01-17 Thread Chris Hartjes


On 1/17/07, djiize [EMAIL PROTECTED] wrote:


in w3c specs, a tr cannot be in a div, tables cannot contain div
unless in td
did you try to put your action on the tr ?



Well, there are plenty of ways to get around that...

* you could put divs around the data in each td, all with a common
class for that row
* then you create the Ajax stuff that gets triggered when you click on
any item with that class

That should work.

--
Chris Hartjes

My motto for 2007:  Just build it, damnit!

rallyhat.com - digitial photo scavenger hunt
@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Can i make an entire table row an ajax link?

2007-01-17 Thread quincy


Thankyou for replies so far, but i am still fairly confused.

I'm not sure i understand how to make an entire tr or any other HTML
element click-able.  Using $ajax-link() function just spits out an
HTML link, so how is it possible to make an entire HTML element into
something that can be clicked??  Perhaps this is a huge hole in my
knowledge of HTML or Javascript, it wouldn't be the first time!!

On Jan 17, 4:51 pm, djiize [EMAIL PROTECTED] wrote:

in w3c specs, a tr cannot be in a div, tables cannot contain div
unless in td
did you try to put your action on the tr ?

Chris Hartjes a écrit :

 On 1/17/07, quincy [EMAIL PROTECTED] wrote:

  I'm listing records in a table, and each has a link view which uses
  ajax to display the full record detail below the list, and alter the
  css so the row in the list table is highlighted.  In a nutshell, i want
  to be able to click anywhere on a row in the table and have it become
  selected that way, rather than just a small link in a cell at the right
  of the row.

  I hope this makes sense!! I'm aiming for that authentic desktop app
  look and feel for my CMS system.

 Well, I would wrap the entire row in a div and then create an action
 that responds to clicking on the entire div.

 Hope that helps.

 --
 Chris Hartjes

 My motto for 2007:  Just build it, damnit!

 rallyhat.com - digitial photo scavenger hunt
 @TheBallpark -http://www.littlehart.net/attheballpark
 @TheKeyboard -http://www.littlehart.net/atthekeyboard



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Can i make an entire table row an ajax link?

2007-01-17 Thread Chris Hartjes


On 1/17/07, quincy [EMAIL PROTECTED] wrote:


Thankyou for replies so far, but i am still fairly confused.

I'm not sure i understand how to make an entire tr or any other HTML
element click-able.  Using $ajax-link() function just spits out an
HTML link, so how is it possible to make an entire HTML element into
something that can be clicked??  Perhaps this is a huge hole in my
knowledge of HTML or Javascript, it wouldn't be the first time!!



I'm pretty sure that you won't be able to use the built-in helpers to
make something like that work, but I could be wrong...and I'm sure
someone will correct me if I am.

--
Chris Hartjes

My motto for 2007:  Just build it, damnit!

rallyhat.com - digitial photo scavenger hunt
@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Can i make an entire table row an ajax link?

2007-01-17 Thread Samuel DeVore


one issue is that the prototype/scripta stuff works really poorly with
html table elements


On 1/17/07, Chris Hartjes [EMAIL PROTECTED] wrote:


On 1/17/07, quincy [EMAIL PROTECTED] wrote:

 Thankyou for replies so far, but i am still fairly confused.

 I'm not sure i understand how to make an entire tr or any other HTML
 element click-able.  Using $ajax-link() function just spits out an
 HTML link, so how is it possible to make an entire HTML element into
 something that can be clicked??  Perhaps this is a huge hole in my
 knowledge of HTML or Javascript, it wouldn't be the first time!!


I'm pretty sure that you won't be able to use the built-in helpers to
make something like that work, but I could be wrong...and I'm sure
someone will correct me if I am.

--
Chris Hartjes

My motto for 2007:  Just build it, damnit!

rallyhat.com - digitial photo scavenger hunt
@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard






--
==
S. DeVore
(the old fart) the advice is free, the lack of crankiness will cost you

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Can i make an entire table row an ajax link?

2007-01-17 Thread [EMAIL PROTECTED]

I believe this is an IE issue (somewhere on the MS site it
catagorically stated TR, TD, etc cannot be modified in the DOM - you
have to use some proprietry method). If I find the link gain, I'll post
it later. You might want to test in FF to prove me wrong.

In the meantime, this might help:

http://www.robsanheim.com/2005/10/11/prototype-insertion-ie-6-trs-and-invalid-target-element-for-this-operation/


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---