Re: [nyphp-talk] javascript calling php function -- now question on Ajax

2008-02-18 Thread Susan Shemin
thanks, Steve I'll have to work through your example. And thanks so much for pointing me to xAjax -- I'll look it over. - Original Message From: Steve Manes <[EMAIL PROTECTED]> To: NYPHP Talk Sent: Monday, February 18, 2008 8:36:28 PM Subject: Re: [nyphp-talk] javascript calling php

Re: [nyphp-talk] javascript calling php function -- now question on Ajax

2008-02-18 Thread Austin Smith
Not to discourage you from using xAjax, which I've seen put to fine use, it seems to me like you're adding Javascript where PHP would do the job just fine, all by itself. Assuming that your anchor element is really going to direct the user off the page, you might do well to implement something like

Re: [nyphp-talk] javascript calling php function -- now question on Ajax

2008-02-18 Thread Susan Shemin
thanks, Mike and Ken first off, I'm not using a form (so no POST); the link is in an anchor tag. I could put a form around it, but that seems to me making a simple link complex. I want to run this php code when the link is clicked $webpage=""; $link_clicked=""; Function capture_click($webp

Re: [nyphp-talk] javascript calling php function -- now question on Ajax

2008-02-18 Thread Steve Manes
Susan Shemin wrote: Anyway, Ajax is usually used to open an external file into a div, and it uses a form to send the request. What I want to do is trigger a php script to run when someone clicks a certain anchor URL. I guess you would call it my own stats attempt. So I have no form, and noth

Re: [nyphp-talk] javascript calling php function -- now question on Ajax

2008-02-18 Thread Ken Robinson
At 11:20 PM 2/18/2008, Susan Shemin wrote: My quick fix didn't work because it put entries into the database as the page loaded -- but they were there... Anyway, Ajax is usually used to open an external file into a div, and it uses a form to send the request. What I want to do is trigger a p

Re: [nyphp-talk] javascript calling php function -- now question on Ajax

2008-02-18 Thread Susan Shemin
My quick fix didn't work because it put entries into the database as the page loaded -- but they were there... Anyway, Ajax is usually used to open an external file into a div, and it uses a form to send the request. What I want to do is trigger a php script to run when someone clicks a certai

RE: Meeting Topics (Was [nyphp-talk] Dynamic Form Elements)

2008-02-18 Thread Hans Zaunere
Hi Jake, > Not sure what the process is for getting an official meeting going,,, > I'd still like to volunteer my time, I just need to know when. Woops - missed this thread earlier. We'd love to have you speak, thank you. Our next available meeting is June - June 24th to be exact. If this work

Re: Meeting Topics (Was [nyphp-talk] Dynamic Form Elements)

2008-02-18 Thread Jake McGraw
Not sure what the process is for getting an official meeting going,,, I'd still like to volunteer my time, I just need to know when. - jake On Feb 15, 2008 9:54 AM, Jake McGraw <[EMAIL PROTECTED]> wrote: > Whoops, here is a link: > > jakemcgraw.com/javascript/jquery.pdf > > - jake > > > On Fri,

Re: [nyphp-talk] javascript calling php function

2008-02-18 Thread Susan Shemin
I so wanted to avoid using Ajax only because my webpages are simple ones. I've implemented Ajax on another website, and I'll just bring it over here. Or, I'll might stay with the "you have an error" message in the status line, because the function is working -- the data from the called functio

Re: [nyphp-talk] javascript calling php function

2008-02-18 Thread tedd
At 2:23 AM -0800 2/18/08, Susan Shemin wrote: I want to use javascript onclick to call a php function. This code works, but puts a "done, with errors" in the status line in the file when loaded, which I do not want. (I've done some error testing and isolation, and found the onclick is what is

Re: [nyphp-talk] javascript calling php function

2008-02-18 Thread Steve Manes
Susan Shemin wrote: I want to use javascript onclick to call a php function. This code works, but puts a "done, with errors" in the status line in the file when loaded, which I do not want. (I've done some error testing and isolation, and found the onclick is what is causing the "errors" mes

Re: [nyphp-talk] javascript calling php function

2008-02-18 Thread Anirudh Zala
On Monday 18 Feb 2008 15:53:24 Susan Shemin wrote: > I want to use javascript onclick to call a php function. This code works, > but puts a "done, with errors" in the status line in the file when loaded, > which I do not want. (I've done some error testing and isolation, and > found the onclick i

[nyphp-talk] javascript calling php function

2008-02-18 Thread Susan Shemin
I want to use javascript onclick to call a php function. This code works, but puts a "done, with errors" in the status line in the file when loaded, which I do not want. (I've done some error testing and isolation, and found the onclick is what is causing the "errors" message.) Any ideas -- o