How to Refresh a Single Graphic based on Time of Day

On this Muse Developed Website, HOME | The Great American Car Wash, The traffic light is programmed to change to Red when the business is closed and to green when it opens. The code that I wrote incorporates this meta tag:
<meta http-equiv="refresh" content="5"/>
This refreshes the entire page every 5 seconds. The page blinking as it refreshes is undesirable. My best temporary fix is to change the refresh rate to 2 minutes. I have it tentatively set to 5 seconds for troubleshooting. It will be set to 30 seconds when it is time to publish the site.
I used the "INSERT HTML" command in Muse to add the code. It works as intended, except for the annoying page blink to refresh the traffic light. The business owner could easily tolerate a traffic light blinking on refresh.
Is there a way to just refresh only the graphic? Or is there a better way to automatically "update" the status of the light?
Thanks.
"Cincinnati"

You can try the suggestions mentioned here :
http://stackoverflow.com/questions/17886578/refresh-part-of-page-div
http://crunchify.com/how-to-refresh-div-content-without-reloading-page-using-jquery-and-aj ax/
Thanks,
Sanjit

Similar Messages

  • How many mails i can send at a time per day using APEX mail system?

    HI,
    I am working on application, when i have written a process to send mail, i have a project where i have to send mail at a time for all the email id's
    given list there are upto 5000 email id's where text body also include certain set of data from a report. thinking at a time 3000 its difficult i divided
    it region wise, but still each region have 2000 odd email id's. during testing when i run the process just 950 mails i could send then i got a error
    saying "ORA-20001: You have exceeded the maximum number of email messages per workspace. Please contact your administrator." so please
    can any one help me to know How many mails i can send at a time per day using APEX mail system?
    Thanks in advance
    Gowthami

    Hi jfosteroracle,
    You are getting the error may be the following reason,
    Check the following,
    Login as ADMIN and Goto -->Manage Instance-->Instance Settings--> Mail-->Maximum Emails per workspace
    Actually this number denotes the Number of mails can be sent per 24 hour for the workspace,It may exceeded.
    It may be the reason.
    Thank you.     
    Regards,
    Gurujothi
    Edited by: Gurujothi on Jun 27, 2012 5:54 AM

  • Date change based on time of day...

    Hello All,
         I am new to Java and creating stamps in Adobe. I have been requested to create a stamp that puts the date based on the current date and time. Anything that is stamped after 3:00pm needs to show the bussiness day. Based on the dynamic stamps default in acrobat I am able to create the a stamp with the current date but can not figure out how to create the IF/Then statment to test for the current time and adjust the to the new date if needed. Please help!
    Current Sript:
    event.value = (new Date()).toString();
    AFDate_FormatEx("mmm dd, yyyy");
    event.value = "Date " + event.value;
    Thanks!
    William

    I've done exactly this for a client of mine last year, although it was not on BC (but it wont matter). It was for a childrens character series, we had 4 times of the day and even seasons where the website would change colors, get lighter and darker (sun cycle) and play different sounds (frogs at night, birds during the day).
    Just have 2-3 different CSS files and load each one according to the time of day or handle everything in Javascript.
    PM me and I can give you the URL of the site I am talking about.

  • How to refresh or close graphics from forms

    I call two graphics from forms, through pl/sql. There are
    parameters in the forms to tune the graphics. But trying to
    refresh the graphics results in access violation and the
    graphics becomes a 'zombie'. Why is it possible ? How to avoid
    it ?
    null

    Hi,
    I am a newbie in taskflow development world.
    Having gone through the above answer, I am not sure on how it fits in my problem domain. I created a taskflow with few iinput parameter to it. Actually it's a polling application that displays a poll on the basis of poll id provided by user through taskflow input parameter. A new requirement came up to show a list of polls and user may click on a poll from the list and that poll should get displayed.
    I have done the showing list of poll part, but when user clicks on a particular poll, even though I am setting the poll ID of the selected poll to the appropriate parameter, it's not being taken. While doing some R&D on this, I found there are two attributes called Refresh and RefreshCondition for taskflow refreshing. Initially the value of Refresh was set to 'always' which I modified to 'ifNeeded' and 'deferred', one at a time and it did not work. I have also tried binding a boolean variable to 'RefreshCondition' attribute, but while debugging, I have found, that the boolean variable is read only once while the taskflow is getting initiated, no matter what the value of 'Refresh' is.
    I did not get much time to explore the meaning and applicability of 'Refresh' and 'RefreshCondition' attributes, but have a feeling that these are the ones that I have to tweak a little to get my work done. Can someone please help me on this?
    Thank you,
    Kanchan Upadhyay

  • How to restore a single file form a time machine backup to another system?

    i have changed from macbook to imac. don't like to use migration assistant.
    however i forgot to backup the file: home directory/library/preferences/com.apple.mail.plis
    is there a way to get this file out of the timemachine backup (which was done on the macbook and the macbook meanwhile has been deleted). the backup itself is on an external drive. help!

    See User Tips for Time Machine for help. You can also select Mac Help from the Finder's Help menu and search for "time machine." One of the articles explains how to restore files from TM backups.

  • Creating collections based on time and day

    Hello,
    I want to create a collection that would apply software update settings to run every 30 minutes only on a Saturday, between 4 am and 2 pm. This is to address an issue that I am running into
    - Our software update deployment window is the second Saturday of each month.
    - if an update results into the system being eligible for more updates, that system does not install the subsequent update until the next week, as our client settings are at the default setting of running an update scan and update deployment scan every 7
    days.
    I want to leave the settings at the default, except on Saturday between 4 am and 2 pm so that the update scans and deployment scans run every 30 minutes.
    I want systems to be members of a collection only during this time period, so that I can apply accelerated client settings above to the collection.
    I am trying to use the query:
    select *  from  SMS_R_System where (DATEPART( WEEKDAY,GETDATE()) = 7 AND DATEPART( HOUR, GETDATE()) BETWEEN 4 AND 14)
    However the query does not run and comes back with an "Invalid view" error.
    Can I use the SQL datetime functions in this manner?
    thanks,
    -Ravi

    I think all you need to create is "a collection with Maintenance window". You can create a deployment for software updates in advance so that Policies get refreshed on your clients.
    If you need to refresh policies every 30 minutes during the MW, you can create a runbook for policy refresh and also systems reboot using Orchestrator during MW. Orch does automation for you. This will fix your patching concern specially when a system pending
    reboot. After reboot client with check in with existing deployment and will install patches if required. 
    If policy refresh is the concern then you can create a custom client setting with policy interval 30 minutes(aggressive) to poll and deploy to that collection but you can not schedule this only during MW. 
    Also with right click tools, you can force check in policies on collection.
    Thanks
     

  • How do I set the clock so the time of day shows when playing games

    I play Words With  Friends and get lost in time.  I need my clock to show on the screen.  IPad Air 2

    The game hides the time and can't be changed. If you wish to limit your playing time set an alarm in the Clock App.

  • Refreshing a single portlet rather than the whole portal page

    Ok, here's my situation.
    I have two pdk portlets on my portal that communicate through page parameters. Portlet A has a bunch of search fields, a customer drop-down list, parts drop-down list, division, etc. Portlet B takes those parameters, queries the database, and displays the results. I would like to be able to refresh portlet B without reloading the whole portal page.
    I have onchange events on all of my drop-downs that will do a javascript post back to portal, which will in turn set my page parameters, and I see there is a 'refreshPortlet' function in a javascript file that portal provides that will refresh a single portlet based on a portletReferenceId. It is normally called when a refresh button is clicked in the portlet header, but I don't see any reason I can't call it after my javascript post, that is, if I had the portletReferenceId for the other portlet. I thought about making a hidden html table on the page that, I could fill with the portlet names and ids for each portlet as they load, that way I could reference that list from any portlet. The problem is I can't figure out where the ids are coming from. Based on the code behind the button, the function is looking for something like this 646_701285_646_1_701271, but the closest thing I can come up with is this 676114_POSTCONTENTPORTLET_467414915 which I got from PortletRenderRequest.getPortletInstance().getInstanceName(). As you can see, it's not even close. Does anyone know where the correct id could be coming from? It's got to be available to me somewhere, doesn't it?
    The only other option I can think of to accomplish my goal is to use straight up ajax to display portlet B, but that kind of defeats the purpose of portal doesn't it?
    Any help would be greatly appreciated.
    Thanks,
    Doug

    You can use Ctrl+F4 to close the current tab. I don't think that you can change the Alt+F4 action with Keyconfig.

  • Automatic lot creation based on time Frequency

    Hi,
    For 01 inspection incoming inspection ,
    F or  certified vendors, without inspection , material is getting posted to UUS without lot creation. ( QI info record settings).
    but for this case , business requirement is to get automatic lot creation based on time like 6 months once .
    Automatic lot to be created for this certified vendor on time frequency basis. how to trigger this Lot creation based on time.
    Help.
    VV.

    Hi,
    In std SAP we dont have option of generating Automatic lot creation based on periodic basis. But we can provide some workaround soultion.
    Option 1:
    USe Source Insepction concept. Here Inspection lot will be created for every P.O. Here u can relase P.O line items in QI07 which can sceduled in Job planning on periodic basis. Use Skip inspection lot concept to skip unwanted lots. This has direct relation with Q-Info record.
    Option 2:
    U can generate automatic lot creation based on Stability study concept. Here are the following steps
    Initiate Stablility study
    Create Initial sample
    Perform intial test
    Confirm initail sample
    stability planning
    Define storage condition
    create testing schedule
    store stability sample
    define cycle start
    schedule
    complete stability study.
    Option 3:
    To get Automatic lot creation u can use BAPI QPL1_INSPECTION_LOT_CREATE . When a due date come for inspection,it created a lot of 01 / Z-01 inspection type automatically through QA01( call the program ,enter the inspection lot origin & material,vendor & save). Create Z-T code which has vendor material plant combination.
    Execute the above T-code based on Periodic basis.
    Explore above 3 options and choose best one according to ur requirements.
    Edited by: Lokesh K on Oct 12, 2010 11:27 AM

  • How i can refresh a single rectangle?

    hi
    I have a grid of rectangle, each rectangle have a color and position. I whould like to refresh a single rectangle but not entire table.
    how I can do this?
    thanx in advance!
    ps: i make this but it does not work well:     
    public void paint(Graphics g){
    super.paint(g);
    repaint(myRect.getX(), myRect.getY(), myRect.getWidth(), myRect.getHeight());}

    1) Couldn't you wait even an hour for an answer?!
    2) repaint (...) does not belong in your paint(...) method. Put repaint(...) in your other code (not paint(...) nor update(...) where you realize that you need to make a visual change to your rectangular area. repaint(...) will cause update(...) to be called at some time in the future. It is in update(...) that you can perform your redrawing.
    3) If your rectangle is in a container with other components layered on top of it, you may need to invalidate() and validate().

  • How to create a Platinum,Gold and Silver Customer and how to set different price for a single material based on customer?

    Hi All,
    How to create a Platinum,Gold and Silver Customer and how to set different price for a single material based on customer?
    Assume Material is Pen.
    While creating Sales Order in VA01 how to bring different price for the same material for Platinum,Gold and Silver Customers.
    Kindly help me out.
    Thanks,
    Renjith Jose

    A good place to start is http://www.javaworld.com/javaworld/javatips/jw-javatip34.html
    Also, do a search in this forum on HttpURLConnection. That class allows you to use POST method to send form data to a web server.
    "Hidden" variables are only hidden in HTML. The HTTP that gets POSTed to the web server doesn't distinguish between hidden and not hidden. That is, the content you would write to the HttpURLConnection.getOutputStream() would be something like:
    hidden=1&submit=ok(Of course, the variable names would depend on what the web server was expecting from the form.)
    Also, be sure to set the Content-Type request parameter to "application/x-www-form-urlencoded"

  • How to Show ActionScript Graphics based Spinner on Flex or mobile application ?

    How to Show ActionScript Graphics based Spinner on Flex or mobile application
    Solution:

    Check out the BusyIndicator component introduced in Flex 4.5:
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark">
        <s:BusyIndicator />
    </s:Application>

  • How to refresh one View instance from another View Instance

    Hi ADF Experts,
    I have a requirement in which I have created two View Objects based on a single entity object.
    I am using a first VO to display data in a table and the second to update data to database.
    The commit will happen through a Global save button.
    But before the global save, I need to show the data using the First VO, which is inserted using the second VO.
    Can anyone help me on how to refresh the first VO to display the data.
    Thanks in Advance
    Mohan
    Edited by: 946185 on Mar 29, 2013 4:24 AM

    Hi Dileep,
    The first VO which I mentioned is based on two EOs and has a lot of calculated values.
    And to add to my worries there is a parent child relationship between the two EO's, where in parent is updated with one row and child with multiple rows.
    The multiple rows updation to the child should happen with a shuttle component in a different popup.
    So I am inserting everything programatically in the java code, where I need two use different VO to update parent and different VOs for the shuttle.
    I could get the data, if it is committed, but to add to the complexity, there is a global save button which should commit the data.
    So I want to get the data based on the EO update before commit to the database.
    Thanks
    Mohan

  • How to refresh the data in a container and to update the new data

    Hi,
    I have created a Module Pool Program in which i have two containers to display the long text.
    Initially this container is filled and based on some condition i want to update the text in the same conatiner.
    I am using the below two classes to do all this.
    cl_gui_textedit,
    cl_gui_custom_container,
    Could someone help me how to remove the long text in the container and update the new long text.
    I am getting the new long text but not able display it in the same container. Please someone help me how to refresh and update the container.
    Thanks in advance.

    Hi
    Try this.
      IF cl_gui_textedit  IS INITIAL.
      create control container
        CREATE OBJECT cl_gui_custom_container
           EXPORTING
                container_name = 'Container Name''
           EXCEPTIONS
                cntl_error                  = 1
                cntl_system_error           = 2
                create_error                = 3
                lifetime_error              = 4
                lifetime_dynpro_dynpro_link = 5.
    create text_edit control
        CREATE OBJECT cl_gui_textedit
           EXPORTING
                parent = cl_gui_custom_container
                wordwrap_mode = cl_gui_textedit=>wordwrap_at_windowborder
                wordwrap_to_linebreak_mode = cl_gui_textedit=>false
           EXCEPTIONS
                error_cntl_create      = 1
                error_cntl_init        = 2
                error_cntl_link        = 3
                error_dp_create        = 4
                gui_type_not_supported = 5.
      ENDIF.
    *--use method to set the text
      CALL METHOD cl_text_edit->set_text_as_stream
        EXPORTING
          text            =  t_lines ( Internal table with long text).
        EXCEPTIONS
          error_dp        = 1
          error_dp_create = 2
          OTHERS          = 3.
    regards,
    Raghu.

  • Refresh the Business Graphics Data on click of next page event of a table

    Hi Experts,
    We are using Business Graphics UI element in Web dynpro Java to display a table data.
    We are limiting the graphics data to 12 table entries at a time.
    Now, I just want to know how can we refresh the Business Graphics data when the user clicks on the Next Page option at the bottom of the table.
    This is applicable if we have more than 12 table entries and we've restricted the visible row count to 12.
    So, for more than 12 entries; when the user selects the next page, I want the next set of data to be displayed in the Business Graphics UI element.
    But I am not able to get the action for the Next Page event.
    Please note that we are on Netweaver 7.01.
    Kindly suggest as how can we achieve this functionality.
    Kind Regards,
    Anurag

    check this
    Web Dynpro Java Table Paging Unleashed: Optimizing Heavy Table Performance

Maybe you are looking for