• 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: 9372
11
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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!