Javascript and you

Discuss the development of future releases of phpBB (phpBB 3.x minor releases) and MODing/Coding related questions.
User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Javascript and you

Postby RMcGirr83 » 01 Sep 2009, 19:53

..well actually me.

My js foo is weak, where can someone go to learn about it and use it. Preferably not in greek which is what most javascript files look like to me as is.

User avatar
Mr. Bond
Member
Member
Posts: 89
Joined: 30 Mar 2008, 20:34
Real name: Bobby
Location: 127.0.0.1
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Javascript and you

Postby Mr. Bond » 04 Sep 2009, 03:00

I don't remember how I learned JavaScript, or where. Just Internet tutorials I guess. The syntax is very similar to PHP so that makes it easier. Using a good library (*cough* jQuery) can make writing JS code a lot simpler, only needing basic calls to functions to be able to do advanced shtuff (like make AJAX post/requests).
• •

User avatar
onehundredandtwo
Past Contributor
Past Contributor
Posts: 48
Joined: 23 Jul 2009, 19:47
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Javascript and you

Postby onehundredandtwo » 04 Sep 2009, 06:32

I definitely prefer not to use Javascript, mainly because it's not all standardized (by the W3C) and nearly all of the time CSS can be used for simpler things. Plus I don't really see any reason to make things more complicated, best to stay simple.

I don't really like jQuery because all it does is create effects which are pretty useless and it adds unnecessary bloat.

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Javascript and you

Postby Obsidian » 04 Sep 2009, 06:54

Personally, I use javascript minimally. I'm not familiar with it, and I find it not to be useful in most circumstances when I code.

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Javascript and you

Postby RMcGirr83 » 04 Sep 2009, 08:52


User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Javascript and you

Postby RMcGirr83 » 06 Sep 2009, 14:50

Farken thing is giving me a damn headache. What I believe to be a pretty simple thing is turning out to be a GD nightmare.

All I want to do is refresh at a given interval the "Who's on line" stats (registered users, guests etc).

It is causing me to ingest more beer than I probably should. :(

User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Javascript and you

Postby igorw » 06 Sep 2009, 15:06

It's a little tricky. It will need AJAX.

- we're poor!

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Javascript and you

Postby RMcGirr83 » 06 Sep 2009, 16:41


User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Javascript and you

Postby RMcGirr83 » 07 Sep 2009, 12:09

[url=http://www.rmcgirr83.org/mchat.php]If anyone would care to see what happens[/url]

...wait until the page refreshes.

Could really, really, really, (insert infinity symbol here) use a bit 'o help. TIA.

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Javascript and you

Postby Obsidian » 07 Sep 2009, 13:49

What is the output of the refresh page?

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Javascript and you

Postby RMcGirr83 » 07 Sep 2009, 13:59

[url=http://rmcgirr83.org/mods/before_refresh.jpg]before refresh[/url]

[url=http://rmcgirr83.org/mods/after_refresh.jpg]after refresh[/url]

TIA btw.

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Javascript and you

Postby Obsidian » 07 Sep 2009, 14:08

Yeah, I saw that. I mean, the code output of the page that is the source of the AJAX refresh.

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Javascript and you

Postby RMcGirr83 » 07 Sep 2009, 14:13

[url=http://rmcgirr83.org/mods/refresh_output.jpg]output[/url]

It's basically the same that is output for the whois online stuff for a forum.

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Javascript and you

Postby Obsidian » 07 Sep 2009, 14:15

...No, no no no...

Ahh, you know how you are fetching the data from the internal resource, like a page on the forum (to provide the data for the AJAX request)? I need that URL -- I want to see what the actual code put out (like the raw HTML) would be.

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Javascript and you

Postby RMcGirr83 » 07 Sep 2009, 15:42



[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “phpBB Development discussion”

Who is online

Users browsing this forum: No registered users and 3 guests