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

Posted by micha on 05/12/05 15:16

"Angelos" <angelos@redcatmedia.net> wrote in
news:d5vgu6$3lj$1@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com:

> Hello there,
> I have the folowing problem:
> I need to use the <body onload="loadMenu()";"initDocument()"> but the
> first javascript "loadMenu()" is in menu.php and initDucument() is in
> content.php.
>
> Now Non of these php files has a body tag in order to add the onload
> Javascritp because I use a header.php and a footer.php which is
> included in each php document.
>
> I succesfully use the <body onload="loadMenu()"> in my header.php but
> if I add the initDocument(). It won't work....
>
> Does any of you ever did something similar and is able to give me a
> hint ?
>
>
>
>

what exactly doesn't work?

let's suppose this is not a javascript problem (i.e. both function work
ok)

as far as i can understand header.php actually outputs the <body> tag.
why not

print '<body onload="loadMenu()";"initDocument()">';

there?

micha

 

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

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