I added the code to a button but "object expected" Javascript error
Me.btnReport.Attributes.Add ("onclick", String.Concat (new string) ("Javascript: ShowDocument ('frmDocReport.aspx? PrjId =", M.DroplastProject.SecondateTime.value, & type = ", M. DropstoneType: Selected Item.Value, "and RecPerPage =", May.Droplest PGA. Selected ITem.Value, "& DocNo =", Me.txtSearch.Text, "')"}))
I think its simple but
I can see in my view source like this
onclick = "javascript: ShowDocument ('? FrmDocReport.aspx PrjId = 48 & Amp; Type = 0 & amp; RecPerPage = 5 & amp; amp; amp; DocNo = '); "
One of the JS objects you are using is zero or does not exist. It is not possible to tell this code snippet using a Javascript debugger like checking values and doing tap work, you should be able to work back again because that value is zero and solve the error.
Comments
Post a Comment