From: Adam Thompson <arthompson1990@gmail.com>
To: Karl Dahlke <eklhad@comcast.net>
Cc: Edbrowse-dev@lists.the-brannons.com
Subject: Re: [Edbrowse-dev] jQuery
Date: Thu, 8 May 2014 17:31:36 +0100 [thread overview]
Message-ID: <20140508163136.GU13032@toaster.adamthompson.me.uk> (raw)
In-Reply-To: <20140407155225.eklhad@comcast.net>
[-- Attachment #1: Type: text/plain, Size: 2237 bytes --]
On Wed, May 07, 2014 at 03:52:25PM -0400, Karl Dahlke wrote:
> My first foray into jquery has me shaking my head.
>
> https://learn.jquery.com
>
> I downloaded jquery-1.11.1.js,
> and at least it is real code, not minimized.
> But what is the point?
Yeah, I've only recently started looking into this as well and I'm still unsure.
> It reminds me, decades ago, a proff showed me how you could
> use the preprocessor to almost turn C into pascal.
>
> #define begin {
> #define end }
> etc
>
> And then he said, "but don't ever do that!"
Yeah... I've never seen that done before and hope I never see it in actual code.
> jquery seems to be a huge library of functions that overlay prototypes and
> all sorts of things to make js more powerful I guess.
I'm not so sure it's about making js more powerful,
from what I've seen so far it just looks like a way to abstract away the
details of web development allowing the use of the latest GUI coding patterns.
To my mind, whereas this certainly makes developing web content easier for all
those java and similar object oriented programmers out there,
it doesn't really increase the power of js.
> If we have a perfect js dom implementation then jquery would run just fine,
> but we don't.
>
> My first load of the library gives this error.
>
> jquery-1.11.1.js: 916: TypeError: document is undefined
>
> Really?
> almost the first thing I do in createJavaContext is make the document object.
> It's there from the start, but somehow something in this library has caused
> it to disappear.
> I haven't had the time or the inclination to track down what has happened.
I've not looked through jquery to see if it does this,
but I seem to remember seeing the below code a bunch of times in js functions on
websites which don't work with edbrowse:
var document = some.set.of.js.calls();
I can't remember what went after the = but I remember wondering why anyone
would want to define the document variable and being somewhat surprised to see
that people actually did this.
I think if we can get child nodes working though that'd certainly help.
Sorry I don't have more time to look into this at the moment.
Cheers,
Adam.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
next prev parent reply other threads:[~2014-05-08 16:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-07 19:52 Karl Dahlke
2014-05-08 16:31 ` Adam Thompson [this message]
2014-05-07 22:27 Kevin Carhart
2014-05-07 22:54 Karl Dahlke
2014-05-09 0:57 ` Kevin Carhart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140508163136.GU13032@toaster.adamthompson.me.uk \
--to=arthompson1990@gmail.com \
--cc=Edbrowse-dev@lists.the-brannons.com \
--cc=eklhad@comcast.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).