Datagrid not Responding

B

Brad Simon

I am using a datagrid to display paged data. Whenever you click on the page you want to see, it won't do anything. I notice that I have a JavaScript Error: Expected ';' in line blah bah. The line that has a problem is one generated by the data grid control:
theform = document._ctl4:Quotes

Normally this means that I have missed a ';' somewhere previous to this line. I have searched my other javascript code (most of it obtained from www.dynamicdrive.com), and found a missing ';'. I fixed that on my development machine, and it still gives me the same error. The next step I did was to remove all javascript from the page. I STILL got the error

So, this leads me to believe that there may be a bug, or something. To see the behavior, you can go to www.bradsimon.com/allquotes.aspx, and see it for your self. I also have the same problem on a customer's shopping cart, where the edit / delete does not work. You can see this on www.kibbi.com, just put some merchandise in your shopping cart, but you won't be able to delete it or edit the quantity

The other javascript I put in both of these sites is for the navigation. Since I did take it all out on my test machine, and the problem still occurred, I cannot see where it is anything but the code from the Datagrid

I am using MSIE 6 (latest, patched). Netscape 7.0 does not work either.

Please help, this has been going on far too long. Thanks
 
B

Brad Simon

Ok, I have found out what is causing the Javascript problem, but I do not have a clue on how to fx it.

The Datagrid is in a control, and I have it surrounded by Form tags that exist in the same control. It is causing the '._ctl4:Quotes;' reference to be created. That does happen to be the name of the form, also. Javascript does not like the ':' in the noation, and causes the error.

I have moved the Form tags to outside the cotnrol, but that did not work, the whole page broke. This did work about 4 or 5 months ago. I think a patch or update broke something, i just don't know what patch or update would have broken it. I have not updated that code since I originally put it up. I am using MSIE 6.0 - w/ latest patches. It also does not work in Netscape 7.0.

I am going nuts, please help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top