old - Fazer Owners Club - old

General => General => Topic started by: mickvp on 11 November 2013, 10:09:16 pm

Title: Petrolhead-O-Meter :)
Post by: mickvp on 11 November 2013, 10:09:16 pm
got a wee coding issue I could do with some help with. I cant get a HTML page ive made to link to Facebook. even though I C&P the proper code from Facebook  :'(

EDIT

Code is now fixed and working - linky for anyone who wants a wee shot (feel free to post up your score/share the link with anyone you think will get a laugh out it):

Petrolhead-O-Meter (http://www.vivapotenza.com/petrolhead-o-meter/petrolhead-o-meter.htm)

 8)
Title: Re: Any HTML/Javascript Guru's on here?
Post by: Dead Eye on 12 November 2013, 02:41:34 am
What is the problem exactly? HTML I can do in my sleep - Javascript I tend not to say anything nice about as it has a habit of biting me but I have plenty of experience with it :P
Title: Re: Any HTML/Javascript Guru's on here?
Post by: mickvp on 12 November 2013, 08:35:17 am
The page has a button at the end to "share" on facebook. However, it doesn't work. Everything else works fine.
Title: Re: Any HTML/Javascript Guru's on here?
Post by: beach700 on 12 November 2013, 12:20:05 pm
I believe, there are two parts of the Facebook code you have to copy/paste.


One part goes inside the <head>
and the other part goes where ever you want the FB-Share button on the page (inside <body>).

Did you copy both parts?
Or does it work differently?
Title: Re: Any HTML/Javascript Guru's on here?
Post by: mickvp on 12 November 2013, 02:17:25 pm
Yes, your spot on, one part initializes the SDK, the other is for the button.

I'm informed I got it working by someone who uses fb, but for some reason it only works on ie/ff/chrome, not safari. Not a major issue for me really, but still, I wish there were more compatibility between browsers.
Title: Re: Any HTML/Javascript Guru's on here?
Post by: mickvp on 12 November 2013, 07:09:39 pm
just incase anyone was interested. the page I was working on was the Petrolhead-o-meter. found here:

http://www.vivapotenza.com/petrolhead-o-meter/petrolhead-o-meter.htm (http://www.vivapotenza.com/petrolhead-o-meter/petrolhead-o-meter.htm)

 8)
Title: Re: Petrolhead-O-Meter :)
Post by: mickvp on 13 November 2013, 10:12:53 pm
well this seems to have gone down pretty well so far - although I think we will need to do a V2 with proper difficult questions as most people seem to score high on this one. cant have that.
Title: Re: Petrolhead-O-Meter :)
Post by: rustyrider on 13 November 2013, 10:50:06 pm
I got 95% and I think that is only because two out of my three cars are on LPG.  14-16mpg on petrol would be just too much of a pain in the wallet!  Mind you, the one on petrol only does 18mpg......

Yup, make the questions harder.
Title: Re: Petrolhead-O-Meter :)
Post by: ChristoT on 14 November 2013, 01:33:14 am
90%. Therein lies my problem.

Oh, for question 1 - add the option "can I race it?" :evil
Title: Re: Petrolhead-O-Meter :)
Post by: Dead Eye on 15 November 2013, 04:37:24 pm
100% obviously ;)
Title: Re: Petrolhead-O-Meter :)
Post by: mickvp on 15 November 2013, 05:25:36 pm
90%. Therein lies my problem.

Oh, for question 1 - add the option "can I race it?" :evil

If i make another one for bikers ill bear that in mind.  :thumbup