including Active Widgets objects in Ajax response.
Can anyone tell me what i need to do.
many thanks...oh, and sorry for the stupid question....
if i do this it seems to overwrite the whole page - not put the content inside the target tag (a <div> in this case).
I have read elsewhere that document.write causes problems when included as part of an ajax response so maybe that is the problem.
obj.setItemText(['Home', 'Favorites', 'Font size', 'Search']);
obj.setItemImage(['home', 'favorites', 'fontsize', 'search']);
....i guess that means that active widgets cannot be included in any ajax response.
var names = ["Start", "Another page", "The last page"];
var values = ["page0.htm", "page2.htm", "page3.htm"];
var tabs = new AW.UI.Tabs;
tabs.setItemValue(values); // store page URLs in the 'value' property.
and lets say i want to put this tab object inside a table cell with an id of 'theTabs' - what should i do in my Ajax 'OnSuccess' event to achieve this ?
document.getElementById("myTabsParent").innerHTML = tabs;
you can insert a <span> into your html markup with the same id as your AW object and just call tabs.refresh();
I am not even doing creating AW widgets with AJAX response , I am just trying to create AW widgets after the page is loaded.
Even after refreshing every AW widget, I don't see the grid/buttons.
I just the text boxes and labels only
This topic is archived.
Back to support forum
Version 2Looking for AW 2.6 ?
The old site is here.