Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ajax]

The tag has no usage guidance.

2
votes
1answer
51 views

What are the security considerations before allowing access AJAX API to anonymous users?

We have an autocomplete-select list in one of our profiles that we want to use on a public page. I can see the call is blocked for anonymous users because of permissions on 'access AJAX API'. I'm ...
1
vote
0answers
53 views

Is it possible to return to the same contact summary page (ajax) once we have edited a contribution?

For example, when edit a one contribution in page 10 and save, return to page 10 and not to first page of contributions. Thanks.
1
vote
0answers
28 views

When filtering with data in civicrm/contact/view/case&reset=1 I get an error and no filtering

I have a problem in civicrm/contact/view/case&reset=1 when I use the date filter. I have an Italian localization with date format set to dd/mm/yyyy. I choose a date in the calendar and then I ...
1
vote
1answer
28 views

Problem with incoerent local currency in contribution

I have a problem after upgrading to civicrm 5.4.1 from 4.7 When I confirm the record of a payment for a contribution the operation goes on forever and I have to exit the page although when I enter ...
0
votes
1answer
90 views

Ajax issues on WordPress

I think the issue is that Civi is (1) not enquing the versions of jQuery that come with WordPress and (2) the code is not written for noconflict mode. ?page=CiviCRM&q=civicrm/ajax/l10n-js/en_US&...
1
vote
1answer
54 views

how to troubleshoot template/ajax/caching/otherweirdness issue re: multilingual upgrade

Thanks for the help in solving the problem! Nice to have all the ajax working properly again. Regarding the title of the question.... It seems like there's a (large?) gap between the errors I ...
5
votes
2answers
208 views

Wordpress Ajax & pictures not loading after upgrade to 5.0

I've updated from 4.7.29 to 5.0.0 The SQL update went well, but I've issues with JS/Pictures not loading. This is really blocking as for example, the "Create new contact" is not loading See ...
1
vote
3answers
67 views

https://docs.civicrm.org/dev/en/latest/framework/ajax/

I would like to open a modal with options editor inside (please see the screenshot below). I would like to call a custom JavaScript function whenever an option has been changed via that modal. By "...
0
votes
2answers
119 views

Using Civicrm_api3 in onAjax[Name] plugin function

I created a plugin which provides custom validation for civicrm forms. Part of the jQuery validation on the plugin makes an AJAX call to the plugin. The plugin calls its onAjax[Name] method. In the ...
1
vote
1answer
73 views

CiviCRM AJAX api Permissions

Background I am working on a React app for event participation management using the CiviCRM ajax API. There is a little more to this that isn't relevant. Each user has access to their own API key, ...
1
vote
0answers
34 views

How can I use the AJAX API to create a Contact Us form?

I am attempting to interact with my CiviCRM backend using the AJAX API. I created a 'contact' page in WordPress, referencing a profile I created solely to load the CiviCRM javascript into my custom ...
2
votes
2answers
79 views

How to load custom css into admin popup boxes?

Many admin functions in Civi send the user to Ajax popup boxes. Eg on the Contact screen, Membership > Add membership, Events > Add Event... and many many more through the system. What is the best ...
1
vote
1answer
163 views

Ajax error when viewing relationships under IIS and Joomla (HTTP400 - invalid syntax)

This is similar to Ajax Error when trying to view relationships tab, but the analysis is different. It is not solved by increasing the request limits - they are much higher than the GET parameter. ...
2
votes
1answer
159 views

AJAX API permissions

We are using REST urls to pull data direct from Civi reports into Excel for analysis purposes. Within Civi the users are restricted via granular ACLs to specific groups of contacts. WP role ...
1
vote
1answer
43 views

UI glitches and “Invalid Classname” error when editing summary fields via AJAX

When trying to edit fields on contact summary using AJAX hover method, the fields don't open up properly for editing (scroll bars are sometimes missing, and not enough space is revealed). On clicking ...
4
votes
1answer
174 views

After upgrade to 4.7.13, I get 500 Internal Server Error when creating new mailing

After upgrading from 4.7.11 to 4.7.13 (with Drupal 7.51), I get à 500 error (Internal Server Error) on an ajax call when attempting to create a new mailing. The screen stucks at "Initializing..." The ...
1
vote
1answer
30 views

HowTo: crmApi get rows with date between

I want to get all memberships with start date between '2016-01-01' and '2016-06-01' using crmApi(). Here's my code that's not working: angular.module('angularmemberships').config(function($...
3
votes
1answer
107 views

Tutorial for creating pages with ajax

For our CiviCRM instance, I use to create forms that allow the user to execute some specific tasks. Typically they end up on a form, they enter some values, and the postProcess function executes some ...
1
vote
3answers
165 views

AJAX error when viewing contact groups

Version 4.7.10 on Wordpress 4.6 Error when selecting Contacts->Manage Groups: DataTables warning: table id=DataTables_Table_0 - Ajax error. For more information about this error, please see http://...
2
votes
2answers
23 views

How to write unit tests for methods thsat echo instead of return (e.g., AJAX call handlers)

There are several methods in CiviCRM that just print their output directly to the buffer and then exit, because they're just sending an HTML snippet or other response for an AJAX call. For example, ...
1
vote
1answer
68 views

CiviCRM 4.7.4 breaks Ajax image upload

On Drupal 7.43 (fresh install) / CiviCRM 4.7.8 (same issue on 4.7.4) After enabling the CiviCRM module the ajax upload of a custom image field added to drupal user accounts stopped working. ...
1
vote
1answer
117 views

How can I change the fields displayed by dataTables?

I want to customize the information provided by templates that are generated via the dataTable plugin. Specifically, I want to alter the RelationshipSelector.tpl to display a contact's title and a ...
1
vote
1answer
74 views

Suppress 'Unsupported locale specified to parseStreetAddress: en_GB' message

If debugging is enabled, 'Unsupported locale specified to parseStreetAddress: en_GB' message appears in some situations (add/edit contact), which scares non-techy editors. There are some ancient ...
3
votes
3answers
97 views

Error when accessing Activities for contact (after upgrade to 4.7.2)

When a management user tries to open Activities tab for a contact he gets error message Error that I see when I try to trace it: API permission check failed for Case/getcount call; insufficient ...
3
votes
1answer
40 views

Suppress default CRM.alert in hook_postProcess

Trying to figure out an answer to this question, have tried to just disable a default CRM.alert using CRM_Core_Session::setStatus(null, false); in hook_postProcess (defined in a drupal module), but ...
3
votes
2answers
535 views

Refresh page after closing modal opened by .crm-popup outside of CiviCRM

We've a page (in Drupal) outside of CiviCRM for "editors" (mean, users with restricted permissions) to perform some civicrm tasks. From this page civicrm forms is being opened in modal frame via ....
1
vote
5answers
747 views

Ajax Error when trying to view relationships tab

Civicrm 4.7.1 Joomla 3.4.8 I'm unable to view data in the relationships tab. I get the following errors: "DataTables warning: table id=DataTables_Table_0 - Ajax error." And "DataTables warning: ...
1
vote
2answers
2k views

Ajax request blocked - mixed content error on SSL site

I'm trying to sort out a bug (edits to contacts not being saved) and the console error says: Mixed Content: The page at 'https://studentleadership.ca/wp-admin/admin.php?page=CiviCRM&q=civicrm%...
1
vote
0answers
86 views

Why do I have an error when trying to update relationship using CiviCRM API

Since this morning I'm running into something strange when using the API to update a relationship. Here is my code : CRM.api3('Relationship', 'create', { "sequential": 1, "id": 11, "...
1
vote
1answer
99 views

How do I partially hide Ajax supplied content?

I tried hiding the edit, delete, enable and disable links in contact relationships writing an extension in the hook _civicrm_alterContent and injecting jquery: $content= $content . " <script ...
3
votes
2answers
211 views

“SyntaxError: Unexpected token” error on l10n-js files

I have a Wordpress site (v4.2) and Civi 4.6.4 (although about to update). Every page on the public facing site generates a JS error (SyntaxError: Unexpected token '<') referring to wp-login.php ...
2
votes
1answer
789 views

What's the cause of this “Unexected token” JavaScript error?

Just did a fresh install of CiviCRM 4.6.5 on Drupal 7.38 and the JQuery/Ajax isn't working. I get the following 2 errors in the Chrome Developer Console: Uncaught SyntaxError: Unexpected token < ...
1
vote
1answer
194 views

AJAX problem in CiviCase - Administer Case Types

I'm getting the same effect as reported here. I'm trying to set up CiviCase, and all seems fine except when I try to Administer->CiviCase->Case Types I just get blank screen. The JavaScript console ...
1
vote
0answers
16 views

Mail Accounts form fails to submit data

I have CiviCRM (4.6.3) plus CiviHR installed on a Wordpress 4.2.2 (multisite installation). I go to Administer=>CiviMail=>Mail Accounts. Then I try to create a new account or edit the default one. I ...
2
votes
2answers
137 views

Dashboard hangs; forces apache restart

This is in planning for upgrade to J!3. I have found no workable solutions here or elsewhere on the web. CiviCRM 4.6.4 Joomla 2.5.28 MySQL 5.5.38-1~dotdeb.0 Apache 2.2.16 PHP 5.3.29-1~dotdeb.0 Debian ...
1
vote
1answer
23 views

Why is isFrontend set differently for Profile in create mode vs HTML snippet?

I had trouble with ajax Country / State dropdowns in a profile used as an HTML snippet embedded in a Joomla page. The dropdowns worked fine in the profile in create mode. I realized that the HTML ...
3
votes
2answers
146 views

activity dashlet not showing results

On the dashboard, the activity dashlet is not showing any results for me. I havent heard anyone on this system ever seeing results there. There is no ajax error, but the snippet it calls is civicrm/...
1
vote
4answers
97 views

Upgrade from 4.5.8 to 4.6.2 killed View Contact Tabs

We consult with CiviCRM powered by Drupal. Recently we upgraded one client who has CiviCRM powered by the latest Drupal 6 from 4.5.8 to 4.6.2. After the upgrade, they are unable to click between the ...
2
votes
2answers
110 views

How to use a CiviCRM generated form in an Android App

I'm programming an Android App for a company, and they use CiviCRM for subscribing to newsletters. The form is available to anyone online, but I have to add the form in an android app. On the android ...
3
votes
1answer
146 views

Can I update/requery a custom field that got changed via another field on the same page?

I created some database triggers that update a read only custom field that is displayed on the main contacts page. You change the value in another field and the db triggers update the custom field. ...
2
votes
2answers
724 views

How to insert Javascript into an inline form edit via an extension?

Normally, if I want to inject a Javascript snippet into a form, I use a hook like in an extension like this: function alternateduplicatecheck_civicrm_buildForm($formName, &$form) { if($formName ...
2
votes
2answers
83 views

Quick search icon spins forever after upgrading from 4.4 to 4.5

The upper-left quick search box and the edit-in-place for contacts spin the loading icon forever but never do anything. Looking in the browser console, there is a JavaScript error. It worked just fine ...