<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml"><head id="ctl00_Header">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Description" content="Free source code and tutorials for Software developers and Architects.">
<meta name="Keywords" content="C++, C#, VB.NET, ASP.NET, .NET, AJAX, Web 2.0">
<meta name="Author" content="The Code Project">
<meta name="Rating" content="General">
<meta name="Robots" content="index, follow">
<meta name="Revisit-After" content="7 days">
<link rel="alternate" type="application/rss+xml" title="CodeProject Lounge Postings" href="http://www.codeproject.com/webservices/LoungeRSS.aspx">
<link rel="alternate" type="application/rss+xml" title="CodeProject Latest articles - All topics" href="http://www.codeproject.com/webservices/articlerss.aspx?cat=1">
<link rel="alternate" type="application/rss+xml" title="CodeProject Latest articles - MFC / C++" href="http://www.codeproject.com/webservices/articlerss.aspx?cat=2">
<link rel="alternate" type="application/rss+xml" title="CodeProject Latest articles - C#" href="http://www.codeproject.com/webservices/articlerss.aspx?cat=3">
<link rel="alternate" type="application/rss+xml" title="CodeProject Latest articles - ASP.NET" href="http://www.codeproject.com/webservices/articlerss.aspx?cat=4">
<link rel="alternate" type="application/rss+xml" title="CodeProject Latest articles - .NET" href="http://www.codeproject.com/webservices/articlerss.aspx?cat=5">
<link rel="alternate" type="application/rss+xml" title="CodeProject Latest articles - VB.NET" href="http://www.codeproject.com/webservices/articlerss.aspx?cat=6">
<link rel="search" type="application/opensearchdescription+xml" title="CodeProject" href="http://www.codeproject.com/info/OpenSearch.xml"><title>CodeProject: jMVC.NET: Easy dynamic client-side UIs with clean MVC coding. Free source code and programming articles</title><link rel="stylesheet" type="text/css" href="jsonnet.aspx_files/CodeProject.css"><link rel="stylesheet" type="text/css" href="jsonnet.aspx_files/ForumClassic.css">
<!-- base -->
<script type="text/javascript" language="javascript">
if(top!=self)top.location.href=location.href;
if(typeof(DemoUrl)!="undefined")document.write('<meta http-equiv="refresh" content="1;url='+DemoUrl+'" />');
function SetAsAvailable()
{
var articleId = document.getElementById("ArticleId");
if(articleId)
{
var url = '/script/Articles/UpdateArticleStatus.aspx'
window.location.href = url + "?aid=" + articleId.value + "&rp=" + location.href;
}
}
</script>
<script src="jsonnet.aspx_files/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-1735123-1";
urchinTracker();
</script>
<script type="text/javascript" language="Javascript" src="jsonnet.aspx_files/oncopy.js"></script>
<script type="text/javascript" language="Javascript" src="jsonnet.aspx_files/addto.js"></script>
<script type="text/javascript" language="Javascript"><!--
function ToggleMenu(itemName)
{
var elm = document.getElementById(itemName);
var i,others = document.getElementById('SectionMenu');
for(i=0; i < others.childNodes.length; i++)
{
var other = others.childNodes[i];
if ((other.className == 'MenuSectionBlock') && (other != elm))
other.style.display='none';
}
if (elm.style.display == 'block') elm.style.display='none';
else elm.style.display='block';
return false;
}
--></script>
<script type="text/javascript" language="Javascript"><!--
function MsgVoteForm(MemberID, MsgID) {
document.write("Rate this message: ");
document.write("<a href=\"#xx" + MsgID.toString() + "xx\" onclick=\"RateMsg(" + MemberID.toString() + ", " + MsgID.toString() + ",1)\">"); document.write("<img height=\"14\" width=\"14\" src=\"/script/Forums/Images/thumbs_down.gif\" border=\"0\" align=\"absmiddle\" /></a> "); for (var i=1; i<=5;i++)
document.write("<a class=\"Frm_MHL\" href=\"#xx" + MsgID.toString() + "xx\" title=\"give this message a vote of " + i.toString() + "\" onclick=\"RateMsg(" + MemberID.toString() + ", " + MsgID.toString() + ", " + i.toString() + ")\"><b>" + i.toString() + "</b></a> ");
document.write("<a href=\"#xx" + MsgID.toString() + "xx\" onclick=\"RateMsg(" + MemberID.toString() + ", " + MsgID.toString() + ",5)\">"); document.write("<img height=\"14\" width=\"14\" src=\"/script/Forums/Images/thumbs_up.gif\" border=\"0\" align=\"absmiddle\" /></a> ");}
function ReportMsg(userid, msgid, score) {
if (confirm("Are you sure you want to report this message?") == true)
return RateMsg(userid, msgid, score);
else return false;
}
function RateMsg(memberid, msgid, score) {
var req = new XMLHttpRequest();
req.onreadystatechange = function() {
if (req.readyState == 4) {
if ( req.status == 200 ) {
var respText = req.responseText;
var re = new RegExp("\<div\>([^\<]*)\</div\>", "g");
var match = re.exec(respText);
voteStatus.innerHTML = "<b>" + (match)?match[1]:"An error occured" + "</b>";
}
else
{
voteStatus.innerHTML = "<b style='color:red'>Failed!" + req.statusText + "</b>";
}
}
}
var voteStatus = document.getElementById("MVF" + msgid);
if (!voteStatus) return;
voteStatus.innerHTML = "<b style='color:green'>Voting...</b>";
var strAction = "/script/Forums/Vote.aspx?js=1&fmid="+memberid.toString()+"&select="+msgid.toString()+"&score="+score.toString();
req.open("GET", strAction, true);
req.send(null);
return false;
}
--></script>
<script type="text/javascript" language="Javascript"><!--
var Selected = "-1";
function SwitchMessage(e, msgId)
{
var elmref;
if(Selected!=""){
elmref=eval("document.getElementById('" + Selected + "_h1')");
if(elmref) elmref.style.display = 'none';
elmref=eval("document.getElementById('" + Selected + "_h0')");
if(elmref) elmref.className = elmref.className.replace("Sel", "UnSel");
}
if(Selected!=msgId.toString()){
Selected=msgId.toString();
elmref=eval("document.getElementById('" + Selected + "_h1')");
if(elmref){
if(elmref.style.display=='none') elmref.style.display='';
else elmref.style.display = 'none';
}
elmref=eval("document.getElementById('" + Selected + "_h0')");
if (elmref)
elmref.className = elmref.className.replace("UnSel", "Sel");
}
else
Selected="";
if (!e&&window.event)e=window.event;
if(Selected!=""&&e&&document.getElementById(Selected + "_h1").style.display!="none"){
elmref=document.getElementById(Selected + "_h0");
var adj=(getRealPos(elmref,"Top")+elmref.offsetHeight/2)-(document.body.scrollTop+40/*e.clientY*/);
document.body.scrollTop += adj;
EnsureMessageVisible(Selected, true);
}
return false;
}
function SwitchThisMessage(e){ return SwitchMessage(e, this.name); }
--></script>
<script type="text/javascript" language="Javascript" src="jsonnet.aspx_files/ShortCuts.js"></script>
<link rel="icon" href="http://www.codeproject.com/favicon.ico" type="image/ico">
<link rel="shortcut icon" href="http://www.codeproject.com/favicon.ico" type="image/ico"></head><body style="background-color: rgb(255, 255, 255);">
<table id="ctl00_AT" border="0" cellpadding="0" cellspacing="0">
<tbody><tr valign="top">
<td colspan="2">
<table border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td class="HeaderLogo"><a href="http://www.codeproject.com/"><img alt="Home" src="jsonnet.aspx_files/codeproject225x90.gif" border="0" height="90" width="225"></a></td>
<td class="HeaderBanner" align="right" width="100%">
<script language="javascript">document.write("<a href=\"http://www.codeproject.com/Redir.aspx?adid=3976&way=ban\" target=\"_blank\"><img src=\"http://www.codeproject.com/script/Ann/ServeImg.aspx?File=%2fscript%2fadmentor%2fimages%2fDevExpress_theProblem_leader_728x90.gif&C=Fals
评论0