[jQuery] Re: ASP.net and jQuery...Imperfect Together?
Hi Dave, Sounds like you're not preventing the buttons default event from happening. You need to add return false; to your clientside click event: button onclick='showoneTA(1); return false;'A/button -Ardie On May 5, 4:58 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 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 = 1tdAardvark/tdtd class =firstletterA/td/tr tr class =2tdBat/tdtd class =firstletterB/td/tr tr class = 3tdChimp/tdtd class =firstletterC/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 -
[jQuery] Re: ASP.net and jQuery...Imperfect Together?
I've been using them both together for a while. I do generally stick to some of the simpler controls (like Repeaters, DropDownLists and Buttons) and never use DataGrid's. But I don't use the designer much and code mostly by hand. I just use postback's to add /edit / delete records and then redirect (sometimes to the same page, but with the ID appended). I don't like doing multiple postback's as you then have to worry about viewstate and rebinding controls and manual refreshes of the page (via user interaction on the browser). Getting the rendered controls is not as simple as doing $ (#mydropdownlist) so to get around that I either apply a CssClass or use $([EMAIL PROTECTED]). As the output is HTML, then you can still use jQuery. It's just not as easy as when you use PHP or plain HTML pages (where you have more control over the HTML that is output).# I wrote a post on using a WebHandler with jQuery a while ago: http://webdevel.blogspot.com/2006/11/using-webhandlers-with-jquery-aspnet-2.html On May 4, 1:04 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 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
[jQuery] Re: ASP.net and jQuery...Imperfect Together?
There are some known issues when dealing with .Net's controls, especially centered around events. In the latest SVN and soon to be 1.1.3 jQuery no longer errors out with .Net but I believe there are still some issues that need to be worked out. If you have a specific issue just let us know. -- Brandon Aaron On 5/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 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 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups jQuery (English) group. To post to this group, send email to jquery-en@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-en?hl=en -~--~~~~--~~--~--~---
[jQuery] Re: ASP.net and jQuery...Imperfect Together?
[EMAIL PROTECTED] wrote: 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 What problems are you having? I'm finishing up a project using ASP.NET and jQuery and haven't had any problems. On the ASP.NET side, I'm using everything like I normally would (web controls, web user controls, validators, etc.). For jQuery, I'm a using a few features from the core and the following plugins: tabs, history/remoting, jqgmaps, superfish, bgiframe, jqmodal, tooltip, and tablesorter. -- Chris Scott Adaptive Hosting Solutions, Inc. | Blogzerk - blog hosting http://www.adaptivehostingsolutions.com/ | http://www.blogzerk.com/
[jQuery] Re: ASP.net and jQuery...Imperfect Together?
Hi Dave, I'm currently using jquery in a asp.net project and the only issues i've run into is the $ conflicts that occur if you use MS's AJAX.NET controls. Only way to get around it is to make sure the jquery script and all your scripts that rely on jquery get loaded after any MS scripts. (Which is very difficult to do.) Also make sure to remap the $ token to something else: var $j = jQuery.noConflict(); -Ardie [EMAIL PROTECTED] wrote: 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 -- View this message in context: http://www.nabble.com/ASP.net-and-jQuery...Imperfect-Together--tf3691700s15494.html#a10324924 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: ASP.net and jQuery...Imperfect Together?
unsubscribe Ryan Doom [EMAIL PROTECTED] www.webascender.com office : 517.579.0420 mobile : 517.507.9274 Web (Sites, Marketing and Tracking) -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Duymelinck Sent: Friday, May 04, 2007 8:20 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: ASP.net and jQuery...Imperfect Together? [EMAIL PROTECTED] schreef: 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 I didn't have much trouble using them both on http://www.ictdag.be (Dutch) i used the jqModal and quicksearch plugin and my own code for exapmle on the pages - http://www.ictdag.be/10/sessies.aspx : to seach on the page and to limit the sessionslist by clicking on the submenu - http://www.ictdag.be/10/interesse.aspx : hiding form parts that aren't useful (under the title Kostprijs click on the text next to the down arrows) - http://www.ictdag.be/10/admin.aspx : messages involving errors become visible as a popup The only problem i encountered was in the admin part trying to validate before the data is send to the server. Non of the methods to stop the default behaviour of the button did work. -- David Duymelinck [EMAIL PROTECTED]
[jQuery] Re: ASP.net and jQuery...Imperfect Together?
I've been using them both together for a while. I do generally stick to some of the simpler controls (like Repeaters, DropDownLists and Buttons) and never use DataGrid's. But I don't use the designer much and code mostly by hand. I just use postback's to add /edit / delete records and then redirect (sometimes to the same page, but with the ID appended). I don't like doing multiple postback's as you then have to worry about viewstate and rebinding controls and manual refreshes of the page (via user interaction on the browser). Getting the rendered controls is not as simple as doing $ (#mydropdownlist) so to get around that I either apply a CssClass or use $([EMAIL PROTECTED]). As the output is HTML, then you can still use jQuery. It's just not as easy as when you use PHP or plain HTML pages (where you have more control over the HTML that is output).# I wrote a post on using a WebHandler with jQuery a while ago: http://webdevel.blogspot.com/2006/11/using-webhandlers-with-jquery-aspnet-2.html On May 4, 1:04 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 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