I tried implementing ,but it says
Uncaught SyntaxError: Unexpected token <
My Objective :To read a text(text input from jquery file and hence to inculde the jquery dependencies) from the fan file ,(Fantom Webapp) and show it up in the web page. ie
script file import
call the Jquery/Js file with the parameters from the fan file
res.out.print (<div id='datafromJquery'></div>)
It would be really helpful if anyone could share me some good examples(step by step - other than in the js )/recorded videos for better clarification.
Then you'll need to set up a Fantom web server to serve up static JS files (jQuery et al) and your dynamically generated HTML pages.
The first half of this article should walk you through serving server side rendered web pages:
Create a Mini Web Application with Wisp
Then to serve up static files, you can use web::FileWeblet in your onGet() method.
Hi Thanks for the reply
I can emulate the page .But cannot load my static files using web::FileWeblet
Can u help me with some sample files
Login or Signup to reply.