The growth and power of mobile devices

The following is the recent statistics of my agriculture based website http://market.grassfield.org

It is amazing to see, Internet Explorer is in the fourth place, and the third place goes to mobile browsers.

Image

The following graph shows the split up of the mobile devices.

Image

mmm. interesting!!

AJAX and window.location.href

see there is a html line like this
<a href=”javascript:void(0);” onClick=”javascript:deleteGroup();”>Delete</a>
the delete group function is written as

function deleteGroup()
{
selectAll(null);
if (groupNames==”” || groupNames==”,”)
{
alert (“No Groups selected”);
return;
}
var a = confirm(“Are you sure you want to delete the selected groups? This change is permanent and this cannot be recovered!”);

if(a)
{
alert(groupNames);
window.location.href=”/final/admin/Egconfiggroupp.jsp?deleteGroups=”+groupNames+”&mode=delete”;
return;
}
}

It is working fine in Firefox but not in IE. Actually the control has been transferred to configgroupp.jsp and what it need to do, has been done. but it is not getting reflected in UI. it is static 😦 but when you add ” window.event.returnValue=false;” after window.location.href it is workign fine.

function deleteGroup()
{
selectAll(null);
if (groupNames==”” || groupNames==”,”)
{
alert (“No Groups selected”);
return;
}
var a = confirm(“Are you sure you want to delete the selected groups? This change is permanent and this cannot be recovered!”);

if(a)
{
alert(groupNames);
window.location.href=”/final/admin/Egconfiggroupp.jsp?deleteGroups=”+groupNames+”&mode=delete”;
window.event.returnValue=false ;
return;
}
}

What MS site says is, http://support.microsoft.com/kb/190244/en-us ,
The onclick event is overwritten by href tag etc etc….. oops. oh MS associates, why your browser keep on bugging me, while firefox is working fine?


—————————————————
*Free* software is a matter of liberty not price. You should think of “free” as in “free speech”.

https – Servlet – Attachment – IE not working

Hi, I have a servlet which will send me PDF stream. It is working good in IE and Firefox. When operating in secured mode (https), IE couldnt download the attachment. it stops in halfway. There were no exceptions thrown at the servlet end. Atlast, we found the line

response.setHeader(“Pragma”, “no-cache”);

is the culprit. when we dint set this header param when operating in secured mode,
it is working fine. 🙂

Microsoft site says “This behavior occurs when the Content Expiration option in the
Hypertext Transfer Protocol (HTTP) Headers, within IIS, is set to
Expire Immediately. Internet Explorer must save any Microsoft Office
file to the local cache directory, and then use the associated
application to open the file. If you set Content Expiration to Expire
Immediately, the Office documents are not cached locally and the
operation fails.”

mm. anyway, it dint take much time. we cud guess this from another servlet we have 🙂