Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: Karlos on February 22, 2010, 06:44:36 PM

Title: AWeb and IBrowse Javascript implementation info needed
Post by: Karlos on February 22, 2010, 06:44:36 PM
Hi,

Does anybody know where I can find the Javascript implementation limits for AWeb and IBrowse?

Specifically, I need to know what methods they support from the window, document and browser objects. As I didn't find what I was looking for with 10 minutes and google, I am hoping somebody here knows a bit more :)
Title: Re: AWeb and IBrowse Javascript implementation info needed
Post by: HammerD on February 22, 2010, 07:48:05 PM
You could try posting a message on the IBrowse mailing list.  Oliver Roberts reads it.
Title: Re: AWeb and IBrowse Javascript implementation info needed
Post by: futaura on February 22, 2010, 08:28:04 PM
I still visit this site too :).

IBrowse's core JS engine is up to JavaScript 1.6 standard, but the window and document objects are a separate entity from the core functions/objects.  The completeness of the window, document and other browser-side objects are mostly Netscape 4 standard, although some limited support for newer functions was added such as document.getElementById for example.  The main limitations come from the DOM implementation, which is relatively restrictive in that you can't modify much of an existing HTML except for the images.  If you need to know anything specific, just ask - unfortunately there isn't a list of supported functions available.

I can't speak for AWeb except IBrowse generally supports more JavaScript :D.
Title: Re: AWeb and IBrowse Javascript implementation info needed
Post by: Karlos on February 22, 2010, 08:32:34 PM
document.getElementById() is needed to implement a few features I'm trying to emulate from the site proper in the classic browser proxy. It worked for ibrowse but not aweb.

Which other DOM related methods are implemented?

Quote
unfortunately there isn't a list of supported functions available.

D'Oh, I should have read the post to the end before replying...
Title: Re: AWeb and IBrowse Javascript implementation info needed
Post by: futaura on February 27, 2010, 01:10:39 PM
Basically, just document.getElementById() and document.getElementsByTagName().  However, these are both limited to returning elements that are accessable in the DOM as of NS4, which is generally all elements that are accessable also using document.elementname, document.forms.elementname, etc.  From memory, that means all form elements, images and links.  For example, you can't access things like
elements, tables, or anything else.