Author |
Message |
Registered: March 13, 2007 | Reputation: | Posts: 17,334 |
| Posted: | | | | Oh! OK... I tried the EPG=1 without the brackets! ok... trying again! | | | Pete |
|
Registered: March 13, 2007 | Reputation: | Posts: 3,436 |
| Posted: | | | | Quoting Addicted2DVD: Quote: Oh! OK... I tried the EPG=1 without the brackets! ok... trying again! It is case sensitive. So if you put EPG=1 in the Notes, you also need to put it that way in the indexOf. As I said, it doesn't matter what it says, as long as it's something that will ever creep up in Notes fields for profiles without episode guides. | | | Achim [諾亞信; Ya-Shin//Nuo], a German in Taiwan. Registered: May 29, 2000 (at InterVocative) |
|
Registered: March 13, 2007 | Reputation: | Posts: 17,334 |
| Posted: | | | | Got it now thanks! | | | Pete |
|
Registered: March 13, 2007 | Reputation: | Posts: 3,436 |
| Posted: | | | | No problem. Love this new way myself. Glad you came up with the question Keeps the Notes field clean again. | | | Achim [諾亞信; Ya-Shin//Nuo], a German in Taiwan. Registered: May 29, 2000 (at InterVocative) |
|
Registered: March 13, 2007 | Reputation: | Posts: 17,334 |
| Posted: | | | | yeah I know... and also makes you wonder what other fields we can think of doing as well! seems like the possibilities are limitless with this new html window option! | | | Pete |
|
Registered: March 13, 2007 | Posts: 646 |
| Posted: | | | | nm | | | Last edited: by xyrano |
|
Registered: March 13, 2007 | Reputation: | Posts: 17,334 |
| Posted: | | | | Use his latest and you can make it show that one is just not available. Has worked great once the initial set-up is done! I have been changing them over all day so far already! Quoting SH84: Quote: Okay, I've found a partial solution:
Quote: <HTML> <HEAD> <SCRIPT TYPE="text/javascript"> <!-- <DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False"> //-->
function showEPG() { var epg = ("C:/Dokumente und Einstellungen/Thomas/Anwendungsdaten/DVD Profiler/epg/epg-" + DP_UPC + ".html"); var notes = DP_Notes.indexOf("epg=1"); if (notes != -1) { window.location.href= epg ; } else { document.write("no EPG!"); } } </SCRIPT> </HEAD> <BODY onload="showEPG()"> </BODY> </HTML> How does it work? It looks for the string "epg=1" in the notes-field. If the string is not found, it displays "no EPG!" (but it could be changed to e.g. an HTML site with more text). If there is such a string in the notes field, it changes to the EPG site...
PS: If you have HTML notes, you can use "<epg=1>", it does the same, but is invisible. | | | Pete |
|
Registered: March 13, 2007 | Posts: 646 |
| Posted: | | | | removed erroneous data | | | Last edited: by xyrano |
|
Registered: March 13, 2007 | Reputation: | Posts: 17,334 |
| Posted: | | | | Oh ok... sorry! I misunderstood you! | | | Pete |
|
Registered: March 13, 2007 | Posts: 646 |
| Posted: | | | | No problem here, we're good! I should have explained what it does earlier, so it's my mistake! | | | Last edited: by xyrano |
|
Registered: March 13, 2007 | Reputation: | Posts: 922 |
| Posted: | | | | Hm, I'm afraid it doesn't work. The problem is that you're leaving this site before you reach the if request. | | | Deutsches DVD Profiler Forum: www.dvdprofiler-forum.de |
|
Registered: March 13, 2007 | Posts: 646 |
| Posted: | | | | Slaps self on forehead! SH84, thanks for pointing that out. I removed the code example/description, just in case someone tries it! | | | Last edited: by xyrano |
|
Registered: March 13, 2007 | Reputation: | Posts: 3,480 |
| Posted: | | | | Quoting xyrano: Quote: Slaps self on forehead! Proof that we need more smilies. Here you go: | | | ...James
"People fake a lot of human interactions, but I feel like I fake them all, and I fake them very well. That’s my burden, I guess." ~ Dexter Morgan |
|
Registered: March 13, 2007 | Posts: 646 |
| Posted: | | | | LOL, thanks! I think I need vitamins or something... I dunno what the hell I was thinking about... |
|
Registered: March 13, 2007 | Reputation: | Posts: 922 |
| Posted: | | | | Perhaps we could use your suggestion in another way:
The HTML Window loads a blank page with an Iframe of the EPG. If the EPG does not exist (check the address of the Iframe after we called the EPG -> error page), we go to the "NoEPG"-Page. If the EPG exists, go to the EPG page. | | | Deutsches DVD Profiler Forum: www.dvdprofiler-forum.de |
|
Registered: March 13, 2007 | Reputation: | Posts: 1,911 |
| Posted: | | | | Nice idea Pete | | | Signature banned: Reason out of date... |
|