а

Call function from window not working anymore in latest versio chrome and firefox


#1

in my webpage I have a form with button which open new window dhxWins = new dhtmlXWindows();
there is a function in parent to fill some input in the forms, which the value passed from the window. previously working properly in all browsers. but now only working on Internet Explorer and Ms.Edge, in Firefox and Chrome
open new tab instead calling the function. please help Video_2019-08-09_102841_edit.wmv (334.4 KB)


#2

Could you please, provide a complete demo or share a demo link, where the problem can be reproduced locally.


#3

thanks for your answer. the problem has been solved. javascript function couldn’t just be like : function selectPosition(name){} but should use this format : window.selectPosition = function(name){}

also change call function in the grid table link from
[CDATA[".$row[“value”]."^javascript:selectPosition(".$row[“value”].")]]
to :
[CDATA[<a onClick=“javascript:selectPosition(’”.$value."’);">".$row[“value”]."