facebook - Display .txt file in html (without php or javascript) (UPDATE) -


i want display context of .txt file in html file.

i know easy php or javascript, but, put in context, building content administrator facebook page (not app).

facebook fbml static , doest allow php , limited javascript.

the first question if possible (couldn´t find decent answers googling), , second obvious how.

edit: saw question is possible use javascript or php in static fbml?

does change mattbasta´s answer?

it sure is! can use fbml create ajax request server , pull txt file in. can load on ajax otherwise able load polling url. check out:

http://developers.facebook.com/docs/fbjs#ajax

once pull in txt file string in fbjs, assign string element , you're gold.

that should going. luck!

edit

also, record, can output fbml php (or other language, matter) create dynamic fbml page. write fbml in same way write html php script , it'll work how expect to!

edit 2

you can create fbml page:

<!-- fbml code here --> <?php echo file_get_contents("my_txt_file.txt"); ?> <!-- more fbml --> 

just point facebook @ php file , it'll use fbml php generates.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -