Click here to Skip to main content
       

JavaScript

 
GeneralRe: get the checkbox index or table row index with javascript Pinmemberenhzflep30-Aug-12 23:18 
AnswerRe: get the checkbox index or table row index with javascript Pinmemberenhzflep30-Aug-12 23:24 
GeneralRe: get the checkbox index or table row index with javascript Pinmemberkmoorevs28-Sep-12 6:07 
Questionuse JQuery in C# code PinmemberGSingh-Developer29-Aug-12 7:26 
AnswerRe: use JQuery in C# code Pinmemberjkirkerx29-Aug-12 8:01 
GeneralRe: use JQuery in C# code PinmemberGSingh-Developer29-Aug-12 8:26 
GeneralRe: use JQuery in C# code Pinmemberjkirkerx29-Aug-12 9:49 
AnswerRe: use JQuery in C# code PinmemberBobJanova30-Aug-12 0:18 
I don't think you understand how ASP.net works. This isn't entirely your fault because ASP.net does its best to hide the client/server nature of websites.
 
Back end (C#) code is executed on the server. Its purpose is to generate markup which is sent to the browser, which can include scripts and links to scripts (e.g. jQuery). Once a request has been handled and markup sent back to the browser, your back end code is not running any more.
 
jQuery (like other JavaScript code) is run in the browser, and allows you to modify what the client sees or does. Anything interactive that happens in the browser is done with JS.
 
The only ways to communicate between them are HTTP requests, either through loading a new page with an <a> or <form action=...> tag, or via an AJAX request.
 
Animation is a client side task and therefore it will always be done with JavaScript. There is simply no (sane) way to get back end code involved in that code cycle, because the animation is done in the browser and the server is not involved.
GeneralRe: use JQuery in C# code Pinmemberjkirkerx30-Aug-12 7:34 
SuggestionText editor PinmemberNolee K28-Aug-12 2:57 
GeneralRe: Text editor PinprotectorPete O'Hanlon28-Aug-12 3:06 
GeneralRe: Text editor PinmemberBobJanova28-Aug-12 3:31 
AnswerRe: Text editor PinmemberTadit Dash28-Aug-12 3:56 
GeneralRe: Text editor Pinmembermark merrens28-Aug-12 9:41 
AnswerRe: Text editor PinmemberJoan Murt28-Aug-12 10:00 
Questionautomatically checking a check box in a website. Pinmembersaadmechiche26-Aug-12 22:20 
AnswerRe: automatically checking a check box in a website. PinmemberShameel28-Aug-12 3:35 
Questionmy function really slows down after 4 times Pinmemberjkirkerx26-Aug-12 16:34 
AnswerRe: my function really slows down after 4 times Pinmemberjkirkerx28-Aug-12 8:55 
Questiontrouble using each in json array Pinmemberjkirkerx23-Aug-12 12:56 
AnswerRe: trouble using each in json array PinmemberBobJanova23-Aug-12 22:47 
GeneralRe: trouble using each in json array Pinmemberjkirkerx24-Aug-12 6:32 
QuestionHow to calculate difference between two date PinmemberRobymon21-Aug-12 23:11 
AnswerRe: How to calculate difference between two date PinmemberBobJanova22-Aug-12 0:33 
QuestionHow to add Days in variable Date PinmemberRobymon21-Aug-12 21:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.140827.1 | Last Updated 1 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid