|
From: Raymond I. <xw...@ya...> - 2003-07-18 17:19:04
|
Mozilla 1.1 works fine but 1.4 seems to have a problem
when accessing a div's parentNode
Any ideas?
--
Raymond Irving
--- Leif W <war...@us...> wrote:
> 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" <war...@us...>
> To: <dyn...@li...>
> 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" <war...@us...>
> > To: <dyn...@li...>
> > 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" <xw...@ya...>
> > > To: <dyn...@li...>
> > > 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 <war...@us...> 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" <xw...@ya...>
> > > > > To: <dyn...@li...>
> > > > > Sent: Wednesday, July 16, 2003 7:58 PM
> > > > > Subject: Re: [Dynapi-Dev] IOElement Upload
> example
> > > > >
> > > > >
> > > > > >
> > > > > > --- Leif W <war...@us...> 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;
> > > > > >
>
=== message truncated ===
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
|