Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Problema con form_remote_tag
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Serma  
View profile   Translate to Translated (View Original)
 More options Nov 4, 7:29 pm
From: Serma <serm...@gmail.com>
Date: Wed, 4 Nov 2009 16:29:05 -0800 (PST)
Local: Wed, Nov 4 2009 7:29 pm
Subject: Problema con form_remote_tag
Hola a todos,

hace tiempo desarrollé una práctica para la universidad usando Kumbia
0.47 y ahora quiero retomar su uso para varias web que quiero
desarrollar. Al volver a tomar contacto, he visto la existencia de la
versión 1.0 y no he podido por menos que probarla.

El caso que he querido realizar unos cuantos pequeños formularios
encadenados (paso a paso) y he querido realizarlo con AJAX mediante la
etiqueta form_remote_tag. El problema es que me escribe mal el valor
de action (me duplica toda la ruta de directorios). Os copio el
ejemplo:

Al escribir la etiqueta: <? echo form_remote_tag('pages/questionary/
page01','update: info')?>

me genera el codigo fuente siguiente:

<form onsubmit="return ajaxRemoteForm(this, "info", { });"
method="post" action="/Workspace/Encuestas/WebContent//Workspace/
Encuestas/WebContent/pages/questionary/page01/">

Investigando un poco el código del core, he encontrado esto en core/
extension/helper/tags.php

function form_remote_tag($data){
        $params = is_array($data) ? $data : Util::getParams(func_get_args());

        if(!isset($params['action'])||!$params['action']) {
                $params['action'] = URL_PATH . $params[0];
        }else{
                $params['action'] = URL_PATH . $params['action'];
        }

mientras que para la etiqueta form_tag (que debería funcionar
parecido), está lo siguiente:

function form_tag($action){
        $params = is_array($action) ? $action : Util::getParams(func_get_args
());
        if(!isset($params['action']) && isset($params[0])) {
                $params['action'] = $params[0];
        }
        if(isset($params['action'])) {
                $params['action'] = get_kumbia_url("{$params['action']}");
        }

he probado a eliminar "URL_PATH" en la funcion de "form_remote_tag" y
me funciona. No se si es una solución para salir del paso, o
efectivamente consiste en un bug de la version 1.0

Muchas gracias por vuestra atención y un saludo.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Deivinson Tejeda  
View profile   Translate to Translated (View Original)
 More options Nov 4, 9:10 pm
From: Deivinson Tejeda <deivinsontej...@kumbiaphp.com>
Date: Wed, 4 Nov 2009 21:40:46 -0430
Local: Wed, Nov 4 2009 9:10 pm
Subject: Re: [KumbiaPHP 5917] Problema con form_remote_tag

Eso ya se ha hablado, incluso esta en esta misma lista de correo...

http://groups.google.es/group/kumbia/browse_thread/thread/69eb18311b6...

El 4 de noviembre de 2009 19:59, Serma <serm...@gmail.com> escribió:

--
Atte...

Deivinson Tejeda (CaChi)
http://cachi.temiga.org/
http://www.kumbiaphp.com


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Serma  
View profile   Translate to Translated (View Original)
 More options Nov 5, 4:50 am
From: Serma <serm...@gmail.com>
Date: Thu, 5 Nov 2009 01:50:16 -0800 (PST)
Local: Thurs, Nov 5 2009 4:50 am
Subject: Re: Problema con form_remote_tag
Perdonad, es mi primer día aquí y no conseguí encontrarlo...

On 5 nov, 03:10, Deivinson Tejeda <deivinsontej...@kumbiaphp.com>
wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google