I stand corrected. Mono 1.1.9.1 is actually inserting javascript into the bottom of my page, like this:
<input type="hidden" name="__EVENTTARGET" value="" /> <input type="hidden" name="__EVENTARGUMENT" value="" /> <script language="javascript"> <!-- var theForm = document.getElementById ('Form1'); function __doPostBack(eventTarget, eventArgument) { theForm.__EVENTTARGET.value = eventTarget; theForm.__EVENTARGUMENT.value = eventArgument; theForm.submit(); } // --> </script> However, it is still not working correctly. It seems to work when I sort the columns, but not when I try to select a record and display the record details at the top of the page. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carl Olsen Sent: Monday, October 03, 2005 8:21 PM To: [EMAIL PROTECTED]; mono-list@lists.ximian.com Subject: RE: [Mono-list] Javascript library no longer available in Mono 1.1.9.1 Well, I tried pasting the Javascript into the page, and it's still not working. It got rid of the error message (index out of range, or something like that), but it doesn't do anything. Here's the code: <input type="hidden" name="__EVENTTARGET" value="" /> <input type="hidden" name="__EVENTARGUMENT" value="" /> <script language="javascript" type="text/javascript"> <!-- function __doPostBack(eventTarget, eventArgument) { var theform; if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) { theform = document.Form1; } else { theform = document.forms["Form1"]; } theform.__EVENTTARGET.value = eventTarget.split("$").join(":"); theform.__EVENTARGUMENT.value = eventArgument; theform.submit(); } // --> </script> -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carl Olsen Sent: Monday, October 03, 2005 7:54 PM To: mono-list@lists.ximian.com Subject: [Mono-list] Javascript library no longer available in Mono 1.1.9.1 Sorry to be so stupid, but it's easier to ask here than to spend time trying to figure out what's going on (I'll probably do both). I have a datagrid with a button command control that renders itself as some kind of javascript submit function called "__doPostBack, which looks like this: <a href="javascript:__doPostBack('DataGridSenators:_ctl4:_ctl0c','')"><img border='0' src='Images/Message.gif'></a> When I run this under Mono 1.1.9.1, I don't get the javascript function at the top of the page. When I run it under IIS6, I get the javascript. I assume I need to have a default javascript library installed somewhere accessible to my web app. I could probably hard code the javascript function into the page, but it was working just fine in Mono 1.1.8, and I'm sure there's a more graceful approach to fixing this. Can anyone tell me what I need to do to fix this? Thank you! Carl Olsen http://www.carl-olsen.com/ _______________________________________________ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list _______________________________________________ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list _______________________________________________ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list