dataURI in HTML in BlackBerry BrowserField OS5.0

Hello

I tried to get a browserField to analyze the HTML within a dataURI.

It is quite difficult to post an example in this forum , but basically, simply using this generator in the dataURI... http://software.hixie.ch/utilities/CGI/data/data

Although I can display images in base64 format in regular HTML, I can not get a full HTML page crawled.

Can someone point me in the right direction of resources or ideas?

Thank you

PS: He works at OS6.0 - I guess that WebKit has a better engine for this sort of thing. But I need for 5.0

Ah-Ah!

If you use a URI of the data, you must convert all the semicolons in the Unicode equivalent.

; = % 3B

This means dataURI images or style CSS in the original dataURI.

Hope this can be useful to someone.

Tags: BlackBerry Developers

Similar Questions

  • BlackBerry BrowserField: The Application crashes while downloading.

    Hi, I use browserfield2 in my application to load Web pages, now the problem is the application is always unexpected crashes while downloading, no problem to download the file with size < 500kb="" but="" if="" the="" file="" has=""> = 1 mb size it will crash, the strange thing is I can get download process finished with the construction in the Blackberry browser, hmm... any guy of solution? Thanks in advance

    Here is the code

    public BrowserDemoScreen()

    {
    setTitle ("BrowserFieldScreen");
    BrowserFieldConfig config = new BrowserFieldConfig();
    config.setProperty (BrowserFieldConfig.USER_AGENT, ' MyApplication 1.0 "');
    BrowserField _bf2 = new BrowserField (config);
            
    _bf2 = new BrowserField();
    _bf2.requestContent ("http://mydomain/upload.php");
    Add (_bf2);
    }

    HTML form





    php code

    <>
    $uploaddir = '. / uploads /';
    $filename = $_FILES ['uploadfile'] ['name'];
    $filesize = $_FILES ['uploadfile'] ['size'];
    $filetemp = $_FILES ['uploadfile'] ['tmp_name'];
    $file = $uploaddir. baseName($_files['uploadfile']['name']);

    echo $filename. »
    ";
    echo $filesize. »
    ";
    echo $filetemp;

    If (move_uploaded_file ($filetemp, $file))
    {
    echo "success."
    }
    on the other
    {
    echo "error";
    }
    ?>

    as you can see that I did not use any javascript on this page, it's pure php, which makes the BrowserField crash?

    The solution is:

    public class resignation against UiApplication

    {

    public Resignation()

    {

    If (filesize > = 1 MB)

    Dialog.Alert ("use your personal desktop computer to download selected file!");

    on the other

    Dialog.Alert ("good boy, now, you understand that we have maximum file download size limit");

    Close();

    }

    }

  • The images are not display with html content in browserfield

    Hi friends, I am display local html content in the browserfield. It is are display fine but pictures are not display is also local resources stored in the project. I use jde 5.0. Whats to display pictures.

    After so much, I solved it and the images are displayed correctly. I had the habit now of base64 class and image data are passed to the base64 format.

  • If we can play video on blackberry browserfield


    Yes, it should work.  The error you describe is a Windows executable Simulator error.  So, it can work fine on a real Smartphone BlackBerry.  Have you tried another Simulator?

    Simulators using the codecs installed on your PC for playback.  So if there is a codec problem, you could see this error.

  • Issues of Email in HTML of blackBerry Smartphones

    OK, I have helped many people solve the problems after upgrading their operating system to get emails HTML on their BB, but for the life of me and short of wiping the phone and reload the operating system, mine is mysteriously stop working last week when I was out of town.

    I rebooted, I maintain that 11-12 meg free most of the time, returned to the service books (several times) has verified that each e-mail address has active html.

    e-mails older that I got before it works do not always appear in html, but the latest do not appear in html more.   Recently, I deleted all the emails and waited for new coming but still the same... any html.

    any suggestion or anything else I missed before you wipe it and start over?

    Thank you!

    As well as return service directories, have you tried deleting and time e-mail accounts to see if that makes a difference?

    If you look under Messages | Options | E-mail settings, the HTML for EACH e-mail account is set to Yes?

  • Need to load the page HTML 5 with SQLite in browserfield Blackberry 6.0

    Hi all

    Currently, I am working on the application in which I use static HTML 5, web page with built in SQLite db. I want to load in blackberry Browserfield 6.0 on offline for page web HTML 5 is placed in the my project package. I have developed the code below, but not able to load. What I'm doing wrong, I'm not able to find. Please let me know if you find something I am doing wrong.

    Private BrowserField _bf2;

    Private BrowserFieldConfig _bfConfig;

    _bfConfig = new BrowserFieldConfig()

    _bfConfig.SetProperty (BrowserFieldConfig.NAVIGATION_MODE, BrowserFieldConfig.NAVIGATION_MODE_POINTER);

    _bfConfig.SetProperty (BrowserFieldConfig.JAVASCRIPT_ENABLED, Boolean.true);

    _bf2 = new BrowserField (_bfConfig);

    InputStream inStream = this.getClass().getResourceAsStream("/demo.html");

    ubyte [] bytes = IOUtilities.streamToBytes (inStream);

    Dim str As String = new String (bytes); _bf2.displayContent (str, "http://localhost");

    Thanks in Advanc

    Demo.HTML is packed into your folder of cod?  If so, you can access it by using "local:///demo.html".

    Take a look at the browserfield2demo included in the SDK Java BlackBerry and BlackBerry JDE for an example.

  • Error when creating applications of HTML5 for Blackberry OS Versions os7

    I'm currently building HTML5 APP (a Hello World application) which will work on Blackberry curve that is to say for the version of the device: 4.6.1.310 (Platform 4.2.0.127) 8900 Smart Phone (Edge Wifi) IE versions under BlackBerry OS 7
    using the HTML OS Blackberry Webworks, I installed emulator Web SDK and the ripple of http://developer.blackberry.com/bbos/html5/download/ works
    also after doing all the steps as described in
    https://developer.BlackBerry.com/BBOS/HTML5/documentation/creating_hello_world.html

    but when I do run this url
    http://localhost:9910/HelloWorld/index.html the ripple emulator does not work for me

    I tried to connect to the key, but https://www.blackberry.com/SignedKeys the page is not working there at - it another way connect and get the signature key and create the HTML5 Apps to work with the Smart Phone (Iam having the device to test) 8900.

    I tried the Blackberry10 Webworks and created the Hello World application and tested in the Simulator, but when I tried that bar the file to run it on my camera its an old version and his version of the device: 4.6.1.310 (Platform 4.2.0.127)

    Phone (Edge Wifi) smart 8900, so is possible to deploy the bar file that I created for Blackberry10 to test on the 8900 device? If it can be please let me know how?

    You cannot deploy a BlackBerry 10 at BBOS; each platform (BBOS, PlayBook and BlackBerry 10) has a unique architecture and you must use the correct SDK, which corresponds to build your application folder.

    BBOS, this will be a COD file. For PlayBook and BB10, these will be BAR files (but then again you cannot load a file BB10 BAR on the PlayBook the architectures are different.)

    Also note that on BBOS WebWorks is supported only from BlackBerry OS 5.0. So if you are looking for a web solution, you need to go native BlackBerry Java and either incorporate into a BrowserField (functionality will be limited) or go all-out BlackBerry Java.

    Regarding the ripple does not connect, my advice would be to use something like XAMPP or WampServer to put in place a local web server. This will help to overcome the problems of accommodation. For practice, I think B & D services must be running for the ripple server to be active, which means that you must activate the undulation on a random Web page (i.e. www.google.com), begin to build and deploy services and then try to connect to the server of the ripple. Ripple was recently given to the Open source Apache Foundation so that may have changed. Essentially, you can get the same emulation size/viewport through the Web Inspector of Google Chrome today well.

    BBOS devices also have their own simulators (the actual OS) as opposed to the emulator (pretends to act as the operating system.) You can find here:
    https://developer.BlackBerry.com/BBOS/Java/download/#testingtools

  • BrowserField IllegalStateException to call the RequestContent method

    Hello world.

    I'm IllegalStateException when you try to view another page HTML on my BrowserField. This happens when BrowserField Manager calls the removeField() method.

    The paper said: to remove is field with focus - index: 0 - fieldDebugTree: net.rim.device.api.ui.component.NullField (0, 0) + (0, 0) * home * \n - managerDebugTree: net.rim.device.api.browser.field2.BrowserField (0, 0) + (480, 70) [480, 70] \n net.rim.device.api.ui.component.NullField (0, 0) + (0, 0) \n

    Everyone knows that kind of problem before?

    Thanks before.

    Never mind. I found the solution to this problem after doing some more research on this forum.

    Here is the link to the post with the solution: http://supportforums.blackberry.com/t5/Java-Development/BrowserField-refresh-throwing-IllegalStateEx...

  • Call the JavaScript file java class in the native blackberry development.


    What you are looking for is the ScriptableFunction class.

    You can extend the script engine of a JavaScript object name to a ScriptableFunction Java class mapping.  In this example, if you called foo. JavaScript bar(), the BrowserField would facilitate a call to the invoke() method defined in the MyScriptableFunction() class:

    protected BrowserField _browserField   = null;
    _browserField = new BrowserField();
    _browserField.extendScriptEngine("foo.Bar", new MyScriptableFunction());
    

    Then you set your ScriptableFunction class like this and fill it with some Java code, you need.  Note: it only accepts strings as input parameters.

    import net.rim.device.api.script.ScriptableFunction;
    
    /**
     * @description Demonstration of using the ScriptableFunction class added to version 5.0 of the BlackBerry Device
     *              Software
     * @version 1.0
     * @author Adam Stanley, Developer Relations
     * @category BlackBerry BrowserField Development: ScriptableFunction API
     * @see http ://www.blackberry.com/developers/docs/5.0.0api/net/rim/device/api/script/ScriptableFunction .html
     */
    
    /**
     * This class can be used to represent a function in the JavaScript environment.
     */
    public class MyScriptableFunction extends ScriptableFunction
    {
    
        /**
         * User has invoked this ScriptableFunction from the JavaScript engine This example shows how to open the Messages
         * application and create a new message
         */
        public Object invoke(Object obj, Object[] args) throws Exception
        {
            if (args.length == 3)
            {
    
                String param1 = args[0].toString();
                String param2 = args[1].toString();
                String param3 = args[2].toString();
    
                //Do something
            }
            return Boolean.TRUE; //Always
        }
    
    }
    

    Hope that helps.

  • Html saved on memory access internal

    Hello

    I need to access the html file in browserfield that are saved in the internal memory

    It does not;

    request.setURL("file:///store/home/user/mpower/html/feedback.html");

    .. .some code here...

    final InputConnection ic = handleResourceRequest (request);

    .. .some code here...

    browserField.displayContent (ic, request.getURL ());

    It gives me a blank white screen. However the local: / / / files work correctly.

    Ask for help with the code.

    Thank you

    Godwin

    Once you have opened in the browser use the menu to copy the page addess, and then paste it into a memo of something to see at what URL it actually used.  Compare this with that you try - maybe that will show you what you need to specify.

  • banner ad in HTML/Javascript

    Hello

    I develop my application using Phonegap in Eclipse (with Blackberry Plugin) using HTML and Javascript.

    It is a free app and I want to integrate online advertising.

    Have no method to integrate the AdMob with HTML for Blackberry?

    or can someone help me how to integrate advertising online for blackberry?

    Thank you

    Perhaps this can serve you

    https://developer.BlackBerry.com/HTML5/APIs/BlackBerry.advertising.banner.html

    http://supportforums.BlackBerry.com/T5/Web-and-WebWorks-development/advertising-service-for-PlayBook...

  • BlackBerry Smartphones BB Bold 9930 cannot find the battery under device options saving Mode

    I have a BB Bold 9930 with OS v7.1.0.163 and I can't find the battery under device options saving Mode. I was told that I needed to update my device to a newer version, after around .3xx software do not know that. But when I try to update my device through BlackBerry Web page software or Office Manager, they both tell me that my device software is up-to-date. How can I update my device software to a newer version on OS 7.1?

    OK, I thought that you must have some higher than 7.1.0.342 BONES to get the battery in watch mode on your output device. Apparently Viva has not published a more recent OS you already have.

    Operating system device provided are "released" by specific carriers once that they are certified and trained to their support technicians, but still, you are able to load any carrier the same model by following the instructions below.

    See the link below to download it and follow these simple instructions.

    Make a backup of your device first, using Desktop Manager > backup. Close the office at the end Manager.

    1. download the OS files to the PC then install on the PC by running (double click) the downloaded file.

    https://swdownloads.BlackBerry.com/downloads/contactFormPreload.do?code=C6BFF625BDB0393992C9D4DB0C6B...

    2. go in c:\program files Research in motion\apploader and delete the file named "vendor.xml."
    3. plug in the BB and double-click on "Loader.exe." It is located in the same place as the above vendor.xml file.

    Note: Some users may be concerned they will void their warranty of device by loading an OS from another carrier. There is really nothing to fear. Please read more information about it here: http://www.port3101.org/power-users/296-blackberry-os-upgrade-including-betas-myths-dispelled.html

    BlackBerry Handheld Software v7.1.0.1189 (Multilingual)

    Package Version: 7.1.0.1189
    Composed of:

    • Applications: 7.1.0.355
    • Software platform: 5.1.0.288
    • File name: 9930AMEA_PBr7.1.0_rel1189_PL5.1.0.288_A7.1.0.355_C _Spire_Wireless.exe
    • File size: 207,62 MB
  • Downgrade to OS 5 blackBerry smartphones

    I need to run a BlackBerry in OS5, how to downgrade?

    Ideally, I would like to do it on a Bold9700. I wonder if I do a factory reset, OS5 will be there?

    I have also a Bold9790 OS7 running I could use.

    Please notify. -

    TIA

    -John

    johnvice wrote:

    Thanks for your help

    So, how do my 9700 to OS6 for OS5?

    I downloaded 9700AllLang_PBr5.0.0_rel1446_PL5.1.0.175_A5.0.0.862_Telus_Mobility.exe, who has run without problems to my desktop PC, and then invoked BlackBerry Desktop... nothing.

    Hi johnvice

    It's good if you already have a device that supports OS 5, concerning the decommissioning of the OS, you can try these simple steps:

    1. Locate and download the OS you want to leave here, BlackBerry software download Site

    • (Make sure you download for the same model you have)

    2. double-click on the file downloaded to install it on your PC

    3. download and install the latest version of BlackBerry desktop by BlackBerry desktop software software

    • Then using software office perform your full backup of your device.

    4. search for your C: drive for any file Vendor.xml and delete them, there may be one or two vendor.xml (on your PC, change your records option to show hidden files / folders):

    • C:\Program Files (x 86) \Common Files\Research In Motion\AppLoader
    • C:\Users\Windows UserName\AppData\Roaming\Research in Motion\BlackBerry\Loader XML

    5. go into C:\Program Files Research In Motion\AppLoader. (For Vista or Windows 7 64-bit, the path will be C: > Program Files x 86 > common files > Research In Motion > AppLoader) double-click on Loader.exe.

    Downgarde will continue then after Installation of the new OS restore your backup using BlackBerry desktop

    Software.

    _______________________________________

    As you have already downloaded the OS pack then you can skip steps # 1 and continue with the rest. But please note don't install multiple OS pack on your PC, if you have any other pack OS install in another PC so you use then uninstall it.

  • BlackBerry Storm Smartphone manual

    I'm looking for a site that I can download the full manual for the Storrm.

    ANU help?

    http://NA.BlackBerry.com/eng/support/docs/subcategories/?usertype=1&category=BlackBerry+smartphones&...

    This includes:

    BlackBerry Storm 9500 Smartphone - Getting Started Guide PDF 4.7
    The blackBerry Storm 9500 Series - Tip PDF 4.7 Smartphone
    BlackBerry Storm 9500 Smartphone - User Guide 4.7 HTML PDF
    BlackBerry Storm 9500 Smartphone - safety and product information PDF 4.7

  • BlackBerry smartphones my lost 8330 sound ordinary but good on speaker

    When I call or I can't hear normally, but only if I push the Chair.

    And the wallpaper is very strange - the top couple of lines, with the time and date/bars a scroll up and around and is now under the rest.

    Any ideas?

    I tried to remove the battery and reload from a backup, no difference

    Has proved to be the speaker. I had a spare part in a death 8330 (water damaged but used for parts)

    And the replacement instuctions here are:

    http://www.YouTube.com/watch?v=9LEtTtUAHw0

    The shop Sprint told me it was irreparable, and I have to buy a new phone with a new 2 year contract for a higher monthly fee. Glad I didn't fall for this

    The part is $6.99 here:

    http://www.everything4blackberry.com/BlackBerry-Curve-8330/C35/index.html

    BlackBerry headphones Earspeaker 4 Curve 8300 8310 8320 8330

Maybe you are looking for