Reply to Re: dynamic button not working

Your name:

Reply:


Posted by tomb on 07/26/07 17:05

Rik wrote:
> On Thu, 26 Jul 2007 18:08:04 +0200, tomb <tomb@technetcenter.com> wrote:
>> I can appreciate wanting to have questions posted to the correct
>> group. But, my original question was not about javascript, it was
>> about my PHP outputting a normally functional reset button, and once
>> it is generated by PHP it no longer functions. Since the HTML for
>> the reset button is correct, I was thinking that having it generated
>> by PHP in an AJAX environment disturbs its functionality. I will
>> gladly take this to an HTML group, but the HTML for the button is as
>> if I entered it directly into the editor.
>
> OK, to clarify things: it is IMPOSSIBLE that when the HTML output is
> the same hardcoded as generated, their behaviour is different. The
> browser does not know how it is created, and doesn't care. So, this
> has nothing to do with PHP: there must be a difference in the actual
> code, find it, or ask in for instance alt.html or
> comp.infosystemt.www.authoring.html what's wrong with the HTML. Be
> sure to provide an url for those people though, they really hate to
> check posted code instead of a handy url.
>
>> If this is not the group for this kind of question, then which one
>> is? I can't find an AJAX group, and PHP is a major part of my AJAX
>> configuration.
>
> I'd say AJAX is 99,9% javascript, so comp.lang.javascript. The fact
> that you generate your output/possible JSON objects with PHP does not
> matter.
> --Rik Wasmus
Rik,
Thank you for such an informative and complete response. You actually
led me to the real problem and, yes, it is PHP related. When I capture
the actual response from my PHP script, I see all my quote marks are
escaped with \., which I am doing when I build the response string. I
didn't think they would still be there when it reached my browser. Is
there something I can do in my PHP script prior to returning the HTML
string that will strip those slashes? I tried stripslashed() and
stripcslashes() but they didn't seem to do anything.

I also tried changing my code to single quotes around the entire string,
and double quotes only - no slashes - around the element values, but it
still comes to my browser with the slashes at the double-quotes. ???

Tom

[Back to original 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

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