SmartNavigation without ASP.NET????
Tip of the day,
Wanna reproduce smartnavigation behaviour for your web pages?????
Was playing around with the feature provided by ASP.NET and it performs somewhat like this:
<script>
function TrialSaving()
{
StorageSpace.document.write(document.body.innerHTML);
StorageSpace.document.forms[0].submit();
StorageSpace.document.body.innerHTML="";
setTimeout("tryMe()",300);
return false;
}
function tryMe()
{
if(StorageSpace.document.body.innerHTML=="")
setTimeout("tryMe()",300);
else
document.body.innerHTML=StorageSpace.document.body.innerHTML;
}
</script>
<iframe name='StorageSpace' width=100%></iframe>
Call function TrialSaving before submiting your form. And, voila, the page does not seem to refresh. U can go about adding hidden fields to indicate last focussed controls etc.
Of course this is a miniature version, can be modified to perform better and add more functionality.