zemorango Posted November 15, 2018 Share Posted November 15, 2018 Hi Guys I'm using a urlframe to load data to an jqwidgets jqgrid. I'm using jqgrid because it have more filters options. the id of the jqgrid is "grid" Now I want to change values in the grid using unisession.addJs, I'm trying to change the values of a cell, like this ; unisession.AddJS('$("#grid").jqxGrid(''setcellvalue'', myrow , ''mycolumn'', ''mynewvalue'');' ); and I get this error : Invalid Selector - #grid! Please, check whether the used ID or CSS Class name is correct. Any idears or work arrounds? Quote Link to comment Share on other sites More sharing options...
delagoutte Posted November 15, 2018 Share Posted November 15, 2018 if you use your webbrowser inpesctor, your grid have the good Id ? Quote Link to comment Share on other sites More sharing options...
zemorango Posted November 15, 2018 Author Share Posted November 15, 2018 1 hour ago, delagoutte said: if you use your webbrowser inpesctor, your grid have the good Id ? Hi Delagoutte, yes I se the good Id, My code is this The Result of the grid in Unigui URLFrame is this, so it works great. In the webbrowser inspector I see the ID "grid" So maybe this is a restriction of the URLFrame, I could use the HTMLFrame but its not working correctly because some there is some incompatibilities with the jquery version used by the jqrid, I works in the first load, but if a make a new query then I get errors, so I need to use UrlFrames. Quote Link to comment Share on other sites More sharing options...
delagoutte Posted November 16, 2018 Share Posted November 16, 2018 yes, i think it is a protection/restriction problem. i had this problem, for this, i implemented a communication "protocol" between unigui application and iframe based on postmessage. i use this sample : https://gist.github.com/pbojinov/8965299 it is simple to adapt in unigu but if you want i could retreive the sample that i made. Quote Link to comment Share on other sites More sharing options...
zemorango Posted November 20, 2018 Author Share Posted November 20, 2018 On 11/16/2018 at 9:52 AM, delagoutte said: yes, i think it is a protection/restriction problem. i had this problem, for this, i implemented a communication "protocol" between unigui application and iframe based on postmessage. i use this sample : https://gist.github.com/pbojinov/8965299 it is simple to adapt in unigu but if you want i could retreive the sample that i made. Hi delagoutte, fantastic, could you please give me the sample that you made? Quote Link to comment Share on other sites More sharing options...
delagoutte Posted November 21, 2018 Share Posted November 21, 2018 it is attach to this message framecommunication.zip in directory \exe\files\ there is the html frame page 1 Quote Link to comment Share on other sites More sharing options...
zemorango Posted November 23, 2018 Author Share Posted November 23, 2018 On 11/21/2018 at 1:50 PM, delagoutte said: it is attach to this message framecommunication.zip in directory \exe\files\ there is the html frame page Fantastic sharing delagoutte, thank you so mush Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.