Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Display bug (big problem)
24/02/2010
01:30
Avatar
cdukes
Member
Members
Forum Posts: 13
Member Since:
24/11/2009
sp_UserOfflineSmall Offline

There's a bug in the display of certain messages that truncates lines containing < and/or >.

Take the following line:

%SYS-5-CONFIG_I: Configured from 172.16.0.123 by Fred Flinstone <fred@flinstone.com>

When it displays in the grid, I only see:

%SYS-5-CONFIG_I: Configured from 172.16.0.123 by Fred Flinstone

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?

24/02/2010
19:56
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

24/02/2010
21:21
Avatar
cdukes
Member
Members
Forum Posts: 13
Member Since:
24/11/2009
sp_UserOfflineSmall Offline

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 🙂

26/02/2010
21:23
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

26/02/2010
21:49
Avatar
cdukes
Member
Members
Forum Posts: 13
Member Since:
24/11/2009
sp_UserOfflineSmall Offline

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?

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information