Project

General

Profile

include javascript file

Added by Mohammed Rashad over 14 years ago

how to include a javascript file as part of some javascript code which is executed using doJavaScript() function


Replies (1)

RE: include javascript file - Added by Wim Dumon over 14 years ago

If you can't use require():

  1. Read file in an std::string
  2. call doJavaScript with a concatenation of your own strings and the string that contains the contents of the file
    (1-1/1)