[jQuery] Re: Does jquery have problems with webkit browsers?
On Dec 22, 10:34 am, "T.J. Simmons" <theimmortal...@gmail.com> wrote:
> I'd provide more detail; $.ajax should work in every browser. There's
> more than likely an issue with the script or the response. An example
> of what you're doing would work wonders for helping us figure it out.
>
> - T.J.
> > On 12/22/09, pw <pwise...@gmail.com> wrote:
>
> > > I have a script which relies on $.ajax to retrieve data from my
> > > server. It works flawlessly in Firefox (Gecko), but is broken in
> > > Chrome and Arora (two webkit-based browsers). Are there known issues,
> > > or do I need to provide more detail?
OK, here's some more detail. The actual application is password
protected, because it contains student data. I have a student
'facebook' in which each student in a class becomes a 'property' of
the class roll, which is globally defined, in a variable called 's',
so "var s = {};" Then a function populates this object with the
students and some properties, e.g. s['jsmith'].absent = new Array();
in which will be recorded student absences. The user then checks a
box by the student picture, and selects 'Mark Absent' from a menu.
The date is pushed onto the s['jsmith'].absent array. This works in
Firefox, but in Chrome I get "TypeError: cannot read property 'jsmith'
of undefined". I'm saving the data to my server as a data string,
with $.ajax
({async:"false",cache:"false",url:"<cgiscript>",contentType:"text/
plain",processData:false,data:dataString,type:"POST"}); and retrieving
it with $.ajax
({dataType:"text",cache:"false",url:"<filename>",success:function
(data,status){ eval(data); });
It's entirely possible that what I'm seeing has nothing to do with
jquery but is rather due to the webkit javascript implementation, so
apologies if that's so. But if anyone could point me in the right
direction, I'd appreciate it.
pw
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home