Having Trouble Refrencing Javascript File
<p>im creating a google chrome extenstion and im having some troubles.
I got a object file, that represnt a Form and his actions.
my problem is that afther i use the object, something breaks, and no code on the script file runs.</p>

<p><strong>here is the Form object file:</strong></p>

<pre><code>/// &lt;reference path="../Jquery1.6_vsdoc/ChromeExtenVSdoc.js" /&gt;
/// &lt;reference path="../Jquery1.6_vsdoc/jquery-vsdoc.js" /&gt;

function FormInputObject() {

this.BusinessName = "";
this.ShortDesc = "";
this.LongDesc = "";
this.Location = "";
this.ContactName = "";
this.Telephone = "";
this.CellPhone = "";
this.FaxNumber = ""
this.Adress = "";
this.City = "";
this.BusinessEmail = "";
this.WebSiteAdress = "";
this.Keywords = "";

this.PrivateName = "";
this.PrivateTelepone = "";
this.PrivateEmail = "";


//get user data from the INPUT html
this.GetInputFormDocument = function (document) {

    this.BusinessName  = $("name");
    this.ShortDesc     = $("descriplittle");
    this.LongDesc      = $("descrip");
    this.Location      = $("area");
    this.ContactName   = $("contactman");
    this.CellPhone     = $("pelephone");
    this.FaxNumber     = $("fax");
    this.Adress        = $("adr");
    this.City          = $("city");
    this.BusinessEmail = $("email");
    this.WebSiteAdress = $("www");
    this.Keywords      = $("keywords");

    this.PrivateName     =  $("firstname1");
    this.PrivateTelepone =  $("phone1");
    this.PrivateEmail    =  $("email1");
}

this.ClearForm = function (document) {


    this.ShortDesc         .text("");
    this.LongDesc          .text("");
    this.Location          .text("");
    this.ContactName       .text("");
    this.CellPhone         .text("");
    this.FaxNumber         .text("");
    this.Adress            .text("");
    this.City              .text("");
    this.BusinessEmail     .text("");
    this.WebSiteAdress     .text("");
    this.Keywords          .text("");

    this.PrivateName       .text("");
    this.PrivateTelepone   .text("");
    this.PrivateEmail      .text("");
}



  //sending only the object fields
   this.sendFormFields = function (command) {
        chrome.extension.sendRequest(null,
            {
                input          : command            ,
                BusinessName   : this.BusinessName  ,
                ShortDesc      : this.ShortDesc     ,
                LongDesc       : this.LongDesc      ,
                Location       : this.Location      ,
                ContactName    : this.ContactName   ,
                CellPhone      : this.CellPhone     ,
                FaxNumber      : this.FaxNumber     ,
                Adress         : this.Adress        ,
                City           : this.City          ,
                BusinessEmail  : this.BusinessEmail ,
                WebSiteAdress  : this.WebSiteAdress ,
                Keywords       : this.Keywords      ,

                PrivateName       : this.PrivateName    ,   
                PrivateTelepone   : this.PrivateTelepone,
                PrivateEmail      : this.PrivateEmail
            },
             function (response) {

             });

   }

    //sending all of the object
   this.sendTheFormObject = function () {
       chrome.extension.sendRequest(null,
           {
               FormInputObject: this
           },
           function (response) {

           });
   }
}
</code></pre>

<p><strong>here is the script file where i use the object:</strong></p>

<pre><code>/// &lt;reference path="../ChromeExtenVSdoc.js" /&gt;
/// &lt;reference path="../Jquery1.6_vsdoc/jquery-vsdoc.js" /&gt;
/// &lt;reference path="FormInputObject.js" /&gt;

//if i comment this line out, there is no problems and the alerts
//i call in the file run fine
var formInput = new FormInputObject();

$(document).ready(function () {


$("#sendData").click(null, function () {

    formInput.GetInputFormDocument(document);

    formInput.sendFormFields("justFillOutFourm");

});

$("#clearForm").click(null, function () {
    formInput.ClearForm(document);
    alert("asdf");

});
alert("asdf");
</code></pre>

<p>});</p>

<p>im sure i have a problem with my object, but i have no idea what it is.
(sorry for my english)</p>

<p>EDIT:
this is how refrence the files on the html:</p>

<pre><code>    &lt;head&gt;
    &lt;title&gt;&lt;/title&gt;
     &lt;script src="../Jquery1.6_vsdoc/jquery-1.7.1.min.js" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script src="input_page.js" type="text/javascript"&gt;&lt;/script&gt;
   &lt;/head&gt;
</code></pre>
