Dynamically updating data in a webpage ..... help/suggestions please?

Hi All,
I have a simple delimited text file of current weather observations (less than 20 items) updated every 15 minutes, which I display via an embedded  Flash animation.  I would like to do away with the Flash approach, and display the data in tabular fashion within a webpage.
What do people  consider the best approach to getting the latest data out of the text file and into the webpage?  I already use some simple php to get the data into variables for the Flash approach (simply explode the text file into an array), but I don't know enough php to see how to flexibly use this within html ie use the array variables at later points in the html.
I'm sure that there are several possible approaches here but I lack the depth of knowledge to decide where to start. So, suggestions please, and then I can go do some reading.
Cheers in advance,
Ian

php is run only once and is done so before the user sees the page so it cannot display anything for you. The only way to do this without flash or java is with javascript and asynchronous xml. You may have heard this as AJAX and is what google uses for its suggestions, maps, w/e. I recommend using a javascript toolkit such as Mootools because it is simple, fast, and has better approaches than other frameworks. Simply give an id to a div you want to update regularly, and execute
$('divid').load('pageurl');
and it will inject the contents of the url into the div.
It can call on a php script and every time you load the php file, the php file will get re-executed.
http://mootools.net/
Last edited by caelestis (2010-01-06 07:37:55)

Similar Messages

  • I am trying in vain to update itunes on my pc, any suggestions please

    I am trying in vain to update itunes on my pc, any suggestions please

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • HT201413 my iphone 3g connot be update and reatore can you help me please

    my iphone 3g connot be update and reatore can you help me please

    my iphone 3g connot be update and restore can you help me please

  • PP 6.0 on Mid 2011 iMac.   Helpful Suggestions, please?

    Hey All,
    New here.  Used to cutting AVID but wanted to start using PP 6.0 on my iMac at home for personal and side projects.   Reading over the problems some are having with their iMacs, it's starting to look like I might be screwed, but I'm hoping there's a few solutions out there.
    My system:
    IMac, Mid 2011, 21.5.  16GB RAM,
    Graphics:  AMD Radeon HD 6770M
    storage: GTech 8 TB Thunderbolt.
    I'm running into constant crashes.  Two different projects so far. 
    1st Project is HDV footage from my old Sony camera.  Captured fine, seem to cut fine, but when I started dealing with some graphics and keying issues, PP6 would stop responding and I'd have to Force Quit out.
    2nd Project is a show reel for a friend.   I'm cutting pieces of his compositing work out of Large HD resolution AVI and MP4 files.  Basically he's grabbed copies of the films he worked on and I'm pulling clips from those.  This one crashes every 2 minutes just out of spite I think.
    I'm writing all that to find out if it's the media I'm using, or the system config, or if there's something else I'm unaware of, though I think most likely a combination.
    Again, ideally I won't be cutting a lot of HD material, or much long form, but I wanted a home editing solution that would work.  BTW.. I was running a AVID demo version with no issues.  sd
    Any helpful suggestions are appreciated!
    thanks

    Couple things... general about permissions, and a specific link about crashes
    Mac and Root User http://forums.adobe.com/thread/879931
    -and http://forums.adobe.com/thread/940869?tstart=0
    Troubleshooting guide for Mac freeze
    http://helpx.adobe.com/x-productkb/global/troubleshoot-system-errors-freezes-mac.html

  • Dynamically updating data in ADF

    Hi,
    I am currently developing an adf application where I need to show some dynamic value to the user based on the user login in application.
    Now I am getting this user specific value by using API calls and feeding the view table of ADF, which in turns creates the row dynamically and display the result to the user.
    The issue is that since I am feeding the data in View table of ADF dynamically, if a different user log in to the application then at that time the API calls will fetch that user specific details and will delete the existing data from the table and will insert the new values.
    So the value which was displayed to the 1st user will not be available for use.
    Please help me in solving this issue.
    I am using Jdeveloper 11.1.1.5

    Hi TImo,
    Thanks for the reply and suggestion. I will try the suggestion given by you and will let you know if face any issue.
    Also please let me know if is there any way to dynamically displaying the data in ADF instead of inserting it first in table.
    Thanks much !!!

  • Dynamic updated data management/displaying

    Hi
    I've a question regarding architecture selection for my project. I need to create something like bwin.com has in live betting. Customers have a page with current options that are changed very fast, admins have a page to change the options. The question is how to implement this to achieve best performance. That's my idea:
    Admin has a JSP page with AJAX stuff to add/remove/update things visible on customers side. When he changes anything, it's saved using EJB in db, but also in XML file.
    Customers site reads data (every 5 secs, using ajax as well) just from XML file to make sure db is not overloaded. Only when he wants to make an action on given data, double check (with data from db) is made.
    What do you thing about this? Is it the fastest solution? Other ideas? Maybe web service for getting data for client?
    Thanks in advance for all tips,
    Michal

    Hi Bhaskar,
    I deleted the request and again loaded with full load, still problem remains same.
    what do mean by how the data is stored in RSA3, I did get this pl clear to me.
    In the PSA I found "update Request is not genareted"
    in what case update request will miss, I think that is problem.
    can you help.
    Regards.
    Vijay

  • Updating data in a table...please help

    Hi,
    I'm having a problem with the following code..
    OracleTransaction myOracleTransaction = null;
    OracleCommand myOracleCommand = conn.CreateCommand();
    myOracleCommand.CommandText = "UPDATE conturi_curente set cod_cont=12 where cod_cont=100000;";
    try
    myOracleTransaction = conn.BeginTransaction();
    int x = Int32.Parse(lstBoxConturiCurente.SelectedItem.ToString());
    MessageBox.Show(x + "");
    // string cmdQuery = "UPDATE conturi_curente set cod_cont=12 where cod_cont=100000;";
    myOracleCommand.ExecuteNonQuery();
    myOracleTransaction.Commit();
    catch (Exception exc)
    MessageBox.Show(String.Format("{0}\r\n{1}", exc.Source, exc.Message));
    and I get the message "ORA-00911 Invalid character", and I have no idea what the problem is..
    Please help...I am new at working with ODP...and there are very few examples on the net..
    thank you.

    remove semicolon (;) from your query command text

  • Update date approaching want some help before going into store

    Hi my renew date is approaching (22nd of this month) I currently have 3 phones on my family plan 1 of which I do not want to have removed and have my current plan downgraded as I wont need as many minutes should this create any problems when I go to renew the other 2 lines on the phone? Thanks for any help just dont want to go to the store and look like an idiot in 3 weeks.

    karkz31 wrote:
    Well you answered part which I kinda new but I'm I able to cancel my that 1 line at the same time which would be the 20th month of the 2 year contract
    You cannot cancel the 2 year contract without an Early Termination Fee (ETF) until after the end of 24 months.  Typical ETF's at the 20th month mark are $75 0r $150 depending on the type of phone purchased with the original upgrade.  It will probably be cheaper to maintain the line throught he 24th month.

  • Is there a way to dynamically update date in the file comments every time I save the file?

    My files starts with comments on who has created them and such.
    I want to update the datefield where it says it was last modified. It would be very tiresome to update it manually every time, and I am looking for a easier way.
    Of course I can always check in SVN when someone did an update, but I would like to see it in the files as well.
    Could anyone point out if there already is a working solution for this or if I have to hack it myself?
    /Thanks

    More breadcrumbs on Subversion keywork substitution.

  • Update Routine ... Help me Please--VERY URGENT

    Hi All ,
    I Moving data from Cube to ODS . Let me explain abt the records in the cube .
    There are 6 key figures in the cube as well as dimensions, UNIQKEY TRANSACTION is One Dimension and ARTICLE is another dimension which is having an Navigational attribute called CORE ELEMENT.
    I am showing the data with those two dimension and the key figures which are to be used in the routine.
    Charc----
    Key Figures
    UNIQKEY-ARTICLE-Coreelement--
    billqty     
    in base unit
    A00N----1006330--1--
    10.5
    A00M -
    1006320----2--
    2.5
    A00P-----1006330--1--
    10.5  
    A00P-----1006320--2--
    2.5
    A00Q-----1006320--2--
    2.5
    A00Q-----1006340--3--
    10.5
    Now Lets see what the core element numbers mean,
    core element 1 means -- fuel .
    Core elemnet other 1 -- food .   
    I need to move these data into ODS Which will have an extra field called No of items in the transaction --ITEMS.For this i need to write  a routine .
    The Logic is ...
    1.if Materail is of type 1(Means if the core element - 1)
    I need to Populate the No of items in tnx = 1 .--ITEMS.
    2.If Material is of type(Means if the core element)2or 3 I need to populate the billing quantity to the no of transcations.--ITEMS
    3. If the Uniqkey tanscation contains two line items as  suppose that you have 20 litres of fuel and 2 cans of coke, then No of Items in the transaction should be 3 and Billing Quantity in BUoM 22
    billing quantity in BUoM = 20 litres for the first line item and 2 for the second line item...
    then as the first line item is fuel, field No OF Items in the Transcation should be 1 (replacing the 20) + 2 = 3
    so the final result in the ODS should be billing quantity in BUoM = 22 and The Items in the Transcation= 3
    So the ODS Data should look like this.
    UNIQKEY--billqty--
    ITEMS
    in base unit 
    A00N--10.5--
    1
    A00M--2.5--
    2.5
    A00P--13--
    3.5
    A00Q--13--
    12.5  
    NOTE : IN the ODS only the UNIQKEY IS THE KEY FIELD and the rest are DATA FIELDS.
    I Posted this one before also. But didnt get proper responses.
    I am Pasting the piece of code which I have written . This code will work for the first two records in the cube , But it is failing for the UNIQKEY Transcation having Line items.
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line  -
    TABLES: /BI0/PMATERIAL.
    DATA: TITEMS LIKE /BIC/AZPOCODS00-/BIC/ZTITEMS,
           CORE_ELEMENT like /BI0/PMATERIAL-RPA_WGH1.
    $$ end of global - insert your declaration only before this line   -
    FORM compute_data_field
      TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
      USING    COMM_STRUCTURE LIKE /BIC/CS8ZPOCTUS04
               RECORD_NO LIKE SY-TABIX
               RECORD_ALL LIKE SY-TABIX
               SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
      CHANGING RESULT LIKE /BIC/AZPOCODS00-/BIC/ZTITEMS
               RETURNCODE LIKE SY-SUBRC "Do not use!
               ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
    $$ begin of routine - insert your code only below this line        -
    fill the internal table "MONITOR", to make monitor entries
    check not COMM_STRUCTURE-material is initial.
      select SINGLE RPA_WGH1
            INTO CORE_ELEMENT
            from /BI0/PMATERIAL
            where
            material = COMM_STRUCTURE-material
            and  OBJVERS <>'D'.
       IF CORE_ELEMENT EQ '1'.
       TITEMS = '1'.
         CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
           EXPORTING
             input         = titems
          IMPORTING
            OUTPUT        = titems
       ELSE.
       TITEMS = COMM_STRUCTURE-BILL_QTY.
       ENDIF.
    result value of the routine
      RESULT = TITEMS..
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -
    PLease give me ideas on how to acheive this . As I am not Aware of ABAP very well.. PLease try to give me the code. I hope one of you may got the same requirement before.
    Its very urgent and I need to deliver it today itself.
    Thanks in advance , you can mail me to [email protected]. If anybody intersted to discuss this Issue they can reach at +91 9845922955.

    Hi ,
    While I am moving the data from cube to ods . I need to create the update rules with cube -- 8cube . WHen i am doing this the billqty is a key figure in cube so that is not a problem but the ITEMS is not there in the cube ,SO for that I need to write a routine to populate that one.
    Its strange but the user what to analyse with the UNIQKEY transaction. And these objects will be added as navigational attributes to the Characteristic. as it acts as another dimension.
    He wants to laod these from ODS to Master data -Characteristic.
    to say for each transcation hpw many items are getting sold.
    Message was edited by: Nagarjuna Reddy
    ONce again thanks for the qucik replies
    Message was edited by: Nagarjuna Reddy

  • Hi when I try to update any apps I have recently had errors and could not update them. Anyone got any suggestions please?

    hi when I try to update any apps I have recently had errors and cannot complete the update - anybody got any suggestionS?

    Mac OS X Lion 10.7.3
    QREncoder App
    Talk To Me App
    Screensaver App
    All apps don't seem to download or update.
    Only recently has this started happening
    It starts to either update or download then stops and a small box pops up saying it has errored and would you like to retry or cancel

  • Can't log on to my FaceTime after iOS 6 update.... Help me please

    Ever since I updated  my iPad2  with iOS6, I can't get on my FaceTime. I've reset the password and I still can't connect. Pleaseeeeee someone help me!!!!

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime: Set-up, Use, and Troubleshooting Problems
    http://tinyurl.com/32drz3d
     Cheers, Tom

  • Quicktime no longer works since I updated Firefox - Apple won't help. Please advise.

    When I get an Italian word of the day and click to play audio of it in sentence, I get a quicktime message that it needs a component. This just started happening, maybe since I updated Firefox. Not sure. I called Apple and they had me download something which fixes it with Safari and they say it's a Firefox problem. Any advice? I prefer Firefox.

    The company that make the bioscanner for HP have abandoned it. For more details see https://support.mozilla.com/en-US/questions/799388

  • Help - Suggestions - Please!

    I recorded narration and converted it to aiff. I have ppt
    images that I'll convert to useful format. I want to create a
    Flash-based online presentation with images changing at specific
    audio cues (basically a linear presentation -- player controls and
    interaction are not primary considerations at this point).
    What's the preferred approach:
    1. Import audio and images into Flash and build there?
    2. Build everything in a video editing environment (I'm
    experienced -- Avid MC, Final Cut Pro, Premiere), then convert to
    fla?
    Thanks.

    I just did what you're talking about and I went with #1. I
    imported the audio and images into Flash and created, basically, a
    linear presentation with audio cues. This presenation was
    originally in PowerPoint, but when running off a CD, the audio cues
    got messed up so I suggested we try it in Flash.
    The first attempt looked great and I learned some tricks to
    make the next one a lot cleaner but the whole presentation looked
    and worked great. Now I have a presentation that will run as a .swf
    file, .mov file, will run on a PC locally or off the Internet and
    I've converted it to a DVD format to run on a DVD player and
    standard TV. It's awesome. Plus, I haven't tried it yet but it
    should also convert to iTunes to play on an iPod. Now our
    presentations can run on just about any platform.
    My next task (and the one I'm struggling with now) is to use
    the Slide Presentation feature of Flash. Building the slides are as
    simple now as in PowerPoint. I'm just working out some timing
    issues.

  • CANT receive data via a network, help me please

    Hi, I am not as newbie as I look like to.
    I am trying to receive data through a network. The problem is that I dont know the file size, so I kept reading until reaching the end of file and the save it to a file. The problema is that I am never geting the -1 result from the read method.
    Now, I noticed that the -1 is returned when I close the DataOutputStream. So thats okay. The problem is that the sender is not make in java, but on pocketBuilder. And I cant ask for the client to close an outputStream. So Is there any way to just read the data without knowing the number of the bytes to receive and doesnt waiting for the end of the stream.

    When the number of bytes read is less than the array
    lengthThat doesn't necessarily mean you're at the end of the data.
    Any other wahy, maybe a timer (if is not receiving
    any byte for 20 seconds then cut the conexion?)Again that doesn't necessarily mean you're at the end of the data.
    There is no way to know you're at the end of the data without either an application protocol containing the length, or a socket close at the sender.

Maybe you are looking for