Jan 29, 2016 16:37
Cya
Jan 29, 2016 16:37
NP :) Gonna go on a break
Jan 29, 2016 16:36
Firefox is ok but I'm too used to chrome lol
Jan 29, 2016 16:36
I like chrome for it's debugging tools
Jan 29, 2016 16:36
Yup
Jan 29, 2016 16:35
I just do a console.log(data) - then look in the console and it showed that it's an array [Array[31], "success", Object]
Jan 29, 2016 16:35
also just FYI inside the each function you can use the second argument instead of doing the index thing jQuery.each(data[0], function(index,value){.. where value=data[0][index]
Jan 29, 2016 16:32
jQuery.each(data[0], function(i,v){
compsumvalueall += parseFloat(v.goalCompletionsAll);
});
Jan 29, 2016 16:32
data contains an array also - which your dataarray is actually in the 0 index.
Jan 29, 2016 15:43
The reason for that is because the data returned is [Object, Array[3], Array[3]]. So since data3 is an array you have to grab the object which is in the first index
Jan 29, 2016 15:38
then it should be data3[0].results[i].calldate to get your data
Jan 29, 2016 15:38
so jQuery.each(data3[0].results
Jan 29, 2016 15:37
you should be looping through data3[0]
Jan 29, 2016 15:27
ah ok
Jan 29, 2016 15:25
2015-12-01

62°

57°

Overcast

2015-12-02

69°

51°

Overcast

Goal Conversion Rate: 0.00%
Goal Completions: 0
Goal Value: $0.0
2015-12-03

53°

40°

Overcast

Goal Conversion Rate: 0.00%
Goal Completions: 0
Goal Value: $0.0
Jan 29, 2016 15:25
this table?
Jan 29, 2016 15:23
i just changed the goaltotal url to 'https://aspentouch.com/wp-content/plugins/CSAnalytics/lib/data/data-GoalValueTo‌​tals.php';
Jan 29, 2016 15:23
no more ajax errors now
Jan 29, 2016 15:23
Jan 29, 2016 15:21
let me test again with the new url
Jan 29, 2016 15:21
oh ok
Jan 29, 2016 15:20
Chrome is blocking because it doesn't trust the SSL cert
Jan 29, 2016 15:20
In chrome it's because https://dawsonselectric.com/wp-content/plugins/CSAnalytics/lib/data/data-GoalVa‌​lueTotals.php is probably using a self-signed cert so you have to trust it first
Jan 29, 2016 15:20
What browser are you using?
Jan 29, 2016 15:16
Did you understand what I was talking about though?
Jan 29, 2016 15:15
Nope I don't
Jan 29, 2016 15:13
Just look at the protocol of your urls var NewConvData ='https://api.logmycalls.com'(https) - var goaltotal = 'http://dawsonselectric.com(http) - var WeatherAPI = 'http://api.worldweatheronline.com(http)
Jan 29, 2016 15:13
You are probably on https - so when you call jQuery.getJSON(NewConvData, function(data3) { it works because var NewConvData ='https but jQuery.when( jQuery.getJSON(WeatherAPI), jQuery.getJSON(goaltotal), jQuery.getJSON(NewConvData) is a mix of http/https
Jan 29, 2016 15:13
@javapatriot did you solve it? It's failing because you have mixed-content (http/https) which the browser is blocking
Jan 29, 2016 15:13
ajax is asynchronous - calling jQuery('.totalinv').append(totalcost);jQuery('.totalleads').append(totalcomplet‌​‌​ions);jQuery('.perleadvalue').append(perleadvalue); outside the done/success block will not get the expected results. totalcost is also never defined in the code above
 
Aug 15, 2013 20:16
you did with 2 zeros?
Aug 15, 2013 20:16
hmm.. didn't see anything
Aug 15, 2013 20:15
I'm just me :P Always willing to help when I can
Aug 15, 2013 20:14
very nice :)
Aug 15, 2013 20:13
you designed that page? looks pretty nice - something I would never be able to do
Aug 15, 2013 20:13
on usually on it all day
Aug 15, 2013 20:13
i have a gmail.. no skype though.. it's [email protected]
Aug 15, 2013 20:11
Yeah.. with jQuery that should always be the goal.. do more with less :P
Aug 15, 2013 20:11
hehe.. was just a little syntax error
Aug 15, 2013 20:10
has an extra s
Aug 15, 2013 20:09
$el.closest('.answerss')
Aug 15, 2013 20:09
here's a little error
Aug 15, 2013 20:08
ah ok
Aug 15, 2013 20:08
yeah it is.. the other important thing to know is how to access elements in arrays/objects
Aug 15, 2013 20:07
i rarely have to check the API since I memorize most of the methods.. though there are still some I've never seen beffore
Aug 15, 2013 20:06
also reading through jQuery's API
Aug 15, 2013 20:06
no just being on stackoverflow actually lol.. just started answer questions I knew - then tried some I didn't know and other people will tell you your wrong and the right way
Aug 15, 2013 20:04
yeah it definitely will be :P