Re: [PHP] PHP and javascript

2010-01-19 Thread Rene Veerman
oh, and if you're going to use ajax->non-phphttpd->php->andback, then check if your dear non-php httpd abuses the CPU while waiting for PHP to return the results... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and javascript

2010-01-19 Thread Rene Veerman
To do what you want that new httpd server should at least be able to call up PHP via cli / whatever, and retrieve the output. It also needs to provide what's in php called $_GET and $_POST. Assuming you got that covered, then yes, you could route the calls via ajax (i recommend jquery.com for that

Re: [PHP] PHP and javascript

2010-01-15 Thread Ashley Sheridan
On Fri, 2010-01-15 at 14:07 -0500, Andres Gonzalez wrote: > How do I call PHP code that will run server side, from javascript code > that is running client side? > > I have a lot of PHP server side code written and working within > CodeIgniter. Now, my project > has changed and (for reasons un

Re: [PHP] PHP and javascript

2010-01-15 Thread Ryan Sun
I don't think you can call php cli from client javascript unless you have a wrapper http interface On Fri, Jan 15, 2010 at 2:07 PM, Andres Gonzalez wrote: > How do I call PHP code that will run server side, from javascript code that > is running client side? > > I have a lot of PHP server side co

[PHP] PHP and javascript

2010-01-15 Thread Andres Gonzalez
How do I call PHP code that will run server side, from javascript code that is running client side? I have a lot of PHP server side code written and working within CodeIgniter. Now, my project has changed and (for reasons unimportant to this discussion) we are now NOT going to use apache and

Re: [PHP] PHP and Javascript escape character problem, --> those who like to solve things can try to solve this issue, its tricky I think ;)

2009-11-02 Thread Devendra Jadhav
:) On Mon, Nov 2, 2009 at 4:56 PM, acetrader wrote: > > lol thank you very much guys :) the escape character worked and now its > accepting my javascript functions, thank you all very much :) > :jumping::jumping: > -- > View this message in context: > http://old.nabble.com/PHP-and-Javascript-esc

Re: [PHP] PHP and Javascript escape character problem, --> those who like to solve things can try to solve this issue, its tricky I think ;)

2009-11-02 Thread acetrader
lol thank you very much guys :) the escape character worked and now its accepting my javascript functions, thank you all very much :) :jumping::jumping: -- View this message in context: http://old.nabble.com/PHP-and-Javascript-escape-character-problem%2C---%3E-those-who-like-to-solve-things-can-

Re: [PHP] PHP and Javascript escape character problem, --> those who like to solve things can try to solve this issue, its tricky I think ;)

2009-11-02 Thread Ashley Sheridan
On Mon, 2009-11-02 at 16:51 +0530, Devendra Jadhav wrote: > Ashley Sheridan: > > btw: I know I've written onClik wrong but I wrote it this way in this > forum > > cause it wouldn't let me post my thread because it regards it as an > illegal > > tag lol. B-)B-) > > :D > > > On Mon, Nov 2, 2009 a

Re: [PHP] PHP and Javascript escape character problem, --> those who like to solve things can try to solve this issue, its tricky I think ;)

2009-11-02 Thread Devendra Jadhav
Ashley Sheridan: > btw: I know I've written onClik wrong but I wrote it this way in this forum > cause it wouldn't let me post my thread because it regards it as an illegal > tag lol. B-)B-) :D On Mon, Nov 2, 2009 at 4:38 PM, Ashley Sheridan wrote: > On Mon, 2009-11-02 at 00:53 -0800, acetrade

Re: [PHP] PHP and Javascript escape character problem, --> those who like to solve things can try to solve this issue, its tricky I think ;)

2009-11-02 Thread Stuart
2009/11/2 Ashley Sheridan : > On Mon, 2009-11-02 at 00:53 -0800, acetrader wrote: > >> Hi there, >> >> I am doing an application that allows me to create RSS channels and put >> feeds inside of each channel. Everything works so far, but - now I have >> started to do the 'Edit Channel', 'Edit Feed',

Re: [PHP] PHP and Javascript escape character problem, --> those who like to solve things can try to solve this issue, its tricky I think ;)

2009-11-02 Thread Ashley Sheridan
On Mon, 2009-11-02 at 00:53 -0800, acetrader wrote: > Hi there, > > I am doing an application that allows me to create RSS channels and put > feeds inside of each channel. Everything works so far, but - now I have > started to do the 'Edit Channel', 'Edit Feed', 'Delete Channel' and 'Delete > Fee

Re: [PHP] PHP and Javascript escape character problem, --> those who like to solve things can try to solve this issue, its tricky I think ;)

2009-11-02 Thread Devendra Jadhav
Hey, You can do it this way as well $myFeedHTML .= " $feedItemImagePath > DeleteChannelAndAllOfItsFeeds()\" /> />DELETE"; So you can escape double quotes by \ (slash) try this .. It will work... you can escape any special character that you want to use as it is by prepend it by \ On Mon, N

[PHP] PHP and Javascript escape character problem, --> those who like to solve things can try to solve this issue, its tricky I think ;)

2009-11-02 Thread acetrader
Hi there, I am doing an application that allows me to create RSS channels and put feeds inside of each channel. Everything works so far, but - now I have started to do the 'Edit Channel', 'Edit Feed', 'Delete Channel' and 'Delete Feed' functionalities and have run into a problem. For me its a big

RE: [PHP] php and javascript error

2007-03-12 Thread Richard Lynch
On Sun, March 11, 2007 9:21 am, tedd wrote: > At 5:28 PM +0100 3/7/07, [EMAIL PROTECTED] wrote: >> > PS: If you want your code to validate, change the & to & Add >> the >>> closing tag too. >>> PPS: It's advisable not to use the short tags, use >> of >in such a cases I usually use instead . >

Re: [PHP] php and javascript error

2007-03-12 Thread Richard Lynch
On Thu, March 8, 2007 7:17 pm, jekillen wrote: > Yes I have been around the bend with Netscape and now, Fire Fox > javascript consoles. > Before I got it that I need to format web content text for Unix, I > went > crazy trying to interpret > Netscape console messages and the line numbers it said th

Re: [PHP] php and javascript error

2007-03-12 Thread Richard Lynch
When you install IE, I think there is an option to get the developer JS tools that give better error messages... And there's some kind of setting in the preferences about showing JS errors. And maybe a JS console. Havent' used IE for so long, I forget what all there is, but I suspect you can wri

Re: [PHP] php and javascript error

2007-03-11 Thread tedd
At 3:25 PM +0100 3/11/07, Tijnema ! wrote: On 3/11/07, tedd <[EMAIL PROTECTED]> wrote: At 5:28 PM +0100 3/7/07, [EMAIL PROTECTED] wrote: > PS: If you want your code to validate, change the & to & Add the closing tag too. PPS: It's advisa

Re: [PHP] php and javascript error

2007-03-11 Thread Tijnema !
On 3/11/07, tedd <[EMAIL PROTECTED]> wrote: At 5:28 PM +0100 3/7/07, [EMAIL PROTECTED] wrote: > > PS: If you want your code to validate, change the & to & Add the >> closing tag too. >> PPS: It's advisable not to use the short tags, use in such a cases I usually use instead . At >least it'

RE: [PHP] php and javascript error

2007-03-11 Thread tedd
At 5:28 PM +0100 3/7/07, [EMAIL PROTECTED] wrote: > PS: If you want your code to validate, change the & to & Add the closing tag too. PPS: It's advisable not to use the short tags, use in such a cases I usually use instead . At least it's shorter. :) -afan But, while it's shorter, it's

Re: [PHP] php and javascript error

2007-03-08 Thread jekillen
On Mar 7, 2007, at 11:46 PM, Tijnema ! wrote: Just a little side note, you said that firefox wasn't giving an error, i think it does, but that it hides the error. Open your page, and then go to Tools->javascript console. There it will display all javascript errors. And gives a nice detailed e

Re: [PHP] php and javascript error

2007-03-07 Thread Tijnema !
Just a little side note, you said that firefox wasn't giving an error, i think it does, but that it hides the error. Open your page, and then go to Tools->javascript console. There it will display all javascript errors. And gives a nice detailed error. Tijnema

Re: [PHP] php and javascript error

2007-03-07 Thread jekillen
On Mar 7, 2007, at 10:24 AM, Ed Curtis wrote: Edward Kay wrote: you've got a stay quote mark in one of your PHP vars. Not it, I looked and there's nothing there. I'm sure it's because you've got some stray characters in your output that mess it up. It would help if you actually posted the

Re: [PHP] php and javascript error

2007-03-07 Thread Ed Curtis
Edward Kay wrote: you've got a stay quote mark in one of your PHP vars. Not it, I looked and there's nothing there. I'm sure it's because you've got some stray characters in your output that mess it up. It would help if you actually posted the source rather than just saying it's OK, when it

Re: [PHP] php and javascript error

2007-03-07 Thread Seak, Teng-Fong
Ed Curtis wrote: > Németh Zoltán wrote: >> 2007. 03. 7, szerda keltezéssel 10.59-kor Ed Curtis ezt írta: >> >>> I've just run into this problem this morning >>> >>> >> onclick="javascript:window.open('web_forward.php?address=>> $web_url; ?>&agent=&real_company_name=>> $real_company_name; ?>', '

RE: [PHP] php and javascript error

2007-03-07 Thread Edward Kay
> >>> > >>> > >> > >>This is a JavaScript issue, but may have something to do with > the data you > >>are echoing out in PHP. Look at the source in the browser. My guess it > >>that > > >>you've got a stay quote mark in one of your PHP vars. > > Not it, I looked and there's nothing there. I'm sur

RE: [PHP] php and javascript error

2007-03-07 Thread Brad Fuller
> -Original Message- > From: Brad Fuller [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 07, 2007 12:02 PM > To: 'Ed Curtis'; 'php-general@lists.php.net' > Subject: RE: [PHP] php and javascript error > > > -Original Message-

RE: [PHP] php and javascript error

2007-03-07 Thread Brad Fuller
> -Original Message- > From: Ed Curtis [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 07, 2007 11:47 AM > To: php-general@lists.php.net > Subject: Re: [PHP] php and javascript error > > > >>> > >>> > >>>This produces an

Re: [PHP] php and javascript error

2007-03-07 Thread Ed Curtis
This produces an "Error on Page" in IE 7, but works perfectly in Firefox and Netscape. I have several other javascript calls on the page where this call resides and all of them work perfectly except for this one. Does this error occur because I'm sending the variables to another script that d

RE: [PHP] php and javascript error

2007-03-07 Thread afan
> >> I've just run into this problem this morning >> >> >> >> This produces an "Error on Page" in IE 7, but works perfectly in Firefox >> and Netscape. >> >> I have several other javascript calls on the page where this call >> resides and all of them work perfectly except for this one. Does th

Re: [PHP] php and javascript error

2007-03-07 Thread Tijnema !
On 3/7/07, Ed Curtis <[EMAIL PROTECTED]> wrote: Németh Zoltán wrote: > 2007. 03. 7, szerda keltezéssel 10.59-kor Ed Curtis ezt írta: > >>I've just run into this problem this morning >> >> >> >>This produces an "Error on Page" in IE 7, but works perfectly in Firefox >>and Netscape. >> >>I hav

Re: [PHP] php and javascript error

2007-03-07 Thread Ed Curtis
Németh Zoltán wrote: 2007. 03. 7, szerda keltezéssel 10.59-kor Ed Curtis ezt írta: I've just run into this problem this morning This produces an "Error on Page" in IE 7, but works perfectly in Firefox and Netscape. I have several other javascript calls on the page where this call re

RE: [PHP] php and javascript error

2007-03-07 Thread Edward Kay
> I've just run into this problem this morning > > > > This produces an "Error on Page" in IE 7, but works perfectly in Firefox > and Netscape. > > I have several other javascript calls on the page where this call > resides and all of them work perfectly except for this one. Does this > error

Re: [PHP] php and javascript error

2007-03-07 Thread Tijnema !
Open the page with IE 7, and open the source, if it doesn't show any tags, then it is a IE problem.. Tijnema On 3/7/07, Németh Zoltán <[EMAIL PROTECTED]> wrote: 2007. 03. 7, szerda keltezéssel 10.59-kor Ed Curtis ezt írta: > I've just run into this problem this morning > > > > This prod

Re: [PHP] php and javascript error

2007-03-07 Thread Németh Zoltán
2007. 03. 7, szerda keltezéssel 10.59-kor Ed Curtis ezt írta: > I've just run into this problem this morning > > > > This produces an "Error on Page" in IE 7, but works perfectly in Firefox > and Netscape. > > I have several other javascript calls on the page where this call > resides and

[PHP] php and javascript error

2007-03-07 Thread Ed Curtis
I've just run into this problem this morning This produces an "Error on Page" in IE 7, but works perfectly in Firefox and Netscape. I have several other javascript calls on the page where this call resides and all of them work perfectly except for this one. Does this error occur becau

Re: [PHP] php and javascript

2005-04-13 Thread Richard Lynch
On Mon, April 11, 2005 5:04 pm, Marek Kilimajer said: > Richard Lynch wrote: >> On Mon, April 11, 2005 4:23 pm, Jared Williams said: >> >>>Hmm, document.forms['Selection'].elements['distID[]'][0].value is >>>perfectly valid, and should work in any decent browser. >>> >>>There is also document.getEl

RE: [PHP] php and javascript

2005-04-12 Thread Ford, Mike
> -Original Message- > From: Richard Lynch > To: Marek Kilimajer > > On Sun, April 10, 2005 4:32 pm, Marek Kilimajer said: > > Assuming your form is named "Selection", you will have a javascript > > array document.forms['Selection'].elements['distID[]'] available. You > > can try: > > > >

Re: [PHP] php and javascript

2005-04-11 Thread Marek Kilimajer
Richard Lynch wrote: On Mon, April 11, 2005 4:23 pm, Jared Williams said: Hmm, document.forms['Selection'].elements['distID[]'][0].value is perfectly valid, and should work in any decent browser. There is also document.getElementsByName() Didja try it? Cuz every time *I* ever tried it (back in Bro

RE: [PHP] php and javascript

2005-04-11 Thread Richard Lynch
On Mon, April 11, 2005 4:23 pm, Jared Williams said: > Hmm, document.forms['Selection'].elements['distID[]'][0].value is > perfectly valid, and should work in any decent browser. > > There is also document.getElementsByName() Didja try it? Cuz every time *I* ever tried it (back in Browser Wars 3.

RE: [PHP] php and javascript

2005-04-11 Thread Jared Williams
> On Sun, April 10, 2005 4:32 pm, Marek Kilimajer said: > > Assuming your form is named "Selection", you will have a javascript > > array document.forms['Selection'].elements['distID[]'] > available. You > > can try: > > > > alert(document.forms['Selection'].elements['distID[]'][0].value); > >

Re: [PHP] php and javascript

2005-04-11 Thread Richard Lynch
On Sun, April 10, 2005 4:32 pm, Marek Kilimajer said: > Assuming your form is named "Selection", you will have a javascript > array document.forms['Selection'].elements['distID[]'] available. You > can try: > > alert(document.forms['Selection'].elements['distID[]'][0].value); I can GUARANTEE this

Re: [PHP] php and javascript

2005-04-10 Thread Marek Kilimajer
PartyPosters wrote: Hello, I have a form that when I hit sumbit I want to test the varialble in javascript. I can get it working using test variables in php but I want to be able to call the input box in my form, the only problem is the name of the box is in an array (i think) as it's in a list.

[PHP] php and javascript

2005-04-10 Thread PartyPosters
Hello, I have a form that when I hit sumbit I want to test the varialble in javascript. I can get it working using test variables in php but I want to be able to call the input box in my form, the only problem is the name of the box is in an array (i think) as it's in a list. You can see the 2 s

Re: [PHP] php and javascript

2003-03-21 Thread John Nichel
sertia.net Email : [EMAIL PROTECTED] Office : 0845 123 2992 Mobile : 07976 711363 -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: 21 March 2003 20:04 To: shaun Cc: [EMAIL PROTECTED] Subject: Re: [PHP] php and javascript Put square brackets after the name of your checkbo

Re: [PHP] php and javascript

2003-03-21 Thread John Nichel
Put square brackets after the name of your checkboxes. Home Office etc Then you will be able to access all the boxes checked on your post page in an array $_POST['list'] shaun wrote: Hi, I'm not sure if this is a PHP or a JavaScript question but I have found the following code to e

Fw: [PHP] php and javascript

2003-03-21 Thread Kevin Stone
- Original Message - From: "shaun" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 21, 2003 12:25 PM Subject: [PHP] php and javascript > Hi, > > I'm not sure if this is a PHP or a JavaScript question but I have found the > following

Re: [PHP] php and javascript

2003-03-21 Thread Mike
Try radio buttons. You can't have lots of checkboxes like that. Or try one of those lists that you can select multiple parts. I don't remember what they're called. On Fri, 2003-03-21 at 10:25, shaun wrote: > Hi, > > I'm not sure if this is a PHP or a JavaScript question but I have found the > fol

[PHP] php and javascript

2003-03-21 Thread shaun
Hi, I'm not sure if this is a PHP or a JavaScript question but I have found the following code to enable me to select all of the checkboxes on my form.