OnLoad occurs twice in the browser Blackberry 9800?

I tested my app 2.0 SDK WebWorks with BB 9700, and I use the following jQuery code:

{jQuery (document) .ready (function ($)}

Do important stuff onload only once.

});

This code works very well for the 9700. It is called once and I do the necessary things once.  However, I now test the application even with a BB 9800 Torch and copy the following code is called twice. If anyone has seen this behavior?  Do you have a solution for this?  Is this a known bug?

The code runs only once in IE7 and Firefox.

Thank you very much.

Fixed!

I don't know why, but before when the problem occurred, I used a way ugly to some of my links in my index.html, i.e.

Click me

And for some reason, cleaning them to resemble this one fixed double-load event.

Click me

Tags: BlackBerry Developers

Similar Questions

  • The browser blackBerry smartphones

    I'm new to BBM and still trying to understand how they work! When I use the browser and do a simple search often ask of fails to find what I'm looking for to say he cannot find the requested server?, despite my WIFI showing max (home). When the strength of phone also shows also maximum. ? Is the default value of the phone in Wifi first when searching through the browser, then go to internet? or vice versa... or is it not as simple as that, I think that the marked sites load bad sites well, but sought. Can you help explain how he's looking for and what if all I can do to improve.

    Thank you very much

    Tony.

    Default WiFi your phone when it is available.  First of all, make sure you have your data services.  Go in manage connections > Mobile Network Options > Data Services > on.

    Let us know if that helps.

  • transmission configurable url in the browser blackberry problem

    Hi... I have to go or ask the server the URL page... I don't have problem to request the page as

    _browserField.requestContent ("http://www.google.com");

    but I have problem to request the page as

    _browserField.requestContent ("http://www.google.com?userid=" + userId + "");

    It shows error as error http to connect to the origin server... pls someone help to solve this problem

    Thanks

    It's just a guess, but it sounds like a problem with encoding.

    You should encode them the query string part before concating it to the URL.

    Check out this class:

    http://www.BlackBerry.com/developers/docs/5.0.0api/NET/RIM/BlackBerry/API/browser/URLEncodedPostData...

    E.

  • Problem with the browser blackBerry Smartphones.

    Hello

    I have a problem with my Bold 9700... Open dosent browser if I click the icon and there is no problem with the other.

    I tried to reinstall the software, updated the OS, but I'm unable to solve the same. Shortly after installation, it will work for one time, while connected to the computer and if I unplug it, it's the same problem.

    Does anyone have a suggestion for the problem.

    Please find the procedure to perform a clean OS reload, share, if it is not working

    http://BTSC.webapps.BlackBerry.com/BTSC/ViewDocument.do?externalId=KB11320&sliceId=2&cmd=displayKC&d...

  • Frustrated with connection to the browser blackBerry smartphones

    When I try to browse the Internet, I've recently started having a popup box that says: "this is a problem when trying to render the page.  I was not able to connect to the Internet for about 4-5 days.  Can anyone help?

    Is it with any site? First, try to reset the device by removing the battery for a minute and try it.

  • Field of browser BlackBerry 2: Crash when loading web page with the County to expand

    I use the browser Blackberry 2 custom field in my application to display local html pages that I load device SD Card. For the few notes I met the application crash.

    I quickly tested behavior Blackberry browser for these pages and found that it crashes too. Steps to reproduce:

    1 torch 9800, operating system. 6.0

    2 copy attached to SD card files

    3. access to these files by using application "files."

    4. try to open the test.html file by clicking on it.

    5 blackberry browser will crash.

    Issues related to the:

    1. scope of browser Blackberry 2 uses the same API as Blackberry browser on platforms 6.0.x?

    2. is there no work around for this problem?

    Mark,

    Thank you for your comments. But I finally found the solution me

    The solution is the following:

    (1) change us html so that it will contain no image resources.

    (2) for each image resources, we create something like

    or any other appropriate HTML element. Here, we will retain certain information that will help us identify how and where we need to charge, a kind of identity.

    (3) first load us the HTML page in the application. It should load without any problems.

    (4) then call us the JavaScript function that will replace our

    items with images using the timer. It is possible with BrowserField2.invokeScript (). When the script will replace an HTML element with element, which could cause some resources load (I mean handleResourceRequest), so you should run with it.

    I tested this solution in my application and crash problems have been solved even when we have a lot of images on the web page stored locally in the device memory or on the SD card.

  • Pavilion dv6-6c14nr: launch of the browser and redirecting on several occasions

    For the last two days, I had a problem frustrating with my browser/computer - the browser will be repeated launch or redirect to the home page.  To be more precise, if the focus is on an active browser window (in other words, if this is the app that I use or this is the last application, I clicked on), the browser will redirect to the home screen.  If, however, the emphasis is on another application, a new browser window will be launched.  This problem occurs regardless of the browser that I use (and when a new browser window opens, it is my default browser, Chrome, and it opens to my home page, a new empty tab).  When I was working in Visual Studio, it opens the browser which belongs to VS, then repeatedly redirected to the home page by default for this browser. The frequency with which this happens varies, once every few minutes, at most of the time (more than once per second) - I got 40 + windows browser in less than a few minutes. I removed all of the Add-Ins and Extensions, under the assumption that one of them could be the cause of the problem - no luck.

    I read similar messages on the HP Board by people who appear to have been able to solve this problem, despite the attempt of everything, including the relocation of the browsers and even reformat the hard disk!  Someone suggested that fixing file hosts worked for her, but I checked my and it seems to be as it should.

    In fact, I wonder if this could be a hardware problem any. Seems not intuitive for me, of course, but here's the thing... a few days previously, when booting, I saw some kind of error about my fan works not properly.  I installed Speccy (by Piriform) to monitor the conditions of my system and noticed that my computer has been running hot from time to time. So, I know this sounds nuts, but I put an ice pack under my laptop (well, two trays full of ice in an oversized Ziplock bag) and the problem seems to have slowed down a bit.  Also, I noticed that this problem seems quite widespread on HP Pavilion machines.

    Is it possible to fix this? Or will I stuck buying a new laptop? Although laptops are really cheap now, I really can't afford it. I suspect that the replacement of the fan would cost almost as much as a new laptop. But I can't work on it like that! Any ideas or suggestions?

    Thank you!

    Traci

    Hello and thanks for your advice and comments.  After reviewing the comments posted to some old messages to people with similar problems, I think I understand the problem, but also a solution in the short term...

    Apparently a fan problem is originally the computer overheats a little, and the heat is initially somehow the computer thinks that the shortcut for 'WWW-Home' is pressed several times (not sure of the mechanics behind this, but the shortcut implies the F5 key, which is located in one of the hottest areas of the computer).  The warmer the computer becomes, is more frequently as she considers the shortcut key display press and more frequently a new browser is launched.  So, a quick solution to the problem - disable the shortcut key (by editing the registry or by using a software like KeyTweak - the code for the key is 144, btw). Of course, I'll replace my fan in the next few days (I have a bag of ice below pending), but it's nice to have the use of my computer until there!

    Based on the other posts, I've read, this problem seems quite common for my laptop model - a HP Pavilion dv6 - 6 c 14nr.  Most of the messages I read involved HP pavilions, and many of them were a HP Pavilion dv6 or similar.  Others with the same problem seem to have experienced worsening much more that what I have - many of them actually reformat the hard drive when nothing else worked - and if this still does not solve the problem for them, they got rid of their HP laptop. Perhaps HP can save this information as a 'known problem' and view the Guide somewhere for support staff and users to easily find?

    Thanks again!

    Traci

  • processing message c0000013 parameters 75b6bf7c 4 75b6bf7c 75b6bf7c when connected Blackberry 9800

    First time I experanced this problem = connect the new Blackberry 9800 (Touch) via message from cable and USB rec

    Try what it says here

    run "regedit" then go here

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Windows]

    Then, search for the name ErrorMode and change its value data by right-clicking on the errormode itself and change the value from 0 to 2 date...

    Looks like it may have something to do with a floppy disk. If it is installed disable it in the BIOS. If you do not use

  • Media streaming in the browser

    The Blackberry Simulator can play media, such as m.youtube.com or blueapple.mobi streaming? I have several simulators on several computers, including the Bold 9650, but they all give me an error 'player' of some sort. I tried to go through the procedure "Optimize" to youtube as well as with no luck. Is this just a limitation of the Simulator?

    Thank you!

    This is a limitation of the BlackBerry smartphone Simulator.

    The browser (BlackBerry Internet Service) nor the browser BlackBerry (BlackBerry Enterprise Server) are able to stream a video RTSP (used by YouTube).  When this is attempted the BlackBerry Smartphone will switch to the Hotspot (WiFi) or a WAP browser, what to do, allowing the user to view the video.

    The BlackBerry smartphone Simulator only supports the BlackBerry browser.

  • Browser BlackBerry 10 rewritten URL with subdomains

    Hello

    I wonder why the browser blackberry 10, in the Simulator, seems to change any url with a subdomain (for example, when trying to hit example.domain.com, the resulting url in the address bar is replaced by domain.com )?

    See you soon

    Hey!

    We do this as a preventive measure against phishing attempts. For example: a phishing site has a url "en.facebook.com.asdlfkslkfsdf.phishing.com", we used the original method could potentially cut the url to a point where only "en.facebook.com" is displayed to the user. With the new method, it would display "phishing.com".

    We're still tweaking a bit to make it a little smarter about when to use this method and when to leave the URL intact.

    You can still see the full URL by the expansion of the address bar.

    Rory

  • Invoking the browser opens the default tab

    Hi guys,.

    I am writing an application that calls the browser and sends a URL to open for the user. This works perfectly on OS 4.6 to 5.0. However, the OS 6 and 7 the browser is still open with two tabs; We understand the URL I'm trying to open, and the other is the default page of the BlackBerry browser. In addition, the tab with the browser blackberry detaulf page is to the point and my users almost always miss to see that there is another tab open on their browser.

    Has anyone seen this behavior before? If Yes, do you know how I can fix this problem?

    Hello anawara,

    I'm working from memory here, but I believe that the call to b.displayPage (url) displays the browser to your URL, and then b.showBrowser () starts the 2nd tab. If you remove the call to b.showBrowser () on 6.0 +, I believe that the second tab will not be created and only your URL will be displayed.

    I'll check this in a sample, but I remember this coming upwards before and I'm pretty sure that's where the problem comes.

    Erik Oros

    BlackBerry Development Advisor

  • Browser BlackBerry facebook SDK login error

    I recently spent to use the SDK Blackberry facebook pot to using the source code of projects (excerpt from the tag that the pot was built in)

    .

    Since this switch, I've known browserfield problems:

    On a device, the load chart persists until I have regularized.

    On a simulator, I see:

    "Error calling content for.

    https://www.Facebook.com/dialog/OAuth?scope=user_about_me, user_activities, user_birthday, user_educati...

    Null error message. »

    where APPLICATION_ID is my correct application ID.

    The URL above will open fine in my PC and even on the browser Blackberry browser when stuck and I debugged for some time by the source of the facebook sdk and found that the earphone returngs browserfield "error: [URL]" when he tries to load the content.

    Has anyone seen similar behavior with the source SDK Blackberry code before?

    Unfortunately time did not allow me to analyse the sample with our tools or to implement the Blackberry eclipse for the trial or the other plugin.

    I went back to using the pot and put in place 2 draw up profiles for 5.0 + (including pot) and pre5.0 (does not include jar).

    Thank you

  • BlackBerry Smartphones Blackberry 9800 - file access slow - Please HELP

    Hi all

    I'm new to the Forum of blackberry, but have used a bberry for years... I bought the new blackberry 9800 and love. But lately I had problems when access to the records of the unit, it's the situation.

    1. click on the Applications folder-> perfect 2-3 seconds to open-> go back

    2. click on the Applications folder-> open-> go back 2-3 seconds (repeat 3 - 4 times)

    3. click on the Applications folder-> 10-15 seconds to open - > back out (lock device or wait a minute or two)

    4. click on the Applications folder-> perfect 2-3 seconds to open the folder

    As you can see, you access the slowest records, he gets this is not limited to a few files but it also seems to slow down the entire system, I removed almost all of my applications on the phone always have this problem. I have a lot of free memory. So far, I have tried

    1 wipe device reinstall everything (problem returns after a day or two)

    (2 wipe device reload OS, reinstall any problem comes back after a day or two)

    3 will try tonight to reset the device, reinstall the OS, remove information from the user to the BES snack Server some strange permissions are pushed back, or a corruption of the database, reinstall only a small subset of applications that worked well on the blackberry 9700

    The only thing I can say is this started happening in installed an app from app world called "Server Monitor" I don't know if that's the problem...

    If anyone has any ideas please, I'll Sling that thing off the wall if it continues to be

    OS version 6.0 Bundle 695 (v6.0.0.246, platform 6.4.0.105)

    A battery Pull does not solve the problem...

    Thanks in advance

    Al.

    updated my blackberry to the latest version of the operating system and works perfectly now

  • Emails from blackBerry Smartphones don't automatically get pushed to my curve. Only when I use the browser.

    Yesterday, I posted my emails from my hotmail account seem to come in batches to my Curve 8330. Someone suggested that the problem was due to MS Messenger running on my computer. That makes sense, so I considered resolved thread. Unfortunately, the same thing occurs still even after I Quit Messenger. Now I realize that my e-mails only get pushed to my BB, when I use the browser on my phone. Is there a setting I can adjust?

    Thank you!

    In situations of this kind, it would be useful to post again this same thread, so that we can follow the previous suggestions.

    However, do the following on your BlackBerry:

    1. options > advanced > host Routing Table > Menu > register.

    2 send your service from your carrier's BIS site books.
    http://www.BlackBerryFAQ.com/index.php/Where_can_I_log_into_my_BIS_account%3F

    3. with the BlackBerry device powered time, remove battery for a few seconds and then reinsert the battery to restart

    4. dial * 228 on your device.

  • BlackBerry Smartphones-error message when you use the browser

    My Blackberry Storm began to display: error occurred during parsing XML: Expecting '; '.  When I go to the browser.  No idea how to eliminate this error message every time I use the browser?

    Error message went away by itself (a day after my post).  Thanks for the posts.

Maybe you are looking for