[PHP] javascript cookie dissapears when adding session_start()

2013-03-20 Thread Norah Jones
I've been working on a PHP/Javascript Cookie Notify (Including multiple language support). Now I have one small problem, when session_start() is not at the top, the cookie message works as it should be. Now I am trying to add session_start(); at the top, as this will load the current language

Re: [PHP] javascript cookie dissapears when adding session_start()

2013-03-20 Thread ma...@behnke.biz
Please re-send the link for your code. Norah Jones nh.jone...@gmail.com hat am 20. März 2013 um 15:19 geschrieben: I've been working on a PHP/Javascript Cookie Notify (Including multiple language support). Now I have one small problem, when session_start() is not at the top, the cookie

Re: [PHP] Javascript detection

2011-04-28 Thread Geoff Lane
On Thursday, April 28, 2011, tedd wrote: To answer your question in a new thread. No, the $_SERVER super-global isn't going to give you anything nor is anything else like it. You see, PHP has a difficult time detecting IF Javascript is turned ON in the client's browser because PHP is

Re: [PHP] Javascript detection

2011-04-28 Thread Per Jessen
tedd wrote: As Yogi Berra once said; It's always hard to predict things especially when it deals with the future. He was quoting Niels Bohr: http://www.quotationspage.com/quote/26159.html -- Per Jessen, Zürich (10.2°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Javascript detection

2011-04-28 Thread tedd
At 9:02 AM +0100 4/28/11, Geoff Lane wrote: FWIW, it's possible to detect whether or not Javascript is available, but not AFAICT at 'first contact' because you need the 'first contact' page to do something to prove that JS is available, from which you can assume that JS is not should that

Re: [PHP] Javascript detection

2011-04-28 Thread Ashley Sheridan
On Thu, 2011-04-28 at 10:17 -0400, tedd wrote: At 9:02 AM +0100 4/28/11, Geoff Lane wrote: FWIW, it's possible to detect whether or not Javascript is available, but not AFAICT at 'first contact' because you need the 'first contact' page to do something to prove that JS is available, from

Re: [PHP] Javascript detection

2011-04-28 Thread Geoff Lane
On Thursday, April 28, 2011, Ashley Sheridan wrote: I'm not sure if my earlier reply got through, but here it is again (or at least the general gist of it) Many thanks. I got your info the first time around but didn't respond directly to you as Tedd made similar comments and I'd responded to

[PHP] Javascript detection

2011-04-27 Thread tedd
At 6:42 PM +0100 4/27/11, Geoff Lane wrote: However, I do have one residual question. I suspect the short answer to this is No, but since the list is quiet I'll ask anyway: Q: Is it possible to check whether Javascript is available on the client without using client-side Javascript to create a

Re: [PHP] JavaScript Injection ???

2011-04-25 Thread Nathan Rixham
Stuart Dallas wrote: On Monday, 18 April 2011 at 20:50, tedd wrote: The form as-is produced a javascript alert() and now it doesn't. This is not a browser change because it's happening before the browser sees the response (try it with curl). It is the browser, chrome will prevent execution

Re: [PHP] JavaScript Injection ???

2011-04-25 Thread Daniel Brown
On Mon, Apr 25, 2011 at 19:12, Nathan Rixham nrix...@gmail.com wrote: It is the browser, chrome will prevent execution because the code was sent in the request, just check the javascript console and you'll see something like:  Refused to execute a JavaScript script. Source code of script

Re: [PHP] JavaScript Injection ???

2011-04-25 Thread tedd
At 7:45 PM -0400 4/25/11, Daniel Brown wrote: On Mon, Apr 25, 2011 at 19:12, Nathan Rixham nrix...@gmail.com wrote: It is the browser, chrome will prevent execution because the code was sent in the request, just check the javascript console and you'll see something like: Refused to

[PHP] JavaScript Injection ???

2011-04-18 Thread tedd
Hi gang: Quite some time ago I had a demo that showed Javascript injection. It was where a user could type in: script alert(Evil Code);/script and a JavaScript alert would be shown. But now my demo no longer works. So, what happened? Was there a php update that prohibited that sort of

Re: [PHP] JavaScript Injection ???

2011-04-18 Thread Joshua Kehn
On Monday, April 18, 2011 at 1:06 PM, tedd wrote: Hi gang: Quite some time ago I had a demo that showed Javascript injection. It was where a user could type in: script alert(Evil Code);/script and a JavaScript alert would be shown. But now my demo no longer works. So, what happened?

RE: [PHP] JavaScript Injection ???

2011-04-18 Thread admin
...@sperling.com] Sent: Monday, April 18, 2011 1:06 PM To: php-general@lists.php.net Subject: [PHP] JavaScript Injection ??? Hi gang: Quite some time ago I had a demo that showed Javascript injection. It was where a user could type in: script alert(Evil Code);/script and a JavaScript alert would be shown

Re: [PHP] JavaScript Injection ???

2011-04-18 Thread Shreyas Agasthya
Is someone up to Cross Site Scripting? ;) --Shreyas On Mon, Apr 18, 2011 at 10:39 PM, Joshua Kehn josh.k...@gmail.com wrote: On Monday, April 18, 2011 at 1:06 PM, tedd wrote: Hi gang: Quite some time ago I had a demo that showed Javascript injection. It was where a user could type in:

Re: [PHP] JavaScript Injection ???

2011-04-18 Thread Ashley Sheridan
On Mon, 2011-04-18 at 22:43 +0530, Shreyas Agasthya wrote: Is someone up to Cross Site Scripting? ;) --Shreyas On Mon, Apr 18, 2011 at 10:39 PM, Joshua Kehn josh.k...@gmail.com wrote: On Monday, April 18, 2011 at 1:06 PM, tedd wrote: Hi gang: Quite some time ago I had a demo

Re: [PHP] JavaScript Injection ???

2011-04-18 Thread Jim Giner
ad...@buskirkgraphics.com wrote in message news:005501cbfdeb$457839c0$d068ad40$@com... Javascript:alert(Hello World); The browsers have had many updates since last I seen this work. ?? You're saying that alert doesn't work on your browse? Gee - it works on mine. -- PHP General Mailing

RE: [PHP] JavaScript Injection ???

2011-04-18 Thread admin
...@albanyhandball.com] Sent: Monday, April 18, 2011 2:03 PM To: php-general@lists.php.net Subject: Re: [PHP] JavaScript Injection ??? ad...@buskirkgraphics.com wrote in message news:005501cbfdeb$457839c0$d068ad40$@com... Javascript:alert(Hello World); The browsers have had many updates since last I seen

RE: [PHP] JavaScript Injection ???

2011-04-18 Thread Ashley Sheridan
... -Original Message- From: Jim Giner [mailto:jim.gi...@albanyhandball.com] Sent: Monday, April 18, 2011 2:03 PM To: php-general@lists.php.net Subject: Re: [PHP] JavaScript Injection ??? ad...@buskirkgraphics.com wrote in message news:005501cbfdeb$457839c0$d068ad40$@com

Re: [PHP] JavaScript Injection ???

2011-04-18 Thread tedd
At 1:09 PM -0400 4/18/11, Joshua Kehn wrote: On Monday, April 18, 2011 at 1:06 PM, tedd wrote: Hi gang: Quite some time ago I had a demo that showed Javascript injection. It was where a user could type in: script alert(Evil Code);/script and a JavaScript alert would be shown. But now my

Re: [PHP] JavaScript Injection ???

2011-04-18 Thread Daniel Brown
On Mon, Apr 18, 2011 at 14:42, tedd t...@sperling.com wrote: No, I had a simple form where IF the user entered: script alert(Evil Code);/script -- into the form's text field (i.e., $_POST['text'] ) AND clicked Submit, the form would echo( $_POST['text'] ); -- and that would produce a

Re: [PHP] JavaScript Injection ???

2011-04-18 Thread Ashley Sheridan
On Mon, 2011-04-18 at 14:42 -0400, tedd wrote: At 1:09 PM -0400 4/18/11, Joshua Kehn wrote: On Monday, April 18, 2011 at 1:06 PM, tedd wrote: Hi gang: Quite some time ago I had a demo that showed Javascript injection. It was where a user could type in: script alert(Evil Code);/script

Re: [PHP] JavaScript Injection ???

2011-04-18 Thread tedd
At 2:46 PM -0400 4/18/11, Daniel Brown wrote: On Mon, Apr 18, 2011 at 14:42, tedd t...@sperling.com wrote: No, I had a simple form where IF the user entered: script alert(Evil Code);/script -- into the form's text field (i.e., $_POST['text'] ) AND clicked Submit, the form would echo(

Re: [PHP] JavaScript Injection ???

2011-04-18 Thread Stuart Dallas
On Monday, 18 April 2011 at 20:50, tedd wrote: Daniel et al: Sorry -- I'm not making myself clear. The form as-is produced a javascript alert() and now it doesn't. It doesn't make any difference if I use stripslashes() or not, it still will NOT produce a javascript alert as it used to

Re: [PHP] JavaScript Injection ???

2011-04-18 Thread Daniel Brown
On Mon, Apr 18, 2011 at 15:50, tedd t...@sperling.com wrote: It doesn't make any difference if I use stripslashes() or not, it still will NOT produce a javascript alert as it used to do. Interestingly enough, I copied your index.php file to index2.php on the server and modified it to use

Re: [PHP] JavaScript Injection ???

2011-04-18 Thread tedd
At 4:44 PM -0400 4/18/11, Daniel Brown wrote: On Mon, Apr 18, 2011 at 15:50, tedd t...@sperling.com wrote: It doesn't make any difference if I use stripslashes() or not, it still will NOT produce a javascript alert as it used to do. Interestingly enough, I copied your index.php file to

[PHP] PHP/Javascript Job in Madrid

2009-06-03 Thread barbara
, Tuenti is also one of the fastest-growing Alexa Top 500 sites and one of the largest invite-only websites worldwide. I am writing you because we have job opportunities for PHP/JavaScript Engineers that could be interesting for you. You can find more information about this position here: http

[PHP] Javascript question

2009-03-02 Thread Boyd, Todd M.
Before some of you newbies feel like being heroes and jump all over me: I KNOW THIS IS A PHP-RELATED LIST. IF YOU DON'T LIKE MY QUESTION, DON'T ANSWER IT. Now that that's out of the way... I have a Javascript question (and maybe a Browser/DOM question) for you folks. I'm not sure this is

Re: [PHP] Javascript question

2009-03-02 Thread Robert Cummings
On Mon, 2009-03-02 at 16:11 -0600, Boyd, Todd M. wrote: Before some of you newbies feel like being heroes and jump all over me: I KNOW THIS IS A PHP-RELATED LIST. IF YOU DON'T LIKE MY QUESTION, DON'T ANSWER IT. Now that that's out of the way... I have a Javascript question (and maybe a

RE: [PHP] Javascript question

2009-03-02 Thread Boyd, Todd M.
-Original Message- From: Robert Cummings [mailto:rob...@interjinn.com] Sent: Monday, March 02, 2009 4:18 PM To: Boyd, Todd M. Cc: PHP General list Subject: Re: [PHP] Javascript question On Mon, 2009-03-02 at 16:11 -0600, Boyd, Todd M. wrote: Before some of you newbies feel like

RE: [PHP] Javascript question

2009-03-02 Thread Boyd, Todd M.
-Original Message- From: Michael A. Peters [mailto:mpet...@mac.com] Sent: Monday, March 02, 2009 4:42 PM To: Boyd, Todd M. Cc: PHP General list Subject: Re: [PHP] Javascript question Boyd, Todd M. wrote: Before some of you newbies feel like being heroes and jump all over me

Re: [PHP] Javascript question

2009-03-02 Thread Michael A. Peters
Boyd, Todd M. wrote: Before some of you newbies feel like being heroes and jump all over me: I KNOW THIS IS A PHP-RELATED LIST. IF YOU DON'T LIKE MY QUESTION, DON'T ANSWER IT. Now that that's out of the way... I have a Javascript question (and maybe a Browser/DOM question) for you folks. I'm

[PHP] PHP Javascript header

2009-01-15 Thread Applejus
in context: http://www.nabble.com/PHP-Javascript-header-tp21483721p21483721.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Javascript header

2009-01-15 Thread Shawn McKenzie
Applejus wrote: Hello there, Kind of newbie to PHP and javascript... I have this problem: I want to pass a javascript variable to a PHP code. I am inside a javascript function that is creating HTML elements dynamically. After creating a select tag, I want to populate it with a list of

[PHP] table mixing PHP, javascript, ajax and CSS

2008-12-28 Thread Alain Roger
Hi, i'm currently working on some project which needs in several pages, a table to display query results...till now nothing special. however, in order to not create several time the table and features i've decided to create my own templates including PHP classes, CSS and javascript. this table

Re: [PHP] table mixing PHP, javascript, ajax and CSS

2008-12-28 Thread Benjamin Hawkes-Lewis
On 28/12/08 13:33, Alain Roger wrote: i'm currently working on some project which needs in several pages, a table to display query results...till now nothing special. however, in order to not create several time the table and features i've decided to create my own templates including PHP

[PHP] Javascript mailing list

2008-08-30 Thread Richard Heyes
Hi, Can anyone recommend a good Javascript related mailing list? Thanks. -- Richard Heyes HTML5 Graphing: http://www.phpguru.org/RGraph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Javascript mailing list

2008-08-30 Thread Benjamin Hawkes-Lewis
Richard Heyes wrote: Can anyone recommend a good Javascript related mailing list? http://lists.evolt.org/mailman/listinfo/javascript perhaps. -- Benjamin Hawkes-Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Javascript mailing list

2008-08-30 Thread mike
look at jquery - it will make working with javascript so much easier and has it's own community around it too. On 8/30/08, Richard Heyes [EMAIL PROTECTED] wrote: Hi, Can anyone recommend a good Javascript related mailing list? Thanks. -- Richard Heyes HTML5 Graphing:

Re: [PHP] Javascript mailing list

2008-08-30 Thread Shiplu
May be jsninja has mailing list. I am fond of jquery. so i recommend it too. -- Blog: http://talk.cmyweb.net/ Follow me: http://twitter.com/shiplu

[PHP] Javascript control on Firefox 2/3 with flash 9

2008-05-29 Thread jencisson
my page include some javascript to control the play,rewind..and other functions of the swffile showEdit.swf, it works in Safari/IE with flash-plugin 8/9 installed but not works in Firefox with flash plugin 9(would reports obj.play() is not a function, is any one point out what is the problem

Re: [PHP] Javascript control on Firefox 2/3 with flash 9

2008-05-29 Thread Wolf
[EMAIL PROTECTED] wrote: my page include some javascript to control the play,rewind..and other functions of the swffile showEdit.swf, it works in Safari/IE with flash-plugin 8/9 installed but not works in Firefox with flash plugin 9(would reports obj.play() is not a function, is

RE: [PHP] JavaScript and PHP

2008-05-16 Thread Ford, Mike
On 14 May 2008 21:21, tedd advised: At 7:31 PM +0100 5/14/08, Mário Gamito wrote: Hi, I have this HTML/JS page that switches images clicking on the radio buttons and call template.php with the image ID as parameter: http://portulan-online.net/einstein.html Now, I need to make it a PHP

RE: [PHP] JavaScript and PHP

2008-05-16 Thread Boyd, Todd M.
-Original Message- 8 snip! That's incorrect. A form will function perfectly well with only name= attributes, and no ids, and it's quite possible for JavaScript to address the form elements using only the names (in fact, it's easier than via the ids as there's a short syntax for

RE: [PHP] JavaScript and PHP

2008-05-16 Thread Ford, Mike
On 16 May 2008 16:12, Boyd, Todd M. advised: -Original Message- 8 snip! That's incorrect. A form will function perfectly well with only name= attributes, and no ids, and it's quite possible for JavaScript to address the form elements using only the names (in fact, it's easier

RE: [PHP] JavaScript and PHP

2008-05-16 Thread tedd
At 4:01 PM +0100 5/16/08, Ford, Mike wrote: On 14 May 2008 21:21, tedd advised: At 7:31 PM +0100 5/14/08, Mário Gamito wrote: Hi, I have this HTML/JS page that switches images clicking on the radio buttons and call template.php with the image ID as parameter:

[PHP] JavaScript and PHP

2008-05-14 Thread Mário Gamito
Hi, I have this HTML/JS page that switches images clicking on the radio buttons and call template.php with the image ID as parameter: http://portulan-online.net/einstein.html Now, I need to make it a PHP page, because it is going to receive a parameter from the URL that calls it and pass it

Re: [PHP] JavaScript and PHP

2008-05-14 Thread Dan Joseph
On Wed, May 14, 2008 at 2:31 PM, Mário Gamito [EMAIL PROTECTED] wrote: Hi, I have this HTML/JS page that switches images clicking on the radio buttons and call template.php with the image ID as parameter: http://portulan-online.net/einstein.html Now, I need to make it a PHP page, because

Re: [PHP] JavaScript and PHP

2008-05-14 Thread tedd
At 7:31 PM +0100 5/14/08, Mário Gamito wrote: Hi, I have this HTML/JS page that switches images clicking on the radio buttons and call template.php with the image ID as parameter: http://portulan-online.net/einstein.html Now, I need to make it a PHP page, because it is going to receive a

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

Re: [PHP] Javascript and PHP interaction

2007-03-12 Thread Richard Lynch
What you *COULD* do is this: Use .htaccess to force your .css files to *really* be PHP files: Files ~.css ForceType application/x-httpd-php /Files [NOTE: Depending on your server configuration, the application/x-httpd-php part could be *ANYTHING* the sysadmin felt was appropriate...] Inside

[PHP] Javascript and PHP interaction

2007-03-08 Thread Alain Roger
Hi, I would like to know if there is a way how PHP code can extract from ElementID some property values. for example, i have the following PHP page : ?php print div class='maindiv' id='id_maindiv'my main div/div; $new_Width = somefunction(); print div class='childdiv' id='id_childdiv'

Re: [PHP] Javascript and PHP interaction

2007-03-08 Thread Németh Zoltán
2007. 03. 8, csütörtök keltezéssel 09.14-kor Alain Roger ezt írta: Hi, I would like to know if there is a way how PHP code can extract from ElementID some property values. for example, i have the following PHP page : ?php print div class='maindiv' id='id_maindiv'my main div/div;

Re: [PHP] Javascript and $_POST

2007-02-08 Thread Dan Shirah
Okay, I edited my page per some suggestions here. Below is what I now have: script language=JavaScript function checkForm() { // ** START ** if (inputForm.cc_phone_number.value == ) { alert( Please enter a phone number. ); inputForm.cc_phone_number.focus(); return; } **Lots of

Re: [PHP] Javascript and $_POST

2007-02-08 Thread Németh Zoltán
On cs, 2007-02-08 at 08:14 -0500, Dan Shirah wrote: Okay, I edited my page per some suggestions here. Below is what I now have: script language=JavaScript function checkForm() { // ** START ** if (inputForm.cc_phone_number.value == ) { alert( Please enter a phone number. );

Re: [PHP] Javascript and $_POST

2007-02-08 Thread Németh Zoltán
On cs, 2007-02-08 at 08:41 -0500, Dan Shirah wrote: I should not need an actual Button if my link to checkForm() ends with document.inputForm.submit(); which tells the form to submit, right? well, you should be right... but I remember a year ago or so I had a similar problem and the image input

Re: [PHP] Javascript and $_POST

2007-02-08 Thread Németh Zoltán
On cs, 2007-02-08 at 08:56 -0500, Dan Shirah wrote: Okay, I'll try your spacer solution. Where do you think I should add it? I put it right before the /form tag, but I think you could put it anywhere between the form and the /form greets Zoltán Németh On 2/8/07, Németh Zoltán [EMAIL

Re: [PHP] Javascript and $_POST

2007-02-08 Thread Dan Shirah
Nope, same result unfortunately. On 2/8/07, Németh Zoltán [EMAIL PROTECTED] wrote: On cs, 2007-02-08 at 08:56 -0500, Dan Shirah wrote: Okay, I'll try your spacer solution. Where do you think I should add it? I put it right before the /form tag, but I think you could put it anywhere

Re: [PHP] Javascript and $_POST

2007-02-08 Thread T . Lensselink
There is nothing wrong with the way you want to submit this form. Although it's JS :) The sample code you posted was broken in some ways... missing document. in JS en missing input field to check. This sample works fine ... test.html script language=JavaScript function checkForm() { if

Re: [PHP] Javascript and $_POST

2007-02-08 Thread Németh Zoltán
On cs, 2007-02-08 at 09:09 -0500, Dan Shirah wrote: Nope, same result unfortunately. well, sorry, then my memories were incorrect maybe I should run a memtest86 on myself ;) greets Zoltán Németh On 2/8/07, Németh Zoltán [EMAIL PROTECTED] wrote: On cs, 2007-02-08 at 08:56

Re: [PHP] Javascript and $_POST

2007-02-08 Thread Jon Anderson
I'm no JavaScript expert, but I could maybe suggest an alternate method: use document.getElementById() or document.getElementsByName() AFAIK, the direct document.xyz doesn't work exactly the same way accross browsers (if at all). e.g. (WARNING! TOTALLY UNTESTED CODE!) function

Re: [PHP] Javascript and $_POST

2007-02-08 Thread Dan Shirah
Jon, Tried your method and still got: *Error: Object doesn't support this property or method. Code: 0* On 2/8/07, Jon Anderson [EMAIL PROTECTED] wrote: I'm no JavaScript expert, but I could maybe suggest an alternate method: use document.getElementById() or document.getElementsByName()

Re: [PHP] Javascript and $_POST

2007-02-08 Thread T . Lensselink
Don't see how this can pass the check without document. if (inputForm.cc_phone_number.value == ) { alert( Please enter a phone number. ); inputForm.cc_phone_number.focus(); return; } Comming to this check already gives an error. Maybe ask on some Javascript list. P.s. reply to the

Re: [PHP] Javascript and $_POST

2007-02-08 Thread Jon Anderson
Dan Shirah wrote: Jon, Tried your method and still got: *Error: Object doesn't support this property or method. Code: 0* *I don't know what browser/platform you're using, but the following works for me on IE7/Windows, FF2/Linux, Opera9/Linux. jon html head script language=JavaScript

Re: [PHP] Javascript and $_POST

2007-02-08 Thread Jon Anderson
Jon Anderson wrote: ... item.focus(); } ** alert(onError); **return(false);* *} ... Sorry about the *s everywhere (there aren't supposed to be any). I pasted the code in, and Thunderbird thought it was supposed to be bold for some reason, then converted the bold text to text with *s

Re: [PHP] Javascript and $_POST

2007-02-08 Thread Dan Shirah
You guys are going to kill me! I found my problemand it's one of those What the hell were you thinking issues. Within my form was a button but I stupidly made it a submit when I created it and therefore the javascript check for submit was finding my button first and dumping the error. So,

Re: [PHP] Javascript and $_POST

2007-02-08 Thread Robert Cummings
On Thu, 2007-02-08 at 10:21 -0500, Dan Shirah wrote: You guys are going to kill me! I found my problemand it's one of those What the hell were you thinking issues. Nah, probably lots of us have been bitten by that. I know I have been in the past, so now I always name my submit buttons

[PHP] Javascript and $_POST

2007-02-07 Thread Dan Shirah
I have a form that uses Javascript to validate form field entries, and if they are incorrect it returns an error to the user. After the Javascript processing is complete, it submits the form to my save page. However it seems that once the processing is complete and it passes to the save page,

RE: [PHP] Javascript and $_POST

2007-02-07 Thread Brad Fuller
-Original Message- From: Dan Shirah [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 07, 2007 4:35 PM To: php-general Subject: [PHP] Javascript and $_POST I have a form that uses Javascript to validate form field entries, and if they are incorrect it returns an error

Re: [PHP] Javascript and $_POST

2007-02-07 Thread Jon Anderson
Dan Shirah wrote: And this is my Save option at the bottom of my page form name=Submit action=save.php method=post enctype=multipart/form-data table align=center border=0 cellpadding=0 cellspacing=0 width=680 tr td width=64 align=lefta href=javascript:checkForm() title=SaveSave/a/td /tr /table

  1   2   3   4   5   6   >