Buy Now
Sign in

json with div gbs3 in respons

webcrea , February 01 2017
Answered
webcrea
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
Christophe
http://www.webcrea.fr
admin
Hi Christophe

Please try this url instead:

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


Best regards,
Max
Max
If your main question got answered then please mark the answer using the button!​

Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
webcrea
Yes you're the best
Christophe
http://www.webcrea.fr
webcrea
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...
Christophe
http://www.webcrea.fr
GreyHead
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
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
webcrea
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
Christophe
http://www.webcrea.fr
GreyHead
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
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
webcrea
The content here is visible only for authorized users.
Christophe
http://www.webcrea.fr
GreyHead
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
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
webcrea
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
Christophe
http://www.webcrea.fr
GreyHead
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
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
webcrea
The content here is visible only for authorized users.
Christophe
http://www.webcrea.fr
GreyHead
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
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
webcrea
The content here is visible only for authorized users.
Christophe
http://www.webcrea.fr
admin
Hi,

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

Best regards
Max
If your main question got answered then please mark the answer using the button!​

Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
webcrea
Thank you very much Max
Christophe
http://www.webcrea.fr