Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Sep 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to reload web content for phone only when content is updated.

    Currently I use fixed time interval as the control to refresh the wap/webpage in view by phone. But frequent refresh/reload make the Phone bill on GPRS rocket high.

    To minimise the amount of data transfer (between phone and server) if no new update is available on the web
    1. Is it possible reload the page inview by phone whenever the update is available? or could the phone check whether there is any new update before download is allowed?
    2. How much is the byte size for the phone to check with the server without download?

    Manual refresh is not an option as viewer may miss the update in between.

    Appreciate your help.

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,471
    Thanks
    8
    Thanked 1,085 Times in 1,076 Posts
    I would think any request made by the phone, whether it's a website,
    or a server-side script would be the same. Unless it's a byte issue.
    Do you get charged per byte of transfer, or by each access (refresh)?

    That would be the only thing that would make the difference.

    Even if the server knew the page had updated, the phone won't know unless
    it either requests that info, or does a screen refresh. Both send headers.

    The problem with using a javascript to check for updates ... what if several
    people are accessing the same site? How would each one know if they are
    looking at the latest update?

    I don't know the answer to this question ... can the individual phones use
    cookies and javascripting within themselves?

  • #3
    Senior Coder
    Join Date
    Apr 2005
    Posts
    1,051
    Thanks
    0
    Thanked 0 Times in 0 Posts
    maybe setup a callback function on the website and send out the header from the server?

    i'm not exactly sure how you would do that. maybe a hack implementation of XMLHttpRequest?
    public string ConjunctionJunction(string words, string phrases, string clauses)
    {
    return (String)(words + phrases + clauses);
    }
    <--- Was I Helpfull? Let me know ---<

  • #4
    New to the CF scene
    Join Date
    Sep 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Guys, really appreciate your time to look into this post. Thank you rlemon and mlseim.

    Just to clarify the situation.
    I have made the wap page "relaoded/refreshed" whenever new info is updated on web site.
    The charges on phone is by size of data transfer via GPRS not number of reload. Currently no matter how small is the wap page (2 character or 100 character) the reload size is still 1K byte.

    As the goal is to make the tranfer size smaller
    -Is there a way to shrink the wap page reload size of 100 alphabet to a smaller size rather than 1K byte (i was surprise to see both 2-character wap page and 100-character wap refresh also need 1K byte to be transfer to the phone)?
    -when the phone send header to check with web server, is there a minimum size of 1K like reload/web page? how to do this efficiently (in term of byte)?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •