logo
 
Thread
# 25:
Multiple Pages With "hideallshowone" In Mobile Application

start at begin start at end
Oldest Posts In Thread Are Shown First
Scroll down to view posts



Koen

I have been playing around with the code for HideAllShowOne using it in a mobile environment. Since I really like your code, I wanted to use it on multiple pages within my mobile application and there is my problem. When using more "instances" of your code, the code doesn't work properly anymore. Instead of showing the div and replacing with the next one when you press a button, it appends the text to the previous div. Is there a way to use multiple copies of the code on a mobile site? I'm not a real java-expert so I could really use your help and suggestions. I hope your understand my problem. Is there a way to make each set of code "unique", I think this might solve the problem.

For now I've changed the function names each time I use another set of code, this seems to work until now.

Thanks a lot.

Greetings from the Netherlands, Koen Schrauwen.




info button




avatar
WillBontrager
profile web

Hello Koen,

Willmaster.com has a number of pages about showing and hiding divs and I am uncertain of the URL which code you are using.

The Managing Several Show/Hide Divs article may help.

Will




info button


Site Owners Talk forum

Put the button on your web site and link to this forum. Here is the code: