Requesting assistance implementing a javascript clock

I've seen the myriad of javascript forum entries but none I've reviewed have provided the nugget of information which will allow this particular script to execute in a region (script at end of message).
It works fine if you place it entirely in the page header region, but it certainly is not rendered where I would want it to be located. In an attempt to have this rendered where I want, I'm attempting to put it into a region. I've not been successful in getting this to work It does not function if placed in a region header. It does not function if you put the script portion in a page header and the table/form structure in a region header or source. It does not work if you call the function from a region header (javascript:runClock(); or onload="javascript:runClock()";.
While I've implemented a few javascript elements in apps before, this is the most complex one I've worked with. I'm not able to pull this rabbit from the hat.
Advice? Many thanks!
Paul
<table style="border-style:none;border-bottom-width:3;border-top-width:3;border-left-width:3;border-right-width:3;border-bottom-color:#99CCFF;border-top-color:#99CCFF;border-right-color:#99CCFF;border-left-color:#99CCFF;" cellpadding=2>
<tr>
<td bgcolor="#99CCFF">
<font color="#3366CC" face="arial">
<form name="time"><input type=text name="box" style="font-weight:bold;background-color:#99CCFF;color:#3366CC;font-family:arial;border:0;" size=37>
<SCRIPT LANGUAGE="JavaScript">
function runClock(){
theTime = window.setTimeout("runClock()", 1000);
var RightNow = new Date();
var hrNow = RightNow.getHours();
var mnNow = RightNow.getMinutes();
var scNow = RightNow.getSeconds();
var miNow = RightNow.getTime();
var mon = RightNow.getMonth() + 1;
var date = RightNow.getDate();
var year = RightNow.getFullYear();
var day = RightNow.getDay();
if(hrNow == 0) {hour = 12;var ap = " AM";}
else if(hrNow <= 11) {ap = " AM";hour = hrNow;}
else if(hrNow == 12) {ap = " PM";hour = 12;}
else if (hrNow >= 13) {hour = (hrNow - 12);ap = " PM";}
if(hrNow >= 13) {hour = hrNow - 12;}
if(mnNow <= 9) {min = "0" + mnNow;}
else{min = mnNow}
if (scNow <= 9) {secs = "0" + scNow;}
else {secs = scNow;}
var zday=new Array(7)
if (day==0) {zday="Sunday"};
if (day==1) {zday="Monday"};
if (day==2) {zday="Tuesday"};
if (day==3) {zday="Wednesday"};
if (day==4) {zday="Thursday"};
if (day==5) {zday="Friday"};
if (day==6) {zday="Saturday"};
var zmon = new Array(12)
if (mon==1) {zmon="January"};
if (mon==2) {zmon="February"};
if (mon==3) {zmon="March"};
if (mon==4) {zmon="April"};
if (mon==5) {zmon="May"};
if (mon==6) {zmon="June"};
if (mon==7) {zmon="July"};
if (mon==8) {zmon="August"};
if (mon==9) {zmon="September"};
if (mon==10) {zmon="October"};
if (mon==11) {zmon="November"};
if (mon==12) {zmon="December"};
document.time.box.value=""+zday+", "+zmon+" "+date+", "+year+" "+hour+":"+min+":"+secs+ap+"";}
runClock();
</script>
</form></font></td></tr></table>

Paul:
Put this where you want the clock to show <table style="border-style:none;border-bottom-width:3;border-top-width:3;border-left-width:3;border-right-width:3;border-bottom-color:#99CCFF;border-top-color:#99CCFF;border-right-color:#99CCFF;border-left-color:#99CCFF;" cellpadding=2>
<tr>
<td bgcolor="#99CCFF">
<font color="#3366CC" face="arial">
<input type=text id="box" style="font-weight:bold;background-color:#99CCFF;color:#3366CC;font-family:arial;border:0;" size=37>
</font></td></tr></table>
<script>
runClock();
</script>Put this in the html header<SCRIPT LANGUAGE="JavaScript">
function runClock(){
//alert ("here")
theTime = window.setTimeout("runClock()", 1000);
var RightNow = new Date();
var hrNow = RightNow.getHours();
var mnNow = RightNow.getMinutes();
var scNow = RightNow.getSeconds();
var miNow = RightNow.getTime();
var mon = RightNow.getMonth() + 1;
var date = RightNow.getDate();
var year = RightNow.getFullYear();
var day = RightNow.getDay();
if(hrNow == 0) {hour = 12;var ap = " AM";}
else if(hrNow <= 11) {ap = " AM";hour = hrNow;}
else if(hrNow == 12) {ap = " PM";hour = 12;}
else if (hrNow >= 13) {hour = (hrNow - 12);ap = " PM";}
if(hrNow >= 13) {hour = hrNow - 12;}
if(mnNow <= 9) {min = "0" + mnNow;}
else{min = mnNow}
if (scNow <= 9) {secs = "0" + scNow;}
else {secs = scNow;}
var zday=new Array(7)
if (day==0) {zday="Sunday"};
if (day==1) {zday="Monday"};
if (day==2) {zday="Tuesday"};
if (day==3) {zday="Wednesday"};
if (day==4) {zday="Thursday"};
if (day==5) {zday="Friday"};
if (day==6) {zday="Saturday"};
var zmon = new Array(12)
if (mon==1) {zmon="January"};
if (mon==2) {zmon="February"};
if (mon==3) {zmon="March"};
if (mon==4) {zmon="April"};
if (mon==5) {zmon="May"};
if (mon==6) {zmon="June"};
if (mon==7) {zmon="July"};
if (mon==8) {zmon="August"};
if (mon==9) {zmon="September"};
if (mon==10) {zmon="October"};
if (mon==11) {zmon="November"};
if (mon==12) {zmon="December"};
$x('box').value=""+zday+", "+zmon+" "+date+", "+year+" "+hour+":"+min+":"+secs+ap+"";}
</script>

Similar Messages

  • Any IDEA of Getting Server Time & RUn JavaScript Clock

    Hi ,
    Any idea of getting Server Time & running javascript Clock
    I tried using ..
    var tDate=<%=new java.util.Date()%>;
    But it is not working
    Plz help

    You can create a date in javascript like this
    new Date(year, month, day, hours, minutes, seconds, milliseconds) You don't have to supply all the parameters (this is javascript after all)
    Getting it from java, into javascript...
    <%
    java.util.SimpleDateFormat sdf = new java.util.SimpleDateFormat("yyyy,MM,dd,HH,mm,ss,SS");
    Date now = new Date();
    String sNow = sdf.format(now);
    %>
    var tDate = new Date(<%=sNow %>)

  • The battery in my MacBook Pro 17 requesting assistance only after 277 cycles with a capacity of 9444 mAh

    the battery in my MacBook Pro 17 requesting assistance only after 277 cycles with a capacity of 9444 mAh, Is it possible?I performed the calibration, but nothing changes.
    MacBook Pro (17 pollici, Half 2010)
    MacBookPro6,1
    Intel Core i5
    2,53 GHz
    Memory 4 GB

    Batteries will vary in how long they last. Apple will say that for machines built in the last 4 years that the battery may last up to 5 years approximately. However this depends on usage.
    You can have someone who never ever uses the battery and only ever runs the computer from the mains and the battery will fail as it never gets used and the cycle count will be very low.
    To put things in perspective. I have a 15" Macbook Pro with Retina Display (Late 2013). I've had it for probably 8 months and I have 128 cycles on my battery, approx. half yours in a quarter of the time. So if you're not always use the battery it can be affected in other ways.
    You can try to see if calibrating the battery helps. Look at http://apple.com/batteries for information on how to do this or try an SMC Reset and see if these make a difference. If not, then seek support from an Apple Store or Authorised service provider.
    Hope this makes sense.
    -Dib.

  • Newb deserving assistance with Adobe Javascript (check boxes and combo boxes)

    Hi, I'm a newb when it comes to javascript (using adobe acrobat pro 6.0).
    I am working on a form that will allow me to autofill checkboxes based off of information chosen. Ideally, I would like to have a selection from a combo box autofill/auto checkmark check boxes. Alternatively, I would be willing to just have different selections presented with check boxes that when filled, would auto checkmark other check boxes (I know how to do this one, but I am not sure how to clear the check boxes if the initial one is unchecked).
    I have the action button tied to the mouse up function. This just errors out.
    var Citrix = this.getField("Citrix")
    var Appro = this.getField("Appro")
    var SAS = this.getField("SAS")
    if (event.target.value=="Yes") {
    Citrix.checkThisBox = true
    Appro.checkThisBox = true
    SAS.checkThisBox = true
    else {
    Citrix.checkThisBox = false
    Appro.checkThisBox = false
    SAS.checkThisBox = false
    I have this that works, but I don't know how to clear the buttons when "Associate" is unchecked.
    if(this.getField("Associate").isBoxChecked(0));
    this.getField("Citrix").checkThisBox(0, true);
    this.getField("Appro").checkThisBox(0, true);
    this.getField("SAS").checkThisBox(0, true);
    The other way I was working on it, was to use a combo box to autofill/checkmark check boxes. But this code doesn't work either.
    function calculateTextField()
    // get the value of the combo box
    var comboValue = this.getField("Select").value;
    // get the state of the checkbox
    var isChecked = (this.getField("Citrix").value == "Yes");
    var textFieldValue = "";
    console.println(comboValue);
    if (isChecked)
    if (comboValue == 0)
    textFieldValue = "";
    if (comboValue == "Associate")
    (this.getField("Citrix").value == "Yes");
    else if (comboValue == "Specialist")
    (this.getField("Citrix").value == "Yes");
    else if (comboValue == "Team Leader")
    (this.getField("Citrix").value == "No");
    else
    (this.getField("Citrix").value == "No");
    else
    textFieldValue = "";
    this.getField("Select").value = textFieldValue;
    Can anyone please assist me with this?
    Thanks,
    Chris

    Hi Gene,
    Thank you for the response. Are you saying that my initial formula should look more like this; ?
    var Citrix = this.getField("Citrix")
    var Appro = this.getField("Appro")
    var SAS = this.getField("SAS")
    if (event.target.value=="Yes") {
    Citrix.checkThisBox = true
    Appro.checkThisBox = true
    SAS.checkThisBox = true
    else {
    if (event.target.value=="Off")
    Citrix.checkThisBox = true
    Appro.checkThisBox = true
    SAS.checkThisBox = true
    Thanks,
    Chris

  • How to implement the javascript and the  insert process ?

    Hi,
    In my application I have created one region with one text box and one button.
    On click of the button , first a javascript should run to validate the textbox value , if there is an error it should alert the user ,otherwise the insert process (I have written a PL/SQL block under processes in page processing) should get executed.
    when i tried to implement this only javascript is getting executed but the insert process is not executed...
    so how I should implement the above case?
    here i invoke the javascript in the URL Target as
    javascript:myfunction();

    hey hiiii,
    i have also tha same problem as mentioned by ANOO.
    and the button on which i m applying the javascript is "Create"
    i have written doSubmit('Create'); in my javascript code ,
    but after doing this the process named "Create" which is conditioned by this button is not being called...
    so what can i do now...

  • Page display:400 Bad HTTP request after implement WebDispatcher fo portal

    Dear all
       Our portal implement the WebDispatcher(7.0) to load balance for our
    portal system(include one CI and one Dialog instance,we use HTTP to
    load our portal request.).After that,some of the portal page display
    the information like this:
    400 Bad HTTP request
    Bad HTTP request
    Error: -21
    Version: 7000
    Component: HTTP_FILTER
    Date/Time: Thu Sep 27 10:26:51 2007
    Module: http_auth.c
    Line: 469
    Server: portal_WDP_02
    Error Tag:
    Detail: illegal request
    &copy; 2001-2005, SAP AG
    We logon the CI and the page all are right.So,some wrong with our
    WebDispatcher?Can you give us some advice?

    Hi,
    The answer from SAP:
    The maximum size of request URI is hard coded in kernel, and it cannot be configured by a parameter. The maximum size of PATH is 4096, and the maximum size of query string is 4096 as well.
    If the request is a post request, you have to ask the calling side to move some name value pairs from query string to the POST body.
    If it is a GET request, you have to ask the calling side to change it to POST and move value pairs to the POST body.
    Kind Regards

  • DropdownListBox implementation in javascript

    Hi all
        I have two dropdownlistbox. When I select an item in the first box,according to the selection, I have to add items in the second dropdownlistbox. I want the implementation of the onClientSelect="javascript:Sample();" of the first dropdownbox "drop1" using
    <script>
    function Sample(){
    //I want the implementation to be done here
    </script>
    in my jsp.
    How do I additem to the second dropdownbox "drop2" inside the script tag?Please help me with this.
    Thanks in advance
    Regards
    Harini S

    May I suggest doing a web search on jQuery, a JavaScript framework which is used frequently with such slideshows? Check the various plugins available for jQuery which can help you easily put together such a slide show.

  • Requesting assistance in creating a custom file info panel from a PDF

    I am hoping someone can assist me with this. I am in the USMC and work in the Combat Camera field. Our video Marines are required to fill out shot lists which are in PDF form. Is it possible to recreate the PDF as a file info panel so that they can input this information as metadata? I am no programmer by any means. Is there a visually based program that I can use to create this (like Flash Catalyst is to Flash)?

    http://www.adobe.com/devnet/xmp/

  • Request Assistance With Combining Functions

    Ned Murphy (or anyone else),
    I referenced some guidance you offered a while back concerning combining functions.  Your response was:
    Mar 19, 2012 6:45 AM in reply to witherton
    You do not want to be using the same name for a function and a variable. As far as combining the two functions, it would make sense to just have the doorColor function do all the work, though you do not need to use the if/else setup...
    var min = 1;
    var max = 3;
    function doorColor (event:MouseEvent)
    var getNewDoor:Number = Math.round(Math.random() * (max - min) + min);
    gotoAndStop("door"+String(getNewDoor));
    I'm building a program with a similar need to combine functions. I've got text input fields (answerBox and answerBox2).  I'm forcing the user to go to the first input text field with stage.focus = answerBox2.
    I used most of the code you recommended to witherton in my coding.  My desire is to combine the input from the two text fields to jump to a "Correct or "Incorrect" page once Enter is clicked.
    I included my coding to show you where I'm at.  Not sure if I inserted your snippet in the right place...for Line 68, I keep getting a 1083: Syntax error: else is unexpected.
    46  stop();
    47
    48  answerBox2.text = "";
    49  stage.focus = answerBox2;
    50  answerBox.text = "";
    51  stage.focus = answerBox;
    52
    53  stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
    54
    55  function keyPressed(evt:KeyboardEvent):void {
    56          if (evt.keyCode == Keyboard.ENTER) {
    57               if (answerBox2.text == "+80" || answerBox2.text == "+ 80" || answerBox2.text == "OVER 80" || answerBox2.text == "OVER80"|| answerBox2.text == "over 80" || answerBox2.text == "over80") {
    58                   //gotoAndStop(20); I previously used this for a single function
    59               } else {
    60                      if (answerBox2.text != "") {
    61                             //gotoAndStop(19); I previously used this for a single function
    62          if (answerBox.text == "R390" || answerBox.text == "R 390" || answerBox.text == "RIGHT390" || answerBox.text == "RIGHT 390"|| answerBox.text == "right 390" || answerBox.text == "right390") {
    63                     var answerBox2 = error1;
    64                     var answerBox = error2;
    65                     function TwoErrors(event:MouseEvent) {
    66                        var getTwoErrors:Keyboard.ENTER = Math(Math() * (error1 + error2));
    67                        gotoAndStop(20);
    68                    } else {
    69                       if (answerBox2.text + answerBox.text != "") {
    70                             gotoAndStop(19);
    71                          }
    72                      }
    73                  }
    74              }
    75          }
    76      }
    77 }
    I tried adding and deleting curly brackets at different lines, but the error is still there. Can you assist?
    Thanks!
    I'm really showing my inner noob, eh?

    What are you trying to accomplish with the lines:
    63                     var answerBox2 = error1;
    64                     var answerBox = error2;
    If those are the textfields names, then you don't want to be creating variables that are named the same as the textfields.
    Also, you appear to have a function nested within another function.  Don't do that.

  • Cannot reinstall CS3 after corrupt OS repair. Request assistance/suggestions/support.

    My Windows XP system was recently reinstalled. Now I have to go back and install all my programs.(Sound familiar?!)
    I have tried several times to download CS3 from my original disks, but have been unsuccessful.
    I have restarted my machine. I have closed all other programs. I have done everything I can think of to anticipate any issues, but I still get the same results.
    I have looked through the Adobe.com knowledgebase. I attempted to start a case on the website support portal (which also did not work... the drop down menus did not drop down and there were no other avenues to try). I called 800-642-3623 for information. After a long and frustrating conversation (language difficulties), she said my issue was beyond her range of expertise and that I should try to contact technical support tomorrow at 572-5061. I asked if that was an 800-number and she said no. I asked for an area code and she said I didn't need one. I tried calling the number and got a fast busy.
    I feel helpless and frustrated and am becoming increasingly annoyed. I produce a monthly newspaper and this is the software I use.
    I have been considering upgrading to a newer CS version, but am appalled at the lack of support for previous versions.
    I suspect many of you have felt this same sort of panic ... a deadline looming,... computer and/or software problems... and I don't know how to resolve the issue. I am already at wit's end with the system breakdown... I thought I was over THAT crisis, only to have this one looming.
    Purchasing this CS product was a significant investment for me... now I am dependent on it, having created my newspaper with CS format.... does ANYONE out there have any suggestions for me? Please? I feel like I've hit a brick wall. I've tried everything I can think of... so far spending hours looking for solutions....
    I appreciate any assistance ....

    You can't install applications like that. Use the original disks to
    install the software.

  • Requesting assistance from A Treo 650 owner....

    Greetings!
    Am trying hard to erase contacts lodged into the contact list from the SIM card.
    Each contact has a blue square and a smaller yellow square inside, on the right side of each phone number stored in contact list.
    When clicking on the contact name, normally a window would open, allowing me to edit and thus remove that contact.
    This function will not work now because of the Blue/yellow squares next to each phone number.
    I am not able to edit, and the Treo 650 does not have import capabilities, if it had - I would import all "blocked" contacts into the phone memory and then erase them easily. If anyone has a solution and is willing to assist me, with steps I should take, I would highly appreciate your good will & asistance.
    Thanking you all in advance,
    Shelpif111 
    Post relates to: Treo 650 (Unlocked GSM)

    Hello!
    Those particular contacts are SIM contacts from your SIM Book on your SIM card.  You cannot edite nor delete these particular contacts from the contacts app.  You need to use the SIM Book app on your Treo to manage them.  If you just want them to not display in the contacts list then from within the contacts app on your Treo go into Preferences, press the manu button and then R key, and from there take the check out of Show SIM Phonebook.  Hope this helps. 

  • RV042 v3 - Block WAN Request - bad implemented!

    Hello,
    I would like to ask You if You have same problem as me. I would like to allow PING on RV042 from WAN side only from specific IP address, but when I set the rule, RV042 does not respond on WAN side, because Block WAN Request is Enabled.
    BUT! When I disable "Block WAN Requests", now any IP can ping my router from WAN side. Although I set access rule to Deny Ping from WAN side to anyone, it still responds.
    Do you know sollution?

    Good morning
    Thanks for using our forum
    Hi Tomas Zavodny  my name is Johnnatan and I am part of the Small business Support community
    I'm not sure if you  disable the option “Block Wan Request” your device creates  a rule in the firewall, can you check this? if your device creates the rule, follow this procedure
    In this priority order, create 2 rules in your firewall device.
    1. A rule that allow ping  your device from your specific source(s) address(es)
    2A rule that deny ping from any other source.
    3 With the lowest priority, the rule that your device creates.
    I hope you find this answer useful, if it was satisfactory  for you, please mark the question as Answered.
    Please rate post you consider useful.
    Greetings,
    Johnnatan Rodriguez Miranda.
    Cisco network support engineer.
    Cisco has a very useful tool called GuideMe, is made for small business products, and your device is in this category, you can use this address for accesing the tool: http://sbkb.cisco.com/CiscoSB/Loginr.aspx?alt1 = & pid = 4 & eroute = Super, is very easy to use, just complete the 3  spaces on this way:
    Select a category: (Select the device type on request), eg Routers
    Enter model: (Type the model on request), eg RV042
    Question: (Type what  you want to know  about the device), eg VPN
    And it'll be showing all the information you need about what you wrote.

  • PowerPC G5 Requests Assistance...

    Greetings!
    I'm in a jam and unsure how to proceed, so the first thing I thought of was to seek assistance from our community here.
    Last night my G5 stopped working. Earlier that morning it was working fine and I had performed a shutdown as usual. When I came back from work I tried to turn it on and... nothing. The situation seems typical of many posts here, ex. black screen and fans in overdrive after a while. Specifically here's what I've identified and performed so far.
    -Power light turns on when pressed and turns on the computer but doesn't stay lit. It only lights while pressed.
    -Red LED is lit on the MB (not sure if that was always the case, but it's the first time I've noticed it through the grill).
    -No screen response, no USB power.
    -After some time the fans kick into overdrive.
    This was the initial condition I found my computer in. I tried resetting the SMU by unplugging the power cord for some time, no change. I tried resetting the PRAM via the button, no change at first. After several cycles of pressing the button and turning it on again, it stopped turning on at all. If I kept the button pressed for long it would light up and stay lit, but nothing else would happen (not even the fans would turn on). I unplugged everything and left it overnight. In the morning the same thing happened. After one or two more PRAM resets, I got it to go back to its original behavior listed above.
    I'm not sure what other information I can offer. I upgraded the ram to 8GB when I first purchased it, for what its worth. I couldn't remember what year model it was so I've tried to identify it. The serial identifies it as a Jan 2005 production, the diagrams in the HT1305 article identify it as June 2004 or Early 2005, and the specification pages only list a 2.5 DP for the June 2004 models. So I guess it's either a June 2004 model or an Early 2005 one.
    So far I've removed the PRAM battery to see if it'll make a difference and I'll try to locate a replacement, but it won't be easy as I've recently moved abroad. I also don't have any installation disc to try to boot from here with me.
    Thoughts? Suggestions? I'm trying to avoid panicking, but my work depends on this old rig.

    Hi form2function, and a warm welcome to the forums!
    Some other things to try...
    Pull all but 1 pair of RAM out for a test in different slots.
    Tough without the Install disc, but some things to try...
    Does it boot to Single User Mode, CMD+s keys at bootup, if so try...
    /sbin/fsck -fy
    Repeat until it shows no errors fixed.
    (Space between fsck AND -fy important).
    Resolve startup issues and perform disk maintenance with Disk Utility and fsck...
    http://docs.info.apple.com/article.html?artnum=106214
    Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    Does it boot into Open Firmware with CMDOption+of ?
    http://docs.info.apple.com/article.html?artnum=42642
    reset-nvram (press Enter)
    set-defaults (press Enter)
    reset-all (press Enter)
    Do you have access to another Mac with Firewire?
    How to use FireWire target disk mode...
    http://docs.info.apple.com/article.html?artnum=58583

  • SOW Request - BI Implementation

    Hi All,
    Actually we have r/3 implemented in our organization and we have to implement Bi. I have to provide a Statement of work and an estimate for setting up a prototype for, at a minimum, the financial parts of BI.
    Can anyone plz help me in this...
    Thanx in advance
    Madhurima

    Hi Madhurima,
    Check this links:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/b1/project%2bpreparation%2b(Phase%2b1)
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/sandbox/business%2bblueprint%2b(Phase%2b2)%2bTest1
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/b1/project%2brealization%2b(Phase%2b3)
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/b1/final%2bpreparation%2b(Phase%2b4)
    Hope this helps...........
    Rgs,
    Ravikanth

  • Request Assistance - Converting VHS and DVDs for Apple TV

    I have an Apple TV and love it. My mission is to take my old VCRs and DVDs, convert them and place them in my Apple TV Library. I have run into a snag however when the movies is multiple tapes or DVDs. Up to now I have been simply posting them as Part 1, Part 2, etc but that is clumsy and makes my menu in Apple TV very large.
    Is there a method for splicing these tapes and DVDs into one large movie? I have tried using iMovie 08 (I will have 09 in early February), but it keeps crashing as the films are too long (3+ hours).
    Has anyone else attempted to do what I want to do and have you been successful? If so what software did you use?
    Any help would be appreciated.

    I have probably 200 home movies and 50 hollywood movies in my TV, and it definitely helps to have some organization.
    I have found that I can go to the Movies section in iTunes, from the source pane on the left. You will see a list of all your movies. Pick one of the three you would like to organize together. Right-click (or control-click) and select "Get Info". Now go to the "Video" section and type in the name you want to organize this 3-part movie into in the field called "Show Name". You can also type an episode number if you want. Under "Sorting" you can also put the Show name in. Click "OK". Repeat this for your other 2 portions, and they will all show up under the "Show Name" on the TV.
    For example, I have 14 videos from a recent trip to Turkey and Greece all under one show, and I have Godfather 1,2,3 all under Godfather.

Maybe you are looking for