User Profile

Collapse

Profile Sidebar

Collapse
kout
kout
Last Activity: Oct 12 '09, 03:50 AM
Joined: Nov 29 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • kout
    started a topic Image through Ajax not loading correctly.

    Image through Ajax not loading correctly.

    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...
    See more | Go to post

  • kout
    replied to Execute MySQL only if JS if = true
    in PHP
    Nothing, was trying to avoid double posting I did above :P
    See more | Go to post

    Leave a comment:


  • kout
    replied to Execute MySQL only if JS if = true
    in PHP
    Worked just fine, topic solved :)

    (PS: no edit button?)
    See more | Go to post

    Leave a comment:


  • kout
    replied to Execute MySQL only if JS if = true
    in PHP
    Thank you both, I'll try it now and let you know how it goes :)
    See more | Go to post

    Leave a comment:


  • kout
    started a topic Execute MySQL only if JS if = true
    in PHP

    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()
    ...
    See more | Go to post
No activity results to display
Show More
Working...