[Mono-list] Javascript library no longer available in Mono

Carl Olsen carl at carl-olsen.com
Mon Oct 3 21:20:41 EDT 2005

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;
(window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
			theform = document.Form1;
		else {
			theform = document.forms["Form1"];
		theform.__EVENTTARGET.value =
		theform.__EVENTARGUMENT.value = eventArgument;
// -->

-----Original Message-----
From: mono-list-bounces at lists.ximian.com
[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Carl Olsen
Sent: Monday, October 03, 2005 7:54 PM
To: mono-list at lists.ximian.com
Subject: [Mono-list] Javascript library no longer available in Mono

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

<a href="javascript:__doPostBack('DataGridSenators:_ctl4:_ctl0c','')"><img
border='0' src='Images/Message.gif'></a>

When I run this under Mono, 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

Mono-list maillist  -  Mono-list at lists.ximian.com

More information about the Mono-list mailing list