FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


problem with AJAX display





bukaida
I have a auto-suggest form implemented in AJAX using scriptaculous.js v1.7.0. Now the auto suggest option is perfectly viewable in IE7- IE8. However it is not showing the auto-suggest option in Mozila/Opera(even in recent versions).

The script as loaded

If you view the source in Mozila/Opera, it shows that it has brought the data from database but cannot show/list them in the text box.

JUST PRESS A or B and see.

Please help.
sonam
I got error in Chrome:
Uncaught TypeError: Cannot read property 'name' of null in line 59 in control.js

Hope this help little bit.

Sonam
jmraker
In firefox it says that this.element is null on line 59 of control.js
In the javascript debugger (with the firebug extension) "this.element" has a null value, while the function's parameter "element" is a string with a value of "id"
Quote:
this.options.paramName = this.options.paramName || this.element.name;


So the 2nd half of that statement is wrong in Firefox and Chrome. The parameter name it needs could be under another variable name.
bukaida
I found that some of the names in the record has double space between them. Can that be the problem?
sonam
Try to trim your records with php and see what happened.

Sonam
bukaida
How can I trim the double space in between in UTF-8 script ? Neither the normal trim() nor the usual regular expression will do(as the script has complex conjunct characters). Any help Sonam?
sonam
You can try to change double space in string with str_replace.

http://php.net/manual/en/function.str-replace.php

Sonam
Related topics
AJAX tutorial [2nd part now updated]
windows - low registry space
LG Monitor Problem
[OFFICIAL] Favourite/Best CMS
why monitor wont turn off after shut down??
jQuery and Ajax problem
my website won't display... problem with index.php
AJAX silent bug ?!?
Javascript menu and ajax matters
How can I get data from a list using JS? (AJAX question)
signup to my site and get $frih
AJAX Star Rater problem
Ubuntu 11.04
Using an if statement inside a string variable
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.