[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"?>





Dados Gerais

… more 4 tabs …







2. Then what does not work:

<?xml version="1.0"?>





Dados Gerais

… more 4 tabs …







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 ?

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.

 
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!

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.

1207648029.zip (58.9 KB)



Perfect!

Have make the implementation of the script using the instructions below:

Hide second tab
Show second tab

The instruction “parent” was the key!
It was only Javascript…

It worked perfectly, thank you for the help!
A big hug!