XML and the data recovery

Hey,.

Not sure if this is the right section on the forum:

I was wondering if there was a way to retrieve data from an XML page.

For example, I want to create a BBApp that can request a XML page and once it has loaded to extract all of the appropriate fields and load them into a graphical user interface - without actually loading the page, basically I just want to create demand and get the XML Source Code and mine through this XML Source data.

Thanks in advance,

Jovinus Sveinbjornsson

Hi Eva,

This can easily be done in a BlackBerry Widget.  You will use the built in support of AJAX and the XMLHttpRequest object.

You can retrieve the contents of the XML file via an AJAX call.  When it returns can then access the property of '.responseXML' which has already crawled your XML DOM document.  Just to make sure to whitelist the domain in the config.xml file to allow access to that external resource.  There are a bunch of samples and videos that explain this concept.

You would then just browse XML and create your HTML code to reflect your data and insert it into the page.  A good tutorial on AJAX can be found here:

http://www.w3schools.com/AJAX/default.asp

Now for some advice

If you are recovering data and then display as Web content within a widget, I would really recommend format of that content on the server in its HTML markup before sending it to your Widget in the AJAX request.  The reason why I recommend this is that there is a lot of manipulation of the DOM creating HTML nodes if you look at the raw XML data that is returned.

If you flip it over already in HTML server-side, you can simply replace an item on your web page using innerHTML.  On a device mobile, if you can offload the work to a server it certainly helps performance.

Tags: BlackBerry Developers

Similar Questions

  • Is it possible to add the location and the date on the pictures in a slide show?

    Is it possible to add the place and the date on the pictures in a slide show?

    Only if you manually add a title slide t photo and enter this information manually.  There is no automatic way in Photos.

    Click on the button "+" at the right end of the slide show to add a title slide.

  • Hello. I have perchased the new iphone, and I gave my old iphone to my little brother. I erased all the content and the date in the settings menu. This will automatically delete all my photos data old messages etc. thanks

    Hello. I recently perchased the new iphone, and I gave my old iphone to my little brother. I erased all the content and the date in the settings menu. This will automatically delete all my photos data old messages etc. thanks

    Follow the directions here: what to do before you sell or give away your iPhone, iPad or iPod touch - Apple Support before giving the phone to your brother. -AJ

  • shut computer down, restarted my time and the date has changed

    shut computer down, restarted my time and the date has changed.  My date always gose for December 31, 4001.  Goin whats?

    Hello
    Date and time incorrect after restarting is usually the result of a dead of the CMOS battery. You may need to contact the manufacturer of the computer for help on this issue.

  • Ubuntu erased OS and the system recovery Partition drive

    I wanted to test Ubuntu and install it with my Windows Vista. However, the Ubuntu installation failed and somehow corrupted and cannot continue with the installation. So just right now, I'm still in mode "test drive" in Ubuntu that runs on a CD player.

    Apparently he erased my drive hard because I can't start Windows (does nothing) and the F11 recovery partition would not be.
    This computer did not come with a recovery disk (I have the HP-m8000n) and it is refurbished.

    I just realized that these computers have these stickers that contain the product key. Could I possibly use this key again? If so, how can I install Windows Vista software? I don't have a record of it at all :(

    Please and thank you! I appreciate any response!

    In addition to Richard's response.

    Your key is for the specific version of preinstalled victory, a generic installation of OEM win "might" work with your key. You can, but try (with your key)

  • HP ENVY all-in-one - 5530 print page # and the date on the page.

    How to fix my printer to print the page # and the date on every page that I feel. (up or down, whatever) just really need this info somewhere on the page.

    Hello

    Internet Explorer should automatically put header and footer to any output UNLESS you remove this option. Then click on "print preview".

    After that, please click on the installation program

    You can add/remove/change all the fields in the list.

    Kind regards.

  • My main computer crashed and the data has been retrieved from the hard drive, including all of my Outlook Express dbx files

    I'll provide too much information because those of us who are computer knuckleheads think that everything is important since it is a mystery to us.

    My main computer crashed and the data has been retrieved from the hard drive, including all of my Outlook Express dbx files. There are four years of e-mails in these files and critical that I be able to open them.

    My only working computer running XP. It has Outlook Express is installed on it and was once used for e-mail, but not more and not implemented with my ISP to send or receive if it matters at all. Other that the sending and receiving of all the other functions of the OE program appear to be operational.

    I have read many explanations on how to open the files dbx on different sites - all is completely different and most seem well beyond my skill level.

    There is a fairly painless way to open these files? I don't want to try anything that could damage them. Please... any solution please guide me through in its simplest form - I am 64 but pretend you are explaining the process to a 7 year old. Yes, I'm that lame!

    Sorry for writing a novel and thank you to all who take their time to help the ignorant!

    I advise you to immediately copies of your DBX files restored. Save the duplicates in a place safe, and don't mess with them.
    Then try using one of the various tutorials that you have found on the Internet by using a copy of your DBX files restored.
    I did it a few times, but years ago and I DBX http://www.techrepublic.com/forums/questions/how-i-open-corrupted-dbx-files-in-oe/ visualization tool
    You just continue to make attempts, using a tutorial after another.
    As long as you have these unchanged copies of backup of your DBX files, you should survive it - other than frustration. Email PC remains a mess.

  • How to create a file name variable with the County and the date?

    Objective: Create a file name variable with the County and the date

    Error: get a lot of error. Do you know how to change my code?

    Question: how to create a file name variable with the County and the date?

    Mini code:

    std::string * rawfilepath;
    std::string * rawfilename;

    rawfilepath = "./shared/documents/";
    RawFileName = rawfilepath + 'rawlog -' + 0 + '-.txt ';
    QFile file (rawfilename);
    If (file.exists ()) {}
    rawfilenamecount ++;
    RawFileName = "./shared/documents/rawlog-" + rawfilenamecount + "-.txt ';
    }

    Thank you for your attention,

    Thank tzander reminding me the idea. Method of cascades is not good for me because all of the kernel code is written by Native. If I change the channel to QString, I need to change a lot of codes.

    Solution is below.

    While (access (rawfilename, F_OK)! = - 1) {}
    rawfilenamecount ++;
    sprintf (format, RawFileName, rawfilenamecount);
    fprintf (stderr, "file exists");
    }

    Rawlog = fopen (rawfilename, "w"); Save the file in a specific path.
    fprintf (rawlog, "System Time (ms)" "");

  • How can I get rid of the blue name and the date that is entered under the signature

    How can I get rid of the blue name and the date that is entered under the signature

    Yes! you see Configure text where you can uncheck date Logo etc...

    For more information, see image

  • Is there a window display and the data window as in Nuke for sequels?

    Not sure what the best way to Word this, but that's.  I wonder if there is a comparable feature in After Effects to what Nuke called the "showcase" and the data window".  I will do my best to explain my problem.  I'm jumping backwards between After Effects and Nuke.  I used After Effects extensively since version 6.5 to 2005 or 2006.  I've been tinkering with Nuke for years now, but now I'm determined to get competent in it.  One of the features I noticed Nuke who seems to be lacking in After Effects is the "bounding box/display window" that appears as a white dotted line around an image in the display window.

    Right now I'm working on a show that is My.cnf anamorphic linear exr with a deliverable 2158 x 2272 resolution.  There is a pixel 233 pad/mat up and down so that the image is actually 2158 x 1806.  If I open one of these files/shots in Nuke, I get the picture, 2158 x 1806 in the display window with a blank line dotted around her, within the metadata of the node, Nuke reading tab called the "exr/data window.  It's floating in a sturdy white box that defines the full resolution of the photo (2158 x 2272), which includes 233 pixel black padding up and down.  The anamorphic 2:1 ' squeeze' automatically' corresponds to the image in the display window 2158 x 1806 and remaining leaves 466 pixels up and down black and calls this overview read full resolution the "showcase" in the metadata tab of the node.  Nuke reads metadata exr and performs the anamorphic compression. 

    If I open the same file in after effects CC, it cannot read the exr metadata so it does not apply a squeeze anamorphic and it stretches the image of 2158 x 1806 to fit the area of 2158 x 2272 complete resolution.  I have to shrink the image to 79.5% on the Y axis to get it's good aspect ratio.  After effects 2014 and 2015 WILL read the metadata and do the squeeze automatically, BUT when you return, he makes the black bars on the top and the bottom, Cook in the file.  If this file is read Nuke, it opens fine but it will no longer be a data window around the image because the entire image is defined by both the 2158 x 1806 and 466 pixels of padding.  If I turn of Nuke, it does NOT the black padding but stretches the image 2158 x 1806 in the "data window" to mount a 2158 x 2272, defined as the size of the file "window" that gets pressed again to a 2:1 ratio when it is read in Nuke.

    It's exhausting to write so I would be surprised if anyone makes it all through in this.  Since I have to do, I'll leave this here, in the hope, I gave enough information for someone to recognize this situation.  I hope I'm missing something for After Effects to read and write these files in the same way Nuke.  I am new to the exr world.  I have always used the DPXs in the NEWSPAPER.  In order to work with linear files above them in EXRs is kinda weird too.  Thanks for reading if make you throughout this, I hope that he has no sense at all.

    With version 1.9, the plugin EXR changed its treatment of displayWindow. He used to ignore it, but now it crops the displayWindow throughout. Most people prefer this, but you can be the exception. Fortunately, there is a way to restore the old behavior with the instructions in this message.

    AE does not have this notion of dataWindow/displayWindow together, so there is no way to make an EXR this way. I suggest to make the buffer full off-AE, then perform an adjustment in Nuke to re - define the displayWindow. There is also the EXR command-line tools that can do.

    If an EXR file has a pixel aspect ratio other than 1.0 (square), which should be reflected in AE. If it wasn't for some reason, you should always be able to enforce in interpreting the film.

  • I am trying to download my software elearning in my account and it shows no download available, even if I paid for it and the data of the invoice is there. any help?

    I am trying to download my software on e-learning in my account and it shows no download available, even if I paid for this and the data of the invoice is there. any help?

    Oh, Yes, well, if you're talking about e-learning 2.0 Suite... it's several years old... I don't know if Adobe has no download access user around holding method for that long... or even until the next version of the product is released... especially these days with the preference of creative cloud.

    Always take the downloads, you have access to and store their future use yourself

    You can try this (which came in another post on this forum):

    Download the free trial version Adobe Elearning Suite | Adobe Elearning Suite 6.1

    But it is for the latest version of eLS, not v.2.0. It can be a real challenge to find the installer for v2...

  • I have the order number and the date of the order with me want to support adobe creative cloud can advise you how to go to this topic

    I have the order number and the date of the order with me want to down load remains creative cloud on my desk pls can you advise me how to on this subject pls

    Cloud creation help / Creative Cloud to desktop

    https://helpx.Adobe.com/creative-cloud/help/creative-cloud-desktop.html

    Cloud creation help / sign out, sign in | Creative office cloud app

    http://helpx.Adobe.com/creative-cloud/KB/sign-in-out-creative-cloud-desktop-app.html

    Cloud creation help / install, update or uninstall applications

    http://helpx.Adobe.com/creative-cloud/help/install-apps.html

    Install creative Cloud applications

    http://TV.Adobe.com/watch/CS6-creative-cloud-feature-tour-for-video/installing-desktop-app s-of-creative-cloud.

  • install esxi 4.1 and the data store on the same server

    Hello

    I want to install esxi 4.1 and the data store on the same server.

    My problem is that I can't make partitions to really separate them and I would reinstall esxi without wiping the data store.

    Y at - it another way to put a record out of the raid only to install esxi.

    I also do not install on a USB key.

    Thank you

    AZEL says:

    Hello

    I want to install esxi 4.1 and the data store on the same server.

    My problem is that I can't make partitions to really separate them and I would reinstall esxi without wiping the data store.

    Y at - it another way to put a record out of the raid only to install esxi.

    I also do not install on a USB key.

    Thank you

    AZEL,

    Can you give us more details about your current environment?  What is the size and the data store space used? Do you have any storage of additional network attached to the host (for backup purposes)?

    My assumptions of your post do you have 1 stand-alone host with ESXi 4.1 aready installed and you also have a local data store on the same host, but you want to re - install ESXi 4.1 while keeping the contents fo the data store.  Is this correct?

  • Adding file control and the data file

    Hello

    I need to edit and add a control file and the data file to a database but its controlfile max and max datafiles parameters are reached. Is there any other step rather than create trace control file backup and change the db file and trace in nomount commissioning, please let me know.

    Oracle version: 10g
    platform: solaris.

    N °

  • How to save a calendar I created with the photo and the dates recorded on separate pages?

    How to save a calendar I created in photoshop with the photo and the dates recorded in the form of two separate pages?  When I save in pdf or jpeg, they are automatically save 1 pg with dates and photos on a single page.  This is causing problems when I print.

    Hi there, in which case your printer is not very large, you can also trim down the two versions and print them as separate documents.

    (1) create a guide where you want to split the pages by clicking on the rule (hit control R if they are not displayed) and dragging to the desired location.

    Create the Guide to make it so be precise in the way which divide you your page, and so that no part of the image will be repeated or lost.

    (2) select the Cropping tool and adjust the area of culture at half top of your agenda, using the guide you have just made to align with the right place. Press return to complete the harvest.

    (3) go in file > save as the. Name the file something like calendar_top and select the desired file format. Press "Save".

    (4) once you return to your calendar file, go to the history Panel and select 'Guide to flirting This will bring you to step before you cropped the image.

    (5) repeat the steps as before to the bottom half of the schedule, once more, using the guide to help you make your growing area.

    Then you would just print each of the two pages individually. The images does not appear in a single document, but if you have Acrobat you could combine the files.

    I hope this helps!

Maybe you are looking for