Rendering a pdf/ppt document in a jquery mobile web page - php

I am developing a jquery-mobile learning portal. And i would like to render pdf and ppt documents like slideshare does or google books. i have tried lloking around but i can't seem to get any API that can enable me do that. I saw PDF.js but it seems too heavy for mobile and besides it requires a lot of work styling it.
Any assistance ... will be appreciated

Have you checked out Scribd's API?

Related

Creating a custom facebook feed on a website

I'm trying to find some information/documentation on creating a custom Facebook feed for any website. (Custom css etc) but there is nearly nothing to find. I want to read posts from a public facebook page and display them on my website in an owl carousel.
The only guide I found was outdated since facebooks developers page completely changed and the other guides are all for Wordpress.
Does anyone know any good guides, or can anyone help me in the good direction?
Thanks
Example code and information can be found in the API reference:
https://developers.facebook.com/docs/graph-api/reference/page/feed#read
I suggest using an App Token on the server, it is valid forever. If you donĀ“t know about the different Tokens, here are some links:
https://developers.facebook.com/docs/facebook-login/access-tokens
http://www.devils-heaven.com/facebook-access-tokens/
Side Note: To get pictures, you can use the full_picture field: /page-id/feed?fields=full_picture

Youtube SPFJS dynamic nav

Basically I am trying to implement the youtube spfjs (
https://youtube.github.io/spfjs/documentation/start/) dynamic navigation with progress bar.
I need a php/jquery version of this ruby solution -http://lorefnon.me/2015/11/26/boost-your-content-focussed-site-with-structured-page-fragments.html
Having issues handling the ?spf=navigate request and returning json files etc. My json file contents isnt loading over the initial page contents.
I've had a look through all online docs etc but really limited information currently out there. Hopefully this will help quite a few people as it seems an awesome framework. Thanks

How to implement a backend with AJAX, PHP, and MySQL for dynamic video sources when using Google TV Templates?

For people interested in doing web apps for Google TV, especially those with video content, the easiest way is use Google TV Templates: https://developers.google.com/tv/web/docs/gtv-templates.
The original Google TV Templates were developed with video source files hard coded in Javascript file. A number of people have asked about how to implement a backend with PHP and MySQL and store video sources there so that they can be dynamically loaded from frontend within the Templates. The following article was written to address this question.
https://developers.google.com/tv/web/docs/ajax_gtv_templates_tutorial
The tutorial walks you through how to set up a database in MySQL (i.e. schema, sample data), PHP code to serve data, and modified Javascript to do AJAX loading.
Currently to add video source data into the database, one can use straight SQL but it may be more desirable to build a PHP admin front end.
A bug was recently reported by Maurizio on Google TV Developers +page: https://plus.google.com/117492290125593364976/posts:
"Hi, i downloaded the html5 template mysql version. it is working fine but if i add more than one category , the last one added is repeted. Do u have any idea of how i can fix this problem? many thanks."
I'll follow up with a fix.
A fix to this bug is available and a new download is at: http://gtv-resources.googlecode.com/files/gtv_template2_ajax_php_mysql.tgz
The actual fix is in this php file:
http://code.google.com/p/gtv-resources/source/browse/trunk/gtv_template2_ajax_php_mysql/videosources.php
If there is interest, please ask a question and I'll write up an admin page as well.

How do i intergrate the vimeo search database to my website?

I have to make a website that pulls videos from youtube,vimeo,dailymotion etc. and i dont know where to start.I have Youtube's api already intergrated and vimeo doesn't have a great one,is there anyway i can pull videos from others sites to my site?
Thanks,
Lee
I'm not fond of this kind of stuff, but you could parse html return from a search on vimeo, load the html into DOM and do some xpath query for tags that have "/0123456789" links.
Or maybe ask them if they have such API, i'm pretty surprised they don't have one to be honnest...

iphone photo upload - PHP & Jqtouch library

I am building a web site which supports IPhone also. Now I am quite confused as to find a way to upload the IPhone photos to my website.
Also it seems the "input type text" also doesnt work in IPhone. Have anybody worked on it....please suggest.
If you want to handle photo/video uploads using iPhone's Safari, you can integrate with something like cliqcliq Quickpic. The support page has a bunch of details: https://www.cliqcliq.com/support/quickpic/ and it's just a bit of Javascript.
Text inputs work on the iPhone, however jQTouch has a weird way of handling forms and page loads for that matter. Basically it reloads just the "content" part of the page.
You have a couple of form examples in the jQTouch download. Try looking at what's happening when you submit forms with Firebug ( http://getfirebug.com ) and also try to log what your server receives from your forms.
Mostly, please remember that you only need to serve part of a page for jQTouch.
Good luck with your app.

Categories