PDA

View Full Version : How do you execute a javascript code without reloading page?


killm3
09-20-2008, 12:24 PM
Recently other users and I brainstormed over at PSP forums. Many users want a youtube application for the psp, but the ram and memory simply wont allow it. Many websites offer an online youtube converter but these tend to take a while to convert, as well as wanting the url for the youtube video. The psp has no copy/paste function so it makes it rather hard to re-type a url with an on screen keyboard.

There is already a youtube application for hacked/homebrew psp's, but it is rather laggy, and commonly putting homebrew on your psp will cause it to brick, and un-bricking can be expensive.

The psp has a web browser which allows for you to run you own local files without using an internet connection, this means that we can open a local html file without using an internet connection.

The other users and I stumbled across the following article
http://googlesystem.blogspot.com/2008/04/download-youtube-videos-as-mp4-files.html

It seemed like the perfect solution, but bookmarklets don't work on the psp. So we tried executing the javascript string through a html file, but to no avail. It only loaded a blank page that was running the javascript, instead of a youtube video with a download link.
When the bookmarklet is used on a computer to download the video it works fine and the video plays in perfect quality when transfered to the psp.

Conclusion:
We would like some aid in creating something that will accomplish the goal of running the piece of javascript code so that we can simply choose a video to watch, download it (Yes, the psp can download files to its memory stick straight through the web browser), and watch it.
None of us are that experienced in the coding field and if you could help us out, it would be greatly appreciated.
If you wished to simply make the whole thing yourself, go ahead. Fell free to put your name and website all over it, as long as it works.
If you were to make this work your creation would be used worldwide by hundreds of thousands. You have no idea how many people want this to work.

I will answer any questions you have about supported file types and such.
Thank you for taking the time to read this.