Widget displays daily - best solution?

Hello

I made a widget that shows 40 new each morning.

For the moment, I push the news every morning, as a string of 40.

When my widget news, it stores it in a database of google gears.

On my index.html page, I have a table. Each line is a new.

My problem is that it is very long to load.

------------------------------------------------------part of my load method ------------------------------------------

If (rs.isValidRow ()) {}
Add entries to the table

While (rs.isValidRow ()) {}
                                   
"linkTable.innerHTML +="."+ rs.field (1) +""+ rs.field (2) +""+ rs.field (3) +"";
                  
RS. Next();
}
RS. Close();
}
Data.Close ();

------------------------------------------------------------------------------------------------------------------

If I go to another page and back to the index.html page, I still have to wait for loading...

What is the best solution for this kind of request?

Thank you very much

The manipulation of the DOM is extremely costly on a mobile browser. Whenever you update the DOM it will recalculate a layout and re - calculate the information on the page.

In your code example, you would be able to accelerate a lot just using a variable to concatenate all your DOM elements in the first loop and then just call "linkTable.innerHTML" once to then update your page.

Your code is now updates the DOM 40 times and whenever it updates, it must recalculate the page layout. Each update of the 40 will be progressively slower because the DOM increases in size.

Tags: BlackBerry Developers

Similar Questions

  • Best solution to display an external PDF / a viewer Android?

    Of the previous agreement, a link to the PDF in the file HTMLResources.zip files is not supported on Android - is this always the case?

    As a work-around before v31/v32, greeted us the PDF files on the server and put links in the article. When the user clicks on the link, it starts the external browser and downloads the PDF file so that the user can do with app support,

    However, since the last release (v32.2), native Android viewers seem to open every Web link in a browser in application, and all of a sudden our ways to download PDF files don't work no more (in our tests within the content viewer).

    What is the best solution to display an external PDF file in a native display Android in this case?

    Thank you

    A link to the PDF in HTMLResources files is now supported on all platforms.

  • Best solution to get the pound sign displayed US7ASCII DB in Reports11g

    Hello

    We know that the conversion of AL32UTF8 database would be the best solution.
    But we have not prepared for it yet. We are looking for the best solution solve a problem.

    Run a particular report we know ' ORA-12713: NCHAR/CHAR character conversion data loss ' errors. When investigation we saw that they are either lifted when the report attempts to retrieve the text that contains the symbols of Pound (£). (chr (163))

    Y at - it no good work around for this kind of symbols in forms/Reports11g?

    Information about our system
    Database: 10.2.0.5.0 - linux 64-bit
    AppServer, Forsm: Weblogic 10.3.2; Portal of Fusion Middleware 11 g 1 matter, forms, reports and discoverer 11.1.1.2.0 x 86-64
    OS: RHES 5.5 x86_64
    Linux locales: UTF8
    LANG is en_US. UTF-8
    LC_CTYPE = "" fr_FR. UTF-8 ".
    LC_NUMERIC = "" fr_FR. UTF-8 ".
    LC_TIME = "" fr_FR. UTF-8 ".
    LC_COLLATE = "" fr_FR. UTF-8 ".
    LC_MONETARY = "" fr_FR. UTF-8 ".
    LC_MESSAGES = "" fr_FR. UTF-8 ".
    LC_PAPER = "" fr_FR. UTF-8 ".
    LC_NAME = "" fr_FR. UTF-8 ".
    LC_ADDRESS = "" fr_FR. UTF-8 ".
    LC_TELEPHONE = "" fr_FR. UTF-8 ".
    LC_MEASUREMENT = "" fr_FR. UTF-8 ".
    LC_IDENTIFICATION = "" fr_FR. UTF-8 ".
    LC_ALL =
    NLS_LANG variable env for user oracle set to AMERICAN_AMERICA. UTF8.


    Thanks in advance.
    Best regards, Zoltan

    Immutable csscan results do not guarantee that all codes are interpreted as WE8MSWIN1252. Only, they guarantee that all bytes are valid codes in WE8MSWIN1252. Only an analysis of the languages that are stored in the database will give you the guarantee (for example if all users and all external data sources are from Western Europe, you can assume that all character codes are interpreted as WE8MSWIN1252).

    If you notice that all codes are WE8MSWIN1252, migrate the database character set. I don't see any other effective way to solve the problem.

    -Sergiusz

  • Xperia z3 foto widget display the broken image icons instead of thumbnail/preview image

    Initially, I used my Z3 without SD card. Any word very well: album AND the foto widget that allows to navigate through the photos.

    After

    -installing an SD card,

    -changing the location for newly taken photos on SD card

    - AND by moving some pictures of other directories-

    - AND the creation of a number of files .nomedia on these directories to make these photographs appear not not in the album, nor in the foto widget.

    foto widget displays an icon of a broken image for all photos taken prior to this change. All new photos appear in the widget and app album.

    I delete the file data and the album (in album settings - all apps) cache-.

    It does nothing (so far).

    How can I force the app/widget album to recreate its database and preview/thumbnails?

    Thank you very much.

    M ~.

    Working solution for the following:

    Order the soft MediaStorage
    Settings > Apps > all > storage media (FROM: Medienspeicher) "App Info" > stop App

    Data deleted from the App MediaStorage
    Settings > Apps > all > storage media (FROM: Medienspeicher) 'App Info' > clear data

    Restarted the application (via MyPhoneExplorer) or by rebooting the phone.

    The process appears in the form "android.process.media" in the list of processes (not sure, I guess) android

    To provide a treatment could turn the endurance mode or add "MediaStorage" to the list of exceptions of runing apps background even in mode stamania.

    (> a) how long it would take to recreate the database and photos? The directory of the main image (DCIM on the SD card) contains > almost 1000 photos).

    A: it is __NOT__ take very long. For my 1000 + pictures and a few videos is was a matter of minutes to see the widget started foto avatars correctly and see the album recovers very quickly. If you reach a corner of the album or the photo images widget still not recovered, the image appears rather quickly.

    (>) b where residing the .thumbnails directory? -After accepts the SD - be - it in/storage/sdcard1/DCIM or > in/storage/sdcard0/DCIM as it was before the installation of the SD card?

    R: it seems that the .thumbnails directory still resides on the internal memory (i.e./storage/sdcard0/DCIM). This is at least the case for my phone.

    It also seems that .thumbnails files are ONLY used for the foto widget for the App album someone could confirm?

    (> c) how to either force the media scanner to run and update the widget photos foto and the album database / see/check that

    > it runs.

    Stop the MediaStorage process, clear data from this application and start it again again and keep visiting the widget from the album and or foto.

    See you soon,.

    Michael

  • What is the best solution of virtual machine to run El Capitan in Mountain Lion?

    Looking for the best solution run El Capitan in a mac Mountain Lion. I just need to use El Capitan to run xcode.

    There are 3 main reasons that I improve my main system at El Capitan:

    1 apps that I always trust that are only optimized to work up until the 10,8

    2. I want the convenience of not having to restart my computer to use 1 program.

    3. don't like projector or the interface of the user interface in general of 10.11

    Knowing that, what solution recommend you so I can use El Capitan in the environment of mountain lion.

    I know only vmware and parallels. Other options I'm missing? What would you recommend?

    Thank you

    I would recommend "don't bother." You don't like El Capitan then why do you want what it? If you know how to partition a disk, then install El Capitan on a new disk partition.

  • Is alcohol the best solution for the cleaning of the product

    Sometimes you print quality problems. You cannot print the colors, bad impression or bad imagingin during the scan images.

    You go through all the troubleshooting steps away as cartrides, glass, rollers of the printer cleaning and replacement of cartridges.

    Ask yourself what you should used during the cleaning of the unit?

    WATER and a LINT cloth, would be the best solution for cleaning. You can absorb the water on the cloth and clean the printhead, cartridges, the scanner glass, rolls and any other area that needs to be specific to the unit.

    ALCOHOL IS NOT AN OPTION. This can damage the strips and the contacts on the cartridges and the print head. The next time you need to clean your product, water is the best option.

    Hope this helps everyone.

  • Best solution for installation of Photoshop and Illustrator? Issue of the BONE.

    Best solution for installation of Photoshop and Illustrator?

    I works with InDesign CC 2014, but cannot download the PS or I ("you run an operating system the program can't"). My current system is: OSX 10.8.5.

    Any thoughts?

    Congratulations in advance.

    Requirements for programs of cloud... scroll down and check each program

    -http://helpx.adobe.com/creative-cloud/system-requirements.html

  • Flash video... best solution?

    Hey there

    I made som charater beautiful animations in Flash, and now I need to do this in a video.

    I know that flash has some parameters of export to mov and AVI, but I have never had much success with these settings, perhaps because I am doing wrong?

    But who is the best solution or is it a third party software that you can recommend?

    Thanks in advance

    Kim

    I don't have a recommendation from a third-party tool. I never use them.

    For a successful video release of Flash:

    1. classify your original Flash step to match the size of the final video. If you want an 800 X 600 video, they make your scene Flash 800 X 600.

    2. set the pace of your Flash file to the frame rate that you plan to use for the video. If you want 30 images/s then set the Flash to 30 frames per second.

    3 use the timeline for your animation. You can include videos animated on the main timeline and control these clips with Actionscript, but stocks are minimal, play(), stop(), nextFrame(), for example.

    4. you can import video into Flash animation library and use it on the timeline, but remember he play at the framerate of the timeline, his original framerate.

    5. you can import audio data in the library of the Flash movie and use it on the timeline. Set the synchronization stream.

    6. There are many options for the video output, especially if you're using Adobe Media Encoder. Start with one of the presets. Don't forget that it's using the rate of size and picture frame you want.

    7. change the date rate, if necessary, to meet your needs. The flow of data over the quality of the output and the larger the file.

    There is much more to digital video creation, but this should help you get started.

  • What is the best solution for this idea...

    I have a task I'm trying to test and understand what would be the best solution for this, any recommendations would be appreciated.

    Devices at your fingertips:

    -2 ESXi hosts

    -1 iSCSI SAN OpenFiler (new just installed the app)

    2 ESXi hosts run a small amount of virtual machines that are all in the same domain.  I want to have a file server (or a repository somewhere) that houses a folder with easily accessible software (OS, Office, etc.) on the field.

    According to me, that if I made a virtual machine with a large hard drive and share the software, this would not be the best way because it would be dependent on the OS.  Someone has talked about doing a separte VMDK for it and then install it on the operating system on the virtual machine. This way I could always remove the and mount it somewhere else.

    It seems a bit weird to me that the software within this "shared folder" will also be sitting on the data store (if I create a virtual machine and need to use the OS/etc).  Not that doubles the space for the same software (in the comments, then the data store)?

    What is the best approach to make this action which can be accessed at the prompt (mostly windows) in the field?

    What is the best way to stay away the software doubles in action and on the data store?

    Please forgive me if I put interpereted your question.

    The problem you seem to face is that you must mount the ISOs of VMS software and physical systems that are on the field.

    (please, correct me if I'm wrong on this)

    If this is the case, then the best way to do would be to create sharing NFS on the openfiler, if you use openfiler to main databases also then he would be better for sharing this was separated to prevent the other help to be able to tamper with the VMDK and VMX files for your virtual machines.

    This could then be mounted in ESX to access the ISOs. While being easy to install on Linux and Windows machines to access the ISOs.

    If you have questions about NFS mounting in windows, so, this link may help

    http://sagehacks.WordPress.com/2009/01/21/HOWTO-mount-NFS-shares-under-Windows-7

    If you are needing to access the VMs software and it is mainly the downloading ISOs then th ISO directly to the data store is possible.

    This allows you to use ESX to mount the ISO on the virtual machine.

    On the point that the software will use double disk space when you install the software on a machine virtual car will be on the network share and the VMDK virtual machines in the data store. That's right, and that's by design.

    Each virtual machine under ESXI is 'independent' (http://www.vmware.com/virtualization/virtual-machine.html)

    This means that each virtual computer must have its own copy of the application.

    This perspective reflection of each virtual machine as a separate system of 'physical '. They interact with each other as if they were physical systems.

    Each VMDK resembles a physical hard disk. Being accessible (in most configurations) 1 VM at a time.

    So if you had a set of physical systems connected to a domain and I wanted to install an application on each one, then each would have its own local copy of the application. It's the same thing with virtual machines.

    However

    If you configure a set of physical machines so that you run the software from a network share. It is possible to do the same thing using virtual machines using the exactly the same configuration. However, the chiefs more associated to this are important in both cases.

    Concerning

    Cyclooctane

  • Need the best solution for the special case

    My version of oracle is 11.2.0

    My name of the table is nitkhush and have a column named long_string of long data type

    The values of the tables are

    LONG_STRING

    Vincent
    Murali
    Bharath
    Nitesh
    Perron
    Married


    I know its not appropriate to use the long type, but again I want to understand the concept, so I've used and should
    output is


    Vincent Kumar
    Murali Kumar
    Bharath Kumar
    Nitesh Kumar
    Perron Kumar
    Married Kumar


    I tried this query
    Select 'Kumar ' | long_string nitkhush but error is ORA-00932: inconsistent data types: expected NUMBER got LONG so I tried to convert in varchar2 pl/SQL

    DECLARE
    LONG temp_long;
    temp_var VARCHAR2 (4000);
    BEGIN
    SELECT 'Kumar ' | long_string
    IN temp_long
    OF nitkhush;

    temp_var: = SUBSTR (temp_long, 1, 4000);
    Dbms_output.put_line (temp_var);
    END;

    but still unable to do as I thought store at length and then using SUBSTR function it will convert and store it in a variable of type varchar2 data but it does not, and according to my knowledge CAST do not long support for the conversion of varchar2 so someone can give me best solution but I need complex queries wholesale as it should be as short as simple to understand so that all the world can understand it easily... And also through the procedure, I tried so that execution of the procedure but still unable to... I tried throgh procedure also all as written above...
    Thank you
    Nitesh Perron.

    If you have to / want to change the default value of a column, you should not update the system tables but use an alter table command
    And by the way, it works

    begin
      for r_col in ( select *
                     from user_tab_columns
                     where table_name = 'MY_TABLE'
                     and data_default is not null
                   )
      loop
        dbms_output.put_line( r_col.data_default || 'Anton' );
      end loop;
    end;
    
  • Best Solution to backup all the VMS to ESX 3.0 Server

    Dear admin,

    What the best solution for the protection of all the server/VM inside the ESX 3.0 server if equipment malfuction?

    As everyone has pointed out, HA provides defective material so really have good VMware ESX 3.5 HA, DRS and VMotion grouped where it gives you the flexibility to migrate VMs live/cold.  If you have already a San and 2 ESX hosts that can be made.  I would recommend that you add more memory to your hosts, because this is where performance counts.  You design with N + 1 in mind, which means at least that your standby hosts can manage all the virtual machines if it must pass dead server.  So, you could buy 1 server more or add more memory to contain virtual machines.

    VMware.com has good resources for architecture and planning on the new cluster check it out for more details or visit the VIOPS.

    If you found this information useful, please consider awarding points to 'Correct' or 'useful '. Thank you!!!

    Kind regards

    Stefan Nguyen

    iGeek Systems Inc.

    VMware, Citrix, Microsoft Consultant

  • In order to get best Solutions to move the code from Dev to Test: 11.1.1.3

    In order to get best Solutions to move development code to the Test Server: Studio Edition Version 11.1.1.3.0

    Development: Hostname: dev; Web logic server: WLSDev; Database: DBDev

    Test: Hostname: test; Web logic server: WLSTest; Database: DBTest

    Now, how to code the Test environment development environment? Once the code is derived from development, test team may not touch.

    You cannot create 2 datasources with the same JNDI name (I assume you meant JNDI and not JLDN) in the same field of WLS - you have to use separate domains.

    John

  • ARTICLES CMS BEST SOLUTION FOR A PORTFOLIO FOR ADOBE MUSE.

    Hello

    I'm looking options to set up a blog for a portfolio site

    The qualities I'm looking for:

    It should probably be responsive.

    Can the title

    Can be updated via CMS backend

    Text or images must be optional

    Have lists of at least 4 pages leading to individual pages for portfolio or product pages.

    I briefly checked the below examples but do not understand the answers I'm looking for I am new to Articles

    RSS feed widget

    Mumbler

    Publiz

    and the other 2 options have passed my way.

    I need of detailed explanations and advise what the best option to meet my needs.

    Kind regards

    Aaron

    The best independent and native solution to blog at the moment is probably this one:

    Muse blog

    You have a blogging system, which is managed completely within the Muse, allows you to post and comment by all conceivable variants, and even contains a multi users system.

    If you are looking for an integrated system of self-hosted blogging (not simply a tumblr blog) there no real alternative at the present time. Maybe MuseThemes "Agent" will be a solution, but it usn was available yet.

  • Best solution for & quot; nested & quot; by dragging

    What is the best approach to enable drag nested?
    Here is an example of what I mean with "nested":

    I have an application that displays an image of a country, since the image is larger than the area that displays the image is movable, so that the user can choose which part of the image he wants to see.
    hOn top of the image are the cities of the country, these must also be moved because the user must be able to change the location of the city if the current is wrong. The 'friendly' search app in like this:

    < application >
    < DynImage id = "map" source = "USA.jpg" >
    < decorators >
    < positions >
    < label city = "NYC" >
    < label city = "LA" >
    < / positions >
    < / decorators >
    < / DynImage >
    < / application >


    My request is made up of 2 generic components made by me:
    DynImage - takes an image and makes zoomable, draggable and puts additional layers ("Decorators") above this one that also gets a zoomed out.
    Post - takes it is childs and makes draggable and send an event when a child has been moved with the old and the new coordinates.

    The two components listening 'mouse-downs. "
    When the user tries to move the map, everything works fine: the user clicks on the map, the map.startDrag () function is called and the card is swiped.
    The problem arises when the user wants to drag the city: when the user clicks on the city, the town.startDrag () method is called, AND directly, thereafter, given that the user has clicked also the underlying plan, the map.startDrag () method is called. What makes the card get drawn but not the city.

    This is exactly how the API said that there should be:
    startDrag - "lets the user drag the specified sprite. The sprite remains draggable until the Decree of way explicit through a call to the method Sprite.stopDrag (), or another sprite made draggable. A sprite is draggable at a time. »

    I want to make is that only the city get moved when the user clicks on a city. The good thing is that the component of the Position is the one who first gets the event. This means I could put some kind of statement in DynImage who don't call map.startDrag () If no move is made, but it is possible to check this? (I tried DragManager.isDragging which displays 'false').

    What would be the best way to solve this problem in a component-fashion way?

    Hehe, as you do this often, I found a solution right after that I posted this. But if someone has a better suggestion please answer.

    One solution, perhaps not preferred, would be to leave the component call mouseDownEvent.stopImmediatePropagation (); What would make the DynImage never get the event. It is, of course, not so good since it may 'break' functionality for other components who are waiting for this event.

    The alternative, which is obvious for talented people normally :-) would probably be for the DynImage to check the mouseDownEvent.target property. If the user has clicked on a city, the city is set in this property. But if the user has clicked directly on the image, then this property is that loader object-images. In other words to verify if the card should be dragged I can just check if the following is true:

    image is mouseDownEvent.target.parent

  • Yahoo mail display - action buttons like response, delete, before them and the colors are not displayed. The solution to "clear the cache" does not help.

    The foregoing summarizes. Guests for action was now small boxes with a number and a letter of the alphabet. I used the "empty the cache" and solutions "allow pages to use their own police." neither one worked. This figure includes re-start after that I tried the solution.

    You have the problem where rectangles appear with two rows of two characters in them? This can happen when Firefox cannot display a custom font to view icons.

    Could check you if you allow sites to use their own fonts?

    the button Firefox orange (or the Tools menu) > Options > content > "Colors and fonts" section > advanced

Maybe you are looking for