Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-30-2012, 10:06 PM   PM User | #1
mmcvip
New to the CF scene

 
Join Date: May 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
mmcvip is an unknown quantity at this point
cross os script problem

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.
Attached Files
File Type: zip rating_stars_script_ajax_php.zip (39.7 KB, 42 views)
mmcvip is offline   Reply With Quote
Old 05-30-2012, 11:49 PM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,699
Thanks: 5
Thanked 875 Times in 850 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
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.
__________________
Don’t click this link!
VIPStephan is online now   Reply With Quote
Old 05-31-2012, 09:38 AM   PM User | #3
mmcvip
New to the CF scene

 
Join Date: May 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
mmcvip is an unknown quantity at this point
well this is the original site, but it works here of course http://www.coursesweb.net/php-mysql/...pt-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
mmcvip is offline   Reply With Quote
Old 05-31-2012, 06:38 PM   PM User | #4
Logic Ali
Regular Coder

 
Logic Ali's Avatar
 
Join Date: Sep 2010
Location: London
Posts: 976
Thanks: 0
Thanked 203 Times in 198 Posts
Logic Ali will become famous soon enoughLogic Ali will become famous soon enough
According to the error console, it looks like a '<' character in the returned string is messing things up on this line:

Quote:
eval("var jsonitems = "+ cerere_http.responseText);
I would try replacing it with: var jsonitems = cerere_http.responseText;
Logic Ali is offline   Reply With Quote
Old 05-31-2012, 10:11 PM   PM User | #5
mmcvip
New to the CF scene

 
Join Date: May 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
mmcvip is an unknown quantity at this point
Quote:
Originally Posted by Logic Ali View Post
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.
mmcvip is offline   Reply With Quote
Reply

Bookmarks

Tags
rating, script, windows

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:39 PM.


Advertisement
Log in to turn off these ads.