android
Prev Previous Post   Next Post Next
  #1  
Old 05-31-2011, 11:25 PM
lachlanarthur's Avatar
lachlanarthur lachlanarthur is offline
Junior Member
 
Join Date: May 2011
Posts: 1
Lightbulb Solution to the broken site comparison

Hey guys, found this site and its compare feature, but unfortunately it wasn't working, and as there aren't any other sites out there that compare PMPs/MP3 players, I thought I'd have a go at finding out what was wrong.

What has happened is that the compare area of the site is in a folder called "compare" and later the webmaster made a "compare" subdomain that redirects to the "compare" folder, but must have forgotten to change the absolute URLs in the javascript.

The way to fix: The javascript file "application.js" is loading the wrong pages.
It's loading "/compare/update_compare_list", but the subdomain has already put us in the "compare" folder, so the webserver is trying to load "/compare/compare/update_compare_list".
Just go through the "application.js" file and change any URLs that start with "/compare/" to just a forward slash "/". That's guaranteed to fix it.

Last edited by lachlanarthur; 05-31-2011 at 11:26 PM. Reason: Grammar and spelling
Reply With Quote

Advertisement [Remove Advertisement]

 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 -5. The time now is 02:53 PM.