Development

#4048 (wrong JSON examples syntax in documentation for symfony version 1.1)

You must first sign up to be able to contribute.

Ticket #4048 (closed documentation: duplicate)

Opened 2 years ago

Last modified 7 months ago

wrong JSON examples syntax in documentation for symfony version 1.1

Reported by: sajmon_phoenix Assigned to: FabianLange
Priority: minor Milestone:
Component: other Version: 1.1.0
Keywords: documentation, json, example Cc: sajmonphoenix@gmail.com
Qualification: Unreviewed

Description

i downloaded and installed symfony version 1.1. Then in my project i created a link_to_remote function which was calling on 'complete' a javascript function named editJSON. According to documentation v1.1, chapter 11, JSON paragraph, the right syntax was: echo link_to_remote('[Edituj]', array(

'url' => 'products/editItem', 'complete' => 'editJSON(ajax)', 'script' => true,

)));

-notice row 'complete' => 'editJSON(ajax)',

well i do not know if i am doing something wrong but this syntax DO NOT work for me. But syntax from documentation ver 1.0 worked for me :

'complete' => 'editJSON(request, JSON)',

so if im right, then in symfony documentation, chapter 11 in paragraph about JSON are wrong examples of json remotete function use and json javascript function.

(sory for bad english)

Change History

09/04/08 22:43:47 changed by fabien

  • owner changed from fabien to FabianLange.

09/29/08 15:14:25 changed by mike_crowe

FabianLange?,

This just bit me too. Would be nice to update soon.

Mike

07/03/09 17:05:22 changed by FabianLange

  • status changed from new to closed.
  • resolution set to duplicate.

fixed in r16235 for #5749

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.