hi,
I have a code where a value in one of a table cell needs to be populated on a command button click event.
Scenario:
There is a main window having multiple <DIV>s In one of the Div there is a table havind ID on a concerned cell (initially blank). The div also has a command button.
Now once the button is cliked, a popup window should open and the concerned cell (present in the main window) should be populated with a value.
code to write the text in the parent window cell:
[code=javascript]
document.getEle mentById('Quest CostofCapital') .innerText = <%=TempCostofCa pital%>[/code]
the variable TempCostofCapit al has a proper value. I have verified thru alert().
This code works fine in IE but not in FireFox. i.e it populates the cell in IE bt leave the same in FireFox without any error.
Kindly provide me the solution.
prawasini
I have a code where a value in one of a table cell needs to be populated on a command button click event.
Scenario:
There is a main window having multiple <DIV>s In one of the Div there is a table havind ID on a concerned cell (initially blank). The div also has a command button.
Now once the button is cliked, a popup window should open and the concerned cell (present in the main window) should be populated with a value.
code to write the text in the parent window cell:
[code=javascript]
document.getEle mentById('Quest CostofCapital') .innerText = <%=TempCostofCa pital%>[/code]
the variable TempCostofCapit al has a proper value. I have verified thru alert().
This code works fine in IE but not in FireFox. i.e it populates the cell in IE bt leave the same in FireFox without any error.
Kindly provide me the solution.
prawasini
Comment