You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Gabe Harbs <ha...@gmail.com> on 2025/03/05 08:53:10 UTC

jQuery

Do we have tests that confirm that jQuery works?

I don’t use jQuery very often, but I have a product which used it and I noticed that into longer compiled correctly when jQuery was being used. I ended up removing the jQuery dependency because it wasn’t really needed very much, but I suspect it no longer works…

Harbs

Re: jQuery

Posted by Gabe Harbs <ha...@gmail.com>.
Yes. But it didn’t work.

I just realized that maybe I didn’t reference the correct swc. Not sure. I don’t personally care enough to spend time on this. I’m just bringing this up in case it’s significant to someone...

> On Mar 5, 2025, at 11:38 AM, Yishay Weiss <yi...@hotmail.com> wrote:
> 
> Doesn't it get compiled along with everything else in as-js ?
> ________________________________
> From: Gabe Harbs <ha...@gmail.com>
> Sent: Wednesday, March 5, 2025 8:53 AM
> To: Apache Royale Development <de...@royale.apache.org>
> Subject: jQuery
> 
> Do we have tests that confirm that jQuery works?
> 
> I don’t use jQuery very often, but I have a product which used it and I noticed that into longer compiled correctly when jQuery was being used. I ended up removing the jQuery dependency because it wasn’t really needed very much, but I suspect it no longer works…
> 
> Harbs


Re: jQuery

Posted by Yishay Weiss <yi...@hotmail.com>.
Doesn't it get compiled along with everything else in as-js ?
________________________________
From: Gabe Harbs <ha...@gmail.com>
Sent: Wednesday, March 5, 2025 8:53 AM
To: Apache Royale Development <de...@royale.apache.org>
Subject: jQuery

Do we have tests that confirm that jQuery works?

I don’t use jQuery very often, but I have a product which used it and I noticed that into longer compiled correctly when jQuery was being used. I ended up removing the jQuery dependency because it wasn’t really needed very much, but I suspect it no longer works…

Harbs

Re: jQuery

Posted by Harbs <ha...@gmail.com>.
Thanks for checking. I’m going to assume it was user error on my part and the older JQuery.swc I was referencing was no longer compatible.

> On Mar 11, 2025, at 11:31 PM, Josh Tynjala <jo...@bowlerhat.dev> wrote:
> 
> The jquery.swc built from royale-typedefs seems to be working for me.
> 
> I added royale-asjs/js/libs/jquery.swc to my project's js-library-path.
> 
> I see that the $ symbol is correctly recognized in VSCode, and completion
> seems to be working properly.
> 
> I also added the following <script> tag to my HTML template (which does not
> currently happen automatically, but it potentially could with the new
> -js-include-script compiler option that I added recently).
> 
> <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
> 
> I have not tried the JQuery component set built as
> royale-asjs/frameworks/libs/JQuery.swc and
> royale-asjs/frameworks/js/libs/JQueryJS.swc. I'm assuming that you weren't
> trying to use those, but please correct me if I'm wrong.
> 
> --
> Josh Tynjala
> Bowler Hat LLC
> https://bowlerhat.dev/
> 
> 
> On Wed, Mar 5, 2025 at 12:53 AM Gabe Harbs <ha...@gmail.com> wrote:
> 
>> Do we have tests that confirm that jQuery works?
>> 
>> I don’t use jQuery very often, but I have a product which used it and I
>> noticed that into longer compiled correctly when jQuery was being used. I
>> ended up removing the jQuery dependency because it wasn’t really needed
>> very much, but I suspect it no longer works…
>> 
>> Harbs


Re: jQuery

Posted by Josh Tynjala <jo...@bowlerhat.dev>.
The jquery.swc built from royale-typedefs seems to be working for me.

I added royale-asjs/js/libs/jquery.swc to my project's js-library-path.

I see that the $ symbol is correctly recognized in VSCode, and completion
seems to be working properly.

I also added the following <script> tag to my HTML template (which does not
currently happen automatically, but it potentially could with the new
-js-include-script compiler option that I added recently).

<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>

I have not tried the JQuery component set built as
royale-asjs/frameworks/libs/JQuery.swc and
royale-asjs/frameworks/js/libs/JQueryJS.swc. I'm assuming that you weren't
trying to use those, but please correct me if I'm wrong.

--
Josh Tynjala
Bowler Hat LLC
https://bowlerhat.dev/


On Wed, Mar 5, 2025 at 12:53 AM Gabe Harbs <ha...@gmail.com> wrote:

> Do we have tests that confirm that jQuery works?
>
> I don’t use jQuery very often, but I have a product which used it and I
> noticed that into longer compiled correctly when jQuery was being used. I
> ended up removing the jQuery dependency because it wasn’t really needed
> very much, but I suspect it no longer works…
>
> Harbs