* [Edbrowse-dev] [ecmascript code]
@ 2017-09-01 21:09 Kevin Carhart
2017-09-02 1:02 ` Karl Dahlke
2017-09-02 1:14 ` Karl Dahlke
0 siblings, 2 replies; 7+ messages in thread
From: Kevin Carhart @ 2017-09-01 21:09 UTC (permalink / raw)
To: Edbrowse-dev
Karl, Dominique, everyone who ported to duktape, do you know of a way to
echo JS function bodies that are represented as [ecmascript code]? For
instance, from jdb,
xxx = function() { alert('hi') }
function () { [ecmascript code] }
xxx
function () { [ecmascript code] }
Using moz, when I typed xxx it would echo the program. One use for this
is when diagnosing event handler code that might exist inline in a JS
file, maybe in something like
$(elements).on("click",handler(){ } )
(It doesn't have to be jquery - you could substitute getElementsByTagName,
etc etc.)
So the handlers are doled out to all of the elements in the result set
maybe. And it's invaluable to be able to come along later and echo the
contents of the onclick$$array and so on.
I'm assuming that when it tells you something is [ecmascript code], it's
like when you get [native code]. It's compiled, it's bytecode, it's on a
different level. It isn't available to the interpreted environment.
If you dunno, I'll try asking the duktape developers. Karl, have you
talked to them a bit?
thanks
Kevin
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Edbrowse-dev] [ecmascript code]
2017-09-01 21:09 [Edbrowse-dev] [ecmascript code] Kevin Carhart
@ 2017-09-02 1:02 ` Karl Dahlke
2017-09-02 1:14 ` Karl Dahlke
1 sibling, 0 replies; 7+ messages in thread
From: Karl Dahlke @ 2017-09-02 1:02 UTC (permalink / raw)
To: Edbrowse-dev
Sounds like a duktape question. Sami is very helpful and responsive.
sami.vaarala@gmail.com
Karl Dahlke
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Edbrowse-dev] [ecmascript code]
2017-09-01 21:09 [Edbrowse-dev] [ecmascript code] Kevin Carhart
2017-09-02 1:02 ` Karl Dahlke
@ 2017-09-02 1:14 ` Karl Dahlke
2017-09-02 7:57 ` Kevin Carhart
1 sibling, 1 reply; 7+ messages in thread
From: Karl Dahlke @ 2017-09-02 1:14 UTC (permalink / raw)
To: Edbrowse-dev
If there is no way to do what you want from duktape, and I think there is not,
we can store the string at compile time and put it in f.body or some such.
Do this at the two places duk_pcompile().
I'm sure it would help.
Karl Dahlke
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Edbrowse-dev] [ecmascript code]
2017-09-02 1:14 ` Karl Dahlke
@ 2017-09-02 7:57 ` Kevin Carhart
2017-09-02 16:20 ` Karl Dahlke
0 siblings, 1 reply; 7+ messages in thread
From: Kevin Carhart @ 2017-09-02 7:57 UTC (permalink / raw)
To: Karl Dahlke; +Cc: Edbrowse-dev
Thank you! I'll ask Sami, or study duk_pcompile, or both.
On Fri, 1 Sep 2017, Karl Dahlke wrote:
> If there is no way to do what you want from duktape, and I think there is not,
> we can store the string at compile time and put it in f.body or some such.
> Do this at the two places duk_pcompile().
> I'm sure it would help.
>
> Karl Dahlke
> _______________________________________________
> Edbrowse-dev mailing list
> Edbrowse-dev@lists.the-brannons.com
> http://lists.the-brannons.com/mailman/listinfo/edbrowse-dev
>
--------
Kevin Carhart * 415 225 5306 * The Ten Ninety Nihilists
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Edbrowse-dev] [ecmascript code]
2017-09-02 7:57 ` Kevin Carhart
@ 2017-09-02 16:20 ` Karl Dahlke
2017-09-03 5:58 ` Kevin Carhart
0 siblings, 1 reply; 7+ messages in thread
From: Karl Dahlke @ 2017-09-02 16:20 UTC (permalink / raw)
To: Edbrowse-dev
Ok, you got it. Only took ten lines of code.
Javascript source stored in the body member, e.g. document.body.onload.body,
or document.GetElementById("some_anchor").onclick.body.
Hope this helps.
Karl Dahlke
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Edbrowse-dev] [ecmascript code]
2017-09-02 16:20 ` Karl Dahlke
@ 2017-09-03 5:58 ` Kevin Carhart
2017-09-03 22:12 ` [Edbrowse-dev] very good news Kevin Carhart
0 siblings, 1 reply; 7+ messages in thread
From: Kevin Carhart @ 2017-09-03 5:58 UTC (permalink / raw)
To: Edbrowse-dev
> Ok, you got it. Only took ten lines of code.
What! Thank you, this is like christmas..
http://carhart.net/~kevin/bundock_fa_la_la.mp3
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Edbrowse-dev] very good news
2017-09-03 5:58 ` Kevin Carhart
@ 2017-09-03 22:12 ` Kevin Carhart
0 siblings, 0 replies; 7+ messages in thread
From: Kevin Carhart @ 2017-09-03 22:12 UTC (permalink / raw)
To: Edbrowse-dev
This is really a quantum leap! I have a handful of additions, which I
will document in a second message. I'd like to bring back the Event
change from diedrescher.com. And if you do about six small things, this
is what we can get working! We finally broke through!
edbrowse ready
b http://nasa.gov
18989
2359
1
<Push>
Toggle navigation
Search NASA.gov
<>
<Search>
Expedition 52 Crew Lands with Whitson, Fischer
NASA astronauts Peggy Whitson and Jack Fischer of NASA,
along with Expedition 52 Commander Fyodor Yurchikhin of the Russian space
agency Roscosmos, landed in Kazakhstan at 9:21 p.m. EDT Sept. 2.
With the 288 days Whitson spent in space on this mission, she holds the
{U.S.
record for cumulative time in space},
with 665 days in space during three long-duration missions.
She has spent more time in orbit during a single spaceflight (288 days)
than any other woman. Whitson also holds the records for {most spacewalks}
and
time spent spacewalking by a female astronaut.
During her second mission, she became the first woman to command the space
station, and during this mission, she became the first woman to command
the station twice.
* Three ISS Crewmates Safely Return to Earth
* Peggy Whitson's Thoughts on the Mission
* Peggy Whitson Sets New Record For Time in Space
NASA Events
Tuesday, Sept. 5, 12:30 p.m. EDT: NASA and Air and Space Museum Honor
Voyager's
40th Anniversary
Wednesday, Sept. 13, 1 p.m. EDT: News Conference on Cassini's Final
Mission Activities
Friday, Sept. 15, 7-9:30 a.m. EDT: Cassini Mission's Grand Finale
Calendar
Launches and Landings
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-09-03 22:11 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-01 21:09 [Edbrowse-dev] [ecmascript code] Kevin Carhart
2017-09-02 1:02 ` Karl Dahlke
2017-09-02 1:14 ` Karl Dahlke
2017-09-02 7:57 ` Kevin Carhart
2017-09-02 16:20 ` Karl Dahlke
2017-09-03 5:58 ` Kevin Carhart
2017-09-03 22:12 ` [Edbrowse-dev] very good news Kevin Carhart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).