Forum


17:39

13/04/2010

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;
}
13:06

Moderators
30/10/2007

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.
20:14

Moderators
30/10/2007

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.
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66