Hello. I'm trying to make some kind of image gallery with php and javascript (w/ ajax), but I've run into some problems.
The basic idea is the following: I've got a <span> tag and, when I click a button, the inner html of the tag changes to <img src="x" />. The problem is that, unless the image is small -less than 80kB-, it won't load properly. Some browsers won't display it entirely, some others won't even show...
User Profile
Collapse
-
Image through Ajax not loading correctly.
-
Nothing, was trying to avoid double posting I did above :P -
-
Thank you both, I'll try it now and let you know how it goes :)Leave a comment:
-
Execute MySQL only if JS if = true
Hey
I've got a mysql query that I'd like to process *only* if a javascript if is true. Is that possible?
Something like this:
...Code:<script language="javascript"> if (condition is true) { <?php $query = "UPDATE table SET example = '3' WHERE id = '1'"; $result = mysql_query($query); ?> alert('Example'); window.location.reload()
No activity results to display
Show More
Leave a comment: