JK,

See a simple jQuery test piece below. The actual application would
have a radiolist generated from a query, and a table also generated
from a query. Big question, how to get the onClick and class
assignments into the html via asp.net. While I am on the server-side
in traditional asp, I know what class a given row belongs to, and can
match up radio,menu, or button items with appropriate titles and ids
in the table.

I was able to get what I want done with autopostback, and a re-query.
It is fast enough, but there is the refresh that would be nice to
eliminate., -- Dave


<html>

<head>

<title></title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">

$(document).ready(function(){ hideAllTA();});
function hideAllTA(){ $(".schedule tr").hide()} // specific to rows
within object of class "schedule"

function showallTA(){ $(".schedule tr").show()}

function showoneTA(bID)
{ hideAllTA(); $(".schedule tr." + bID).show(); } // specific to rows
with class bID within object of class "schedule"

function hideDetail()
{ $( ".schedule td.firstletter").toggle();} // toggle visibility of
the td containing the therapy area name

</script>
</head>

<body>
<button onclick='showoneTA("1")'>A</button>
<button onclick='showoneTA("2")'>B</button>
<button onclick='showoneTA("3")'>C</button>
<button onclick='showallTA()'>All</button>
<button onclick='hideDetail()'>Toggle Letter cell</button>

<table border = '1' class="schedule">
<tr class = "1"><td>Aardvark</td><td class ="firstletter">A</td></tr>
<tr class ="2"><td>Bat</td><td class ="firstletter">B</td></tr>
<tr class = "3"><td>Chimp</td><td class ="firstletter">C</td></tr>
</table>

</body>

</html>

On May 4, 12:19 pm, "Jeffrey Kretz" <[EMAIL PROTECTED]> wrote:
> Actually, I've had no troubles at all.
>
> I have a series of custom server components which automatically instantiate
> client-side jQuery as needed to make them work.  And the js resources
> (including the various plugins) are all embedded in the dll and for easy
> deployment.
>
> Describe specifically what you're running into, maybe I can help.
>
> JK
>
>
>
> -----Original Message-----
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
>
> Behalf Of [EMAIL PROTECTED]
> Sent: Friday, May 04, 2007 5:04 AM
> To: jQuery (English)
> Subject: [jQuery] ASP.net and jQuery...Imperfect Together?
>
> I am starting up with two technologies...asp.net and jQuery.
> jQuery works great with old asp, but seems to be 'unwelcome' in
> asp.net. Anyone have direct experience marrying the two?
> --- Dave- Hide quoted text -
>
> - Show quoted text -

Reply via email to