drupal-6


Drupal autocomplete fails to pull out data as a subdomain


I managed to pull out data using autocomplete at my local (http://mysite.dev/swan/autocomplete). The json data is displayed.
But when I applied the same module at live (now a subdomain: http://test.mysite.com/swan/autocomplete with different drupal installs), this autocomplete fails to pull out data. No json data is displayed.
Do you have any idea if this is related to cross domain issue, or any possible cause I might not be aware of?
This is the callback:
/**
* Callback to allow autocomplete of organisation profile text fields.
*/
function swan_autocomplete($string) {
$matches = array();
$result = db_query("SELECT nid, title FROM {node} WHERE status = 1 AND type='organisation' AND title LIKE LOWER ('%s%%')", $string, 0, 40);
while ($obj = db_fetch_object($result)) {
$title = check_plain($obj->title);
//$matches[$obj->nid] = $title;
$matches[$title] = $title;
}
//drupal_json($matches); // fails at safari for first timers
print drupal_to_js($matches);
exit();
}
Any hint would be very much appreciated.
Thanks
It's the conflict with password_policy.module. Other similar modules just do the same blocking. These modules stop any autocomplete query.

Related Links

How to unpublish a node programatically in Drupal 6?
How to render page elements from hook_form_alter() drupal 6?
In drupal read css file and add it's content as inline in “page.tpl.php”
Drupal 6: Adding sub menu items on a menu item?
Why am I getting a page not found error after creating a new menu item?
Drupal Module help required
Disable a module from a specific view - Drupal 6
switch chef-client user during bootstrap
Fix Drupal 6 menu urls on test server
Drupal 6 - is node_submit() needed when saving node?
Apache Solr : Filter results by minimum relevancy in drupal 6.x
How can I add the tracking number to the message the users receive?
How can I get the term id after using taxonomy_save_term?
Why can't my user access a certain page?
jqModal popup does not opens
Access alias of a node programatically using Drupal 6

Categories

HOME
maven
wso2-am
clips
netsuite
mediawiki
path-finding
xmpp
jpeg
survey
callback
windows-server
flyway4
append
facebook-messenger-bot
slurm
export-to-csv
postgres-xl
openrefine
http-status-code-504
normalizr
cloudhub
autosys
sqlcipher
cas
wpfdatagrid
intel-pin
user-interaction
virtualdub
fgetcsv
buck
skia
socialengine
nameservers
functor
textmate
xmlreader
gammu
y86
disassembling
scaffold
android-fingerprint-api
elasticsearch-plugin
sfdc
pdf-reactor
powershell-dsc
spring-security-kerberos
flashair
fault
clean-architecture
datastax-startup
dotnetzip
mu
git-diff
diagnostics
snmptrapd
boost-preprocessor
cudafy.net
vtigercrm
watchconnectivity
word-vba-mac
trash
disque
hover-over
whois
unity-networking
xna-4.0
google-places
security-testing
rgeo
proj4js
truevault
tween
asp.net-dynamic-data
file-copying
cctv
java-metro-framework
code-access-security
castle
android-radiobutton
phpthumb
bulkloader
excel-2003
padarn
django-nonrel
limejs
drools-planner
specification-pattern
newtonscript
deobfuscation
javax.script
table-footer
ecl
datareader
adrotator
ubuntu-9.04

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App