Categories | Question details Back To List | ||||||||
[Tabbar] Loading XML Error with Ajax --------------------------- Microsoft Internet Explorer --------------------------- Error type: LoadXML Description: Incorrect XML --------------------------- OK --------------------------- I'm getting this error when I'm changing the XML structed. Below the 2 files. 1. First what works: <?xml version="1.0"?> <tabbar hrefmode="iframe"> <row> <tab id="b1" width='83px' selected="1" href="DadosGeraisIndicador.aspx">Dados Gerais</tab> ... more 4 tabs ... </row> </tabbar> 2. Then what does not work: <?xml version="1.0"?> <tabbar hrefmode="ajax"> <row> <tab id="b1" width='83px' selected="1" href="DadosGeraisIndicador.aspx">Dados Gerais</tab> ... more 4 tabs ... </row> </tabbar> I just moved the hrefmode from iframe to ajax. I tried also to change ajax-html and not worked ... If I switch to ajax-html new works ... I moved to Ajax because I want to control: -- The change of tabs and prevent the user left of the tab without knowing who may lose content; -- Enable and disable tabs; -- Hide and display tabs; Only that I am not achieving with the option iframe. Updated the tabbar to version 1.2 and still nothing. It is necessary to really change Ajax or I can use the iframe hrefmode ? Answer posted by Support on Apr 07, 2008 05:14 The main difference between ajax and ajax-html mode in response format For ajax mode it must be XML is specific format , which contains value of tab as value of tag In ajax-html mode response may contain any structure, it will be inserted in tab as is. >>I moved to Ajax because I want to control: All this features can be used with ajax-html mode >>It is necessary to really change Ajax or I can use the iframe hrefmode ? You can enable|disable, hide|show tabs in iframe mode as well. The tabbar provides setOnSelectHandler which allows to control when active tab changed, so you can allow|prevent current tab selection as well. Answer posted by Peneluc on Apr 07, 2008 12:22 Thanks for your response,
OK, but the call for these functions are not working.
I put the calls to disable and hide, but the browser is an error of "object does not support". How do I disable or hide the tabs?
We follow the example of the site, but is not finding the call. There is the possibility to make calls directly to the object on the page?
Thank you! Answer posted by Support on Apr 08, 2008 02:34 >>There is the possibility to make calls directly to the object on the page? If you calling functionality from master page you may reference object by pointer received during tabbar creation, if you calling code from iframe you need to use "parent." prefix Please check attached sample. Attachments (1)
Answer posted by Peneluc on Apr 08, 2008 05:18
|