Forums

json with div gbs3 in respons

webcrea 01 Feb, 2017
Hello,
I followed this topic
https://www.chronoengine.com/forums/posts/f2/t95894.html

the form theme is on "none" in Style panel

but always have the div in response <div class="gbs3">...</div>

the url called via js
index.php?option=com_chronoforms5&chronoform=users-edit&event=test&tmpl=component&format=raw

thanks
Max_admin 01 Feb, 2017
1 Likes
Hi Christophe

Please try this url instead:

index.php?option=com_chronoforms5&chronoform=users-edit&event=test&tvout=ajax


Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
webcrea 01 Feb, 2017
Yes you're the best
webcrea 14 Dec, 2017
hi,

now with tvout=ajax

<div class="semanticui-body G2-joomla chronoforms index">
{"reponse":"1"}
</div>

how to delete this f*** div?

URGENT please Max...
GreyHead 14 Dec, 2017
Hi Christophe,

The URL there refers to CFv5 but the 'semantic UI' code to CFv6 - which are you using here?

Is the div added in the Ajax response or on display after the response is received?

Bob
webcrea 14 Dec, 2017
hi Bob,

CF6, CF5 is not installed

in ajax response the full request is
index.php?option=com_chronoforms6&view=form&chronoform=utilisateurs&event=verif&code_client=90051000&code_postal=21000&tvout=ajax

where event=verif is a custom code display json_encode

Thanks
Regards
GreyHead 14 Dec, 2017
Hi Christophe,

Thank you, what exactly is returned by the Ajax call? Can you see that in the web browser tools? Or can you post a link so we can take a look?

Bob
webcrea 14 Dec, 2017

This is private content

GreyHead 14 Dec, 2017
Hi Christophe,

If I go to the form and complete the Code Client and Code Postale then the Ajax function verif() is run but returns an error as there is no form name in the URL /widex5/index.php?option=com_chronoforms6&view=form&Itemid=340&code_client=112346&code_postal=29838&tvout=ajax

What is returned is an error response {"error":"Error, form does not exist."} - but there is no wrapping div included.

Bob
webcrea 14 Dec, 2017
Bob,

Yes because there is this f*** div around json reply, you can see it via F12 network

And, if you run the ajax call you can see the div

Thanks for your help
GreyHead 14 Dec, 2017
Hi Christophe,

I see no div . . . I'm looking with F12 Network, but that may be because the form name and the event are missing from the Ajax URL.

Bob
webcrea 14 Dec, 2017

This is private content

GreyHead 14 Dec, 2017
Hi Christophe,

Yes but that isn't testing the response that is sent back to the form from the verif() function - what happens if you correct the URL there?

Bob
webcrea 14 Dec, 2017

This is private content

Max_admin 14 Dec, 2017
Answer
Hi,

In v6 you need to use tvout=view in the url instead of tvout=ajax

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.