I figured out the links with class name 'state-change' were not bound to a
click-event. This should have been handled in the last lines of
googleanalytics.js:
$j(function(){
$j(document).delegate("a.state-change", "click", function(e){
var self = $j(e.target);
self.css("font-weight","bold").siblings("[data-key="+self.data("key")+"]").css("font-weight","normal");
GA.updateCharts(self.data("key"),self.data("value"));
return false;
});
});
I replaced this by:
$j(function(){
$("a.state-change").click(function(e){
var self = $j(e.target);
self.css("font-weight","bold").siblings("[data-key="+self.data("key")+"]").css("font-weight","normal");
GA.updateCharts(self.data("key"),self.data("value"));
return false;
});
});
and everything works perfectly! I think it is caused by a jQuery update. In
the jQuery documentation (http://api.jquery.com/delegate/) there's this
comment:
> As of jQuery 1.7, .delegate() has been superseded by the
> .on()<http://api.jquery.com/on>method.
>
Thanks for the instant support, guys! I really appreciated it!
Hans
Op zaterdag 6 april 2013 01:49:01 UTC+2 schreef Geoff Bowers het volgende:
>
> What revision number are you on for the plugin? Is it possible you have an
> older version of the plugin than Blair is referring to? I'd double check
> there have not been any updates since you first pulled the code base.
> Failing that you may need to contact us directly so we can take a look at
> the installation.
>
> GB
>
> On Saturday, April 6, 2013, Hans Versluis wrote:
>
>> I'm using Firefox. Nothing is happening: the graphs stay where they are,
>> no ajax requests are sent, no javascript errors. When I click one of those
>> links, the # in the href is being executed and teh page scrolls to the top.
>> So I guess there no jquery-binding set on those links.
>> Hans
>>
>> Op donderdag 4 april 2013 23:44:36 UTC+2 schreef Blair McK het volgende:
>>>
>>> Those links are supposed clear the charts (and replace them with a
>>> loading animation), then make an AJAX request for new data. Are you seeing
>>> that happening?
>>>
>>> What browser are you using? I'll admit to copping out during testing
>>> (only checked Firefox and Chrome) and other browsers may have issues.
>>>
>>> Blair
>>>
>>>
>>> On Thu, Apr 4, 2013 at 11:24 PM, Hans Versluis <[email protected]>wrote:
>>>
>>> Thanks! It seemed I had the GA-plugin files copied one folder too
>>> high... So, teh plugin couldn't find the javascripts...
>>>
>>> Now I'm speaking to an expert: may I ask you one more question? I see
>>> some graphs now, but the links above them ([ line
>>> chart<http://www.ozplanten.nl/webtop/edittabOverview.cfm?objectid=E689D721-B6C9-605B-DE1D813E4CDA3339&ref=overview#>|
>>> dot
>>> chart<http://www.ozplanten.nl/webtop/edittabOverview.cfm?objectid=E689D721-B6C9-605B-DE1D813E4CDA3339&ref=overview#>]
>>> [ last
>>> 7
>>> days<http://www.ozplanten.nl/webtop/edittabOverview.cfm?objectid=E689D721-B6C9-605B-DE1D813E4CDA3339&ref=overview#>|
>>> last
>>> 30
>>> days<http://www.ozplanten.nl/webtop/edittabOverview.cfm?objectid=E689D721-B6C9-605B-DE1D813E4CDA3339&ref=overview#>|
>>> last
>>> 90
>>> days<http://www.ozplanten.nl/webtop/edittabOverview.cfm?objectid=E689D721-B6C9-605B-DE1D813E4CDA3339&ref=overview#>|
>>> last
>>> 365
>>> days<http://www.ozplanten.nl/webtop/edittabOverview.cfm?objectid=E689D721-B6C9-605B-DE1D813E4CDA3339&ref=overview#>]
>>> [ this
>>> item<http://www.ozplanten.nl/webtop/edittabOverview.cfm?objectid=E689D721-B6C9-605B-DE1D813E4CDA3339&ref=overview#>|
>>> this
>>> section<http://www.ozplanten.nl/webtop/edittabOverview.cfm?objectid=E689D721-B6C9-605B-DE1D813E4CDA3339&ref=overview#>]
>>> ) do not work. No javascript error thrown neither. Any ideas?
>>>
>>> Hans
>>>
>>> Op donderdag 4 april 2013 13:06:46 UTC+2 schreef Blair McK het volgende:
>>>
>>> That page should be showing a grid of charts, even if they show flat
>>> lines. It seems like there may be a problem with the AJAX request for the
>>> chart data. If you use Firebug (in Firefox) or the JavaScript console in
>>> Chrome, you should be able to see the AJAX requests and whether they are
>>> returning errors.
>>>
>>> Blair
>>>
>>>
>>> On Thu, Apr 4, 2013 at 9:49 PM, Hans Versluis <[email protected]>wrote:
>>>
>>> In the attachment 2 screenshots: one of the page I'm expecting to see
>>> some GA-data, one of the GA-settings page hitting the save-button.
>>>
>>> Hans
>>>
>>> Op donderdag 4 april 2013 00:51:04 UTC+2 schreef Blair McK het volgende:
>>>
>>> I'm not sure what the problem with the label is.
>>>
>>> Can you give us a screenshot of the what the GA data you're seeing?
>>>
>>> Blair
>>>
>>>
>>> On Wed, Apr 3, 2013 at 11:20 PM, Hans Versluis <[email protected]>wrote:
>>>
>>> I have recently installed the GA-plugin. Installation & configuration
>>> seem okay, but no GA-data is being displayed, although there is some data
>>> present in the Google Analytics page on the google-domain itself.
>>>
>>> I followed the 5 configuration instructions, but couldn't figure out
>>> what was meant by part between brackets:
>>>
>>> 2. In FarCry, create/edit your settings in Content -> Google Analytics
>>> -> Site Settings *(I assume you've already updated app and deployed new
>>> schema changes :)*
>>>
>>>
>>> The webtop-page Content > Google Analytics > Site Settings > [Edit this
>>> object] states that the settings-page is incomplete. But as far as I can
>>> see, all necessary fields are filled in, including the Acoount, Web
>>> Property and Profile select-boxes...
>>> After clicking the save button, the following comment is shown:
>>>
>>> Google Analytics configuration Information
>>> Label (incomplete)
>>>
>>>
>>> But I don't see any label-field in the settings-page...
>>>
>>> Hans
>>>
>>> --
>>> You received this
>>>
>>> --
>> You received this message cos you are subscribed to "farcry-dev" Google
>> group.
>> To post, email: [email protected]
>> To unsubscribe, email: [email protected]
>> For more options: http://groups.google.com/group/farcry-dev
>> --------------------------------
>> Follow us on Twitter: http://twitter.com/farcry
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "farcry-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
--
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
---
You received this message because you are subscribed to the Google Groups
"farcry-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.