Select what you want to copy and in doing so you will keep the formatting when pasting it.
All fairly straightforward except for one thing, see that alert(wat) in ajax.getData()? If I comment that out it returns 1 (the readystate), if I leave it to execute the response returns what it's supposed to (i.e. the readystate reaches 4).
The only difference between commenting out the alert() and leaving it in is the amount of time before the script reaches the if/else statement. In other words the script is executing too fast meaning it doesn't allow the readystate reach 4 before it moves on. Any way around this? It's a real pain in the ass, it seems like it should work but won't. Any help appreciated.
You do not have permission to post replies to topics in this board. If you want to join in with discussions and create new topics please register. If you want to register your own free account with us, please click here.