You are here: Re: -> Updating a page when check box clicked (using Ajax)? <- « PHP Programming Language « IT news, forums, messages
Re: -> Updating a page when check box clicked (using Ajax)? <-

Posted by Erwin Moller on 02/21/07 15:35

Steve JORDI wrote:

<snip>

>
> This does not work though if I display page.php into another
> page <DIV> section using Ajax. That's where I have no clue on
> how to get the page refresh when clicking the check box.
> When "page.php" is displayed into the <DIV> of my main page, the
> javascript is never called. :-(
>
> I'm missing something

Hi Steve,

Did you try via AJAX to get a piece of javascript like this:
<script type="text/javascript">
alert("did it!");
</script>

You'll see it won't work.
Javascript is NOT executed when returned and pasted in some div.
You need additional code to do that.

You better resend your problem to comp.lang.javascript because this is no
PHP issue.
If you do, ask them straight how to get your Javascript executed that is
returned via AJAX, because as far as I can see, your situation with the
checkbox logic is not relevant.

Good luck!

Regards,
Erwin Moller

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация