Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    May 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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 Attached Files

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,662
    Thanks
    6
    Thanked 1,006 Times in 979 Posts
    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.

  • #3
    New to the CF scene
    Join Date
    May 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #4
    Senior Coder Logic Ali's Avatar
    Join Date
    Sep 2010
    Location
    London
    Posts
    1,028
    Thanks
    0
    Thanked 207 Times in 202 Posts
    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;

  • #5
    New to the CF scene
    Join Date
    May 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •