Quote from: French at Oct 04, 2009, 03:54 AM
As soon as I switch from RC2 to RC3 or upper, cart does not trigger anymore, or sometimes even has strange behavior : clicking anywhere in the screen, and it applies the visual effect on the element hovered by mouse.
Hi French Fries.
I just installed Treasure Chest for the first time and did a little investigation. I was able to reproduce that weird visual effect whereby things disappear and re-appear when you click on them. The javascript files embedded in the document by Treasure Chest are compressed - so it’s a little difficult to see what’s going on - but it appears that Treasure Chest is trying to do ajax POSTs to the cart document using an URL of the form index.php?id=... However, with the introduction of SEO friendly URLs functionality at or around version 1.1.7 alpha RC2 YAMS started doing permanent redirects from URLs of that form to what should be their unique friendly alias. This redirection appears to be causing the ajax post requests to fail and for the javascript to start displaying weird visual effects.
There isn’t currently a parameter within YAMS that will allow you to turn this off. I can add one in future - but I haven’t got time to do this now. In the meantime, you can hard-wire YAMS so that it doesn’t do any redirection when a request is made for an URL with an id=... query parameter specified. To do so, edit assets/modules/yams/class/yams.class.inc.php and insert the following at line 4140 (YAMS 1.1.7 alpha RC6):
if ( isset( $_GET['id'] ) && ctype_digit( $_GET['id'] ) )
{
return $this->WeblinkRedirect(
$docId
, $this->itsCurrentLangId
);
}
just before the $isManagerPreviewPage... line.
Hopefully that will solve the problems you have been encountering. Please let me know how it goes.