Hello,
I know how to customize the Image Editor but I have another problem with it.
I added a button to the Image Editor that open a popup window using the following Javascript code:
in the Directories.aspx page the following Javascript function:
"NewImageName" is the Id of the Textbox that display the name of the new image.
this code is working but in this situation it didn't work.
I need to know how to get the NewImageName textbox.
Thank you.
I know how to customize the Image Editor but I have another problem with it.
I added a button to the Image Editor that open a popup window using the following Javascript code:
function popWin() { |
window.open("Directories.aspx", "", "width=300,height=300,location=1,status=1,scrollbars=1"); |
return false; |
} |
function onNodeClicking(sender, args) |
{ |
var node = args.get_node(); // You get the root node |
var s = node.get_text(); // text of the root node |
var currentObject = node.get_parent(); // here node.get_parent() returns treeview |
while (currentObject != null) { |
if (currentObject.get_parent() != null) // here get_parent() will return null for treeview, thus if condition |
//is not satisfied |
{ |
s = currentObject.get_text() + "/" + s; // not entered |
} |
currentObject = currentObject.get_parent(); // returns null which takes us out of while loop |
} |
var tbPath = s; // returns the root node text |
window.opener.parent.Form1['NewImageName'].value = tbPath; |
window.close(); |
} |
this code is working but in this situation it didn't work.
I need to know how to get the NewImageName textbox.
Thank you.