Welcome to Mediachase Community Sign in | Join | Help    
in Search   

Travel time

Last post Wed, Dec 09 2009, 9:23 AM by truthbrother. 23 replies.
Page 2 of 2 (24 items)   < Previous 1 2
Sort Posts: Previous Next
  •  Sun, Mar 01 2009, 1:13 AM 10865 in reply to 10864

    Re: Travel time

    Yes,
    you can add boolean property "IsRecurring" to your class and use it in item mapping:

    {\"id\":\"isRecurring\", \"property\":\"style.display\", \"value\":\"Extensions.IsRecurring==true ? 'block':'none'\"}

    Hope this helps.

  •  Sun, Mar 01 2009, 2:52 AM 10867 in reply to 10864

    Re: Travel time

    Hello,

    In additon to the question expressed above regarding how to pass through the "IsRecurring" value, here are some further challenges I have run into. 

    The lines shown in red generate a JavaScript message, ")" required - this goes away if I comment out the first red line

    The element shown in green does nott show up despite being identical to the one that follows it except for the absolute position.

    Here is my code.  Your input will be appreciated.

    oCalendar.MultiDayView.ItemTemplate = "<div id=\"main\" style=\"width:100%; background-color:green; height:100%; border: solid 1px #000; \">" +

    "<span style='float:left;'><img border='0' src='Images/o_repeat_white.gif' id=\"isRecurring\"/></span>" +

    "<span style='float:right;'><img border='0' src='Images/o_ch0bg.gif' id=\"status\" /></span>" +

    "<div id=\"title\" mcc_action=\"move\" style=\"font-weight:bold;cursor:move; min-width:20px;\" unselectable=\"on\"></div>"+

    "<div id=\"description\" unselectable=\"on\"></div>"+

    "<div id=\"toptraveltime\" unselectable=\"on\" style=\"position:absolute; top:0px; height:10px; width:100%;1; z-index:11;\"></div>"+

    "<div id=\"bottomtraveltime\" unselectable=\"on\" style=\"position:absolute; bottom:11px; height:10px; width:100%;1; z-index:11;\"></div>"+

    "<div mcc_action=\"resize\" style=\"line-height:1px; font-size:1px; position:absolute; bottom:0px; height:1px; width:100%; border-bottom: solid 1px #000; z-index:11; cursor:s-resize;\"></div>"+

    "<div style=\"position:absolute; height:100%; width:1px; right:0px; top:0px; z-ndex:11; border-right: solid 1px #000;\"></div></div>";

    oCalendar.MultiDayView.ItemMapping = "[{\"id\":\"title\",\"property\":\"innerHTML\",\"value\":\"Title\"}," +

    "{\"id\":\"description\",\"property\":\"innerHTML\",\"value\":\"Description\"}," +

    "{\"id\":\"description\",\"property\":\"title\",\"value\":\"Description\"}," +

    "{\"id\":\"isRecurring\", \"property\":\"style.display\", \"value\":\"Extensions==true ? 'block':'none'\"}," +

    "{\"id\":\"bottomtraveltime\", \"property\":\"style.display\", \"value\":\"Extensions.TravelFrom==true ? 'block':'none'\"},"+

    "{\"id\":\"toptraveltime\", \"property\":\"style.display\", \"value\":\"Extensions.TravelTo==true ? 'block':'none'\"},"+

    "{\"id\":\"status\", \"property\":\"style.display\", \"value\":\"Extensions.HasStatus ? 'block':'none''\"}," +

    "{\"id\":\"status\", \"property\":\"src\", \"value\":\"Extensions.StatusImage'\"},"+

    "{\"id\":\"bottomtraveltime\", \"property\":\"style.backgroundColor\", \"value\":\"Extensions.TravelColor\"}," +

    "{\"id\":\"main\", \"property\":\"style.backgroundColor\", \"value\":\"Extensions.BackColor\"}]";

  •  Sun, Mar 01 2009, 9:47 AM 10868 in reply to 10867

    Re: Travel time

    Hi,
    in red item mapping there is one error:
    "{\"id\":\"status\", \"property\":\"style.display\", \"value\":\"Extensions.HasStatus ? 'block':'none''\"}," +

    two single quotes instead of one one single quote.

  •  Sun, Mar 01 2009, 6:16 PM 10869 in reply to 10868

    Re: Travel time

    Thanks.  And what about the item in green not showing up?

    Also, I have added another image that seems to follow exactly the code you use for the recurring image.  Yet, it shows as a narrow flat line on the right hand side and I don't see any image.  What could be causing this?

    Thanks,

    Anatoly

  •  Mon, Mar 02 2009, 12:10 AM 10875 in reply to 10869

    Re: Travel time

    Hi,
    try to set larger z-index for green div. Maybe other html nodes overlap green div. You can use IE Developer Toolbar in IE and Firebug in Firefox for inspecting html nodes layout in your calendar items.
  •  Mon, Mar 02 2009, 3:47 AM 10882 in reply to 10875

    Re: Travel time

    Hi,

    Z-index does not make any difference.  I downloaded the dev toolbar, but I can't get it to show up in my IE.  In the meantime, since this is dynamic HTML that is not found in the source code, and the changes from your original layout are somewhat minimal, do you think you can help figure out the current problems?  I am open to paying a fee for this if you work in that manner. 

    Thanks,

    Anatoly

  •  Tue, Mar 03 2009, 12:50 AM 10884 in reply to 10882

    Re: Travel time

    Hi,
    menu "View\Expoler Bar\IE Developer Toolbar"
  •  Tue, Oct 27 2009, 2:08 AM 11199 in reply to 10799

    Re: Travel time

    There may be no other concept that captures the imagination more than the idea of time travel -- the ability to travel to any point in the past or future. What could be cooler? You could jump into your time machine to go back and see major events in history and talk to the people who were there! Who would you travel back to see? Julius Caesar? Leonardo da Vinci? Elvis? You could go back and meet yourself at an earlier age, go forward and see how you look in the future... It's these possibilities that have made time travel the subject of so many science fiction books and movies.



    Vietnam Package Tour Vietnam Travel Sapa Tour Vietnam Tour
  •  Wed, Dec 09 2009, 9:23 AM 11217 in reply to 11199

    Re: Travel time

    spam.
Page 2 of 2 (24 items)   < Previous 1 2
View as RSS news feed in XML
Site Terms | Privacy Policy | About Us | Contact Us
Running on Mediachase eCommerce Framework 4.0.
  Copyright © Mediachase, LTD. 1997-2006. All Rights Reserved

E-commerce, HelpDesk, Service Desk & Project Management Software, alternatives to Microsoft Project Server & Sharepoint Collaboration Server
project management software | microsoft project server | sharepoint collaboration server | issues management, helpdesk & service desk
Powered by Community Server, by Telligent Systems