I am working on an ajax image upload system using ajax and php.
Within the ajax code, I am using :
I'm binding the Image selected in the web page because I have several windows on one page, each of which I different image can be uploaded to
I have noticed that using the following code
... do something
works just as expected.
However, I would like to use a switch case statement.
If I use the following within the completeHandler code:
the alert ALWAYS shows undefined. What am I doing wrong here. It seems that although 'this' is indeed Image1, the switch statement doesn't evaluate it as such and so variable 'imageBeingControlled' always returns undefined.
Please help, thank you