mozilla-xp.com | Post Question | Search | About | Groups | Contact | Register | Login



mozilla feedback firefox (6093)

mozilla feedback (2053)

mozilla feedback firefox prerelease (1988)

mozilla feedback companion ebay (1608)

mozilla feedback thunderbird (855)

mozilla support thunderbird (791)

mozilla support seamonkey (503)

mozilla dev tech crypto checkins (460)

mozilla support firefox (399)

mozilla support bugzilla (386)

mozilla dev extensions (354)

mozilla feedback thunderbird prerelease (332)

netscape public mozilla reviewers (272)

mozilla dev mdc feedback (270)

netscape public beta feedback (268)

netscape public mozilla crypto checkins (265)

mozilla dev apps thunderbird (248)

netscape public mozilla jobs (224)

mozilla dev tech plugins (193)

mozilla dev apps firefox (189)

mozilla dev tech xul (188)

mozilla dev apps calendar (185)

mozilla dev embedding (181)

netscape public mozilla embedding (177)

netscape public mozilla test (174)

netscape public dev xul (169)

mozilla dev planning (166)

mozilla support calendar (166)

mozilla dev tech js-engine rhino (163)

mozilla test (162)

netscape public mozilla jseng (160)

netscape public mozilla crash-data (159)

netscape public mozilla xpcom (159)

mozilla dev platforms mobile (157)

mozilla dev platform (155)

mozilla jobs (153)

mozilla marketing (153)

mozilla dev builds (152)

netscape public mozilla layout xslt (151)

mozilla dev tech xpcom (150)

mozilla dev accessibility (147)

mozilla support webtools (146)

netscape public mozilla webtools (141)

netscape public mozilla gtk (136)

mozilla dev tech java (135)

netscape public mozilla calendar (135)

mozilla community drumbeat (134)

mozilla dev tree-management (131)

mozilla dev apps bugzilla (130)

netscape public mozilla i18n (130)

netscape public mozilla prefs (129)

netscape public mozilla qa general (129)

mozilla dev amo (128)

netscape public mozilla rdf (126)

netscape public mozilla xpinstall (126)

netscape public mozilla xml (124)

netscape public mozilla xpfe (123)

netscape public mozilla plugins (122)

netscape public mozilla java (122)

netscape public mozilla ui (119)

netscape public mozilla accessibility (118)

netscape public mozilla wishlist (117)

netscape public mozilla mac (116)

mozilla dev tech js-engine (116)

mozilla dev apps seamonkey (116)

netscape public mozilla general (113)

netscape public mozilla mathml (112)

netscape public mozilla crypto (112)

netscape public mozilla beos (111)

netscape public mozilla jsdebugger (110)

netscape public mozilla license (109)

mozilla dev tech crypto (109)

netscape public mozilla qa browser (109)

mozilla wishlist (107)

mozilla dev tech xforms (106)

netscape public mozilla directory (106)

netscape public mozilla editor (106)

mozilla dev quality (106)

netscape public mozilla macosx (106)

mozilla dev apps js-debugger (105)

netscape public mozilla performance (103)

netscape public mozilla builds (100)

mozilla dev ports os2 (100)

netscape public mozilla qt (98)

netscape public mozilla mail-news (97)

mozilla announce (96)

netscape public mozilla documentation (94)

netscape public mozilla os2 (93)

netscape public mozilla nspr (93)

netscape public mozilla netlib (93)

netscape public mozilla style (92)

mozilla support planning (92)

netscape public mozilla patches (91)

mozilla dev l10n web (90)

mozilla dev tech nspr (89)

mozilla dev mdc (87)

mozilla dev tech network (86)

mozilla dev tech css (86)

mozilla dev l10n cs (85)

netscape public mozilla layout (84)


netscape.public.mozilla.jseng Post New
Items(160) /2 Next >> Last >|
Subject Posted Replies From
SpiderMonkey JS engine type

Hi. I am implementing SpiderMonkey JS engine based parser. JavaScript is dynamic, weakly typed language. But is it possible to know JavaScript function, function parameters, variable types using SpiderMonkey? Example: function doSomething (Date) { try { var Res = check(Date); switch (Res) { case 1 : return (true); break; case 0: return (false); break; case -1: return (false); break; default: var ErrMsg = "Wrong date" + Date; return report(ErrMsg); break; } } catch (err) { AddError("

2/22/2010 10:42:41 AM 0 Alexander Zezulinsky <palgol...@gmail.com>



compileString returns script for every script ...

hi, i am trying to use the compileString to check for errors, the compile cx.compileScript return a script object regardless of the validity of the code i am doing something like that: try { final Script script = cx.compileString(this.js, "codeboxAction", 0, null); //$NON-NLS-1$ if (script!=null) return script; } catch (EvaluatorException e){ return null; } return null; } and i always get a script object.... please advise

1/4/2010 3:58:01 PM 0 Jaimon <kal.liz...@gmail.com>
Hentai Video Engines: Dragonball Hentai Pics

========================================================================= ========= Free Hentai videos from Platinum Paysites ========= VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV ========= ENTER HERE: ========= ========= http://movie33.biz/video/rmhy ========= ========= ========= ========================================================================= ========================================================================= ========================================================================= .. .. .. ..

11/3/2009 7:16:20 PM 0 coequal Yoder <odfcoequalyo...@gmail.com>
jobs in javascript

http://htmljavascriptphp.blogspot.com/2009/06/javascript.html http://htmljavascriptphp.blogspot.com/2009/06/what-is-simple-calculator.html http://htmljavascriptphp.blogspot.com/2009/06/what-is-javascript.html http://htmljavascriptphp.blogspot.com/2009/06/php-forms-and-user-input.html

7/7/2009 6:50:40 AM 0 preety preety <ppreet...@gmail.com>
java script tricks

http://htmljavascriptphp.blogspot.com/2009/06/javascript.html http://htmljavascriptphp.blogspot.com/2009/06/what-is-simple-calculator.html http://htmljavascriptphp.blogspot.com/2009/06/what-is-javascript.html http://htmljavascriptphp.blogspot.com/2009/06/php-forms-and-user-input.html

6/26/2009 7:56:56 AM 0 neethu neethu <neeth...@gmail.com>
Marking and tracking variables

Hello, I am working on a project where we need to mark some sensitive information in JavaScript and track these markers through various operations, like assignments, concatenations, etc. Consider the following example: var a = 'a'; var b = new String('b'); b.marker = 1; var c = 'c'; var d = a + b + c; Is it possible to pass the marker through concatenation and assignment op so that it will appear at variable d? As far as I know there is no way to overload + operator in JavaScript? Is it correct? Is there any possible way to do it without modifying SpideMonkey's source cod

6/22/2009 12:30:14 PM 0 alerma <alerma....@gmail.com>
Kitchenaid Mixer Grease

KitchenAid mixer 4176597 grease. Price:$16.99 Image: http://bestdeallocator.info/image.php?id=B000TRBW42 Best deal: http://bestdeallocator.info/index.php?id=B000TRBW42

5/21/2009 4:05:12 AM 0 Amir...@jamila.com
Honeywell Gas Valves

S8610U Universal Intermittent Pilot Module Price:$167.88 Image: http://bestdeallocator.info/image.php?id=B000I0PL7E Best deal: http://bestdeallocator.info/index.php?id=B000I0PL7E

5/21/2009 3:31:02 AM 0 Attana...@ed.com
Thimbleberry Braided Rugs

Thimbleberries Winter Oval Braided Rug - 27x36" Price:$55.99 Image: http://bestdeallocator.info/image.php?id=B0001BRMRM Best deal: http://bestdeallocator.info/index.php?id=B0001BRMRM Thimbleberries/hearth Rug 2'x7' Runner Wild Flower Price:$108.90 Image: http://bestdeallocator.info/image.php?id=B0009IDM08 Best deal: http://bestdeallocator.info/index.php?id=B0009IDM08 Thimbleberries Winter Oval Braided Rug - 27x36" Price:$55.99 Image: http://bestdeallocator.info/image.php?id=B0001BRMRM Best deal: http://bestdeallocator.info/index.php?id=B0001BRMRM Thimbleberries/he

5/21/2009 1:42:07 AM 0 Angelu...@susan.com
Fender Watch

Armitron Men's Two-Tone Watch #201143 Price:$40.00 Image: http://bestdeallocator.info/image.php?id=B000K3DT7I Best deal: http://bestdeallocator.info/index.php?id=B000K3DT7I Fender Men's Metal Head Silver Dial Watch #FG061026SM Price:$85.00 Image: http://bestdeallocator.info/image.php?id=B000WUEKMM Best deal: http://bestdeallocator.info/index.php?id=B000WUEKMM Fender Women's Crossroads Watch #FL061002SK Price:$95.00 Image: http://bestdeallocator.info/image.php?id=B000WUMGBE Best deal: http://bestdeallocator.info/index.php?id=B000WUMGBE Fender Men's Stainless Steel

5/21/2009 1:37:05 AM 0 Alg...@renato.com
0.9515547 I Have To See This ...0.1412276

4.105049E-02 I Have To See This ... 0.607161 0.9515547 Now Visit Tobacco Is Drugs 0.1412276

5/9/2009 2:41:28 AM 0 4.105049E-02realizeitist...@0.607161now.com
Invicta Grand Diver Automatic Mens Watch 7146, Best Wristwatch Mall

Invicta Grand Diver Automatic Mens Watch 7146, Best Wristwatch Mall Click Here To Website : http://invicta.watchesmall.net/Invicta-wristwatch-3= 727.html Luxury Watches Mall: http://www.watchesmall.net/ Invicta Grand Diver Automatic Mens Watch 7146 Information : Brand : Invicta Watches ( http://invicta.watchesmall.net/ ) Gender : Mens Code : invicta-grand-diver-automatic-7146 Also Called : Case Material : Stainless Steel Case Thickness : 47 mm Dial Color : Black Bezel : Unidirectional Rotating Movement : Automatic

4/10/2009 5:15:48 AM 0 iwcwatches...@gmail.com
Jacques Lemans London Ladies Watch 1101B, Best Wristwatch Mall

Jacques Lemans London Ladies Watch 1101B, Best Wristwatch Mall Click Here To Website : http://jacques-lemans.watchesmall.net/Jacques-Lemans-wristwatch-3982.html Luxury Watches Mall: http://www.watchesmall.net/ Jacques Lemans London Ladies Watch 1101B Information : Brand : Jacques Lemans Watches ( http://jacques-lemans.watchesmall.net/ ) Gender : Ladies Code : jacques-lemans-ceramic-watch-1101b Also Called : Case Material : Ceramic Case Thickness : 30mm Dial Color : Silver Bezel : Fixed Movement : Quartz Crystal

4/10/2009 5:15:40 AM 0 iwcwatches...@gmail.com
Lazy resolving of prototype property

Hello, I am trying to create a glue layer between SpiderMonkey and 3rd party DOM implementation, using resolve hooks for lazy definition of DOM objects and properties. Seems I cannot understand well what to do in case when a new DOM object is constructed, like this: var pic = new window.Image(); In this case a resolve hook is called for 'Image' object, asking to resolve 'prototype' property. At this point I do not understand how to resolve. I have tried everything but each time I get exception: {TypeError: Image is not a constructor} Please help, Alex Y.

1/27/2009 3:53:49 PM 0 alerma....@gmail.com
crash in JS_NewXML

I have a random crash executing the same exact script. I have a new runtime per run and can not reproduce this on demand. this is on windows using js 1.6 42fcd528 01985a0c 2dfcf218 00000007 00000044 js32!js_NewGCThing+0x12f [E:\Builds\vcs\Libraries\js\src\jsgc.c @ 589] 42fcd548 0197c666 2dfcf218 00000001 28a0f090 js32!js_NewXML+0x1c [E:\Builds\vcs\Libraries\js\src\jsxml.c @ 7470] 42fcd578 0197c438 2dfcf218 28a0f040 42fcd6d4 js32!ParseNodeToXML+0x296 [E:\Builds\vcs\Libraries\js\src\jsxml.c @ 1632] 42fcd5b0 0197c4d7 2dfcf218 28a0f090 42fcd6d4 js32!ParseNodeToXML+0x68 [E:\Buil

1/10/2009 5:44:30 PM 0 Rob Green <rgr...@voxeo.com>
Initializing custom JS Objects within firefox/mozilla

Hello, Is there a way to have custom JS Objects/functions instantiated while spidermonkey is running within firefox or mozilla browser? (worst case by even compiling firefox if necessary) Thankyou. Gap

12/17/2008 12:25:11 AM 0 gapp...@gmail.com
Operator Overloading in JavaScript

I'm wondering whats the latest with support for operator overloading in JavaScript, especially being able to overload operators for custom objects via spidermonkey. I need a way to support operations like adding elements between corresponding elements of two vectors for example, and being able to write the javascript as "a + b" as opposed to writing a for loop would be way simpler. Can anyone shed some light on if this is currently doable? I'm also open to suggestions about other embedded languages that could support operator overloading easily. JavaScript was my first choice, but t

10/14/2008 3:35:08 AM 0 sha...@gmail.com
Tag Heuer Formula 1 Chronograph Steel Orange Mens Watch CAH1113.BA0850

Tag Heuer Formula 1 Chronograph Steel Orange Mens Watch CAH1113.BA0850 Discount Watches Site : http://www.watchespurchase.com/ Tag Heuer Formula 1 Chronograph Steel Orange Mens Watch CAH1113.BA0850 Link : http://www.watchespurchase.com/Tag-Heuer-F1-Mens-Watch-CAH1113-BA0850.html Tag Heuer Formula 1 Chronograph Steel Orange Mens Watch CAH1113.BA0850 Information : Brand : TAG Heuer Watches ( http://www.watchespurchase.com/TAG-Heuer.html ) Gender : Mens Code : Tag-Heuer-F1-Mens-Watch-CAH1113-BA0850 Item Variations : CAH1113.BA0850 CAH1113BA0

9/22/2008 9:58:28 AM 0 hualibao...@gmail.com
Movado Trembrili Ladies Watch 0605366

Movado Trembrili Ladies Watch 0605366 Discount Watches Site : http://www.watchespurchase.com/ Movado Trembrili Ladies Watch 0605366 Link : http://www.watchespurchase.com/Movado-605366.html Movado Trembrili Ladies Watch 0605366 Information : Brand : Movado Watches ( http://www.watchespurchase.com/Movado.html ) Gender : Ladies Code : Movado-605366 Item Variations : 605366, 0605366, Movado-605366, Movado-0605366 Movement : Quartz Bezel : Fixed Case Material : Stainless Steel Case Diameter : 27.6mm Dial Color :

9/22/2008 9:58:19 AM 0 hualibao...@gmail.com
Rado Coupole Ladies Watch R22355122

Rado Coupole Ladies Watch R22355122 Discount Watches Site : http://www.watchespurchase.com/ Rado Coupole Ladies Watch R22355122 Link : http://www.watchespurchase.com/Rado-R22355122.html Rado Coupole Ladies Watch R22355122 Information : Brand : Rado Watches ( http://www.watchespurchase.com/Rado.html ) Gender : Ladies Code : Rado-R22355122 Item Variations : R22355122, Rado-R22355122, 22355122 Movement : Quartz Bezel : Fixed Case Material : Grey Ceramic Case Diameter : 24mm Dial Color : Grey Crystal :

9/22/2008 9:58:10 AM 0 hualibao...@gmail.com
Breitling Navitimer Heritage Steel Blue Mens Watch A3534012-C5-430A, Best Luxury Watch - www.luxury-gift.org

Breitling Navitimer Heritage Steel Blue Mens Watch A3534012-C5-430A, Best Luxury Watch - www.luxury-gift.org Luxury Gift : http://www.luxury-gift.org Breitling Watches : http://www.luxury-gift.org//breitling-watches.html Breitling Navitimer Heritage Steel Blue Mens Watch A3534012-C5-430A Link : http://www.luxury-gift.org/Watches/breitling-watch-35.html Breitling Navitimer Heritage Steel Blue Mens Watch A3534012-C5-430A Information : Brand : Breitling Watches Series : Breitling Navitimer Heritage Code : Breitling-A3534012-C5-430A Gender :

7/2/2008 9:32:25 AM 0 yxs...@gmail.com
JSEXT version 1.0 is out! (server-side js)

If you haven't heard about jsext, it is one of 23 projects mentioned on http://en.wikipedia.org/wiki/Server-side_JavaScript . What makes this one stand out is the way it connects with underlying libraries on the host: Jsext automatically parses C header files and links to dynamic libraries to provide direct access to them from JavaScript. That simplifies module writing _a lot_. For example, the project includes an SMTP client which supports attachments, international characters in message and address, multiple recipients, cc, bcc (217 lines + 92 lines of documentation), an FTP client

6/12/2008 8:58:56 AM 0 sveinb <svein.be...@gmail.com>
Enumerating properties and retrieving values (All methods have failed)

Given some javascript like the following: var g_number = 2; function test() { var str = "test"; } I would like to be able to enumerate all the properties (e.g. 'g_number' and 'str') and get their names and values. I've tried several different methods for doing so. So far, I've had the most success using JS_GetPropertyDescArray. However, I haven't been able to get the property values or any information about global properties. Here's some simple test code: JSPropertyDescArray pda; JS_GetPropertyDescArray(pContext, pObject, &pda); for(int j = 0; j < pda.length; j+

5/29/2008 3:27:19 PM 0 Farnz...@hotmail.com
Corinne in netscape.public.mozilla.jseng

Law enforcement is now intercepting text messages, as proven by Operation Sudden Fall in San Diego. http://www.usdoj.gov/dea/pubs/states/newsrel/sd050608.html http://www.signonsandiego.com/news/education/20080506-1338-bn06sdsu2.html Don't let your personal SMS/text messages fall into the wrong hands. Encrypt your messages with one of these: http://www.Xecure.net http://www.CryptoSMS.org http://www.CryptoSMS.com http://www.KrypText.co.uk http://www.CryptoGraf.com http://www.Cop2p.com/encrypted_sms.html http://www.FortressMail.net/fortress_sms.htm htt

5/24/2008 5:08:40 AM 0 Pearl.Bloe...@horse.sd.us
js files

Is this the right forum for this type of question? After a HTML page has been loaded I would like to be able to use one of a number of .js files without having to define all the possible files in the <head> tag. Can these be defined in the body of the form after loading?

5/20/2008 1:09:32 AM 0 Bruce <znot...@hotmail.com>
Hot Shop Audemars Piguet Charleston Watches - Audemars Piguet Minimum Price

Hot Shop Audemars Piguet Charleston Watches - Audemars Piguet Minimum Price Hot Watch Shop : http://www.hotwatchshop.com Audemars Piguet Watches : http://www.hotwatchshop.com/Audemars-Piguet-Watches.html Audemars Piguet Charleston Watches : http://www.hotwatchshop.com/Audemars-Piguet-Charleston-Watches-Watch.html Audemars Piguet Charleston Watches All Products : Audemars Piguet Charleston Diamond 18kt White Gold Ladies Watch 67029BC.ZZ.1092BC.02 : http://www.hotwatchshop.com/Audemars-Piguet-wristwatch-10806.html Audemars Piguet Charleston Diamond 18kt White Gold Ladies Watc

5/5/2008 7:03:02 AM 0 yxs...@gmail.com
Hot Shop Just Added Corum Watches - Corum Minimum Price

Hot Shop Just Added Corum Watches - Corum Minimum Price Hot Watch Shop : http://www.hotwatchshop.com Corum Watches : http://www.hotwatchshop.com/Corum-Watches.html Just Added Corum Watches : http://www.hotwatchshop.com/Just-Added-Corum-Watches-Watch.html Just Added Corum Watches All Products : Corum Sevigne Ladies Watch 101.251.90.E04.PN54 : http://www.hotwatchshop.com/Corum-wristwatch-10925.html Corum Sevigne Ladies Watch 101.251.90.E04.PN44 : http://www.hotwatchshop.com/Corum-wristwatch-10926.html Corum Sevigne Ladies Watch 101.251.90.E04.PN34 : http://www.hotwatchs

5/5/2008 7:02:51 AM 0 yxs...@gmail.com
Ashworth Women's Sport Leather Watch #ASL030D - Cheapest Watch

Ashworth Women's Sport Leather Watch #ASL030D - Cheapest Watch Ashworth Women's Sport Leather Watch #ASL030D Link : http://www.watchesprice.net/Ashworth-Womens-Sport-Leather-Watch-ASL030D-361.html Cheap Watches Home : http://www.watchesprice.net/ Lower Price Ashworth Brands : http://www.watchesprice.net/Ashworth-Watches.html Ashworth Women's Sport Leather Watch #ASL030D --- one of best selling watches, it is crafted in high quality Watches. Ashworth Women's Sport Leather Watch ASL030D Description: Quartz movement, Casual watch, Ashworth's Carnival II, Silver-tone luminous ha

4/30/2008 8:19:52 PM 0 wxs...@watchesprice.net
Movado Women's Amika 14K Solid Gold Diamond Watch #605338 - Cheapest Watch

Movado Women's Amika 14K Solid Gold Diamond Watch #605338 - Cheapest Watch Movado Women's Amika 14K Solid Gold Diamond Watch #605338 Link : http://www.watchesprice.net/Movado-Womens-Amika-14K-Solid-Gold-Diamond-Watch-605338-10691.html Cheap Watches Home : http://www.watchesprice.net/ Lower Price Movado Brands : http://www.watchesprice.net/Movado-Watches.html Movado Women's Amika 14K Solid Gold Diamond Watch #605338 --- one of best selling watches, it is crafted in high quality Watches. Movado Women's Amika 14K Solid Gold Diamond Watch 605338 Description: A sleek expression o

4/30/2008 8:19:42 PM 0 wxs...@watchesprice.net
Is it about providing -this- value?

Hi! Here's a small test case (for Firefox 1.5+ Win): var o = { p: { func: function () {}, }, test: function () { var msg = []; var d = new Date; var i = 1000000; var f = this.p.func; while (i--) { f(); }; msg[0] = (new Date) - d; // ~ 2700 ms d = new Date; i = 1000000; while (i--) { this.p.func(); }; msg[1] = (new Date) - d; // ~ 900 ms console.log(msg.join('\n')); } }; o.test(); The first iteration takes more

4/3/2008 12:21:02 PM 0 AKS <aksus-...@yandex.ru>
free trial membership adult personals tasmanian devil areas tasmania adult most visited adult personals sites

http://buyidaho.nx.cn/ http://careyand.nx.cn/ http://careyand.nx.cn/ http://orgcarey.nx.cn/ http://careyand.nx.cn/ http://careyand.nx.cn/ http://deathmay.nx.cn/ http://yourbuy.nx.cn/ http://aintbrad.nx.cn/ http://careyand.nx.cn/ http://aintbrad.nx.cn/ http://meterwas.nx.cn/ http://aintnext.nx.cn/ http://careyand.nx.cn/ http://careyphd.nx.cn/ http://careyand.nx.cn/ http://fromimg.nx.cn/ http://gunsbuy.nx.cn/ http://careyand.nx.cn/ http://pakbanks.nx.cn/ http://careyand.nx.cn/ http://careyand.nx.cn/ http://careywas.nx.cn/ http://you-aint.nx.cn/ http://digbuy.nx.cn/ http:

3/27/2008 1:27:02 PM 0 washingtonxas...@gmail.com
Why is (0 == "") true in JavaScript?

since "A" + 0 != "A" + "" Thank you Gap

3/21/2008 7:31:04 PM 0 gapp...@gmail.com
fp->scopeChain == fp->varobj assert firing

I'm upgrading my application which embeds SpiderMonkey to the current (trunk) js engine (libmozjs) from something I had pulled about a year or so ago. Up until the upgrade, things had been working fine -- I could parse and execute scripts embedded in my documents, with no apparent problems. In upgrading, one of the things I needed to do was compile with JS_THREADSAFE on, and wrap most calls to the JS API with either JSAutoRequest or JS_StartRequest/JS_EndRequest blocks. This is because I was getting asserts (CHECK_REQUEST is the macro I believe). I've been working through these one

1/23/2008 6:06:35 PM 1 slogan...@gmail.com
Newbie question

I've just got started figuring out how to use SpiderMonkey, and the first thing I've noticed is that the example code in the official tutorial (and all other tutorials, and all examples I could get from this newsgroup via Google Groups) does not attempt to retrieve an error message if JS_NewRuntime or JS_NewContext return NULL: rt = JS_NewRuntime(1024L*1024L); if(rt == NULL) { fprintf(stderr, "JS_NewRuntime: Huh? Mommy! Something went wrong!\n"); exit(1); } Isn't there *something* better I could put between the quotes? To me, "better" means something such as the output

1/21/2008 2:08:52 AM 0 nob...@nowhere.nonet
UIDL: User Interface Description Language.

Hi all, the initial release of a new open source project, UIDL, has just been released through Google code at http://code.google.com/p/uidl/. UIDL is an acronym for User Interface Description Language. The goal of the project is to create support for a universal client which allows for the display of rich user interfaces. This client includes a Rhino JavaScript interpreter and downloads scripts containing the UI code from a server (as per HTML for a browser but for complex UIs). The main features of a UIDL page are the ability to create complex user interfaces (using Swing

12/29/2007 10:21:54 PM 0 "Dominic" <nob...@nobody.com>
Reflecting

Hi, Im curious weather if there is support for enumerating functions much like the way properties can be enumerated. This would be very interesting for IDE. /Thomas

12/15/2007 7:04:59 PM 0 "Thomas" <tho...@rizos.net>
Export js_IsIdentifier and js_CheckKeyword?

I'm trying to come up with a routine in my client C++ code (using Spidermonkey) that determines whether a string is a valid JavaScript identifier, and also not a keyword, so that I can generate code with properties, using the dot notation whenever possible, and the square- bracket notation otherwise (e.g. MyObject.foo vs. MyObject["foo bar"] or MyObject["var"]). I've found that the js_MapKeywords function is exported as a "friend," so I can use that to build a set of keywords, and search it as needed. But I haven't found a similar way to determine whether a string is a valid identi

11/27/2007 5:06:45 PM 0 dankorn....@gmail.com
Announce: Whitebeam 1.1.5 released

Whitebeam is an open source, feature rich web-application server built on SpiderMonkey. Started in 2000 and released as open source in 2001, Whitebeam is a mature product that has been in commercial operation hosting real web applications for over 6 years. Examples of commercial applications : http://www.whitebeam.org/community/users.rhtm For those that see JavaScript as the ideal server-side language - Whitebeam is the answer! The latest release (1.1.5) follows several years of continuous development in both performance and functionality. Bindings are provided to the Postg

10/31/2007 2:41:06 PM 0 Peter Wilson <pe...@yellowhawk.co.uk>
Fatloss computer program

I have been using this computer program for a couple weeks now and i am very pleased with the results so far. its a software fatloss program, if your looking for a diet/weightloss plan i reccomend you check this place out first: http://fatloss9.50webs.com

10/15/2007 11:42:02 PM 0 Angel vasquez<vange...@yahoo.com>
HP Desktop for sale!

Hi, I have an unused HP Pavilion with the fallowing specs: # Processor: AMD Athlon 64 X2 4000+ (2.1GHz, 2000MT/s System Bus) # Memory: 2048MB PC2-5300 DDR2 SDRAM memory (2x1GB) (expandable to 8 GB (4 x 2 GB) (64-bit OS)/ 4 GB (4 x 1 GB) (32-bit OS)) # Hard Drive:320GB 7200RPM SATA 3G (3.0 Gb/sec) hard drive # Optical Drive: 16X DVD(+/-)R/RW 12X RAM (+/-)R DL LightScribe SATA drive # Expandable Drive Bay: HP Pocket Media Drive bay # Video Graphics: Integrated graphics # Network Interface: Integrated 10/100BaseT network interface # Sound: High Definition 8-channel audio # Fax/Modem:

10/14/2007 8:21:04 AM 0 pbdude<pbdude...@yahoo.com>
Watch NFL Games Online

Watch NFL Games Online! For every one who wants to watch the games online because they dont live in the teams town or are at work i found a site that has basically every game covered. Its perfect if you have afford a monthly $70 direct tv nfl access subscription. they got a bunch of channels The sites http://nflonline.wizhoo.com

10/14/2007 2:10:19 AM 0 Dexter H.<dexterhussain...@yahoo.com>
Sandboxing Javascript code

I'm looking at the possibility of using Spidermonkey in a situation where the Javascript code to be run is untrusted and therefore has to be sandboxed: no matter what it does, the calling process has to continue functioning normally; and wondering can Spidermonkey provide that. In particular, from the readme: "The interpreter executes the bytecode of top-level scripts, and calls itself indirectly to interpret function bodies (which are also scripts)." If I understand correctly, that means each Javascript function call uses native machine stack, so infinite recursion in Javascr

10/11/2007 12:35:07 AM 0 Russell Wallace <russell.no.s...@gmail.com>
Dynamic addition of property

For an application that we are building, on startup we initialize all the JS classes we need (using JS_InitClass with info containing the properties and functions) Whenever a script containing the properties already defined using JS_InitClass is evaluated, the corresponding getproperty stubs that were registered are called to evaluate the script. Now there is an issue faced to evaluate a NEW property of a class that has not yet been defined using JS_initclass. We understand that this can be achieved using JS_ResolveStub. For eg. Myobject.newproperty = 10; //Where newproperty ha

10/9/2007 9:49:14 AM 0 coolrenu <subin_j...@yahoo.com>
Memory Issues in Spidermonkey

Hi In our application we are using spidermonkey compiled with threadsafe option. We have one single runtime which is shared among all requests while for each request we are creating a new context and destroying it using JS_DestroyContextNoGC. The GC is running as a background thread which activates after every 5 secs. Now one thing that I observed is that if my script creates lot of new objects then the memory of the process increases and this memory does not come down even after GC is run. The problem is in case of multiuser scenario, in which case there is considerable increase

10/4/2007 7:36:49 AM 0 "vimase...@gmail.com" <vimase...@gmail.com>
Case-Insensitve properties

I apologise if this has already been covered long ago, but my google- fu just wasn't up to the task of ferretting out the answer. How can I make the properties of an object case insensitive? I'm trying to mimic the headers from HTTP where content-type is equivalent to CONTENT-TYPE. So far, I've implemented my own enumerate and resolve methods, which create uppercase versions of the properties. Presumably I should also implement getProperty. Or is there a simpler way?

9/17/2007 4:07:19 AM 0 Jeff Watkins <j...@metrocat.org>
A cool new way to search Google, Yahoo, and many others with Netscape

Hello everyone, We've developed a new search feature for the Netscape browser. You can see a short demo of us using this on Google here: http://www.visual-search.net/VideoDemonstrations/NetscapeWebDemo/NetscapeWebDemo.html You can download the extension on this page: http://www.visual-search.net or on the Firefox addons page (they work for Netscape as well): https://addons.mozilla.org/en-US/firefox/addon/5309 I hope everyone in the Netscape community likes this as much as we do!

7/25/2007 3:25:11 AM 0 Beaker <rbunn83...@gmail.com>
What is joined object in ECMA-262

Hi, all: I'm sorry because I don't know whether here is the right place to discuss it. We are talking about closure in javascript, and we have some questions about ECMA-262 3rd edition: What is joined function object(ecma-262 13.1)? The spec have given a example: function A() { function B(x) { return x*x } return B } var b1 = A(); var b2 = A(); Spec says: b1 and b2 can be joined, and implementation may make b1 and b2 the same object because [[scope]] of them have no difference. Two call of A() will produce a function from the same FunctionBody, so they are equate

7/23/2007 4:31:14 PM 0 "john...@gmail.com" <john...@gmail.com>
Australian online dating . dating in the uk . canadian online dating . online dating agencies

http://www.all-women-dates.com/index552.html http://www.all-women-dates.com/index553.html http://www.all-women-dates.com/index554.html http://www.all-women-dates.com/index555.html http://www.all-women-dates.com/index556.html http://www.all-women-dates.com/index557.html http://www.all-women-dates.com/index558.html http://www.all-women-dates.com/index559.html http://www.all-women-dates.com/index560.html http://www.all-women-dates.com/index561.html http://www.all-women-dates.com/index562.html http://www.all-women-dates.com/index563.html http://www.all-women-dates.com/index564.html ht

7/14/2007 6:54:54 PM 0 huewir8w3r89ewu3...@yahoo.com
odd behavior with xdr and gc

i am using spidermonkey 1.60 for windows using a new runtime per run. I import via JS_XDRScript a script with nothing but functions in it. (note: this is not the exact function, as i dont think that matters..) function getUser(uri) { } function getURL(uri, localip, ppid, url1) { return "sip:" + getUser(uri) + "@" + localip + ":" + ppid; } The very first run, it works. The second run fails in that it cant find the function "getUser". Calling JS_DecompileScript shows me on the first run : function getUser(uri) { but on the second run i get

6/22/2007 9:22:14 PM 0 Rob Green <rgr...@voxeo.com>
Wrong XML output in Rhino + E4X

Hello folks, I am stuck with this code in Rhino 1.6 release 5 2006 11 18: js> var x = 'John Doe'; js> var y = <a><b c=""/>{x}</a>; js> y <a> <b c=""/> "John Doe" </a> As you can see XML output contains unexpected quotes around the literal 'John Doe'... It seems Rhino does not correctly handle the self closing tag. That is if I rewrite the stuff to looks like the following then it works (note the closing tag '</b>') js> var x = 'John Doe'; js> var y = <a><b c=""></b>{x}</a>; js> y <a> <b c=""/> John Doe </a> Am I doing something wrong (i.e. bad syntax)?

6/22/2007 6:50:33 PM 0 claudio.des...@gmail.com
Rhino E4x Help

I have a simple javascript which loads an xml from string and tries to find the nodes with "qhtmlDOM..link" and doesn't find them. In the script given below, why does head.link and head.style returns empty even though the head.* works fine. I am using rhino1_6R5. Thanks, Irfan I am running the script as follows $ java -cp js.jar:xbean.jar:jsr173_1.0_api.jar org.mozilla.javascript.tools.shell.Main /home/irfan/tmp/test_e4x.js /////////////////////////////////////////////////////////////////////// Script // var sxml = '' + '<html>' + '<head>' + '<link rel="alternate" typ

6/14/2007 1:11:09 PM 0 Irfan Mohammed <irfan....@gmail.com>
Using Rhino for Javascript --> Java Conversion

I'm looking to convert decent amount of Javascript code to Java so it can run server-side. I found Phobos and Rhino, and wanted to know if this is the right approach. Will I be able to, for the most part, just compile my JS to Java using Rhino and rely on the fact that most things will work? How to two JS files that depend on each other interact once compiled to Java? Do I have to change the source any to work with Rhino? I'm sure I'll have to do some rewriting, but I'm talking in general. If most things will work out of the box, this seems like a good solution for me. If I'll be rewri

6/11/2007 2:27:04 PM 0 jcons...@gmail.com
Return null object from a constructor?

Is it possible to return an NULL from a constructor function in SM instead of returning the constructed object.. I've tried setting the return value to a NULL object but SM seems to override anything you put into the rval? JSBool myConstructor_function (cx,obj,argc,argv,rval) { if(everything is ok) { return JS_TRUE } else { return a null object } } many thanks

5/16/2007 5:52:23 PM 0 Housty <housty....@googlemail.com>
Get All static Properties

How to get all static properties Suppose I have class name Directory how to get all the static properties assigned to Directory ( like for exampole Directory.Sample ='test' Direcotry.Dir ='c:/test' Directory.Path ....) How to get all the static properties with default setting of JS_InitClass like below suppose I am using JS_InitClass () Object = JS_InitClass ( cx, gb, NULL, &aDirectory,aDirectory, 1, NULL, NULL, NULL, NULL );

4/21/2007 4:27:47 AM 0 pradeep kumar <pradeepmc...@gmail.com>
Static Properties

I have class Test and i have added the static property myValue I have defined the static property using JS_DefineProperty But i dont know how to get static value in the getProperty Any one having this idea please reply to this mail JSObject* Object; JSObject* aConstructorObject; aObject = JS_InitClass ( inContext, inGlobal, NULL, &aText,Text, 1, NULL, aTextClassFunctionSpec, NULL, NULL ); aConstructorObject = JS_GetConstructor ( inContext, aObject)

4/20/2007 7:24:03 AM 0 pradeep kumar <pradeepmc...@gmail.com>
Simulate Browser

Hi, I have searched the group and could not find any comprehensive information on the following question: Is there a framework available to simulate a browser? I do not need to care about window size, but AJAX, JavaScript changes to a form and such need to be simulated - is this possible? Thanks! -gratemyl

4/12/2007 8:45:41 PM 0 "Jerome" <grate...@gmail.com>
both location and location.href

hello i need to catch both location = 'href'; location.href = 'href2'; but ... overlaping makes one of this be disappearing. help plz. Artem

3/30/2007 2:31:46 PM 0 "Artem N. Myakshin" <tem...@mail.ru>
Catch javascript errors with gecko

Hi I'm working for a company who builds automats. In the application we develop in France, the user's interface is a web Browser. We choose to use mozilla, and I developped gecko, because we need to control all the processes. We are loading pages with javascript, and we need to know when there is a Javascript error. What I need to do is to trap the JS errors as mozilla do it qhen it puts JS or CSS error into the JS console. But I don't know when and how to do that. I looked at nsiJSConsoleService , nsIConsoleMessage, nsIScriptError.... But I did'nt find any way to do wh

3/16/2007 12:22:21 PM 0 "philippe" <PA510...@exchange.france.ncr.com>
Rhino and JavaScript 1.7

Hello: Is support for JavaScript 1.7 under development in Rhino? Regards, Nick

3/9/2007 5:45:07 AM 2 "ndro...@gmail.com" <ndro...@gmail.com>
Increasing JSContext Stack Size Slows Down My Scripts

I am using Spider Monkey to add scripting capability to my app. I have had it running for quite a while with no problems. I have a single JSRuntime and a single JSContext. Since I started, I have given my JSContext a 100K byte stack. Today I changed that to 1 Meg and the script that I was testing with slowed down by a factor of 25 to 30 (from about one-quarter of a second to over 6 seconds). When I increased the stack size to 10 Meg, the script slowed down by another factor of about 6. All of the time can be accounted for in the execution of the JavaScript code. I call the JS code f

3/1/2007 2:11:47 AM 0 "r...@manbert.com" <r...@manbert.com>
call to Context.compileString in Rhino throwing NoSuchMethodError

Hi, Has anyone ever experienced a problem like this with Rhino? I am using Rhino as part of an application which is running inside a Weblogic container. I am experiencing some difficulties with using Context.compileString to create a Script object which is then stored elsewhere. I originally developed the code within Eclipse, and not only did the code compile, it also passed several JUnit tests I wrote around it. However, after deploying the code to Weblogic, I keep getting NoSuchMethodError's at the point where compileString is called. Note that other calls to methods within C

2/20/2007 4:56:28 PM 1 laserangel5...@yahoo.com
How to use explicit getter and setter?

Hi, I posted this on mozilla.dev.tech.js-engine earlier this month but got no answer, so I hope someone on this newsgroup can help me or point me to some ressources where i can find further information for this issue. I have a problem concerning the use of JS-XPCOM-Objects in the combination of the xcshell. What i intend to do: Implement a JS-XPCOM-Objects and use it from within the xpcshell. This works fine as long as i do not use getter and setter functions instead of normal attributes. As far as i was able to debug it, the JS-Security manager is blocking the calls to the obj

2/18/2007 11:16:25 AM 0 Lukas Ramach <ram...@utanet.at>
Is JSString created by JS_NewStringCopyN garbage collected?

We are running SpiderMonkey in an embedded system, but had a memory issue. In JavaScript, I have code like this, for (var i=0; i<100000; i++) { read(); } read() is a function implemented in C like this, static JSBool readNative(JSContext* cx, JSObject* obj, uintN argc, jsval* argv, jsval* rval) { char buf[1024]; memset(buf, 'a', 1024); *rval = STRING_TO_JSVAL(JS_NewStringCopyN(cx, buf, 1024)); return JS_TRUE; } When executing the JavaScript, we can see the heap keeps growing and eventually exhausts memory. Is the JSString created by JS_NewStrin

2/15/2007 6:44:33 PM 0 "Weiyang Zhou" <weiyangz...@nowhere.com>
Create an object tree in spidermonkey

Hi, I'm new to spidermonkey, and I would like some help on creating objects. I have data a structure as follows.... interpretation: { drink: "coke", pizza: { number: "3", size: "large", topping: "pepperoni" } } I need to create a javascript object out of this structure. ie: I should be able to use interpretation.drink or interpretation.pizza.topping in a script.... Could someone please help me with this...

2/14/2007 6:53:34 AM 1 Sune...@gmail.com
Preventing creation of nonScriptables in script

Hello, I'm using Rhino to create a sandbox for JS developers, and want to restrict them from instanciating objects that don't implement the Scriptable interface. How can I do that? Thanks. Steve

2/13/2007 1:22:58 AM 1 "improvman" <stevekwe...@gmail.com>
Any information about Rhino & Ecmascript 4?

Is there any plan for the Rhino engine support ECMAScript 4, and share the same design with the AVM(or tamarin)? It looks that ECMAScript4 will be the standard WEB language when firefox integrated the tamarin project, so i think having a good Java implementation will be very interesting for the Java world. Just now, the rhino is very successful as an script language for JVM, and I think a ECMAScript 4 Rhino will be more success.

2/8/2007 2:37:34 AM 0 "=?utf-8?B?546L5Zyo56Wl?=" <wangzaixi...@gmail.com>
synchronise currentThread()

Hi, I'm trying to translate this java code synchronized (Thread.currentThread()) { try { Thread.currentThread().wait(); } catch (InterruptedException e) { e.printStackTrace(); } } in Javascript like this: sync(Thread.currentThread) { try { Thread.currentThread().wait(); } catch(e) { print(e); } } But I get this error: JavaException: java.lang.IllegalMonitorStateException: null Does anyone have a solution? For the moment I wor

1/26/2007 9:02:51 AM 0 "rb" <raphi...@gmail.com>
screen scraping with TagSoup and XPath

Hi, I'm trying to translate the example here: http://www.hackdiary.com/archives/000041.html in Rhino. The problem is that XPathAPI.eval doesn't return the a value as in the java code. The value is printed out, but doesn't end up in the variable I try to assign it to. Rhino code prints this Title is '' and Java prints this: Title is 'Example Web Page' The code is this: importPackage(java.io); importPackage(java.net); importPackage(java.util); importPackage(javax.xml.namespace) importPackage(javax.xml.transform) importPackage(javax.xml.transform.dom) importPacka

1/24/2007 8:33:34 AM 0 "rb" <raphi...@gmail.com>
DOM binding for javascript in spider monkey

Dear Friends Presently for one of my projects, I need a 'C' based java script engine, that has dom bindings implemented. After searching in the net, I could not find any 'C' based DOM binding implementation for Spider monkey. Kindly tell me if there is any open source 'C' based DOM binding implementation for Spider Monkey. If this not, kindly tell me the documentation page that will help me in implementing it. Many Thanks Sri

1/16/2007 9:11:55 AM 0 sriram.abir...@gmail.com
interpreting javascript and html, all together?

Hello Everyone For a project I am working on, I need to retrieve links from html documents. The easy part is to obtain 'plain' links like <A HREF="http://site/path/document">, but when those links are javascript'ized, the only robust solution needs to load the javascript and dom document representation in the same way that browsers do. For example, links in the form: <A HREF="javascript:function_declared_before("arguments"));> First I though that using spidermonkey (the mozilla javascript interpreter) should be enough, but in that case, I dont have the document structure

1/11/2007 11:12:01 PM 0 "Rodrigo Meza" <rodrigo.m...@gmail.com>
Array of objects

Hi, We are trying to implement the interface between DOM and Javascript. Say for eg. implementing the array of anchors object, within document, so as to parse statement like document.anchors[1].href This is the order we are calling Javascript API's: 1. Create new array object using JS_NewArrayObject that represents anchors 2. Create new object using JS_NewObject which represents each object inside anchors 3. Define the properties and functions using JS_DefineProperties and JS_DefineFunctions. 4. Define this as one of the elements of the array using JS_DefineElement. 5. Repeat

1/11/2007 10:00:02 AM 0 subin_j...@yahoo.com
Create an array of objects

Hi all, I'm new to spidermonkey, at the moment, I am trying to create an array of objects, with each object having a set of four properties. Each object "b" in the array is as follows: b[i].prop1 -- string b[i].prop2 -- string b[i].prop3 -- string b[i].prop4 -- object prop4 is another object with two properties ie: b[i].prop4[j].propA -- string b[i].prop4[j].propB -- string Should I use JS_SetElement? I am confused because this function takes a jsval and not a JSObject for the property to be set. I suppose I can use JS_DefineObject and JS_NewObject to create the obj

1/8/2007 5:52:09 AM 0 Sune...@gmail.com
Howto suspend JSD when hitting a breakpoint

Hi im working with spidermonkey and JSD. I have managed to set a breakpoint and get the callback that a breakpoint was hit. But i can=B4t understand how you could suspend the engine while waiting for user input. Do you have to launch the spidermonkey (and JSD) in a seperate thread and when you signal back to the user in the callback method you actually wait for user input.

12/6/2006 12:14:04 PM 0 "joheks" <joh...@gmail.com>
Java Collections and Javascript

Hi, Is there away to integrate java collections in with javascript in Rhino. For example doing things like: for( var f in files ) { var name = f.getName(); } Where files is a Collection or List. Is there a way to expose collections as if they were native javascript arrays? Thanks Charlie

12/4/2006 4:33:08 PM 0 "sasperilla" <charlie.hubb...@gmail.com>
Getting a stack trace for javascript failures in Rhino

Hi, I'm embedding rhino in an application, and I was wondering if I could get a stack trace to display to users when their scripts throw out errors. From the Rhino exception I just see source, line number information. Can I get more info? Thanks Charlie

12/4/2006 4:30:15 PM 0 "sasperilla" <charlie.hubb...@gmail.com>
JSEngine crashes on solaris 10 on x86

Hi I want to use JSRef with thread safety on solaris 10 on x86 machine. For building JSEngine, I obtained v1.5 tarball, js-1.5.tar from mozilla' site. But when try to build using, gmake -f Makefile.ref JS_THREADSAFE=1 it gives me the error SunOS5.10_i86pc.mk not found. After looking at config.mk I realised that it tries to search for appropriate OS related config file in src/config directory, after finding the users version of OS using 'uname'. As there is still no support for solaris 10 on x86 systems, I hardcoded the variable OS_RELEASE = 5.9, to use the existing SunOS5.9.

11/30/2006 8:47:05 AM 0 "vimase...@gmail.com" <vimase...@gmail.com>
Building SpiderMonkey from Trunk using MSVC6

Hi all, I have used cvs to checkout the SpiderMonkey source from the trunk at mozilla/js/src, and tried building it, using the steps given. I have even added '/OPT:REF /OPT:NOICF' to the linker option as stated in some documents. The command I used to build was: nmake /f js.mak CFG="js - Win32 Debug" However, I received the following linking errors and if I am not mistaken, all these functions are defined in jsiter.h and jsiter.c: <error> jsapi.obj : error LNK2001: unresolved external symbol _js_GeneratorClass jsapi.obj : error LNK2001: unresolved external symb

11/23/2006 3:59:42 AM 3 "kokhoor" <kokh...@gmail.com>
how to explain a HTML page which contains Javascript to normal

for example there is a HTML page: ----------------------------------- <HTML> <head> &lt;script > function link(i){ return 'view.asp?id='+i; } &lt;/script> </head> <body> <a href=Javascript:link(1)>view</a> </HTML> ------------------------------------ and how to get this result: <HTML> <head> &lt;script > function link(i){ return 'view.asp?id='+i; } &lt;/script> </head> <body> <a href='view.asp?id=1'>view</a> </HTML> thanks.

11/8/2006 9:59:34 AM 0 "ys" <ho...@163.com>
Function declaration as last expression in a script

Hi, I'm using Rhino 1.5r4 (bundled with Cocoon). For this script: foo = function() {}; foo; org.mozilla.javascript.Script'exec() returns a function object. But for this script: function() {}; it returns 'undefined'. Why is that? Is it a bug? If the function declaration is an expression and yields a value that can be assigned to foo in the first script, why doesn't the second script return that value as the last expression evaluated? thx-a-lot, Mark

11/7/2006 7:34:40 PM 1 Mark Lundquist <mlundqui...@comcast.net>
Call javascript function

Hello friends i developed a tollbar for Firefox browser. Now This toolbar contains a menu item. A web page will be opened by the user of the Toolbar. This Web page source code has included many .JS fiels in it. These JS files defined various functions , Now i want to call these functions from my toolbar menu command. How can i do that? I know function name which i have to call. I tried to call function directly by its name but it is giving error that this function is not exist? How should i call that function. I got success to implement same functionality for IE by using IHTMLW

10/31/2006 9:25:59 AM 0 harishdix...@gmail.com
Call Javscript function

Hello friends i developed a tollbar for Firefox browser. Now This toolbar contains a menu item. A web page will be opened by the user of the Toolbar. This Web page source code has included many .JS fiels in it. These JS files defined various functions , Now i want to call these functions from my toolbar menu command. How can i do that? I know function name which i have to call. I tried to call function directly by its name but it is giving error that this function is not exist? How should i call that function. I got success to implement same functionality for IE by using IHTMLW

10/31/2006 9:23:11 AM 0 harishdix...@gmail.com
Call Javscript function

Hello friends i developed a tollbar for Firefox browser. Now This toolbar contains a menu item. A web page will be opened by the user of the Toolbar. This Web page source code has included many .JS fiels in it. These JS files defined various functions , Now i want to call these functions from my toolbar menu command. How can i do that? I know function name which i have to call. I tried to call function directly by its name but it is giving error that this function is not exist? How should i call that function. I got success to implement same functionality for IE by using IHTMLW

10/31/2006 9:18:42 AM 0 harishdix...@gmail.com
Call Javscript function

Hello friends i developed a tollbar for Firefox browser. Now This toolbar contains a menu item. A web page will be opened by the user of the Toolbar. This Web page source code has included many .JS fiels in it. These JS files defined various functions , Now i want to call these functions from my toolbar menu command. How can i do that? I know function name which i have to call. I tried to call function directly by its name but it is giving error that this function is not exist? How should i call that function. I got success to implement same functionality for IE by using IHTMLW

10/31/2006 8:56:09 AM 0 harishdix...@gmail.com
error in js3250.dll's build

Hi I want to build the js/src in order to have a running xpconnect/sample/xpcsample1 I do a make and I get the following error: /cygdrive/c/mozilla/./build/cygwin-wrapper link /NOLOGO /DLL /OUT:js3250.dll /PD B:js3250.pdb /SUBSYSTEM:WINDOWS jsapi.obj jsarena.obj jsarray.obj jsatom.obj js bool.obj jscntxt.obj jsdate.obj jsdbgapi.obj jsdhash.obj jsdtoa.obj jsemit.obj j sexn.obj jsfun.obj jsgc.obj jshash.obj jsinterp.obj jslock.obj jslog2.obj jslong ..obj jsmath.obj jsnum.obj jsobj.obj jsopcode.obj jsparse.obj jsprf.obj jsregexp. obj jsscan.obj jsscope.obj jsscript.obj js

10/31/2006 8:49:19 AM 0 "philippe" <PA510...@exchange.france.ncr.com>
Tracking memory references in Rhino

Hello, is there a way to track referenced objects in scripts? I have scopes that run for a long time working on an increasing number of objects but releasing the references underway - and need to know about it since there are critical resources attached to these objects. So is there a way to know that a object isn't referenced by the JS code anymore? Thanks for your help, Alex

10/27/2006 10:11:48 AM 0 Alexander Stockinger <stock...@fmi.uni-passau.de>
passing java.lang.Boolean as a parameter to java method in Rhino

I've got a problem when passing Boolean taken from java object to java method with declared 'boolean' parameter. Please, consider the following short example code. Java: class C { public boolean negate( boolean b ){ return !b; } public Boolean getB(){ return Boolean.TRUE; } } JavaScript ('c' is a global variable of java type C ) c.negate( c.b ) Rhino's output is: org.mozilla.javascript.EvaluatorException: Can't find method C.negate(java.lang.Boolean). (<cmd>#1) But if an analogous example with int and Integer is written, everything is ok. Will anyone be so kind to tel

10/26/2006 12:47:14 PM 0 "almo" <a...@mail.ru>
Latest SpiderMonkey Release

Is there a newer, official build than 1.5, which is from October 2005? I've noticed many changes in the source files at mozilla/js/src. Are these stable, or is there a recommended set of patches to apply since 1.5? Thanks.

10/24/2006 10:02:33 PM 0 "Frank Schroeder" <frankschroe...@hotmail.com>
Accessing static Java member vars from JS

I have a java class that defines some static member vars and would like to access them from within JavaScript. How do I add the class into the scope? I currently have Java classes as below. An instance of FooMatic is added to the scope via 'ScriptableObject.putProperty(scope, "fooMachine", Context.javaToJS(new FooMatic(), scope));". Within JavaScript I have 'var foo = fooMachine.getFoo();' and would like to compare foo.type against Foo.someValue1 and Foo.someValue2. What is the correct syntax in JScript to access the static members? Do I need to load the Foo class into the scope?

10/24/2006 1:00:43 PM 0 "Stuart" <stuart....@ovic.co.uk>
How do I define an object with a function property setable in JS?

Here what I want to do, assume MyFoo is a custom class defined in my C code using JS_InitClass, JS_DefineProperties, and JS_DefineFunctions: var foo = new MyFoo(); foo.onSomeEvent = function() { /* do something useful to handle the onSomeEvent event */ } I am having trouble defining the onSomeEvent class member such that it can be assigned a JSFunctionObject. Is it a property or a function? If it is a property, do I define it as a JSObject property? Assuming that onSomeEvent is a property of my class, when I want to call the function that has been assigned to it, do I

10/18/2006 9:03:08 PM 0 "Dave Huseby" <d...@linuxprogrammer.org>
JS_DefineFunction

Hi everyone, I have a newbie question and could not find any related answer. This is working: I'm defining a new function using C, let's say function "myfunc", that has a C function associated with it, let's say c_myfunc. When "myfunc" is executed thru script, c_myfunc is called. This is what I wanted: I would like to know the name of the function that called c_myfunc, in this specific case, I would like to retrieve from inside the c_myfunc the name "myfunc". I need this because I need to register several script functions to just one C function, and then, from there de

10/18/2006 12:28:31 PM 2 Carlos Barcellos <carl...@newpos.com>
how can interprete the JavaScript code in the HTML file

Hi, folks I want to abstract the link hinded in the JavaScript in the HTML file, but the Rhino does not support the DOM, so how can I to deal with it? and there is some other javascript code (e.g.<a href=javascript:window.open()>),how can I get these javascript code? Thank you very much!

10/10/2006 6:28:34 AM 0 "sylvia" <sylvia_k...@126.com>
Creating a native class than inherits from Array

I've created many native classes - all of them providing all their own functionality. I'd *like* to create a class that inherits from Array - then adds a few methods of it's to the derived class. I'm not going to list all the various imaginative ways I've tried to do this (unsuccessfully) - however the kind of solution I'm after would be : I would have thought creating the prototype would be analogous to what I'd do in a JS script: proto = new Array myCls.prototype = proto myCls.prototype.myFn1= function() {} etc To my mind this would be something like: 1) Create my new

10/10/2006 2:25:43 AM 0 Peter Wilson <pe...@yellowhawk.co.uk>
Building threadsafe Spidermonkey

Hi I have problems in compiling Spidermonkey using JS_THREADSAFE option in Linux. I have created a mozilla directory structure. Placed js, nsprpub,dist under mozilla folder.As the documentation says I have downloaded nspr libraries and headers and put them in mozilla/dist folder. Then tried to compile using gmake -f Makefile.ref JS_THREADSAFE=1. It gives compiler errors. Am I doing something wrong here? Can anybody help me please? If I want to compile threadsafe without having the mozilla directory structure, how do I do it? I have searched in the mailing list. I coul

10/7/2006 6:31:25 AM 1 "Jenny" <paul.je...@gmail.com>
Getting JavaScript function code in Rhino

Hi to all! I have th following problem. I have JavaScript code something like this: funcrion f1() { //qwe retur 1; } funcrion f2() { //qwe retur 2; } funcrion f3() { //qwe retur 3; } How can I obtain code of particular function using Rhino, for example f2? It is important that all comments will be saved.

10/5/2006 8:38:38 AM 0 "fighter" <fighterm...@yahoo.com>
IE 6.0 ignores screenX (Y) parameters in window.open(...)? Firefox not.

Hi, See the following URL for the concerned page: http://home.scarlet.be/kenya-belgium/list_2_en/a_kenyan_cat_and_a_belgian_cat.html Clicking on "Menu" or "Publication" in the right upper corner triggers the concerned code. In the code: menuwd = window.open(locurl, 'kenbelmenu', 'toolbar=no,location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=no,' + 'width=' + wd + ', height=' + ht + ', screenX=' + posX + ', screenY=' + posY + ''); IE 6.0 ignores the screenX (Y) parameters in window.open. Firefox does not. To solve the problem I

10/1/2006 1:33:04 AM 0 "BoBi" <1...@scarlet.be>
Instance Handling

Hi! We're using Spidermonkey inside an ActiveX. For each file we open, we create a new runtime instance and publish our custom js classes to the runtime. But somehow if the activeX gets loaded by one process and you open a second file, the first one stops working because the runtime engine doesn't know anymore about our custom classes, just the second file does. We've checked it twice and there're definitely *two* runtime instances. If you create two processes, each using the activeX, it works as expected. So my question, is there a specific issue with ActiveX and Instance Handli

9/29/2006 1:23:10 PM 0 "Alexander Adam" <cont...@emiasys.com>
Rhino on Jdeveloper

Hi, Using a script engine is very new to me. Has any on used Rhino on Jdeveloper( java developement platform provided by oracle). I have the script.jar and i am able to obtain ScriptEngineFactory objects . but when i use getScriptEngine(), it throws a runtime error. Any idea Thanks

9/26/2006 10:35:42 AM 0 vasudev <vasudev.n...@oracle.com>
Rhino/Java - terminating script execution without affecting executing thread

Hello, I am working on embedding rhino within a java server application that will allow js functions to override default behavior of objects. Each js execution will need to execute under its own thread, and I would love to be able to use a thread pool (ala ThreadPoolExecutor) to reuse the threads for multiple script executions. Also, a major requirement is being able to control a script's execution to avoid things like infinite loops that would hog CPU time/threads. So the crux of the issue is can I prematurely terminate a script's execution without affecting the life cycle of the t

9/24/2006 2:48:07 PM 0 "clancewood...@yahoo.com" <clancewood...@yahoo.com>
[Rhino] using XMLBeans with e4x?

Hi all, I'm curious to know if anyone is using XMLBeans in Rhino. For example, are you compiling an XMLSchema with XMLBeans and then validating an Rhino e4x xml document against the schema? Kevin

9/22/2006 10:46:09 PM 0 Kevin K <...@reply.com>
Weird behavoir while using function aliases

I have the following script: function Test(){} Test.F = function(){} Test.F.FF = function(){} Test.F.FF.FFF = function(){} Test.F.FF.FFF.FFFF = function(){} //var alias = function(){}; var alias = Test.F.FF.FFF.FFFF; var date1 = new Date(); for (var index = 0; index < 100000; index++) Test.F.FF.FFF.FFFF(); //alias(); var date2 = new Date(); print(date2.getTime() - date1.getTime()); Why is it when I use Test.F.FF.FFF.FFFF() I get around 100ms and when I get alias() I get around 280ms? What is going on here? This is something I would have never anticipated and I th

9/19/2006 7:23:50 AM 20 "Daniel Rucareanu" <drucarman.st...@gmail.com>

Pages: 2











Newest Articles

[Hendrix] recent tags and recently bookmarked disappeared when I reinstalled ff36
9 hour 0 mins ago

[Hendrix] www.KORBANEK.pl TARGI ROLNICZE AGROTECH KIELCE
9 hour 4 mins ago

[Hendrix] fix quick
9 hour 20 mins ago

[Hendrix] what does ativan do sae
9 hour 30 mins ago

[Hendrix] "Tools/Options/Manage Add-ons/Plugins" default settings
10 hour 15 mins ago