Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
JSC with javascript questions
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
mcintyre321  
View profile  
 More options Jun 26, 2:33 pm
From: mcintyre321 <mcintyre...@gmail.com>
Date: Fri, 26 Jun 2009 11:33:06 -0700 (PDT)
Local: Fri, Jun 26 2009 2:33 pm
Subject: JSC with javascript questions
Hi, I'm just trying out jsc again after an 18month hiatus. Got some
questions!

1. I'm trying to use clientX and y on the IEvent class but they are
internal. Should they be? Should any properties on JS objects be
internal?

2. Is there some way to access properties of objects that aren't
exposed in the ScriptCoreLib, e.g. an extension method on object that
lets me do something like myEvent.Get<string>("clientX") and maybe a
setter too...

3. It would be neat if there was some way to split the generated
script files up by namespace, and load in only the required files at
runtime. The iphone has a limit on cache size (see
http://devphone.com/small-is-beautiful-on-the-iphone-if-you-want-a-go...)
so JSC scripts aren't much help as they are around 400k, even if you
are only using a small part of the framework. Is there any chance of
this?

4. The name of the classes generated are a bit mangled. It would be
really nice if the scripts were easy to reference and instantiate from
a normal js file and had visual studio js intellisense hints.

I appreciate that to do 3 and 4 would require significant amounts of
work, but I think they would really help make jsc easier to use in the
mainstream.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arvo Sulakatko  
View profile  
 More options Jun 28, 8:05 am
From: Arvo Sulakatko <dade...@gmail.com>
Date: Sun, 28 Jun 2009 15:05:44 +0300
Local: Sun, Jun 28 2009 8:05 am
Subject: Re: JSC with javascript questions

Hey,

1. You should be using CursorX and
CursorY<http://jsc.svn.sourceforge.net/viewvc/jsc/core/ScriptCoreLib/JavaScri...>.
IE does not have clientX property, that is whay its use is somewhat
restricted.
2. There are multiple
ways<http://zproxy.wordpress.com/2009/06/18/new-example-exposedfunctions/>to
work with native javascript APIs. You may be interested in
Expand.Of(x).SetMembet(key,
value)<http://jsc.svn.sourceforge.net/viewvc/jsc/core/ScriptCoreLib/JavaScri...>
3. At this time I suggest you to use an external minifier tool. In a future
version jsc could emit smaller code.
4. Name mangling was introduced to support multiple assemblies with same
type names. See here how to expose static
methods.<http://zproxy.wordpress.com/2009/06/18/new-example-exposedfunctions/>You
could use such static methods for interop.

Also check out this post:
http://zproxy.wordpress.com/2009/06/28/updated-example-exposedfunctions/

Does that help?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mcintyre321  
View profile  
 More options Jul 7, 11:33 am
From: mcintyre321 <mcintyre...@gmail.com>
Date: Tue, 7 Jul 2009 08:33:02 -0700 (PDT)
Local: Tues, Jul 7 2009 11:33 am
Subject: Re: JSC with javascript questions
thanks!

On Jun 28, 1:05 pm, Arvo Sulakatko <dade...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google