Telerik Forums
UI for PHP Forum
1 answer
220 views
Welcome. I have a problem with realpath (dirname (__FILE__) on IIS running PHP 5.4.
ImageBrowser.php returns the wrong path by which the file generates error and does not display the file or thumbnail.
The system CentosOS + Apache ImageBrowser.php works fine, but the client does not want to be at home in addition linux.

[08-Jul-2013 22:03:04 Europe/Warsaw] PHP Warning:  Missing argument 2 for ImageBrowser::setImageHeaders(), called in C:\IIS\8083\public\imagebrowser\ImageBrowser.php on line 238 and defined in C:\IIS\8083\public\imagebrowser\ImageBrowser.php on line 204
[08-Jul-2013 22:03:04 Europe/Warsaw] PHP Notice:  Undefined variable: type in C:\IIS\8083\public\imagebrowser\ImageBrowser.php on line 205
Paweł Kasztelan
Top achievements
Rank 2
 answered on 09 Jul 2013
2 answers
106 views
Hello Kendo UI Team,

I am using the PHP wrappers trying to get an editor (http://demos.kendoui.com/web/editor/index.html) in a grid popup edit (http://demos.kendoui.com/web/grid/editing-popup.html). Now I want to be able using the PHP wrappers since I am a hard core PHP developer.

I am getting this error in the console:
Error: Invalid template:'$("#popup_editor").text()' Generated code:'var o,e=kendo.htmlEncode;with(data){o='$("';popup_editor").text();o+=;}return o;'

I have enclosed my project below, could you please take a look and let me know how do I get editor in a grid popup edit to work.

BTW I am using my supervisor's account at work and my name is Christian.

Thank you.

Christian
Vladimir Iliev
Telerik team
 answered on 23 Apr 2013
1 answer
65 views
For the MySQL based web page and the Description field insertion and update, I’m used to clean the Description field with the following:

mysql_real_escape_string(Description)

When the Kendo editor is now used, such a clean process screws up the resulting data, and ends in incorrect data when the data is then read back from server for the hyperlinks as an example. For a hyperlink, for the original string http://www.vg.no the resulting string when read back from database becomes \"http://www.vg.no\", the original tooltip "VG sidene" becomes \"VG and the original checked option for Open link in new window becomes unchecked.

Do you have an idea about what’s going on here? How to utilize this standard cleaning mechanism mysql_real_escape_string for the editor usage?
Alex Gyoshev
Telerik team
 answered on 23 Apr 2013
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?