U
UJ
I've got two pages - one actually is a control, the other a page. On the
control, I've got javascript code to make things visible/invisible at the
client side. All works good. I put the same code on a page and it's not
working. The first thing I noticed is that on this line:
<script language="javascript" type="text/javascript">
I'm getting an error within VS saying that 'Could not find any attribute
'type' of element 'script'
But it works fine on the ascx page.
In the actual javascript code, I do the following:
document.getElementByID('divAvailKits').style.display = 'none';
and get an error saying that there is no element for that. If I type
document. to get the list of methods/properties, getElementByID is not
listed. Yet if I go over to the ascx it works fine and is listed.
Any suggestions/thoughts I should look into? I'm at a loss as to why it
doesn't work on the aspx page.
TIA - Jeffrey.
control, I've got javascript code to make things visible/invisible at the
client side. All works good. I put the same code on a page and it's not
working. The first thing I noticed is that on this line:
<script language="javascript" type="text/javascript">
I'm getting an error within VS saying that 'Could not find any attribute
'type' of element 'script'
But it works fine on the ascx page.
In the actual javascript code, I do the following:
document.getElementByID('divAvailKits').style.display = 'none';
and get an error saying that there is no element for that. If I type
document. to get the list of methods/properties, getElementByID is not
listed. Yet if I go over to the ascx it works fine and is listed.
Any suggestions/thoughts I should look into? I'm at a loss as to why it
doesn't work on the aspx page.
TIA - Jeffrey.