• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with Mac OS Javascript

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Greetings...
�� �� �� � � ��
This is a fragment of code that I think declares a path back to a media content server for playing a flash movie as part of a online training applet. The second line generates an error with Safari or Firefox browsers on Mac OS machines but not on windows machines. The error is "missing name after operator". Question is.. is this syntax proper and what kind is it? Mac OS uses Sun java 1.4.2 at the moment and this is apparently not compatible with it.

function checkRestart(){
gecontent.window.document.interface.SetVariable("myXMLpath", _xpath);
gecontent.window.document.interface.play();
_startPageOn = false;
if(_examOnly){
examOnly();

Without the path, the browser can't get the content
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It could be as simple as MAC does not support it. I do not have MAC to test anything like that so I am not sure.

you could try adding this code to your page and see what it prints out.



Eric
 
Claude Baines
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It gave the same error.. yeah its probably just a thing with Java on Mac OS. Tiger will be out soon, maybe Apple will update the Java engine. I wish there was some way to keep everyone on the same page with the compatablility of code. I mean, gees, is everybody free to extend it at will?

Anyway, I ordered your book, its time I learned about this Javascript business... maybe I can learn some tricks that can spiff up our church's web page.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic