javascript - How can I reference jquery library using cgi methods in ruby? -


i'm completing assignment school in need receive information html form ruby cgi script, , use fadein() jquery method display it.

my script looks like:

#!/usr/local/bin/ruby -w  require 'cgi'  cgi = cgi.new('html4')  cgi.out{   cgi.html{     cgi.head{cgi.title{"this test"}+  cgi.style{"p{color = red;}"}} +     cgi.body{cgi.p{"try " + cgi['ffname'] + ", did work?"}}   } } 

this of test code, make sure server working way thought was.

when try , use like:

puts "<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>" 

the server refuses run it, guess that's not allowed.

i'm still beginner ruby cgi class.

how can reference jquery library these cgi methods?

similar how sending html client side, send javascript code client side. javascript code contain call jquery function.


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -