...

View Full Version : cross os script problem



mmcvip
05-30-2012, 10:06 PM
Hello everyone
I spent some time trying to make a rating script work, but had little success.
The thing is, this script seems to be working well on linux but for some reason it fails on windows 7 (both in apache and lighttpd).The actual problem is that on windows it doesn't load in the browser...all I can see is the stylised div in which the code should insert stars and such, but it's empty.
Again, this doesn't happen on linux.
Even though I only know the basics of php and javascript, I'm guessing it has something to do with the misconfiguration of php.It may be something else, I really don't know.
Could anyone test it and see if it works for them under windows?
Thank you in advance.

VIPStephan
05-30-2012, 11:49 PM
I think you are likely getting more and quicker replies by posting a link to a test site rather than a ZIP file where people have to download, scan for viruses, and set up everything themselves.

mmcvip
05-31-2012, 09:38 AM
well this is the original site, but it works here of course http://www.coursesweb.net/php-mysql/rating-stars-script-ajax-php_s2
there's no setup required for testing it....it comes with test.html which can be placed along with ratingfiles in the root of the server.
but if that's not an option, I can try to keep my test site up for some time
http://viewstorm.no-ip.org/
it's that little bar under the other rating

Logic Ali
05-31-2012, 06:38 PM
According to the error console, it looks like a '<' character in the returned string is messing things up on this line:


eval("var jsonitems = "+ cerere_http.responseText);

I would try replacing it with: var jsonitems = cerere_http.responseText;

mmcvip
05-31-2012, 10:11 PM
According to the error console, it looks like a '<' character in the returned string is messing things up on this line:



I would try replacing it with: var jsonitems = cerere_http.responseText;

thank you for the reply.
changing that line generates another error so I don't think it has something to do with the actual code, since it works on linux.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum