Forum
01:30
24/11/2009
There's a bug in the display of certain messages that truncates lines containing < and/or >.
Take the following line:
When it displays in the grid, I only see:
Prior to implementing JqGrid, I had a similar problem in PHP and was able to fix it by adding htmlspecialchars():
But I have no idea how to address that in the grid.
Can someone help?
19:56
Moderators
30/10/2007
Hello,
Thanks, will see what I can do, but what to do if the message contain
<font color='green'>Some message</font>
Do you have any recommendations? - so in order to be correct you should do a htmlspecialchars server side. Not sure if I will fix this?
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
21:21
24/11/2009
The text message should be displayed verbatim, not altered in any way - why would you?
i.e. even if the text stored in the DB is an html tag, you don't want it to be executed, thereby possibly changing the display.
I can't use htmlspecialchars, it's outputted in your grid, not in PHP.
Hope that helps clarify 🙂
21:23
Moderators
30/10/2007
Hello,
i.e. even if the text stored in the DB is an html tag, you don't want it to be executed, thereby possibly changing the display.
I'm not sure that it is the right way. We should give not ready receipt, but possibility to make solutions. I'm not sure that the change of this will make other users happy.
At end you have a chiose to resolve this using a build int htmlEncode function in jqGrid applied to the message returned from the server.
Adding so many options will make the grid complex for using, which is not our goal.
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
21:49
24/11/2009
tony said:
I'm not sure that it is the right way. We should give not ready receipt, but possibility to make solutions. I'm not sure that the change of this will make other users happy.
Perhaps we're getting confused here.
I'm talking about displaying text stored in a database table.
So the grid queries the table and says "show me rows 1-2"
These rows show up in the grid display on the page, but one of them contains an email address in the form: <user@domain.com>
Currently, the grid doesn't display it.
But it should display everything I've asked it to from the db table, shouldn't it?
Most Users Ever Online: 715
Currently Online:
41 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66