Ok that was maybe a false lead, but an indication of some other unrelated
problem (potentially?) in the MouseEvent.  Seeing that IOElement requires
only dynapi.api.DynLayer, I included only that file and the errors went
away, but the file upload example still failed.  Upon further inspection, I
included each of the dynapi.api files manually until the errors occured, and
the erros are caused by the MouseEvent code:
dynapi.library.include('dynapi.api.MouseEvent'); .

Back to square one, a set of JavaScript and PHP scripts that work in IE6 but
not in Mozilla 1.4, with no browser errors caused by Mozilla, and no server
errors reported by PHP or Apache.

Leif

----- Original Message ----- 
From: "Leif W" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 17, 2003 9:59 AM
Subject: Re: [Dynapi-Dev] IOElement Upload example


> I've narrowed down the problem area.  In the IOElement Upload example,
> Mozilla is "quietly" (i.e. can only be seen if you open the JavaScript
> console from Tools->Web Development) throwing exceptions when the mouse
> moves over and out of two of the form elements: the "name" text field, and
> the "myfile" file field.  I started by looking at upload and text fields
in
> other non-DynAPI pages without any JavaScript, and they're not throwing
> these exceptions in Mozilla.  Then I commented out all JavaScript code in
> the IOElement Upload example page, and turned on one thing at a time until
> the exceptions started occuring.  This happened when I turned on
> dynapi.library.include('dynapi.api'); .  The JavaScript error messages are
> as follows:
>
> "name" text input field mouse over and mouse out (same error):
>
> Error: [Exception... "'Permission denied to get property
> HTMLDivElement.parentNode' when calling method:
> [nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001e
> (NS_ERROR_XPC_JS_THREW_STRING)"  location: "<unknown>"  data: no]
>
> "myfile" file input field mouse over and mouse out (same error):
>
> Error: [Exception... "'Permission denied to get property
> HTMLInputElement.parentNode' when calling method:
> [nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001e
> (NS_ERROR_XPC_JS_THREW_STRING)"  location: "<unknown>"  data: no]
>
> Has anyone seen this behaviour before?  Can anyone reproduce this error
> message, or maybe give some insight where the problem may lie?
>
> Leif
>
>
> ----- Original Message ----- 
> From: "Leif W" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, July 17, 2003 8:15 AM
> Subject: Re: [Dynapi-Dev] IOElement Upload example
>
>
> > I had no problem with a stand alone upload script in php, and the upload
> > example for the IOElement script (php) is working in IE.  Something is
> > apparently happening differently in Mozilla than in IE for some reason.
> > Exactly what is happening is what I'm trying to determine now.
> >
> > ----- Original Message ----- 
> > From: "Raymond Irving" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, July 17, 2003 12:48 AM
> > Subject: Re: [Dynapi-Dev] IOElement Upload example
> >
> >
> > >
> > > Uploads should be straight forward for any browser.
> > > IOElement sends the data using the multipart encode
> > > format.
> > >
> > > You should be able to handle IOElement form uploads on
> > > the server the same way you would a normal <form>
> > > upload.
> > >
> > > --
> > > Raymond Irving
> > >
> > >
> > > --- Leif W <[EMAIL PROTECTED]> wrote:
> > > > I've got the PHP sort of working for the upload
> > > > example (fixed more
> > > > ioelmsrv.php bugs), but only in IE for some reason.
> > > > I'm fiddling with the
> > > > Mozilla JavaScript console and debugger to see if I
> > > > can get more
> > > > information.  Still need to go over everything
> > > > later.  But for now just
> > > > trying to get this upload example working for both
> > > > browsers.
> > > >
> > > > Leif
> > > >
> > > > ----- Original Message ----- 
> > > > From: "Raymond Irving" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, July 16, 2003 7:58 PM
> > > > Subject: Re: [Dynapi-Dev] IOElement Upload example
> > > >
> > > >
> > > > >
> > > > > --- Leif W <[EMAIL PROTECTED]> wrote:
> > > > > > Ahh, answering my own question, sort of.
> > > > > >
> > > > > > I was using Mozilla 1.4 for testing.  I tried in
> > > > > > IE6, and I was prompted
> > > > > > about a JavaScript error.  Using the builtin
> > > > > > JavaScript debugger, I saw the
> > > > > > output of the php file.  It was somewhat
> > > > malformed.
> > > > > > Now I have the hook I
> > > > > > was looking for; I have the error feedback now
> > > > so I
> > > > > > can correct the PHP
> > > > > > code.  But if anyone else has other ideas how to
> > > > > > approach this part of the
> > > > > > development, let me know.
> > > > >
> > > > > Glad to hear that you're moving ahead with the php
> > > > > section of ioelement.
> > > > >
> > > > > One way we can do this is to create a
> > > > > wsRaiseError(code,text) function in ioelmsvr to
> > > > > trigger an alert message on the client. What do
> > > > you
> > > > > think?
> > > > >
> > > > > Note this will only trap user generated errors. To
> > > > see
> > > > > sever generated or script errors you might have to
> > > > see
> > > > > the dynapi.util.datasource.html:
> > > > >
> > > > > // IE only - used to display page content of a
> > > > failed
> > > > > response.
> > > > > var elm=o.ioelement.getScope();
> > > > > if (!(dynapi.ua.ie && elm.document &&
> > > > > !elm.document._tranState)) t='';
> > > > > else t='------\n'+elm.document.body.innerText;
> > > > >
> > > > >
> > > > > --
> > > > > Raymond Irving
> > > > >
> > > > > >
> > > > > > Leif
> > > > > >
> > > > > > ----- Original Message ----- 
> > > > > > From: "Leif W" <[EMAIL PROTECTED]>
> > > > > > To: "DynAPI-Dev"
> > > > <[EMAIL PROTECTED]>
> > > > > > Sent: Wednesday, July 16, 2003 5:36 PM
> > > > > > Subject: [Dynapi-Dev] IOElement Upload example
> > > > > >
> > > > > >
> > > > > > > I'm still at work on PHP and Perl versions.
> > > > > > Trying to get the examples
> > > > > > > converted as well.  Having a problem with the
> > > > > > upload example.  Curious to
> > > > > > > know if anyone has gotten the ASP version to
> > > > work.
> > > > > >  I don't have an ASP
> > > > > > > capable environment so I can't test any ASP
> > > > code
> > > > > > to copy the
> > > > > > functionality.
> > > > > > > By looking at the code it seems everything in
> > > > the
> > > > > > PHP version should work,
> > > > > > > assuming the ASP version (and underlying
> > > > DynAPI
> > > > > > javascript) works.  Anyone
> > > > > > > have any suggestion how to get some hooks into
> > > > the
> > > > > > ioelmsrv.asp and
> > > > > > > ioelement.js files so I can check the scripts
> > > > > > progress to help debug the
> > > > > > > problem?  I'm getting no error messages in the
> > > > > > browser or in the web
> > > > > > server
> > > > > > > logs, but the upload fails anyways.
> > > > > > >
> > > > > > > Doing my best to look up ASP (JScript and
> > > > > > VBScript) coding examples on the
> > > > > > > net, as I couldn't find any simple,
> > > > comprehensive
> > > > > > language reference (like
> > > > > > > the PHP language reference manual) on the MSDN
> > > > > > site.  Found some text
> > > > > > books
> > > > > > > but they didn't quite have a the information I
> > > > was
> > > > > > looking for.
> > > > > > >
> > > > > > > Fixed some broken code in the new
> > > > ioelmsrv.php.
> > > > > > Everything seems correct
> > > > > > > but as I said, I don't know if any
> > > > functionality
> > > > > > got lost in the
> > > > > > translation
> > > > > > > from ASP to PHP.  For example, things are
> > > > > > generally much simpler looking
> > > > > > in
> > > > > > > PHP, so many lines of ASP code seem
> > > > superfluous
> > > > > > and can be removed, while
> > > > > > > other lines of ASP can be condensed into a
> > > > single
> > > > > > statement in PHP.  Also
> > > > > > > working on both a functional (.pl) and object
> > > > > > oriented (.pm) Perl version
> > > > > > of
> > > > > > > ioelmsrv.asp.  Hopefully I'll soom be finished
> > > > > > with these libs and
> > > > > > examples
> > > > > > > and will release them all at once.
> > > > > > >
> > > > > > > Leif
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > > -------------------------------------------------------
> > > > > > > This SF.net email is sponsored by: VM Ware
> > > > > > > With VMware you can run multiple operating
> > > > systems
> > > > > > on a single machine.
> > > > > > > WITHOUT REBOOTING! Mix Linux / Windows /
> > > > Novell
> > > > > > virtual machines at the
> > > > > > > same time. Free trial click here:
> > > > > > http://www.vmware.com/wl/offer/345/0
> > > > > > >
> > > > _______________________________________________
> > > > > > > Dynapi-Dev mailing list
> > > > > > > [EMAIL PROTECTED]
> > > > > > >
> > > > > >
> > > > >
> > > >
> > > http://www.mail-archive.com/[EMAIL PROTECTED]/
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > -------------------------------------------------------
> > > > > > This SF.net email is sponsored by: VM Ware
> > > > > > With VMware you can run multiple operating
> > > > systems
> > > > > > on a single machine.
> > > > > > WITHOUT REBOOTING! Mix Linux / Windows / Novell
> > > > > > virtual machines at the
> > > > > > same time. Free trial click here:
> > > > > > http://www.vmware.com/wl/offer/345/0
> > > > > > _______________________________________________
> > > > > > Dynapi-Dev mailing list
> > > > > > [EMAIL PROTECTED]
> > > > > >
> > > > >
> > > >
> > > http://www.mail-archive.com/[EMAIL PROTECTED]/
> > > > >
> > > > >
> > > > > __________________________________
> > > > > Do you Yahoo!?
> > > > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > > > http://sbc.yahoo.com
> > > > >
> > > > >
> > > > >
> > > >
> > > -------------------------------------------------------
> > > > > This SF.net email is sponsored by: VM Ware
> > > > > With VMware you can run multiple operating systems
> > > > on a single machine.
> > > >
> > > === message truncated ===
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > http://sbc.yahoo.com
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by: VM Ware
> > > With VMware you can run multiple operating systems on a single
machine.
> > > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at
the
> > > same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
> > > _______________________________________________
> > > Dynapi-Dev mailing list
> > > [EMAIL PROTECTED]
> > > http://www.mail-archive.com/[EMAIL PROTECTED]/
> > >
> > >
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: VM Ware
> > With VMware you can run multiple operating systems on a single machine.
> > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
> > same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
> > _______________________________________________
> > Dynapi-Dev mailing list
> > [EMAIL PROTECTED]
> > http://www.mail-archive.com/[EMAIL PROTECTED]/
> >
> >
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: VM Ware
> With VMware you can run multiple operating systems on a single machine.
> WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
> same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://www.mail-archive.com/[EMAIL PROTECTED]/
>
>




-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[EMAIL PROTECTED]/

Reply via email to