ID:134483
Jun 30 2006, 6:49 pm
|
|
Is it possible(and worth the effort) to get AJAX functionality in the BYOND browser?
| |
since ajax is little more than javascript sending HTTP Requests to a server-side program, there is nothing to 'add' to BYOND i think - unless you cannot use javascript in the BYOND browser maybe?
| |
digitalmouse wrote:
since ajax is little more than javascript sending HTTP Requests to a server-side program, there is nothing to 'add' to BYOND i think - unless you cannot use javascript in the BYOND browser maybe? You can't send an AJAX request to a regular BYOND world. No http server or pseudo-http server to respond to the request. :( | |
Shouldn't it depend on the way the ajax works? Googles is completely clientside from what I can tell. All input is sent though get. Or maybe post. I know you mentioned ASP.Net AJAX on the BYOND Labs blog, but why does it have to be serverside at all?
| |
Scoobert wrote:
All input is sent though get. Right, but a BYOND game doesn't answer get. | |
Try using byond:// URLs instead of http:// URLs -- the built-in browser seems to be set up to communicate in a GET-like manner if you use byond://
(for example, hub://Dantom.htmllib generates HTML similar to this when used in a standard BYOND game: <form method=GET action='byond://<server url>'>) | |
Yeah, I thought it did use get. I used get in flash for flashchat. That is what Topic() is all about isn't it? Perhaps I have some weblingo wrong or something.
| |
Jon88 wrote:
You can't send an AJAX request to a regular BYOND world. No http server or pseudo-http server to respond to the request. :( oh... good point! but doesn't phase me since i am tinkering with DMcgi on the digitalBYOND server. browser-based RPGs, baby! | |

It is client side, not server side, so you could implement it rather easily, I would think. I have seen the BYOND browser break in the past due to Java and JavaScript so I am not sure how it would react. I would suggest trying the examples in the DS browser.