http://www.w3schools.com/JS/tryit.asp?filename=tryjs_text
Jquey reference online
<html>
<body>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
document.write("Hello World!");
$(
function()
{
alert('hi');
}
)
</script>
</body>
</html>
Tuesday, April 14, 2009
Thursday, April 9, 2009
onload event in JQuery
<script type="text/javascript">
$(function() {
alert("This is equal to Form_Load in JQuery");
});
</script>
$(function() {
alert("This is equal to Form_Load in JQuery");
});
</script>
If getJSON in JQuery can not find exact signature method in Controller, it fails silently.... (ASP.NET MVC)
it fails silently....
Microsoft should put a couple of exclaimation marrk for this documentation somewherem, so we can see to save us sometime!!!!!!!!!!!!!!!!!!!!!!!!!
Example:
If you call getJSON in client side:
$.getJSON('/Home/GetList', { id: $("#country").val() },
You have to create an action in controller in following:
public JsonResult GetList(string id)
{
return Json(test.ToList());
}
But if you:
public JsonResult GetList(int id)
{
return Json(test.ToList());
}
You got nothing!!!!!!!!!!!!!!!!
Microsoft should put a couple of exclaimation marrk for this documentation somewherem, so we can see to save us sometime!!!!!!!!!!!!!!!!!!!!!!!!!
Example:
If you call getJSON in client side:
$.getJSON('/Home/GetList', { id: $("#country").val() },
You have to create an action in controller in following:
public JsonResult GetList(string id)
{
return Json(test.ToList());
}
But if you:
public JsonResult GetList(int id)
{
return Json(test.ToList());
}
You got nothing!!!!!!!!!!!!!!!!
Tuesday, April 7, 2009
Subscribe to:
Posts (Atom)