:: Forum >> Version 2 >>

AJAX: Grids on tabs

Hey,
I was trying to get grids onto tabs. The grids and the tabs work with AJAX and have different css and js sources. There is one forum already on this but I didnt really understand that. I am kinda having the same problem. When I click on the tab, the grid opens up in a new window or just doesnt open up. (btw, I am not using the source provided by activewidgets) Any suggestions? Also, what does this line mean:
div.innerHTML = obj
This was a possible solution that was suggested to someone else but I dont know how to use that.
Thanks
Pratik
Monday, June 26, 2006
ok, ill explain the line
div.innerHTML obj
 
Look my code down:
<html>
<
body>
<
table id='mainTable'>
<
tr>
   <
td width='40%'>Login:</td>
    <
td width="60%'><span id='loginField'></td>
</body>
</html>
 
U want replace the span id 'loginField' with AW.UI.Input, so u need do this.
<script>
var 
input = new AW.UI.Input;
input.setId("loginField");
input.setControlText("Fill");
document.getElementById("loginField").innerHTML input;
</
script>
 
Hope this help.
Paulo Cesar Silva Reis (PC from Brazil).
Monday, June 26, 2006
Thanks.
Pratik
Monday, June 26, 2006
I use innerHTML in my code to replace the content of a DIV associated with the selection of a tab, switching it's content from a AW.UI.INPUT to a AW.UI.COMBO or some combination of then....
But i think i'm having memory and detaching events problem... sometimes IE give me an error in the detachevent aw function where element is "undefined" and the aw.system.control code for detaching event functions is fired only on window unloading .. I think a "detachevent" public method is missing here !
Alberto Amigoni
Wednesday, June 28, 2006



This topic is archived.

Back to support forum

Forum search