[jQuery] Re: table sorter issue, how do i sort these as a currency
I'm still trying to get this working, has anybody tried anything like this before? On Dec 15, 6:16 pm, livewire9174 markmch...@gmail.com wrote: here is the code, I need to stop the execution somewhere I guess ? I am using ajax calls to put data into to table, so I guess I cant attach the tablesorter script until the ajax calls have fully finished ? [code] !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; ?php header(Expires: Mon, 26 Jul 1997 05:00:00 GMT); // always modified header(Last-Modified: . gmdate(D, d M Y H:i:s) . GMT); // HTTP/1.1 header(Cache-Control: no-store, no-cache, must-revalidate); header(Cache-Control: post-check=0, pre-check=0, false); header(Cache-Control: public); // HTTP/1.0 header(Pragma: no-cache); session_start(); ? head title/title script type=text/javascript src=jquery-latest.js/script script type=text/javascript function ajaxFunction() { var xmlHttp=null; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); xmlHttp1=new XMLHttpRequest(); xmlHttp2=new XMLHttpRequest(); xmlHttp3=new XMLHttpRequest(); xmlHttp4=new XMLHttpRequest(); xmlHttp5=new XMLHttpRequest(); xmlHttp6=new XMLHttpRequest(); xmlHttp7=new XMLHttpRequest(); xmlHttp8=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject(Msxml2.XMLHTTP); xmlHttp1=new ActiveXObject(Msxml2.XMLHTTP); xmlHttp2=new ActiveXObject(Msxml2.XMLHTTP); xmlHttp3=new ActiveXObject(Msxml2.XMLHTTP); xmlHttp4=new ActiveXObject(Msxml2.XMLHTTP); xmlHttp5=new ActiveXObject(Msxml2.XMLHTTP); xmlHttp6=new ActiveXObject(Msxml2.XMLHTTP); xmlHttp7=new ActiveXObject(Msxml2.XMLHTTP); xmlHttp8=new ActiveXObject(Msxml2.XMLHTTP); } catch (e) { try { xmlHttp=new ActiveXObject(Microsoft.XMLHTTP); xmlHttp1=new ActiveXObject(Microsoft.XMLHTTP); xmlHttp2=new ActiveXObject(Microsoft.XMLHTTP); xmlHttp3=new ActiveXObject(Microsoft.XMLHTTP); xmlHttp4=new ActiveXObject(Microsoft.XMLHTTP); xmlHttp5=new ActiveXObject(Microsoft.XMLHTTP); xmlHttp6=new ActiveXObject(Microsoft.XMLHTTP); xmlHttp7=new ActiveXObject(Microsoft.XMLHTTP); xmlHttp8=new ActiveXObject(Microsoft.XMLHTTP); } catch (e) { alert(Your browser does not support AJAX!); return false; } } } xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4) { document.getElementById('resulta').innerHTML = xmlHttp.responseText; document.getElementById('showMessagea').style.display='none'; } } xmlHttp1.onreadystatechange=function() { if(xmlHttp1.readyState==4) { document.getElementById('resultb').innerHTML = xmlHttp1.responseText; document.getElementById('showMessageb').style.display='none'; } } xmlHttp2.onreadystatechange=function() { if(xmlHttp2.readyState==4) { document.getElementById('resultc').innerHTML = xmlHttp2.responseText; document.getElementById('showMessagec').style.display='none'; } } xmlHttp3.onreadystatechange=function() { if(xmlHttp3.readyState==4) { document.getElementById('resultd').innerHTML = xmlHttp3.responseText; document.getElementById('showMessaged').style.display='none'; } } xmlHttp4.onreadystatechange=function() { if(xmlHttp4.readyState==4) { document.getElementById('resulte').innerHTML = xmlHttp4.responseText; document.getElementById('showMessagee').style.display='none'; } } xmlHttp5.onreadystatechange=function() { if(xmlHttp5.readyState==4) { document.getElementById('resultf').innerHTML = xmlHttp5.responseText; document.getElementById('showMessagef').style.display='none'; } } xmlHttp6.onreadystatechange=function() { if(xmlHttp6.readyState==4) { document.getElementById('resultg').innerHTML = xmlHttp6.responseText; document.getElementById('showMessageg').style.display='none'; } } xmlHttp7.onreadystatechange=function() { if(xmlHttp7.readyState==4) { document.getElementById('resulth').innerHTML = xmlHttp7.responseText; document.getElementById('showMessageh').style.display='none'; } } xmlHttp8.onreadystatechange=function() { if(xmlHttp8.readyState==4) { document.getElementById('resulti').innerHTML = xmlHttp8.responseText; document.getElementById('showMessagei').style.display='none'; } }
[jQuery] Re: table sorter issue, how do i sort these as a currency
Showing the init code doesn't really help others help you... Got an example of the HTML you are trying to sort? On Dec 15, 7:01 am, livewire9174 markmch...@gmail.com wrote: Hi, I am using this to initialise the page SCRIPT type=text/javascript $(document).ready(function() { $(#tableOne) .tablesorter({ debug: false, sortList: [[0, 0]], widgets: ['zebra'] }) .tablesorterPager({ container: $(#pagerOne), positionFixed: false }) }); /SCRIPT I have a row in the table which is a european currency, how do I sort by this?
[jQuery] Re: table sorter issue, how do i sort these as a currency
here is the code, I need to stop the execution somewhere I guess ? I am using ajax calls to put data into to table, so I guess I cant attach the tablesorter script until the ajax calls have fully finished ? [code] !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http:// www.w3.org/TR/html4/loose.dtd ?php header(Expires: Mon, 26 Jul 1997 05:00:00 GMT); // always modified header(Last-Modified: . gmdate(D, d M Y H:i:s) . GMT); // HTTP/1.1 header(Cache-Control: no-store, no-cache, must-revalidate); header(Cache-Control: post-check=0, pre-check=0, false); header(Cache-Control: public); // HTTP/1.0 header(Pragma: no-cache); session_start(); ? head title/title script type=text/javascript src=jquery-latest.js/script script type=text/javascript function ajaxFunction() { var xmlHttp=null; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); xmlHttp1=new XMLHttpRequest(); xmlHttp2=new XMLHttpRequest(); xmlHttp3=new XMLHttpRequest(); xmlHttp4=new XMLHttpRequest(); xmlHttp5=new XMLHttpRequest(); xmlHttp6=new XMLHttpRequest(); xmlHttp7=new XMLHttpRequest(); xmlHttp8=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject(Msxml2.XMLHTTP); xmlHttp1=new ActiveXObject(Msxml2.XMLHTTP); xmlHttp2=new ActiveXObject(Msxml2.XMLHTTP); xmlHttp3=new ActiveXObject(Msxml2.XMLHTTP); xmlHttp4=new ActiveXObject(Msxml2.XMLHTTP); xmlHttp5=new ActiveXObject(Msxml2.XMLHTTP); xmlHttp6=new ActiveXObject(Msxml2.XMLHTTP); xmlHttp7=new ActiveXObject(Msxml2.XMLHTTP); xmlHttp8=new ActiveXObject(Msxml2.XMLHTTP); } catch (e) { try { xmlHttp=new ActiveXObject(Microsoft.XMLHTTP); xmlHttp1=new ActiveXObject(Microsoft.XMLHTTP); xmlHttp2=new ActiveXObject(Microsoft.XMLHTTP); xmlHttp3=new ActiveXObject(Microsoft.XMLHTTP); xmlHttp4=new ActiveXObject(Microsoft.XMLHTTP); xmlHttp5=new ActiveXObject(Microsoft.XMLHTTP); xmlHttp6=new ActiveXObject(Microsoft.XMLHTTP); xmlHttp7=new ActiveXObject(Microsoft.XMLHTTP); xmlHttp8=new ActiveXObject(Microsoft.XMLHTTP); } catch (e) { alert(Your browser does not support AJAX!); return false; } } } xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4) { document.getElementById('resulta').innerHTML = xmlHttp.responseText; document.getElementById('showMessagea').style.display='none'; } } xmlHttp1.onreadystatechange=function() { if(xmlHttp1.readyState==4) { document.getElementById('resultb').innerHTML = xmlHttp1.responseText; document.getElementById('showMessageb').style.display='none'; } } xmlHttp2.onreadystatechange=function() { if(xmlHttp2.readyState==4) { document.getElementById('resultc').innerHTML = xmlHttp2.responseText; document.getElementById('showMessagec').style.display='none'; } } xmlHttp3.onreadystatechange=function() { if(xmlHttp3.readyState==4) { document.getElementById('resultd').innerHTML = xmlHttp3.responseText; document.getElementById('showMessaged').style.display='none'; } } xmlHttp4.onreadystatechange=function() { if(xmlHttp4.readyState==4) { document.getElementById('resulte').innerHTML = xmlHttp4.responseText; document.getElementById('showMessagee').style.display='none'; } } xmlHttp5.onreadystatechange=function() { if(xmlHttp5.readyState==4) { document.getElementById('resultf').innerHTML = xmlHttp5.responseText; document.getElementById('showMessagef').style.display='none'; } } xmlHttp6.onreadystatechange=function() { if(xmlHttp6.readyState==4) { document.getElementById('resultg').innerHTML = xmlHttp6.responseText; document.getElementById('showMessageg').style.display='none'; } } xmlHttp7.onreadystatechange=function() { if(xmlHttp7.readyState==4) { document.getElementById('resulth').innerHTML = xmlHttp7.responseText; document.getElementById('showMessageh').style.display='none'; } } xmlHttp8.onreadystatechange=function() { if(xmlHttp8.readyState==4) { document.getElementById('resulti').innerHTML = xmlHttp8.responseText; document.getElementById('showMessagei').style.display='none'; } } xmlHttp.open(GET,http://www..com/1.php,true); xmlHttp.send(null); document.getElementById('showMessagea').style.display=''; xmlHttp1.open(GET,http://www..com/12.php,true); xmlHttp1.send(null); document.getElementById('showMessageb').style.display=''; xmlHttp2.open(GET,http://www..com/122.php,true);