:: Forum >>
Refresh AW.UI.Input
obj.Refresh() updates the HTML element, but after I cannot enter text in the input field
var group1 = new AW.UI.Group;
group1.setId("groupSearch");
group1.setControlText("Search for Documents");
group1.refresh();
//insert div as a child node of the group
var newDiv = document.createElement('div');
var txtDiv = "<div class=\'SearchFormLabel\'>Title:</div>";
txtDiv += "<div id=\'editboxDocTitle\'></div>";
newDiv.innerHTML = txtDiv;
document.getElementById("groupSearch").appendChild(newDiv);
var input1 = new AW.UI.Input;
document.write(input1);
nput1.setId("editboxDocTitle");
input1.refresh();
Fanny
Thursday, March 4, 2010
If the ID asigned to the input object is the same as a previous html div, then no document.write is needed and just input1.refresh();
Sample is fine, other than that, and a missing ' i ' (1st pos ) in the line:
nput1.setId("editboxDocTitle");
Carlos
Thursday, March 4, 2010
thanks for the reply, and yes document.write is redundant
but the problem is that after i put input1.refresh(), i cannot enter text in the input field, in other words, i cannot type in the input fields
whereas document.write(input1) allows me to enter text in the input field, but the input field is not in the appropriete html div
Fanny
Friday, March 5, 2010
Friday, March 5, 2010
This topic is archived.
Back to support forum
Forum search