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
once again: userdata
12/07/2009
10:49
Avatar
Lotte
Member
Members
Forum Posts: 10
Member Since:
26/02/2009
sp_UserOfflineSmall Offline

Hello jgrid-friends,

i have :

php:

..

$test=”Hello”;

….

echo “<userdata>”.$test.” </userdata>”;

…..

in my grid I have:

loadComplete:function(){var hinweis = $('#kundenstamm_ed').getGridParam('userdata'); alert(hinweis);

I get (in alert) “null

when I use: loadComplete:function(){var hinweis = $('#kundenstamm_ed').getGridParam('userData'); alert(hinweis);

i get (in alert) “[object Object]“

What is the difference and what is the best solution for getting  my text as a serverresponce into the alert-message?

Thank you Lotte

13/07/2009
06:39
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello Lotte,

My simple answer is: Again refer to the docs

http://www.secondpersonplural......16ksnu.htm

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.

09/09/2009
21:55
Avatar
Tripp
Guest
Guests

Tony, I have seen both his posts and both replies.

Your “simple” answer in the docs does not work. I too get the same error.

Did you even read his post?

He is using “getGridParam('userData');” as defined in the docs….

and getting “[object Object]” – not the value.

How does one get a footerData value (or userData value) into a variable ?

Thanks

Tripp

10/09/2009
04:25
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Of course it is a object. You should know the name in order to obtain the value

Example:

echo “<userdata name='myname'>This is myname</userdata>”;

echo “<userdata name='username'>This is user name</userdata>”;

JS

var hinweis = $('#kundenstamm_ed').getGridParam('userData');

alert(hinweis.myname) - > This is myname

alert(hinweis.username) - > This is user name

Did you see the diffrence?

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.

10/09/2009
12:25
Avatar
Tripp
Guest
Guests

That works

Thanks for the reply.

Tripp

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
47 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