Re: Dynamic Price Updater
Hi
I've checked out a few pages and the only JS error that I see is Now that's nothing to do with the Updater... If you have Firebug (for Firefox) you can see the XMLHTTP requests and responses happening with no problems... If there is a specific page that is causing errors PM me a link to it
It looks like the Updater is having difficulty getting a handle on the H2 that contains your price... If you want you can send me your FTP details (it may be preferrable to set up a temporary account) and I will take a look
Cheers
Dan
Re: Dynamic Price Updater
Your right the JS error was caused by something else. I took care of that.
Re: Dynamic Price Updater
Unfortunately I can't help any further without being able to run some tests local to your server... Unless you want to send me a TAR of the site (with the configuration.php trimmed to remove sensitive data) and the DB so I can take a look on my dev site
Dan
Re: Dynamic Price Updater
Could it be as simple as div nesting or css problems?
Re: Dynamic Price Updater
Seems like it would be a lot of work to send that to you although would not have a problem with it. If I cant figure it out though I suspect that I will probably do that.
Re: Dynamic Price Updater
Shouldn't be a CSS issue... The only thing that could really affect like this is if the ID was duplicated or the DOM was totally trashed... That doesn't appear to be the case
It's a headscratcher to be sure... I really can't see anything else from here
Dan
PS The FTP details are just a username and password... For the trouble you're having it seems a minor detour
Re: Dynamic Price Updater
Hi ksookma
Sorry for missing your email
The problem with your site is that line-breaks and/or whitespace is being inserted into your code... It can be seen in the source before the DOCTYPE declaration... It doesn't affect browsers too much but JS is very sensitive and the whitespace is causing the code to interpret the response as text (the header has to be the first thing interpreted, the same way as setting a cookie from the server)
I can't find anywhere this whitespace is output... It's very odd but if you check the source for your site there seem to a lot of line-breaks
Maybe a word with your server admin may help... I've seen this before but I can't remember what the solution was
Dan
Re: Dynamic Price Updater
By line breaks you mean <br> right. I have put in a lot of breaks to fix design issues. Should I remove all the breaks?
Re: Dynamic Price Updater
Hi
No... That's an HTML line break and is interpreted essentially as text... No it's \n (on Unix) linebreaks being output before the HTML even has a chance to get started
I've managed to narrow it down to something that includes/application_top.php is autoloading. Usually it's the product of a PHP tag being closed and a space or carriage return being present after the tag. Example:
Code:
// End of my code
?>
Note the extra line after the ?> ? That can cause a lot of problems with headers... Under normal circumstances this can be fixed by wrapping all of the code in an output buffer... Unfortunately, I can't get this solution to work on your site (I don't think Ajax calls can be buffered but I'm not certain)
The current solution? Trawl through all of the autoloaded/included files from application_top.php looking for the offender(s)... Boring and lengthy job I'm afraid
Dan
Re: Dynamic Price Updater
I know you have been on and of the site for a long while looking at this problem for us. I made a donation through your site link. Im so glad it works, thank you!:D
We will be using your services in the future!