• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can anybody ID this code?  RSS feed

 
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: 9414
12
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!