ID:134483
 
Is it possible(and worth the effort) to get AJAX functionality in the BYOND browser?
Couldn't you use Google's AJAX thing? http://code.google.com/webtoolkit/

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.
In response to Scoobert
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?
In response to digitalmouse
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. :(
In response to Jon88
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?
In response to Scoobert
Scoobert wrote:
All input is sent though get.

Right, but a BYOND game doesn't answer get.
In response to Jon88
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>'>)
In response to Destroy
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.
In response to Jon88
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!