[WB 20] Tab Control / iFrame problem

Startbeitrag von Sascha77 am 27.12.2015 13:06

Hi Guys,

i need some help on WebDev.

I have a Tab Control with 10 tabs and each tab has an iFrame control.
In the beginning all tabs are invisible. The idea is now to open ( make it visible) a tab and assign a Page to the Tab.iFrame

now i am facing a strange behavior:
Assigning a page to the iframe works fine and controlling visibility of an Tab Pane works also.Doing both in one button call does not work. No Error, code gets executed as normal just nothing happens..

Any ideas?

Thanks
Sascha


-----------------------------
assign page to iFrame - works
-----------------------------
//Browser
ChangeTarget(iFRM_1..Alias)

//Server
PageDisplay(Page_Usr_Overview)
--------------------------------------------
Make a Tab visible via button call - works
--------------------------------------------
//Server
MainTab[1]..visible = true
MainTab = 1
-------------------------------------------
Doing both in one call - does not work
-------------------------------------------
//Browser
ChangeTarget(iFRM_1..Alias)

//Server
MainTab[1]..visible = true
MainTab = 1

PageDisplay(Page_Usr_Overview)

Antworten:

Hi Sacha,

so, you are first changing the page_usr_overview, then redisplaying it in its initial state, if I read correctly your code... maybe it would work with a pagerefresh, or no page function, and just having code marked as ajax

Best regards

von Fabrice Harari - am 27.12.2015 13:36
HI Fabrice,

unfortunately, i can´t get it to work. As soon as I have the changeTarget() in the browser code, changing the tab visbility does not work anymore. At least it will not refresh the Page, even a PageRefresh does not work. The funny thing now is, when i am hitting a newly created button (without any customization) the tab would become visibile... It looks like it does a refresh of the page.

Cheers,
Sascha

von Sascha77 - am 28.12.2015 04:41
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.