PDA

View Full Version : CGI program problem



samemeee
02-01-2009, 11:49 PM
I have put the following in the CGI program. They give me errors.

print "<script language=javascript>";
print "//var varVijay = '__roman__'";
print "var varVijay = '__devanagari__"';
print "</script>
print "<script language="JavaScript" type="text/javascript" src="gamabhana_js/GA1000.js"></script>";
print "<script language="JavaScript" type="text/javascript" src="gamabhana_js/GA0010.js"></script>";
print "<script language="JavaScript" type="text/javascript" src="gamabhana_js/GA0640.js"></script>";
print "<script language="JavaScript" type="text/javascript" src="gamabhana_js/gamabhanaLib.js"></script>";
print "<script language="JavaScript" type="text/javascript" src="gamabhana_js/fileio.js"></script>";
print "<script type="text/javascript" src="wysiwyg_js/wysiwyg.js"></script>";
print "<script type="text/javascript" src="wysiwyg_js/wysiwyg-settings.js"></script>";
print "<script>WYSIWYG.attach('textarea1');</script>";

wrensoft
02-02-2009, 12:13 AM
You can't just drop a bunch of Javascript code into our CGI and hope it will work. The CGI is a complied binary originally written in C++. And so needs to be recompiled with a C++ compiler if you want to change it.

If you want to insert Javascript code on to the search results page it should go in the search_templte.html file. See also,
Q. How do I customize the appearance of my search results with CSS? (http://www.wrensoft.com/zoom/support/css.html)