|
Posted by Tony on 10/03/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]
|