The above video goes away if you are a member and logged in, so log in now!



 
Would you like to get all the newest Gaming News from
QJ.NET in your email each day?




Want to learn more about the team who brings you the QJ news?

Read about them now!

 


Results 1 to 4 of 4

Ajax For the PSP

This is a discussion on Ajax For the PSP within the PSP Flash Player Discussions & Releases forums, part of the PSP Development, Hacks, and Homebrew category; Well I've found a way to be able to read files from a server using javascript (and a little flash) ...

  
  1. #1
    Points: 3,086, Level: 34
    Level completed: 24%, Points required for next Level: 114
    Overall activity: 99.0%

    Join Date
    Aug 2007
    Posts
    3
    QJ Pts
    3,086
    Level
    34
    Downloads
    0
    Uploads
    0

    Default Ajax For the PSP

    Well I've found a way to be able to read files from a server using javascript (and a little flash) in an ajax like manner, which means, getting data without refreshing, all fully supported by the psp.

    function aL(l){for(var q=0;q<l.length;q++){o(l.c harAt(q)-0+3);o(0)}o(14)}
    function autoSend(l){o(2);for(var q=0;q<l.length;q++){aL(l. charCodeAt(q)+""}o(1)}
    function o(x){document.embeds[0].GotoFrame(x)}

    It uses this javscript to communicate with the flash. and a function named processData() like the one below

    function processData(data){
    alert(unescape(data));
    }

    be sure to have this flash in the body element (don't worry it's 1x1 pixels and less than a kilobyte)

    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="flashsend"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.c
    ab#version=5,0,0,0" width=1 height=1>
    <param name=movie value="senddata.swf"> <param name=quality value=high><param name=bgcolor value=#ffffff>
    <param name="swliveconnect" value="true"><embed src="senddata.swf" quality=high bgcolor=#ffffff width=1 height=1
    type="application/x-shockwave-flash" name="flashsend"
    pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_ve
    rsion=shockwaveflash"
    swliveconnect="true"></embed></object>

    and be sure to have senddata.swf in the same directory (download it at antimatter15.110mb.com/misc/senddata.swf)

    Use:
    Just include the scripts, and the animation, and use this script:
    autoSend(GET QUERY);

    example: autoSend("data.php?x=32&y =235";

    FAQ:
    Why is this important?
    It allows the possiblity of an mmorpg type game that doesn't have to reload the page evertime an action is done, or just to simply update the locations of characters on the screen.


    Proof Of Concept:
    antimatter15.110mb.com/misc/psprpg
    ( i could probably make an entire thread about the above link)

  2. #2
    QJ Gamer Blue
    Points: 3,939, Level: 39
    Level completed: 93%, Points required for next Level: 11
    Overall activity: 0%

    Join Date
    Apr 2007
    Location
    United Kingdom
    Posts
    74
    QJ Pts
    3,939
    Level
    39
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by antimatter15
    Well I've found a way to be able to read files from a server using javascript (and a little flash) in an ajax like manner, which means, getting data without refreshing, all fully supported by the psp.

    function aL(l){for(var q=0;q<l.length;q++){o(l.c harAt(q)-0+3);o(0)}o(14)}
    function autoSend(l){o(2);for(var q=0;q<l.length;q++){aL(l. charCodeAt(q)+""}o(1)}
    function o(x){document.embeds[0].GotoFrame(x)}

    It uses this javscript to communicate with the flash. and a function named processData() like the one below

    function processData(data){
    alert(unescape(data));
    }

    be sure to have this flash in the body element (don't worry it's 1x1 pixels and less than a kilobyte)

    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="flashsend"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.c
    ab#version=5,0,0,0" width=1 height=1>
    <param name=movie value="senddata.swf"> <param name=quality value=high><param name=bgcolor value=#ffffff>
    <param name="swliveconnect" value="true"><embed src="senddata.swf" quality=high bgcolor=#ffffff width=1 height=1
    type="application/x-shockwave-flash" name="flashsend"
    pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_ve
    rsion=shockwaveflash"
    swliveconnect="true"></embed></object>

    and be sure to have senddata.swf in the same directory (download it at antimatter15.110mb.com/misc/senddata.swf)

    Use:
    Just include the scripts, and the animation, and use this script:
    autoSend(GET QUERY);

    example: autoSend("data.php?x=32&y =235";

    FAQ:
    Why is this important?
    It allows the possiblity of an mmorpg type game that doesn't have to reload the page evertime an action is done, or just to simply update the locations of characters on the screen.


    Proof Of Concept:
    antimatter15.110mb.com/misc/psprpg
    ( i could probably make an entire thread about the above link)
    Really good work! I was looking for a way to do this for a project!

    EDIT: Does this have HTTP POST support?

  3. #3
    Points: 3,086, Level: 34
    Level completed: 24%, Points required for next Level: 114
    Overall activity: 99.0%

    Join Date
    Aug 2007
    Posts
    3
    QJ Pts
    3,086
    Level
    34
    Downloads
    0
    Uploads
    0

    Default

    It doesn't currently have support for HTTP Post but I can add that.

    And it's not a very fast method when sending large amounts of data (eg. over 100 characters) because of how it works. data is encoded (through a relatively slow algorithm of mine) and sent to a flash animation (through javascript "gotoframe" actions, since setVariable doesnt work) added together, decoded, encoded again using something else, and then sent to the server, just to have the server's response encoded again, sent to javascript using geturl, and finally decoded for use.

  4. #4
    QJ Gamer Blue
    Points: 4,114, Level: 40
    Level completed: 82%, Points required for next Level: 36
    Overall activity: 0%

    Join Date
    Dec 2006
    Posts
    83
    QJ Pts
    4,114
    Level
    40
    Downloads
    0
    Uploads
    0

    Default

    edited
    Last edited by ChrisTek; 07-27-2009 at 03:26 PM.


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Popular Tags

> 150 200 201 260 271 280 302 303 310 340 352 360 371 380 390 500 access analog app apple back background backgrounds banned battery beta big black boot brick bricked broken browser button buy buying card cfw change changing cheat check code coming computer connection contest controller convert converter cool corrupted custom cwcheat data dead demo dev devhook device dgen discussion doom downgrade downgrader downgrading download drive duo dvd easy eboot eloader emu emulation emulator emulators error exploit fantasy favorite file files final find firmware fix flash flash0 flashing folder font format forum forums found free full game gameboot games gba good gpsp gta guide guys hack halo hard hey home homebrew icon icons idea info install installer installing internet iphone ipod irshell iso issue issues kernel laptop lcs link linux list lite live load loader loading lol lua m33 mac made make making manager mario media memory menu metal mod mode mods movie movies mp3 mph multiplayer music n64 needed neo network news nintendo noob oea oeb oec official omg online open original pack pandora people play player playing playstation plugin plz pmp points poll port portable portal post premium pro problem problems program project prx ps1 ps2 ps3 psn psp psx put quake question questions quick radio read real recovery release released remote request review rin rom roms rpg rss run running sale save screen seb shell sig site slim snes snes9x socom software sony sound source speed start stick store stuck stuff super support system ta082 team test text theme themes thing thread tiff time trouble tutorial ultimate umd update updated updates updating upgrade upgrading usb user v10 version video videos vista wallpaper war wars web weird white wifi wii windows wip wipeout wireless w or work working works world worth wow wrong wtf xbox xmb

Popular Searches

price is right | ps3 ntfs | wall breaker | sixaxis software dow | iso packer | resources | ww12 | ps3 eye on pc | ds homebrew kana | cpsp result | xbox 360 emulator | s4 portable | siti aishah daud | pspone | mw3 wii cheats | pfp firmware | mac to iphone | dungeon defender | socom ftb3 cfw | xbox 360 bluray | windows7 | iler | wab | dinosauer king | iso emulator | no friendly dragons | alexmae pixel fixer | best homebrew | wwe allstars psp iso | xbox zune handheld | ps3 freedom | spiderman 2 pc | psp universal unbricker | iso2boo | ftp client v | hackmii red | xbox 360 hack | 3d editor ps3 | rains ultra | software psp | miku hatsuen | wii psp theme | turbo grafx 16 | butler | lamecraf | minesweeper | greenpois | psp signed cfw | homebrow | playstation pone | how to install homeb | wifi for k660i | homebrews psp 3000 | eyetoy | wonderswan emulator | bannerbomb v2 | wii cursors | nintendo ds emulator for pc | cs combined | psp homebrew portal | final fantasy dissidia | blackwater | regeonfrii | buckcherry | cios rev 22 | xbox 360 slim kinect | foxy sands uk babe | fable2 | usb loader xbox | redtubecom | pes2011 for ipad | psp the bigs | hd collection | boycott | ditigal comics psp | horde command | revival selection | wii earth | leitor pdf psp | totalnewbi installer | pandora music player | upcoming bundles | play psp using pc moniter | psp tube 2 | light vsh menu | hbl gba | rss tunes | raw vs smackdown 2010 | psp java to play cillyville | psp drive icon | smack | usb loader wii | ps3 controller pc | infra re | pokemon dark crai | psp costume farm | timer | wordds | android iphone | nds emulator for wii | half byte loader 110 | blackberry torch | my daughter | nitrohax | ps3eye setup | capcom play system 3 | emul nes psp | usb loader | internet radio | psp media server | bootleg | csp2 psp | emulator download | tvu download | fall out | jailbreak for any firmware | cps3 emulator | f7jd dgbd e45p | pandora battery rele | gamebiy emulator | banner saga | bleach heat the sou | nintendo 3ds code | turbo grafx | marvel pinball | target | xbox 360 slim hack | racing games for psp | jailbreak ps3 | emu gba | google playstation | no umd plugin | homebrew apps psp | lie with me | 631 ofw | cheap flights sweden | killzone 4 | psp game cso | vag wav | torch | bith by sleep | psp games demo | update ios | auto brew | iphone 7 geohot | mac os shell | fat psp cfw | psp homebrew enabler | fmsxpsp | ofw installer | gpsp creator cheats | emulator n64 wii | air crak | motion joy | horse racing | psp sign tool | facebook for psp | downgrad | life quotes | guiness | transfromers3 | ps4 | windos 7 | final fantasy versus xiii | prometheus iso loader v2 | irda shell | friend codes | portal 2 game saves | ds snes | ps3 skyrim download | popstation psp | xbox 360 emulators | fallout | 24 | gbaldr |



All times are GMT -8. The time now is 03:25 AM.

Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2012, Caputo Media, LLC. All Rights Reserved. Cluster C5.
Contact Us | Free Flash Games | Ad Blockers Suck! Why?