PDA

View Full Version : AJAX problem


AndrewElliott
9-24-09, 05:45 PM
I'm using this (http://www.netzgesta.de/corner/) with some images.

I've got a little bit of AJAX where you can fit go through 6 options or so,
and the corner javascript doesn't seem to work.

however, if I hit refresh it does work.

Does Javascript not run when you use AJAX?

*confused*

Autoload
9-24-09, 07:48 PM
Linkage?

AndrewElliott
9-25-09, 01:08 PM
Autoload I sent you the link via PM.

anyone else PM me for a link,

I don't want the whole world seeing this just yet.

Autoload
9-25-09, 04:41 PM
Seems like he issue is that corner.js doesn't get handled as expected in all instances.

I think that is what this error is referring to....

Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
Line: 0
Char: 0
Code: 0

Here's a link to the KB article:
http://support.microsoft.com/kb/927917

AndrewElliott
9-28-09, 11:00 AM
Okay,

Here's what I'm going to do,
Just save these pictures with the corner effect, instead of applying it on the fly (via javascript).

Not use AJAX until I've spent more time with it.

(I don't think I really need it, it just one of those things that is catching on, and I wanted to say, "yeah, I can do that")

satis
9-29-09, 05:58 PM
AJAX is fun... but it should really only be used to dynamically change page contents from something only the server would have... ie, pulling data out of a database and sticking it into a page without having to refresh the page.

Anything that doesn't absolutely require the server to be involved can be done with pure javascript. No need for AJAX... in fact, due to connectivity and lag and whatnot, AJAX should really be avoided if you can help it.

Not really sure what you were trying to accomplish here, so please excuse me if I'm way off. I spend a lot of time doing AJAX and would like to save you some of the pain I've been through. :)