.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
MarieAdela
Imran Ghani
Post New Web Links

jQuery- JavaScript Library Write less do more

Posted By: Jalpesh P. Vadgama     Posted Date: August 26, 2010    Points: 0   Category :ASP.Net
 

This is introductory post jQuery an open source JavaScript library. I know what you guys thinking and I also know that jQuery does not required introduction. It is so much popular and most of web developers whether they are developing using asp.net,php,Jsp or any language on web they are using jQuery but this post is for who is not aware of it and or they are new to the web based programming.

We all are using JavaScript for client side scripting language almost 95% percentage of web application uses JavaScript as client script. We do lots of things with JavaScript right from the alerts to validation of controls to animation and now days we calling web services from JavaScript and fetching server side data also and rendering them into browser. If you are using JavaScript then you are following some patterns like selecting a element on and then perform some operation on that element on client side like do validation of  controls or changing the style sheet of  that element or animating them etc. jQuery help you doing this in rather simpler way so you can save lots of time doing other things instead of writing long complex JavaScript.

Why jQuery?

jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to


View Complete Post


More Related Resource Links

call JavaScript - jQuery code from ASP.NET Server-Side

  
jQuery got so close to me lately that I can see myself adding the scripts to my project almost unconsciously. The thing is, jQuery is very useful for me, in almost all situations and it has been a do or die enhancement for all my project since I first put my hands on it.

Of course while using it, you encounter few situations which need a bit of research to solve, mostly when you are trying to combine it with some other technologies like: UpdatePanels and ASP.NET Ajax. For instance there are many situations when I would like to run some jQuery magic based on some decision that I make on the server side.

call JavaScript - jQuery code from ASP.NET Server-Side

  
jQuery got so close to me lately that I can see myself adding the scripts to my project almost unconsciously. The thing is, jQuery is very useful for me, in almost all situations and it has been a do or die enhancement for all my project since I first put my hands on it.

Of course while using it, you encounter few situations which need a bit of research to solve, mostly when you are trying to combine it with some other technologies like: UpdatePanels and ASP.NET Ajax. For instance there are many situations when I would like to run some jQuery magic based on some decision that I make on the server side

Cutting Edge: Predictive Fetch with jQuery and the ASP.NET Ajax Library

  

Dino Esposito builds upon his exploration of new data binding features coming in the ASP.NET Ajax Library, explaining how to implement the predictive fetch design pattern.

Dino Esposito

MSDN Magazine February 2010


Calculating GridView total using JavaScript/JQuery

  

Hello everyone.

One month ago I've had very nice conversation with a asp.net forum member asking about issue regarding calculation of GridView textboxes total using JavaScript. The main thing was to allow user to manually write values in the text boxes (placed inside GridView column) and if the value has changed automatically to perform calculation on client side.

At the end of the conversation, we came up to two solutions. The first solution was using plain JavaScript, but since I thought it was not so robust, and in order to make it more robust we would need to write few more functions. Therefore, I have simply proposed another solution using JQuery which came up much better, more robust with less code.

In this blog post I will show both of the solutions and will provide step by step explanation on how we did that.

Note: I'm using VWD.

Can I write a wcf endpoint to communicate with JSON from Jquery on page?

  
Hi Guys,I need to be able to expose information to a page, and I need to write the information in xml on my webserver which will be dynamically created from the database. I need to use json to pass the data from the screen back to the server two way communication xms back and forth. Is it actually any good using a wcf endpoint to serve the json back to the page and use query with wcf? Is this possible?Or is it easier to use standard pages .aspx and just do a call to a url and get the json with jquery....We will probably want to send this information to other locations at some point in the future too....Cheers,Pete

Load Javascript/CSS from C# Class Library

  
Can anyone help me figure out how to load Javascript/CSS from my Class Library onto my .aspx pages? Is it possible?Thanks

How to embed jquery library in ASP.NET Custom Server Control

  
i created custom server control using jquery. i  embeded  jquery library in the control using following code. but it displays object expected error.  has someone done this before ?   //other code    protected override void RenderContents(HtmlTextWriter output) {    output.Write("<div id=\"bckPopup\"></div>"); }   protected void onInit(EventArgs e) { Page.ClientScript.RegisterClientScriptResource(GetType(), "HelpServerControl.Scripts.jquery-1.4.1.min.js");   string javascript = "<script type='text/javascript'> " +   "$(document).ready(function () { " +   "$('#bckPopup').text(\"loaded\"); " + "});</script>" ;   if (!(Page.ClientScript.IsClientScriptBlockRegistered("bhelp" ))) Page.ClientScript.RegisterStartupScript(this.GetType(), "bhelp" , javascript); base .OnInit(e);   }      

refresh document library view using javascript

  
Hi, Is it possible to refresh a document library view from javascript without executing a full pagre reload? Could anyone cite an example.\   Thanks in advance M

how to write in jquery

  
<a href="" onclick="openMyModal('~/DocMove.aspx?a=5'); return false;">Document Move</a>only i want onclick="openMyModal('~/DocMove.aspx?a='); return false;var= 12    onclick event with parameter pass in DocMove.aspx?a=f

No Javascript / JQuery intellisense in VWD 2010

  

I used to have intellisense for Javascript, including JQuery, in Visual Web Developer 2008. However in 2010 it has disappeared.  I have tried resetting my settings, but this has not helped.

Any suggestions?

Many thanks in advance


Euan


how write code in my javascript function and modify it?

  

hi there
i have a function in my javascript code:

   <script language="Javascript">
  function showAddress(address)
      {

          if (geocoder) 
         {
             
             <%=GeoMap%>
             
         } 
         
     }
</script>

actually, i set GeoMap variable from asp.net
the problem is that when GeoMap change value, the script does not change!
so, the button who change this value is in a UpdatePanel, does this got problem?

how can i do this?


beginner validation: jquery vs javascript vs codebehind

  

Hi

 

I've a webform that has around 10 textboxes that are filled with information from an event trigered by combobox.  so far so good.  The thing is that I need  that some textboxes should be validated against the sum of values of others,  and according to that assign given values.  Other textboxes should have a value according to those sum and datefield values.  I haven't found validation controls for asp.net so I assume that I should to it with javascript or jquery.  My concern as asp.net beginner is what happens if the user disables javascript?  If I make it with codebehind I'll have to refresh the page many times as I have many controls to validate.  What can I do ?

 

thanks in advance.

 

Edotom


jQuery / javascript calling a webservice

  

I've tried a bunch of different examples and still can't get this to work.

I have a jQuery GalleryView control I'm using and I simply want to log impressions.  I set up a webservice that works, but I can't figure out how to get it to work in javascript.  I have verified that the webservice is working as expected.


Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
' <System.Web.Script.Services.ScriptServ

JavaScript generated output using document.write does not appear in UpatePanel with AJAX

  

I have a ListView (in an UpdatePanel) connected to a LinqDataSource. When the page loads and/or I navigate through Postback, the code snippet (below) will display the following output:

[email.gif] someone@adomain.com   [email.gif] www.adomain.com

However, when I use a few DropDownLists (also in the UpdatePanel) to filter the results (reset the DataSource to a Linq query and call DataBind), the same Contact is displayed like this:

[email.gif] [email.gif] www.adomain.com

 

<asp:ListView ID="lvEContacts" runat="server" DataSource='<%# Eval("Business_EContacts") %>'>
  <LayoutTemplate>
    <ul id="itemPlaceholderContainer" runat="server">
      <li id="itemPlaceholder" runat="server"></li>
    </ul>
  </LayoutTemplate>
  <ItemTemplate>
    <li style="display: inline; list-style-type: none;">
      <asp:Image ID="imgEContact" runat="server" ImageUrl="~/DesktopModules/images/email.gif" ImageAlign="Middle" />
      <%# FormatEContact( Eval("EContact.Address") ) %>
    &l

Difference between jQuery JavaScript?How to create Plugins?

  

Hi friends,

May I know what is the exact difference between jQuery and JavaScript at root level.

Most of the post /blogs says It is light weight javascript?What does it mean?

I have used Jquery plugins in my project so my project doesn't get the effect if I don't use the Pugins .Why do I need Pugins?

Can I create my plugins if yes How should I create my own plugins

I don't want to be dependant on somebody else 's plugin

Please help

Regards

Chandrakant

 

 

 

 


How do I write a string coming from a Javascript function in my Label control?

  

Hi all,

This is what I tried doing in my Javascript function (partially):

...
catch (err) {
              document.getElementById("lblError").innerHTML = err.description;
              //alert(err.description);
}

IE output of my lblError label component is a long id name like this:

...
<tr>
<td>Last Error: <span id="ctl00_ctl00_ContentPlaceHolder_GlobalMasterPage_ContentPlaceHolder_DashboardMasterPage_lblError">No errors at this time.</span>
</td>
</tr>                                                    
</table>

how do I look up for lblLabel in this case?

Thank you


actionscript 3 and jquery/javascript

  

I know how to allow the following languages to communicate with each other, but the idea of to what benefit I cannot think of. Does anyone have any idea what I could use in my actionscript 3 that would benefit javascript from being executed?


Only thing that comes to mind is an actionscript control that passes variables to javascript code and does some sort of work. Maybe, execute asynchronous postbacks to track user interaction with flash?


<script type="text/javascript">
        function get_x() {
            var value = 25;
            return value;
        }
        function some_js_function(name) {
            switch (name) {
                case "nick":
                    alert('this page has javascript that was executed by actionscript ' + name);

                    return 99;
                    break;
                default:
                    alert(name);
                    break;

            }
        }
    </script>

    <script type="text/javascript" language="javascript">
        var jsReady = false;
        function isReady() {
            return jsReady;
        }
        function pageInit() {
            jsReady = true;
            document.forms["form1"].output.value += "\n" + "JavaScript is rea
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend