> I was wondering how to get the allowXHR flag into javascript,

Well this is a funny question, that I hadn't thought of before,
but it has some real synergy with my post about edbrowse-curl messages
back and forth.
Remember I said that somehow updating variables in edbrowse,
like, fmp fma, ftp mode active ftp mode passive,
those sorts of variables have to propagate over to the curl server
because they change its behavior.
Well here we have one, the only one so far,
that affects the behavior of js.
When toggled in edbrowse, it has to propagate
to the js engine.

I think you were suggesting a counterpart variable,
window.allowXHR$ or some such,
that edbrowse could toggle when it toggled the variable
in its own process space.
But that doesn't work because it would have to tinker with such a variable
in every open window in js, many buffers,
each with a stack of web pages.
Possible, but a bit impractical, nor does it generalize.
I suspect we need a variable update message,

update foo=bar

which we already said we need for the curl server anyways.
I'll give this some thought and put something
in place; meantime you can continue to patch the other small items.

Karl Dahlke
_______________________________________________
Edbrowse-dev mailing list
[email protected]
http://lists.the-brannons.com/mailman/listinfo/edbrowse-dev

Reply via email to