From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-x231.google.com (mail-we0-x231.google.com [IPv6:2a00:1450:400c:c03::231]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 7CF9577AF8 for ; Thu, 8 May 2014 09:32:24 -0700 (PDT) Received: by mail-we0-f177.google.com with SMTP id x48so2723765wes.22 for ; Thu, 08 May 2014 09:31:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=URX3xSPRt3Ny+bOuSCNRKeIwZwu0d6Ugk/e3v2IGYMM=; b=I9sbFj3NK1f0nMuqI2w15h7A5i8wZOIxpb1kgEC/D+ExnRmqDL5uagsXHVhmahfApl lLzAqGGB3nWogxLScarI9NWiDO/axFHDUWFGOc9cNgvWnvmhM9LD95NUT87UtEWZ5cLO iU/E2pHz28aW1oHK9Hs0W/vsq8wDbrYykQ42ZoSVhzDXQ334A2O/tiB4ZxHk8LuEgDFz pSel8CU6/Q994mzoKRhV6E1CGnLUhn3D7rBUVEJ65y/PiwU8zmaaaDHHjv5W+CSd3bU7 wPWoIJAhlb559bdkVuxx+Hne3osryT1GRJJHH7k9Op3A2oIHvXXcCXsqAjlXGpW3FRqi eCDw== X-Received: by 10.194.81.98 with SMTP id z2mr4168784wjx.12.1399566700373; Thu, 08 May 2014 09:31:40 -0700 (PDT) Received: from toaster.adamthompson.me.uk (toaster.adamthompson.me.uk. [2001:8b0:1142:9042::2]) by mx.google.com with ESMTPSA id co9sm1892303wjb.22.2014.05.08.09.31.38 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 May 2014 09:31:39 -0700 (PDT) Date: Thu, 8 May 2014 17:31:36 +0100 From: Adam Thompson To: Karl Dahlke Message-ID: <20140508163136.GU13032@toaster.adamthompson.me.uk> References: <20140407155225.eklhad@comcast.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="p1zSJVlfBL7BTggM" Content-Disposition: inline In-Reply-To: <20140407155225.eklhad@comcast.net> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: Edbrowse-dev@lists.the-brannons.com Subject: Re: [Edbrowse-dev] jQuery X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.17 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 May 2014 16:32:24 -0000 --p1zSJVlfBL7BTggM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 07, 2014 at 03:52:25PM -0400, Karl Dahlke wrote: > My first foray into jquery has me shaking my head. >=20 > https://learn.jquery.com >=20 > 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 un= sure. > It reminds me, decades ago, a proff showed me how you could > use the preprocessor to almost turn C into pascal. >=20 > #define begin { > #define end } > etc >=20 > 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, =66rom 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 patter= ns. 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 fin= e, > but we don't. >=20 > My first load of the library gives this error. >=20 > jquery-1.11.1.js: 916: TypeError: document is undefined >=20 > Really? > almost the first thing I do in createJavaContext is make the document obj= ect. > It's there from the start, but somehow something in this library has caus= ed > 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 functio= ns on websites which don't work with edbrowse: var document =3D some.set.of.js.calls(); I can't remember what went after the =3D 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. --p1zSJVlfBL7BTggM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJTa7FoAAoJELZ22lNQBzHOc/YH/2Z1kXcbYD1pmE0cNnSl7UAT Dy5Wyq6XyUZGlryKfqBqVMnTA8tbg0w8bPZyqHiUwKhwrBnipvE72xtWGCZ5taVn y4gmVyj6UPndDnSG6bT7L4s5arNExNy/F2qWm6e5Kg/2IVpesf5ECDHV0s7d3fbd wRAM31QoXMBzirJIqLCnMD05S0aNQ+MR5+PN0lJH0cAK8T5S5ML4joOb+B7Jluvi YG9Rh/S9x6BXET2BmLBJiY72bza1c+LOxntqCllLCitBooqHhxsJeHlfSBGMde+X 850sqhJeFxRG63OHYYyyodrfikNbNoihnhuTsnp2rlk7GBWN3dRDpkVdHEg9qZI= =JFy3 -----END PGP SIGNATURE----- --p1zSJVlfBL7BTggM--