I want all my ajax calls to run through the same ajax function
What same ajax function?
On Jan 6, 10:29 am, Mean Mike mcgra...@gmail.com wrote:
ok so I figured out that you can put in image in your page using .load
(imageloader.php) but is there a way to load an image using regular
ajax
basically all ajax calls go through
$.ajax({.});
I made a function that gets passed all the parameters that I want in
the ajax call
oddly enough i can't get load to work right either i just get Array
returned
On Jan 6, 10:33 am, MorningZ morni...@gmail.com wrote:
I want all my ajax
So you are trying to use jQuery's .load() functionality with an
actual image (i assume that your php sets the content type to image/
jpeg, image/gif, etc and writes out the actual binary image data) ?
that's not going to work, as the .load() loads the result of the
Ajax call into the innerHtml of
So you are trying to use jQuery's .load() functionality with an
actual image (i assume that your php sets the content type to
image/
jpeg, image/gif, etc and writes out the actual binary image
data) ?
YES ! that is correct.
that's not going to work, as the .load() loads the result
So, why can't you just create a new img node with a src attribute? It
will automatically download the image in the background, much like with
AJAX. Is the problem that you want to ensure that the image is fully
downloaded before you try to display it? Have you tried
$(imgTag).ready(...)?
Thanks for providing the Ajax file upload script,. its working fine,
But am not sure this the problem or this is the issue,
when i try to upload the file, the file is uploading ,But after uploaded
the path not remove from the file browser text,
I thing , the page not reloading , so that , the
6 matches
Mail list logo