had it working but the cgi script does not seem to be getting called.
Below is code I am using. When using the $.get command I had to make
it $(document).get for it to work properly.
Any help would be greatly appreciated.
Thanks,
David
$(function(){
$("#hnews a").click(function(){
var modiDate = new Date();
var monthName = new Array("January", "February", "March", "April",
"May",
"June", "July", "August", "September", "October", "November",
"December");
mod_date = modiDate.getFullYear()+ monthName[modiDate.getMonth()]+
modiDate.getDate();
var log_name='Employee';
var path_name = this.pathname.substring(1);
var pathnameArray = path_name.split("/");
var htmlfile = pathnameArray[pathnameArray.length-1];
var stats_name = htmlfile.split(".");
var stats_data = 'HOTNEWS_'+mod_date+'_'+isString(stats_name[0]);
var awdoc1 = 'http://summit.net/cgi-bin/pslogger.cgi?site='+stats_data
+ '&log_name=' +log_name+ '&loc=' + escape(this.href)+ '&ref=' + escape
(document.URL);
$(document).get(awdoc1,function(awdoc1){
alert("Data Loaded: " + awdoc1);
window.open
(awdoc1,'','scrollbars=yes,resizable=yes,width=700,height=700');
});
//alert ("data loaded: " + awdoc1);
window.open
(this.href,'','scrollbars=yes,resizable=yes,width=700,height=700');
return false;
});
});
</script>
<div class="summitnews" style="width:520px;" id="hnews">
<span class="larger" title="Summit Corporate News">Corporate News</
span>
<ul class="ul_arrow" >
<li><a href="/HotNews/Share%20your%20feedback%20Quarterly
%20Communication%20Meeting.htm">28 April 2009 - Share your feedback
regarding Quarterly Communications Meeting</a></li>
<li><a>
</div>
No comments:
Post a Comment