You are here: Re: php and javascript « PHP Programming Language « IT news, forums, messages
Re: php and javascript

Posted by Tony on 11/05/24 11:17

"Joe Blow" <Joe@Blow.com> wrote in message
news:uMnme.482$Id.400@read1.cgocable.net...
> Hi,
>
> Is there any particular reason why JavaScript included in php include page
> does not work? Will this be a browser security issue? It works with
> FireFox, but not with IE, which I suppose supports the browser security
> argument.
>
> I've found it is a general JavaScript problem, but an example is:
>
> <?php
>
> /*snip*/
> echo "<img src='../images/go.jpg'
> onclick='javascript:document.search_form.submit()' alt='go'
> style='margin-left: .2em; vertical-align: top; '>";
> /*snip*/
> ?>
>
> There are other ways to use an image as a submit button, I realise, and
> maybe I should just ditch the JavaScript, but it is an unexpected problem.
>
> Many thanks
> JB

Does the JavaScript work when placed in a simple HTML page? That will help
narrow down whether the problem is the JavaScript or the PHP code outputting
it...

 

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

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