1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-15 23:35:34 +00:00

[xhr] Added code for mujs

It does not work. If you know how to pass 'this' to functions
executed later, for example onload_run, let me know.
This commit is contained in:
Witold Filipczyk 2022-10-30 20:18:42 +01:00
parent b2dba0b67b
commit 5e802064c9
5 changed files with 1419 additions and 2 deletions

View File

@ -35,6 +35,7 @@
#include "ecmascript/mujs/screen.h"
#include "ecmascript/mujs/unibar.h"
#include "ecmascript/mujs/window.h"
#include "ecmascript/mujs/xhr.h"
#include "intl/libintl.h"
#include "main/select.h"
#include "osdep/newwin.h"
@ -95,6 +96,7 @@ mujs_get_interpreter(struct ecmascript_interpreter *interpreter)
mjs_element_init(J);
mjs_location_init(J);
mjs_document_init(J);
mjs_xhr_init(J);
return J;
#if 0

View File

@ -4,6 +4,6 @@ INCLUDES += $(MUJS_CFLAGS)
OBJS = attr.obj attributes.obj collection.obj console.obj document.obj element.obj form.obj \
forms.obj history.obj implementation.obj input.obj location.obj \
localstorage.obj navigator.obj nodelist.obj screen.obj unibar.obj window.obj
localstorage.obj navigator.obj nodelist.obj screen.obj unibar.obj window.obj xhr.obj
include $(top_srcdir)/Makefile.lib

View File

@ -1,2 +1,2 @@
srcs += files('attr.cpp', 'attributes.cpp', 'collection.cpp', 'console.cpp', 'document.cpp', 'element.cpp', 'form.cpp', 'forms.cpp', 'history.cpp', 'implementation.cpp',
'input.cpp', 'localstorage.cpp', 'location.cpp', 'navigator.cpp', 'nodelist.cpp', 'screen.cpp', 'unibar.cpp', 'window.cpp')
'input.cpp', 'localstorage.cpp', 'location.cpp', 'navigator.cpp', 'nodelist.cpp', 'screen.cpp', 'unibar.cpp', 'window.cpp', 'xhr.cpp')

1407
src/ecmascript/mujs/xhr.cpp Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,8 @@
#ifndef EL__ECMASCRIPT_MUJS_XHR_H
#define EL__ECMASCRIPT_MUJS_XHR_H
#include <mujs.h>
int mjs_xhr_init(js_State *J);
#endif