Strange javascript Script errors
All  1-2  3-4

Previous
Next
 From:  bemfarmer
5772.3 In reply to 5772.2 
Thank you Michael. So much to learn :-)

Your response improved my understanding of the #include, and the unfinished script is responding properly now.

What did not work, when I wanted the #include to be operational, and generated the error, was:
/*
Miscellaneous comments
*/
#include "GetPoint.js"

What did work, with the desired #include operational, was:
#include "GetPoint.js"
/*
Miscellaneous comments
*/

EDITED: 17 Mar 2013 by BEMFARMER

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Michael Gibson
5772.4 In reply to 5772.3 
Hi Brian,

> What did not work, when I wanted the #include to be operational, and generated the error, was:
> /*
> Miscellaneous comments
> */
> #include "GetPoint.js"


This is because the include expander stops looking for #includes after it thinks it has seen some actual script content - it knows to skip any whitespace lines or any lines starting with // but it doesn't know about /* */ comments and so it thinks those are the start of some actual script, sorry about the confusion there.

I'll add a note to myself to try and get the include expander to handle /* */ comments too, to avoid this confusion in the future.

Thanks, - Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-2  3-4