This Message Forum is no longer in use

Please use the new Bravenet Help Forums FOUND HERE

General Forum
This Forum is Locked
Author
Comment
View Entire Thread
Re: nead help with something to me it doesn't make sense

clear your browser cach or how ever you say t and try again because i know that part works

Browser: IE 8

Re: nead help with something to me it doesn't make sense

I think I see the problem. If you get Firebug extension for firefox it really helps debug ajax because it lets you see the requests and responses.

Anyway, looking at the response of an action I'm guessing the response is supposed to be "div-30", but 000 web host adds analytics code to the bottom of ever page request, so the response isn't what your script thinks it is (it has a script tag appended to it).

If you want to stick with 000 web host then you can add a delimiter to the end of your output string so you can cut off the rest of it.

Something like "div-30###" would allow you to find the position of "###" and remove everything from there.

You'll need to be careful, however, that your delimiter will never appear in the useful output, otherwise some useful output will be removed.

Hope this helps
-Scut

Browser: Mozilla Firefox 3.6.*

OS: Windows 7

Re: nead help with something to me it doesn't make sense

so you can actualy see the players? because that is my problem the players and trees arn't showing up and also the movement doesn't work in internet explorer because internet explorer sucks

Browser: IE 8

Re: nead help with something to me it doesn't make sense

No, all I see is the green squares. How are the players and trees being rendered? if it's by ajax, then this solution will work for that as well.

As far as the code goes...

1) You need to call the netmap file before setting up the init() function.

2) It may be an advantage to create a function that can execute the ajax request, passing in a url and a callback function. This means you don't need to set it up in every function in the file.

3) Look into event listeners. IE uses them differently from other browsers (IE uses "attach event" rather than "add event" but I use a wrapper function that deals with this.

If you want some example code, there's some useful functions in my common.js file and xmlhttp.js file. Anything that isn't mine is commented to say so.

Hopefully using standard input buttons and adding an event to them will help solve your problem in IE.

-Scut

Browser: Mozilla Firefox 3.6.*

OS: Windows 7

Re: nead help with something to me it doesn't make sense

Cache? Shouldn't be a problem on a page I've never been to. But I see it works in browsers that between them are used by more than 90% of us, so never mind.