Nettuts.com is a great site with many tutorials.
Here is a series of jQuery tutorials for beginners
Nettuts.com is a great site with many tutorials.
Here is a series of jQuery tutorials for beginners
Google Tech Talks
September 5, 2006
Ken Schwaber co-developed the Agile process, Scrum. He is a founder of the Agile Alliance and Scrum Alliance, and signatory to the Agile Manifesto. Ken has been a software developer for over thirty years. He is an active advocate and evangelist for Agile processes.
ABSTRACT
Scrum is an amazingly simple process that causes many, many changes when it is implemented. This seminar presents the basic framework of Scrum and some of the implementation issues associated with it.
Speaker:Ken Schwaber
I’m reinstalling Windows on my work computer and wanted to preserve all the current Visual Studio settings.
In case you didn’t know how it is done:
1. Open Visual Studio
2. Go to Tools->Import and Export Settings
3. Choose “Export selected…”
4. Choose which settings you want to export
5. Choose filename and location
6. Done :)
7. All you need to do now is to go to same menu on other VS and select import.
This is a nice script that can convert your Google search page from this:
to this:
Features (From the developers page):
Install it from here
* For some reason the script registers with a specific domain name, so I had to change it manually to:
DropDownList SelectedValue:
GET: $('#<%=DropDownList1.ClientID%>').val();
SET: $('#<%=DropDownList1.ClientID%>')
.val("value_to_set");
RadioButtonList SelectedValue:
$("input[name='<%=RadioButtonList1
.UniqueID%>']:checked").val();
Button Enable/Disable
$('#<%=Button1.ClientID%>').attr("disabled", true/false);
Label Text
GET: $('#<%=Label1.ClientID%>').text();
SET: $('#<%=Label1.ClientID%>').text("value_to_set");
TextBox Text
GET: $('#<%=TextBox1.ClientID%>').val();
SET: $('#<%=TextBox1.ClientID%>').val("value_to_set")
Check Visibility
if ($('#<%=Button1.ClientID%>').is(':visible'));
I got this amazing tip from an article named “5 tips for better jQuery code”.
This is a great way to associate any amount of data with any element on the page, here is a small example:
<html>
<head>
<title>jQuery Data() method</title>
<script src="scripts/jquery/jquery-1.2.6.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
//create meaningless list
for(var i=0;i < 10;i++)
{
$("#list").append("<li>" + i + "</li>");
}
var prevSum = 0;
//will show the pwr of index and sum with all previous items
$("#list li").each(function(indx, obj)
{
prevSum = prevSum + indx;
//attach data to each list item
$(this).data("Data", {pwr: indx*indx, sum: prevSum });
//Show it
$(this).html($(this).html() + ": pwr=" + $(this).data("Data").pwr + ",sum=" + $(this).data("Data").sum);
});
});
</script>
</head>
<body>
<ul id="list">
<!--the items will be added here -->
</ul>
</body>
</html>
Nice!
The interesting part is that the data is not shown in the source code…
jQuery $.each can be used in order to iterate over an array:
$(document).ready(function() {
var arr = [ "a", "b", "c", "d", "e" ];
$.each(arr,function(index, item)
{
$('#list').append($( "<li>" + item + " at " + index +"</li>" ));
});
});
You should have a <ul> with id=list for this code to work:
<ul id="list">
<!--the items will be added here -->
</ul>
The result is:
Here is the entire code:
<html>
<head>
<title>jQuery Array Iteration</title>
<script src="scripts/jquery/jquery-1.2.6.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
var arr = [ "a", "b", "c", "d", "e" ];
$.each(arr,function(index, item)
{
$('#list').append($( "<li>" + item + " at " + index +"</li>" ));
});
});
</script>
</head>
<body>
<ul id="list">
<!--the items will be added here -->
</ul>
</body>
</html>
Important to note that this is not the same as $(‘DOMElement’).each().
<script type="text/javascript">// Get the instance of PageRequestManager.var pageReq = Sys.WebForms.PageRequestManager.getInstance();// Add initializeRequest and endRequestpageReq.add_initializeRequest(pageReq_InitializeRequest);pageReq.add_endRequest(pageReq_EndRequest);// Called when async postback beginsfunction pageReq_InitializeRequest(sender, args) {}// Called when async postback endsfunction pageReq_EndRequest(sender, args) {}</script>