Subj : Running the Google maps code with Rhino To : netscape.public.mozilla.jseng From : Mark Swanson Date : Tue Jul 12 2005 10:56 pm Hello, I spent some time trying to get the Google maps code working with Rhino. I'm a javascript newbie and am stuck on two simple things perhaps someone could help me with: 1. The google JS embeds other scripts and I'm not sure Rhino is downloading them. Though, it may be that Rhino would only do this after the current code parses properly - which brings me to: 2. navigator.userAgent() is required - I tried to create my own. This compiled but the google js didn't find my navigator.userAgent() for some reason. (In case it's not obvious this is me trying to create a navigator object with a userAgent() method): String navigatorJS = new String("function userAgent() { return \"test123\";}"); Object result = cx.evaluateString(scope, navigatorJS, "navigator", 1, null); Any thoughts or comments welcomed. Cheers. -- Free replacement for Exchange and Outlook (Contacts and Calendar) http://www.ScheduleWorld.com/ WAP: http://www.ScheduleWorld.com/sw/WAPToday?id=4000&tz=EST WebDAV: http://www.ScheduleWorld.com/sw/webDAVDir/4000.ics VFREEBUSY: http://www.ScheduleWorld.com/sw/freebusy/4000.ifb .