Re: [PHP] OT Re: [PHP] javascript in head or in body ?

2007-08-13 Thread Daniel Brown
On 8/12/07, tedd [EMAIL PROTECTED] wrote: For example, if your wife says (and you're not listening as usual) Do these pants make my butt look big? Neither answer is going to help much. But, if said separately, you at least have a chance of surviving the ordeal. And I'll also point out

Re: [PHP] javascript in head or in body ?

2007-08-12 Thread David Robley
tedd wrote: At 9:29 PM +0200 8/7/07, Tijnema wrote: On 8/7/07, Robert Cummings [EMAIL PROTECTED] wrote: Yeah!! This list is for public apologies and Copyright discussion. Cheers, Rob. -- Oh yeah, Tedd is only the first of thousands of people that need to apologize... :P Tijnema

Re: [PHP] javascript in head or in body ?

2007-08-12 Thread tedd
At 1:26 PM -0400 8/11/07, Robert Cummings wrote: On Sat, 2007-08-11 at 12:15 -0400, tedd wrote: Always (fishing for another apology opportunity) place javascript in external files and call them in via the header. Keep the code unobtrusive. There are ways to use javascript without having to

[PHP] OT Re: [PHP] javascript in head or in body ?

2007-08-12 Thread tedd
At 10:21 PM +0930 8/12/07, David Robley wrote: tedd wrote: At this rate, by the time I reach the end of my life, I'll know only two sentences, namely I'm sorry and Yes, Dear. Seems to me you could rather easily condense that to just one sentence with the same degree of functionality. :-)

Re: [PHP] javascript in head or in body ?

2007-08-12 Thread Robert Cummings
On Sun, 2007-08-12 at 21:27 -0400, tedd wrote: At 1:26 PM -0400 8/11/07, Robert Cummings wrote: On Sat, 2007-08-11 at 12:15 -0400, tedd wrote: Always (fishing for another apology opportunity) place javascript in external files and call them in via the header. Keep the code unobtrusive.

Re: [PHP] javascript in head or in body ?

2007-08-11 Thread tedd
At 9:29 PM +0200 8/7/07, Tijnema wrote: On 8/7/07, Robert Cummings [EMAIL PROTECTED] wrote: Yeah!! This list is for public apologies and Copyright discussion. Cheers, Rob. -- Oh yeah, Tedd is only the first of thousands of people that need to apologize... :P Tijnema Ah crap, have I

Re: [PHP] javascript in head or in body ?

2007-08-11 Thread Robert Cummings
On Sat, 2007-08-11 at 12:15 -0400, tedd wrote: At 9:29 PM +0200 8/7/07, Tijnema wrote: On 8/7/07, Robert Cummings [EMAIL PROTECTED] wrote: Yeah!! This list is for public apologies and Copyright discussion. Cheers, Rob. -- Oh yeah, Tedd is only the first of thousands of people

[PHP] javascript in head or in body ?

2007-08-07 Thread C.R.Vegelin
Are there any rules when to include javascript in head or in body ? For example, script type=text/javascript function reload(form) { var val=form.Chapter.options[form.Chapter.options.selectedIndex].value; self.location='QueryForm.php?Chapter=' + val ; } /script TIA, Cor

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Tijnema
On 8/7/07, C.R.Vegelin [EMAIL PROTECTED] wrote: Are there any rules when to include javascript in head or in body ? For example, script type=text/javascript function reload(form) { var val=form.Chapter.options[form.Chapter.options.selectedIndex].value;

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Greg Donald
On 8/7/07, C.R.Vegelin [EMAIL PROTECTED] wrote: Are there any rules when to include javascript in head or in body ? For example, script type=text/javascript function reload(form) { var val=form.Chapter.options[form.Chapter.options.selectedIndex].value;

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Robert Cummings
On Tue, 2007-08-07 at 21:24 +0200, Tijnema wrote: On 8/7/07, C.R.Vegelin [EMAIL PROTECTED] wrote: Are there any rules when to include javascript in head or in body ? For example, script type=text/javascript function reload(form) { var

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Tijnema
On 8/7/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-08-07 at 21:24 +0200, Tijnema wrote: On 8/7/07, C.R.Vegelin [EMAIL PROTECTED] wrote: Are there any rules when to include javascript in head or in body ? For example, script type=text/javascript function reload(form)

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Richard Heyes
C.R.Vegelin wrote: Are there any rules when to include javascript in head or in body ? For example, script type=text/javascript function reload(form) { var val=form.Chapter.options[form.Chapter.options.selectedIndex].value; self.location='QueryForm.php?Chapter=' + val ; } /script

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread brian
C.R.Vegelin wrote: Are there any rules when to include javascript in head or in body ? For example, script type=text/javascript function reload(form) { var val=form.Chapter.options[form.Chapter.options.selectedIndex].value; self.location='QueryForm.php?Chapter=' + val ; } /script

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Greg Donald
On 8/7/07, Tijnema [EMAIL PROTECTED] wrote: Uhh, do you know which list this is? I give up.. Is it the one where I get as many [OT] labeled emails as I do on-topic ones? People have been asking basic html questions here for (over?) a decade, and it probably won't stop anytime soon. Newcomers

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Jason Pruim
On Aug 7, 2007, at 3:29 PM, Tijnema wrote: On 8/7/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-08-07 at 21:24 +0200, Tijnema wrote: On 8/7/07, C.R.Vegelin [EMAIL PROTECTED] wrote: Are there any rules when to include javascript in head or in body ? For example, script

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Robert Cummings
On Tue, 2007-08-07 at 21:19 +0100, C.R.Vegelin wrote: Are there any rules when to include javascript in head or in body ? For example, script type=text/javascript function reload(form) { var val=form.Chapter.options[form.Chapter.options.selectedIndex].value;

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Satyam
: C.R.Vegelin [EMAIL PROTECTED] To: [EMAIL PROTECTED] php-general@lists.php.net Sent: Tuesday, August 07, 2007 10:19 PM Subject: [PHP] javascript in head or in body ? Are there any rules when to include javascript in head or in body ? For example, script type=text/javascript function reload(form) { var val

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Tijnema
On 8/7/07, Richard Heyes [EMAIL PROTECTED] wrote: C.R.Vegelin wrote: Are there any rules when to include javascript in head or in body ? For example, script type=text/javascript function reload(form) { var val=form.Chapter.options[form.Chapter.options.selectedIndex].value;

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Tijnema
On 8/7/07, Greg Donald [EMAIL PROTECTED] wrote: On 8/7/07, Tijnema [EMAIL PROTECTED] wrote: Uhh, do you know which list this is? I give up.. Is it the one where I get as many [OT] labeled emails as I do on-topic ones? People have been asking basic html questions here for (over?) a

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread tg-php
Ok, you got the obligatory 'wrong list' comments. It is the wrong list, but for the sake of public completeness... how about an answer to the question. You can put it anywhere but a couple of considerations: 1. I believe if you put it AFTER where the JS functions defined in that block are

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Greg Donald
On 8/7/07, Jason Pruim [EMAIL PROTECTED] wrote: Later this week on Php-General, witness the revolutionary confessions of a PHP Programmer stuck in the middle of a lovers triangle of OOP, and Procedural That's a re-run. Python wins with Ruby coming in second place. PHP gets renamed to Java,

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Robert Cummings
On Tue, 2007-08-07 at 15:50 -0400, [EMAIL PROTECTED] wrote: 3. If you're executing JS in order to output something, you're going to need to put it whereever in your HTML you'll need the output. If you're just defining functions to be called later, then you can put it whereever (probably

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Robert Cummings
On Tue, 2007-08-07 at 14:58 -0500, Greg Donald wrote: On 8/7/07, Jason Pruim [EMAIL PROTECTED] wrote: Later this week on Php-General, witness the revolutionary confessions of a PHP Programmer stuck in the middle of a lovers triangle of OOP, and Procedural That's a re-run. Python wins

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Greg Donald
On 8/7/07, Robert Cummings [EMAIL PROTECTED] wrote: Yeah, the numbers really show Python and Ruby winning... NOT *LOL*. You mean how both Ruby and Python list serv traffic is way up while PHP's is way down? Even the PHP dev list is really slowed the past year or so.. just some guy named Richard

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Borokov Smith
Yes. Just yes. regards, boro Greg Donald schreef: On 8/7/07, Robert Cummings [EMAIL PROTECTED] wrote: Yeah, the numbers really show Python and Ruby winning... NOT *LOL*. You mean how both Ruby and Python list serv traffic is way up while PHP's is way down? Even the PHP dev list is

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Robert Cummings
On Tue, 2007-08-07 at 15:52 -0500, Greg Donald wrote: On 8/7/07, Robert Cummings [EMAIL PROTECTED] wrote: Yeah, the numbers really show Python and Ruby winning... NOT *LOL*. You mean how both Ruby and Python list serv traffic is way up while PHP's is way down? Way up and way down are

Re[2]: [PHP] javascript in head or in body ?

2007-08-07 Thread Richard Davey
Hi Greg, Tuesday, August 7, 2007, 9:52:28 PM, you wrote: PHP is the absolute worst language to do any sort of OO programming in. Ignoring the digg user mentality of that statement, try ASP if you want to see OO suck *royally* Cheers, Rich -- Zend Certified Engineer http://www.corephp.co.uk

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Stut
Richard Davey wrote: Tuesday, August 7, 2007, 9:52:28 PM, you wrote: PHP is the absolute worst language to do any sort of OO programming in. Ignoring the digg user mentality of that statement, try ASP if you want to see OO suck *royally* ASP is not a language, it's most like a framework. I

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 3:19 pm, C.R.Vegelin wrote: Are there any rules when to include javascript in head or in body ? For example, script type=text/javascript function reload(form) { var val=form.Chapter.options[form.Chapter.options.selectedIndex].value;

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 2:48 pm, Tijnema wrote: On 8/7/07, Greg Donald [EMAIL PROTECTED] wrote: On 8/7/07, Tijnema [EMAIL PROTECTED] wrote: Uhh, do you know which list this is? I give up.. Is it the one where I get as many [OT] labeled emails as I do on-topic ones? People have been