|
|
Welcome to the Invelos forums. Please read the forum
rules before posting.
Read access to our public forums is open to everyone. To post messages, a free
registration is required.
If you have an Invelos account, sign in to post.
|
|
|
|
Invelos Forums->DVD Profiler: Layouts and Reports |
Page:
1 Previous Next
|
Conditional HTML Windows |
|
|
|
Author |
Message |
Registered: March 15, 2007 | Reputation: | Posts: 5,459 |
| Posted: | | | | Does anyone know if it's possible to set it so that an HTML window is displayed only if certain conditions are met within a profile? |
| Registered: March 13, 2007 | Reputation: | Posts: 922 |
| Posted: | | | | Depends on what conditions you choose. But you can check the header vars with JavaScript and do a redirection with "window.location.href". But the window would always be there... | | | Deutsches DVD Profiler Forum: www.dvdprofiler-forum.de |
| Registered: March 15, 2007 | Reputation: | Posts: 5,459 |
| Posted: | | | | Quoting SH84: Quote:
But the window would always be there... Cheers, that's what I was worried about. Maybe I should ask that as a feature request... |
| Registered: March 13, 2007 | Posts: 646 |
| Posted: | | | | Unfortunately, I don't think it's possible, but I might be wrong! Who knows, maybe Ken will haxxor up some code to show/hide the HTML window at your control. I am curious as to what idea you've got brewing there, northbloke. Please, do tell |
| Registered: March 15, 2007 | Reputation: | Posts: 5,459 |
| Posted: | | | | Quoting xyrano: Quote: Unfortunately, I don't think it's possible, but I might be wrong! Who knows, maybe Ken will haxxor up some code to show/hide the HTML window at your control. I am curious as to what idea you've got brewing there, northbloke. Please, do tell LOL - it wasn't much at all really. I've just loaded up your episode guide window and wondered "wouldn't it be good if the tag just didn't show if there wasn't one?" I'm sure you've already had the same idea in the past! |
| Registered: March 16, 2007 | Posts: 68 |
| Posted: | | | | This would be a great idea! That way i could see the "Overview" when there were no EPG available. Should this get posted in the Feature Requests forum to bring it to Ken's attention or will he find it here? |
| Registered: March 15, 2007 | Reputation: | Posts: 5,459 |
| Posted: | | | | Not sure, will go and post something now, just in case! |
| Registered: March 13, 2007 | Reputation: | Posts: 17,334 |
| Posted: | | | | I mentioned this when I first brought up doing an episode guide window. but never went as far as any type of feature request with it. | | | Pete |
| Registered: March 14, 2007 | Reputation: | Posts: 1,029 |
| Posted: | | | | I'm not sure how this is supposed to work. Sure, if I have a separate floating window for the EPG, I can either show or hide it. If it is docked and *not* tabbed, I still could show/hide it, and resize the surrounding stuff accordingly, although this would be a little too much for my personal taste. But if it is tabbed, e.g. together with Overview, Notes, and EasterEggs? The navigation becomes completely unintuitive if the window shows/hides by itself. | | | Matthias | | | Last edited: by goodguy |
| Registered: March 15, 2007 | Reputation: | Posts: 5,459 |
| Posted: | | | | Not sure how you mean Matthias, the way I see it working is, if you have the HTML window as a tab, then the tab would simply not show on those profiles you don't want it to. If you have the HTML as a full window, then the surrounding windows will stretch to fill the gap, as they do now if you move windows round. The idea is that the HTML window would show automatically for certain profiles, and not for others. So, and the reason I requested it, if you had an "episode guide" window, it would only show for those profiles it's needed for, and not show an empty window for all the other profiles. |
| Registered: March 14, 2007 | Reputation: | Posts: 1,029 |
| Posted: | | | | Quoting northbloke: Quote: the way I see it working is, if you have the HTML window as a tab, then the tab would simply not show on those profiles you don't want it to. Assume, for simplicity, Overview, Notes, and the EPG window are tabbed together: Scenario 1: I'm browsing through profiles and want to see the EPG. Profile 1 has EPG, the EPG tab is visible. Profile 2 has no EPG, the EPG tab hides, Notes tab becomes visible. Profile 3 has EPG, what will happen? Scenario 2: I'm browsing through profiles and want to see the Notes. Profile 1 has EPG, the EPG tab is visible. Profile 2 has no EPG, the EPG tab hides, Notes tab becomes visible. I was just about to click on it, because I wanted to read the notes anyway. Profile 3 has EPG, what will happen? If your answer to 3 in both cases is: a) only the EPG tab handle re-appears, but the Notes content remains visible. This clashes with scenario 1. b) the EPG content will be displayed. This clashes with scenario 2. | | | Matthias |
| Registered: March 13, 2007 | Reputation: | Posts: 3,436 |
| Posted: | | | | Quoting goodguy: Quote: a) only the EPG tab handle re-appears, but the Notes content remains visible. This clashes with scenario 1. This is what I would have "suggested", as programming the other one maybe overly and unnecessarily complicated. However, I don't understand the clash. I don't understand it, because I don't understand why the Notes become invsible... | | | Achim [諾亞信; Ya-Shin//Nuo], a German in Taiwan. Registered: May 29, 2000 (at InterVocative) |
| Registered: March 14, 2007 | Reputation: | Posts: 1,029 |
| Posted: | | | | Quoting ya_shin: Quote: because I don't understand why the Notes become invsible... The Notes tab doesn't become invisible, it becomes *visible* through Profile 2. If the EPG tab disappears, some other tab will be visible, I just choose the Notes tab for my example. But if I go to the next Profile (3), which again has an EPG tab, and if I use method (a), then I have to click the EPG tab handle on Profile 3 in order to view the EPG. This wouldn't happen, if the EPG hadn't disappeared in Profile 2. However if I use method (b), the EPG tab would pop into front even in a scenario where I want to view another tab, e.g. the Notes tab. Hope, I have explained it clear enough this this time. | | | Matthias |
| Registered: March 13, 2007 | Reputation: | Posts: 3,436 |
| Posted: | | | | I fot it now... Thanks for the patience So basically you are not saying, that t can't be done, but that there will always be a case, where this feature would create unwanted behavior? | | | Achim [諾亞信; Ya-Shin//Nuo], a German in Taiwan. Registered: May 29, 2000 (at InterVocative) |
| Registered: March 15, 2007 | Reputation: | Posts: 5,459 |
| Posted: | | | | Quoting goodguy: Quote: Quoting ya_shin:
Quote: because I don't understand why the Notes become invsible... The Notes tab doesn't become invisible, it becomes *visible* through Profile 2. If the EPG tab disappears, some other tab will be visible, I just choose the Notes tab for my example.
But if I go to the next Profile (3), which again has an EPG tab, and if I use method (a), then I have to click the EPG tab handle on Profile 3 in order to view the EPG. This wouldn't happen, if the EPG hadn't disappeared in Profile 2.
However if I use method (b), the EPG tab would pop into front even in a scenario where I want to view another tab, e.g. the Notes tab.
Hope, I have explained it clear enough this this time. I think I understand what you mean - I'll try and explain how I would see this happening. As with you, I'll assume only the Overview, Notes and EPG tabs are being used. In my explanation, I'll use the term "focus" being that is the tab currently selected (apologies if you knew the term, I didn't want to assume). Profile 1: Has no EPG. Only the Overview and Notes tabs are visible. The Notes tab has focus. Profile 2: Has an EPG. The EPG tab becomes visible at the end next to Notes, Notes keeps focus. You click on EPG to read it, so EPG gets focus. Profile 3: Has no EPG. Because the tab with focus has gone, the tab next to it gets focus, in this case Notes. If you then return to Profile 2, Notes keeps focus, but the EPG tab reappears. I hope this makes sense. So basically if you're reading a profile with an EPG and you click to a profile without one, it shows you the nearest tab instead. However, if you're reading the Notes of a profile without an EPG, and you click to a profile with one, you stay on the Notes tab, but the EPG becomes available to select if you want to. When I say I want the windows to become visible, I mean I just want them to appear on screen, available for selection, I don't mean that they would take focus away from whichever window you're reading on the last profile. Edit: obviously if you were reading the EPG in one profile and you clicked to another profile with an EPG, the EPG tab would keep focus in that case. Edit (again): I suppose if you wanted so that the condition could be written in such a way that you can choose which tab is displayed if the EPG has focus and disappears. | | | Last edited: by northbloke |
| Registered: March 14, 2007 | Reputation: | Posts: 1,029 |
| Posted: | | | | Thanks, northbloke. Your description matches method (a) in my example, which is the least intrusive of both. But as I already said, if I browse through profiles to view the EPG, I have to click the EPG tab handle every time I move from a profile without EPG to one with EPG.
I ran in the same problem a while ago with my 2.x skin. It used as tabbed layout and included external infos that are available only for some profiles, but not all - much like the EPG. I tried the conditional approach and discarded it for the reasons I explained in my previous posts.
I then choose to simply grey out the tab handles whenever there are no data on a tab. They are not disabled, just visually distinct. I did the same for overview, easter eggs, etc. Just give visual feedback in the tab handle to show if data is available or not.
That way, I don't have to click on a tab (i.e. focus its content) just to see if there is information available. And if I want to see the data on a specific tab while browsing through profiles, I'm not confronted with unwanted focus switches, because some of the profiles don't have that data. | | | Matthias |
|
|
Invelos Forums->DVD Profiler: Layouts and Reports |
Page:
1 Previous Next
|
|
|
|
|
|
|
|
|