PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

CGI program problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CGI program problem

    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>";

  • #2
    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?

    Comment

    Working...
    X