If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Seperate Div refresh in the same function.

Okay so, I found the code below and adapted it so it could be used on multiple pages; login, registration, etc.

What I'm making is a game, and on a certain page areas of the page will need to be reloaded. As soon as I added a new parameter (div) into the functions the alertContents doesn't seem to work.

The functions work like this:
In the html form code the get function collects the information on the form, then, depending on the page parameter, the switch statement collects the forms code for the post information. The post information is then passed into the post function where the function determines the browser that is being used, then set the function to run when the http request state is changed. This is the point where I believe it to be broken. From there the alertContents function outputs the result of the processing from the server.

Re: Seperate Div refresh in the same function.

And if you want to make sure, you should have more than one machine to get a good overview of different versions of IE and to a lesser extent FF.
I'd also just like to add that I prefer Chrome's debugger (but each to their own; it's mainly because I use my C-style include method for complex website scripts, and Chrome loads and runs it that bit quicker...)

Help from me is always guaranteed!*
VB.NET code is made up on the spot with VS2008 Professional with .NET 3.5. Everything else is just made up on the spot.
Please Remember to rate posts, use code tags, send me money and all the other things listed in the "Before you post" posts.

Re: Seperate Div refresh in the same function.

Right click -> Inspect Element. Somewhere on the bottom bar of that window, there's the console. It's useful, because if you open it, and hen reload the page (it's tied to the process from which you open it) it also stores a copy of all the resource files, so it'll show you on which line errors occur.

Help from me is always guaranteed!*
VB.NET code is made up on the spot with VS2008 Professional with .NET 3.5. Everything else is just made up on the spot.
Please Remember to rate posts, use code tags, send me money and all the other things listed in the "Before you post" posts.