Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET4.0
how to use jquery? give example?
Posted 10-Nov-12 1:26am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Have a look:
 
http://www.w3schools.com/jquery/default.asp[^]
 
it is a good place to start with
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

There are a lot of articles you can refer to learn Jquery. Just google[^] and you will get plenty of resources.
 
Here is a website that has some good videos on Jquery[^].
 
If you are looking for a book to learn jquery you can refer this[^].
 
You can also find a lot of CP articles on Jquery here[^].
 

Good luck.
  Permalink  
Comments
Anwar Jamal at 26-Apr-13 6:08am
   
I am new to JQuery and need to convert the following function to jquery
function doLoadGridPage(iPage) {
try {
oXML = new ActiveXObject("microsoft.XMLDOM");
oXML.async = false;
oXML.load("processXMLData.asp?action=loadGridPage&pn=" + iPage);
 
if (oXML.readyState == 4)
{
var buttons = oXML.selectNodes("/ROOT/vw_admin-grid-buttons");
var x, y, z;
// Clear all buttons...
for (y = 1; y <= colMax; y++) {
for (x = 1; x <= rowMax; x++) {
var ref1 = "row" + x + "col" + y;
 
document.getElementById(ref1).style.color = 'black';
document.getElementById(ref1).style.background = 'silver';
document.getElementById(ref1).style.fontStyle = "normal";
document.getElementById(ref1).style.fontWeight = "normal";
document.getElementById(ref1).style.textDecoration = "none";

document.getElementById(ref1).pageNumber = iPage;
document.getElementById(ref1).rowNumber = x;
document.getElementById(ref1).columnNumber = y;
document.getElementById(ref1).buttonTypeId = null;
document.getElementById(ref1).buttonInstanceId = null;
document.getElementById(ref1).buttonInstanceCaption = null;
document.getElementById(ref1).caption = null;
document.getElementById(ref1).buttonInstanceStyleId = null;
document.getElementById(ref1).restricted = false;
document.getElementById(ref1).buttonStyleId = null;
document.getElementById(ref1).telephoneNumber = null;
document.getElementById(ref1).pageJumpDestination = null;
document.getElementById(ref1).pageId = null;
document.getElementById('div' + ref1).innerHTML = "                    ";
}
}
// Populate the returned buttons...
var pageHasRestrictedButtons = false;
for (z = 0; z < buttons.length; z++) {
if (buttons[z].childNodes) {
var buttonInstanceId = buttons[z].selectSingleNode("./ID").text;
var buttonTypeId = buttons[z].selectSingleNode("./ButtonTypeId").text;
var buttonTypeName = buttons[z].selectSingleNode("./TypeName").text;
var buttonStyleId = buttons[z].selectSingleNode("./StyleId").text;
var buttonInstanceStyleId = buttons[z].selectSingleNode("./ButtonInstanceStyleId").text;
var idleforecolour = buttons[z].selectSingleNode("./IdleForeColour").text;
var idlebackcolour = buttons[z].selectSingleNode("./IdleBackColour").text;
var buttonInstanceCaption = buttons[z].selectSingleNode("./ButtonInstanceCaption").text;
var caption = buttons[z].selectSingleNode("./Caption").text;
var pageId = buttons[z].selectSingleNode("./PageEntryId").text;
var row = buttons[z].selectSingleNode("./Row");
var col = buttons[z].selectSingleNode("./Col");
 
var telephonenumber;
var pagejumpdestination;
var splitCaption = caption.replace("\\r\\n", "<BR />");
 
try {
telephonenumber = buttons[z].selectSingleNode("./telephonenumber");
}

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 205
1 Sergey Alexandrovich Kryukov 185
2 jlopez788 144
3 Rob Philpott 100
4 Prakriti Goyal 97
0 OriginalGriff 6,837
1 Sergey Alexandrovich Kryukov 5,559
2 Maciej Los 3,479
3 Peter Leow 3,323
4 DamithSL 2,505


Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 10 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100