Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can anybody ID this code?

 
Claude Baines
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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();
}
 
Joe Ess
Bartender
Posts: 9340
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Claude. "function" is not a keyword in Java. You may want to delete this topic and ask the same question in our Javascript forum. Javascript and Java are VERY different things.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic