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
Option values does not apear in custom_element function
15/04/2010
17:39
Avatar
Tyniuz
Member
Members
Forum Posts: 10
Member Since:
13/04/2010
sp_UserOfflineSmall Offline

Hi !

There is some problems with calling custom_element function. Options argument is empty. But after object creation it have this property with correct value. How to get this parameter?

...editoptions:{custom_element: image_element, custom_value:image_element_val,url:'some url'}...

function image_element(value, options){
  alert(print_r(options));
  var el = document.createElement("img");
  el.src = value;
  return el;
}

19/04/2010
13:06
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

What do print_r function?

I'd rather will use FireBug and will do it like this

function image_element(value, options){
  console.log(options);

....

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.

19/04/2010
14:54
Avatar
Tyniuz
Member
Members
Forum Posts: 10
Member Since:
13/04/2010
sp_UserOfflineSmall Offline

So, print_r is analog to php print_r, but it is not depend what i call to display variable content, it just come empty. If it was a object or array  - JS display that is something not empty.

Best regards, Tyniuz.

25/04/2010
20:14
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

In which editing module is this?

The custom_element is called only once, so I wonder how you determine that this is called twice or more.

I checked all editing modules and it seems that we pass correct all the options - also in this case we speak about editoptions extended with some other values.

I just add console.log onto the demo whre we have such example and evrething seems to ok.

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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