Re: How to convert this PHP into JavaScript [message #173207 is a reply to message #173204] |
Sun, 27 March 2011 15:42 |
sheldonlg
Messages: 166 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 3/27/2011 5:04 AM, Thomas 'PointedEars' Lahn wrote:
> sheldonlg wrote:
>
>> On 3/26/2011 4:02 PM, Thomas 'PointedEars' Lahn wrote:
>>> I do not know what "sheldonlg"'s and Jerry Stuckle's gripe is with this
>>> solution, but until they come up with something substantial, I will just
>>> ignore it.
>>
>> I have no gripe with your solution. I also have used json_encode in
>> production environments. It is just that there is also an alternate
>> method that the OP might prefer. There is more than one way to skin a
>> cat.
>
> So, instead of posting only the obvious, that which the proposed
> json_encode() solution results in, you should have posted that alternate
> solution of yours, because what Denis posted surely is not it.
>
> And will you *please* trim your quotes to the relevant minimum. Proper
> quoting really is not rocket science.
I _did_ post an alternative. Someone (Denis?) then started in depth
criticizing what was only an illustration of a method. That alternative
method was to write a javascript script using PHP's print statement. If
_that_ is what you meant as "incorrect" (meaning the method, not the
minute details), then _YOU_ are incorrect. It works! Ergo, it is not
incorrect.
--
Shelly
|
|
|