Array to Javascript?

All style (template, theme and imageset) related questions for the new release; advice, feedback here please.
Post Reply
User avatar
-=ET=-
Registered User
Posts: 214
Joined: Mon May 26, 2003 1:35 pm
Location: France

Array to Javascript?

Post by -=ET=- »

Hello,

Just one question: from a php file, can we send an array to a JS script using a phpBB template variable?
http://area51.phpbb.com/docs/coding-gui ... #templates

I guess no, but I want to make sure.

Thanks! :)
Eternal newbie
User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: Array to Javascript?

Post by Highway of Life »

There is no special code for handling JavaScript, so it’d be basically whatever you assign to the variable is what you can use in JavaScript or the Template. They would both be the same.
Image
Dunhamzzz
Registered User
Posts: 1
Joined: Mon Sep 15, 2008 11:43 pm

Re: Array to Javascript?

Post by Dunhamzzz »

JSON! Do you use it?!
Last edited by darcie on Mon Oct 20, 2008 7:33 pm, edited 1 time in total.
Reason: language edited
User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: Array to Javascript?

Post by Highway of Life »

phpBB3 does not use JSON.
Image
Post Reply