Hi all,
I’m currently using Suite 3.5 with very good results and I wanted to upgrade to 3.6.
Besides minor problems with form sizing, my combos with filtering aren’t working any more…
There doesn’t seem to be an upgrade for the PHP Connector…
Is this a known problem and you’re working on a new Connector or am I missing something?
Can someone suggest an idea to why this is happening?
Thanks a lot!
Marco
Little update: I’m getting this error now:Error type: LoadXML
Description: Incorrect XML
Hope this explains a bit more…
Thanks again!
Marco
Hello,
3.6 combo works with Connector.
Please check you server-side script. Possibly paths to connector libraries are incorrect.
Hi Alexandra,
sorry for my delay in thanking you!
Since you confirmed that it should work just as before, I tried to further investigate using Firebug.
In effect the data is being returned just fine, but still the above error pops up and the combo remains empty…!! I see only the letters that I type but no options are shown.
Could you please suggest what could be wrong?
Thanks!
Marco
Just to be sure - please try to update connector’s files with attached ones ( latest version )
connector_code_latest.zip (70 KB)
Hi, thanks for your reply!
Unfortunately, even with all the updated files you sent me, the same error keeps coming out every time I type a character in the combo.
Could you please tell me if this initialization is correct?var z2=myForm.getCombo("commessa");
z2.enableFilteringMode("between","combo_commessa_complete.php",true);
Like I said in above post, the data that I see returning seems just fine… for some reason, they are NOT being inserted in the combo options…
I have two other combos in my form and they get the data just fine… the only difference is that the data is only a few options and I use the connector right from the form defiition with the parameter “connector:”. In these combos I see a ligth blue background on the options and an orange highlight bar on the selected option… for these reason, I assume that I included all the right headers for the new 3.6 combo.
I hope I have been clear enough in my reasoning…
Please send me some more comments on this…
Thanks again,
Marco
The code is fine.
Check the response from the server side which combo_commessa_complete.php generates
You can try to open the php script directly in browser - it is possible that there is some problem with xml generation
- there are newlines|whitespaces before <?xml tag
- data contains non utf-8 characters ( xml must have correct encoding in such case )
If xml has problems, during direct opening of php script in a browser - detailed error message will be shown.
I learned someting new…
I opened the php file in my browser and I see the data that should be loading in the combo. I see the “clean data” only… What I mean is that I don’t see the tags that I see in firebug.
It does not give me any errors at all…
Does this suggest any thing to you?
Thanks again!
Marco
You can try to load it as some.php?mask=abc where “abc” is the text for filtering
Anyway if it loads correctly without parameters, it must be fine with parameters as well.
Maybe you can provide the online demo link, where problem can be checked ? ( you can use PM to send the link )
Hello Stanislav,
sorry for my delay in thanking you for your help…
At the moment, I don’t have the possibility of sending you a link… but I’m working on it…
In the meantime, may I ask you if in ver. 3.6 you need a newer version of PHP? This would explain all the troubles I’m havng with XML in using version 3.6
I’m running PHP 5.3 using XAMPP 1.8.1.
I was about to update to PHP 5.5 but since I’m running WinXP I’d only be able to update to 5.4.
Am I on the right track? Do you think this could resolve the problem?? What’s the version of PHP needed in 3.6?
Thanks a lot for your opinion!
Marco
Hello,
Connnector works with 5.3 PHP.
You may get details about error using the enable_log method
docs.dhtmlx.com/doku.php?id=dhtm … tor:errors
z2.enableFilteringMode(“between”,“combo_commessa_complete.php”,true);
By default Connector returns options that start with typed mask. “between” mode should be customized in connector code. However, this issue doesn’t relate “incorrect xml” error.