Ticket #41 (closed task: fixed)

Opened 3 years ago

Last modified 3 years ago

add sfJqueryReloadedPlugin plugin

Reported by: jzarate Owned by: jzarate
Priority: major Milestone: 0.1
Component: Keywords: jquery, plugin
Cc: enrique, carlos, leo

Description (last modified by jzarate) (diff)

it's a plugin that allows you tu use the same helpers that you use when using prototype, you just need to add a "jq_" prefix.

this way, link_to_remote converts to jq_link_to_remote

Change History

Changed 3 years ago by jzarate

  • type changed from defect to task

Changed 3 years ago by jzarate

  • cc enrique, carlos, leo added
  • status changed from new to assigned

A TODOS LOS PRESENTES

Yo tengo el ticket, pero creo que sería bueno que cada uno vaya sustituyendo (si es que no le va a resultar más complicado el resultado final, claro) sus expresiones jquery sueltas por sus respectivas páginas, por las funciones del helper, y vaya apuntando aquí en los comentarios las revisiones y progresos al respecto.

Changed 3 years ago by jzarate

ATENCION:

he añadido "a mano" una nueva opción al helper, la opción es "raw_with" y funciona igual que el "with" del prototype. la idea es ser capaz de enviar expresiones javascripts evaluables al servidor....

var new_item_count = 2 ;
..
..
..
<?php echo jq_link_to_remote('add item',array(
                                        'url'=>...
                                        'update'=>...
                                        ..
                                        'raw_with'=>" 'item_count = '+new_item_cout"
                                         ))?>

lo cual enviaria al servidor: item_count = 2

En fín, como para eso he tenido que "tomar posesión" del plugin, ya no está como external, sino que lo tenemos nosotros. también he añadido un "bug" en el symfony con respecto a esto, por si alguien lo quiere ver:

http://trac.symfony-project.org/ticket/6047

Changed 3 years ago by jzarate

r161 basic invoice editing refurbished with jquery helpers.

Changed 3 years ago by carlos

Only one addition: I think we should use this helpers only for that actions involving database interaction through dynamic ids that we can not generate outside with javascript because of its complexity. Everything we could do with js libs/generalizations should not be written with "obtrusive" javascript to separate client behavior from information representation even a bit more.

Changed 3 years ago by jzarate

  • description modified (diff)
  • summary changed from añadir el plugin sfJqueryReloadedPlugin to add sfJqueryReloadedPlugin plugin

r142 invoice editing fully integrated with jq_ helper

PD: totally agree with carlos

Changed 3 years ago by jzarate

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.