PlayBook - Webworks - Javascript and Jquery problems

I have problems with my application compiled of Webworks.

The application works very well "as source" in Firefox and as an AIR with Aptana Studio application.

However, when I compile files HTML/Javascript app won't compile as expected.

When using

onclick="window.open('index.html?foo=bar')"

It gives "network error" (see image below), then that is just opening with a query string.

The $functions of Jquery get ignored too such as a piece of code like this:

       $(
            function(){
                loadSelectedFoto();
                setDiff();
                loadHs();
                $( "div.puzzle, p" ).puzzle( memdiv );
            }
            );

Is due to the Webworks Beta status, or I'm doing something that just cannot be done this way (before the supply of PB )

Ah... According to me, that there is a problem, as I also mentioned in the beta... It has since been corrected, but has not yet been published. Stay tuned for an update will be available soon.

Fundamentally, I believe it's the parameters of query string on the end of the URL, which is the origin of the problem.  For now, you might be able to pass the data through cookies or other means until this bug is released in the next version of beta drop.

This problem also manifests itself in local applications.  It also affects local AJAX or the filling of an iframe with a local URL that has query string parameters.

Tags: BlackBerry Developers

Similar Questions

  • JavaScript and IE problem

    Hi all

    Can you see why my auto complete function works fine in all browsers except bloody Internet Explore.
    I'm sure it's something simple but I can't for the life of me, see what that. Any help will be much appreciated.

    The website is http://www.dor2dor.com/postpeople/postpeople-apply.html

    The first thing I would do is delete jquery.bgiframe.min.js - this script is for IE6.

    --

    Kenneth Kawamoto

    http://www.materiaprima.co.UK/

  • We write plain HTML5, JavaScript and CSS in the development of webworks BB 10.

    Hi all

    We write plain HTML5, JavaScript and CSS in the development of webworks BB 10.

    Thank you all

    Yes.

    Here is an example of an application named BrickBreaker which was written entirely in HTML5, JavaScript and CSS.  It can be pacakged in BlackBerry 10 application using SDK WebWorks:

    https://github.com/BlackBerry/BB10-WebWorks-community-samples/tree/master/BrickBreaker

  • How to load the CSS and JavaScript of JQuery UI inside edge led

    Hi I am using the JQuery UI inside edge slider but it doesn't work, I don't know what files should I download and how to include Javascript and CSS and images of the theme within the edge life, if someone has a code example from the compistionready what should I write on it and what is the folder structure files of the user interface and how to import them?

    Thanks in advance

    What is your configuration?

    1. you need to load the file ui.js as in this example for draggable. Include the correct version of jquery UI. If you need a file css then you load too.

    () yepnope

    {

    Nope:]

    "js/jquery-ui-1.9.2.custom.min.js,"

    ' css/jquery-ui.1.9.2.custom... min.css',.

    ],

    full: init

    }

    );

    2. / then you get your code for the slider - everything you need.

    function init() {}

    var mySlider = sym.$("mySlider");

    mySlider.draggable ({disabled: false});

    mySlider.draggable ({axis: "x"});

    }

  • Audio player of PlayBook webworks.

    I'm playing the audio data from the system of local files and internet audio stream.

    I tried blackberry.audio.Player method explained in the documentation of the api webworks. I guess the playbook does not have this object installed, because as far as I can see, I'm an exception due to the access to the object not initialized.

    Secondly, I tried jplayer, which uses the music player if html5 html5 extensions are available, and falls to adobe flash player if html5 is not successful. It has always failed...

    Third, I tried the pure html5 player. I can see the commands, the audio length is displayed with '-' value? (I did not understand why?) but no sound.

    I tried the method of second and third in google chrome, it works. Do you have an idea what could be wrong? What is the recommended method for the audio playin?

    Hello

    There was some discussion around this topic on the forums.  The blackberry.audio API is only on the smartphone platform... The PlayBook WebWorks APIs can be found here:

    http://www.BlackBerry.com/developers/docs/WebWorks/API/PlayBook/

    Audio not playing is not in the Simulator is a known problem.  The 0.9.4 Simulator comes not with any codecs to be able to play the video or audio.  This will be corrected in the final RTM version of the Simulator.

  • How to get the content of a textarea with bbui and jquery

    Hi, I have a problem. I build an app with bbUI and jQuery. Now, I need to get the content of a Textare when someone clicks on the record in the next page:

    Text Entry Examples
    Text Area

    my javascript code looks like this:

    function save() {
        alert($("#myinput").text());
    }
    

    what I have to change to get this working? I don't get the "123", but when I change it is always '123 '.

    I believe you can use the .val property.

    $("#id").val()
    
  • Questions about the Extension of JavaScript and SQLite

    Hi all

    I worked with some my colleague on projects related to WebWorks applications, but there are technical issues that our developers want to know and seek professional advice.

    (1) extension JavaScript & PlayBook

    According to the literature, we know that BlackBerry WebWorks Application have the ability to integrate with data, characteristics and features of the development environment Java® underlying as well as the native phone smart BlackBerry® using special JavaScript® (Extension of JavaScript) objects. So, we should be able to create® for Java (JAR) libraries and program the WebWorks app for BlackBerry Java API to call in libraries. Now, we know that BlackBerry® PlayBook provide a SDK WebWorks (Beta) for us to develop apps for PlayBook WebWorks, also means that in the environment of the PlayBook we can also use the JavaScript Extension trick to call the Java API of BlackBerry?

    (2) SQLite on HTML5

    HTML5 standard offer of SQLite for us to store data in a SQLite database format. But the SQLite file seems limited only to be used in the Application of WebWorks. I wonder if there are ways we can read these file to another application (Application Java or other applications WebWorks) SQLite?

    In fact, what I want to know is the possibility of having a WebWorks Application capable of handling a SQLite file that is received from the server side on-the-fly, and then return the entire SQLite file to the server.

    It would be appreciated if some of you can give some tips about this, thank you.

    Wowzzz

    lasterra is right about these two points...

    We have not yet published the details on creating extensions in the AIR for WebWorks on PlayBook. We are currently working to finalize the open source on the WebWorks for PlayBook SDK so that we can download on github.  The complete source code for the platform will be available on github so that you can see what's going on under the hood.

    Creating extensions in the AIR for WebWorks is very different from Java. We started to use a new architecture that should be able to provide the URI and proceedings access to APIs and placing more procedural API code in JavaScript itself vs. the ScriptableObject Java code existing today.

    This new architecture will be a foretaste of the platform architecture WebWorks to proceed.

    It welcomes more details about creating extensions in the AIR... but currently the API underlying main platform on the BlackBerry PlayBook is AIR and the functionality of an extension will be limited to what is possible on the AIR platform and its extensions.

    In the development of the PlayBook options evolve, so too will be the architecture of the platform WebWorks... I can't really say much more than this now

  • Defective JavaScript and cannot be removed or reinstalled, get «fatal error during installation»

    As a result of an error indicating that javascript has not been installed (Internet options/security/scripting is set correctly) I tried to remove the Javascript (before a new installation) but which have resulted in a message: fatal error during installation (probably installshield). I'm so stuck without Javascript and cannot update or delete it.

    I have version 6 update 27 Javascript, Windows XP and Internet explorer 8

    Any help will be greatly appreciated

    Barry

    Hello

    You can run solve this link and try to uninstall java and check if the problem persists:

    http://support.Microsoft.com/mats/Program_Install_and_Uninstall

  • [Playbook WebWork] Error compiling example, sketchPadStandard.

    Error compiling example, sketchPadStandard.

    Hello everyone.

    I just installed the environment well, I tried to compile the example.

    Can someone explain this error?

    Note that I have spaces in my way...

    It's the default installation path:

    C:\Program Files (x 86) \Research in Motion\BlackBerry WebWorks Packager for PlayBook\bbwp

    And yet it works... so always think he's prob depends on your JDK version.

    In any case - njoy the coding and the sim card

    . H

  • WebWorks Javascript can be disabled at the Corporate level?

    I have a 'company' BlackBerry that I loaded some sample applications WebWorks on and it seems that the javascript in the application does not run.

    I know that the "Enable JavaScript" option for the web browser is disabled and locked (at the level of the enterprise).

    This browser setting affects the WebWorks applications?

    Is there another setting that would disable JavaScript to run in an application WebWorks?

    Thank you...

    Yes, the setting of it strategy to disable JavaScript in the browser also affects applications WebWorks.

  • hasDataCoverage fails for Playbook WebWorks

    Hello

    'HasDataCoverage' should work for Blackberry Playbook Simulator (beta 2)?

    I'm using the SDK WebWorks... and get the error message: "you are not in the coverage, try adding cities later.

    Do I have to activate something else, or if this feature is not enabled on the playbook Simulator.

    Thanx, H.

    PS: Do not know if there is somewhere else to post Playbook & Webworks related research - there is no Tablet OS section for webdev, only for AdobeAir

    hasDataConnection returns true if there is at least one network interface active on the PB. It works fine on a real device. For some reason, the Simulator always returns false. It might be because of the VMware virtual network bridge.

  • plugin JavaScript and css file does not load in Apex 5.0 in certain circumstances

    Hello

    I have a strange problem. I've migrated a 4.2 application and its plugins to version 5.0.

    On my test server that everything works perfectly, plugins properly load css and javascript libraries.

    On the server to the client, even if the configuration is identical (Oracle 11 g, ADR 3.0, Glassfish), any plugin loading fails and triggers an error like:

    http://W2k3-Theos-t-AP/ords/i3std/r/2105/files/plugin/32865463423023705/v1/Select2.CSS

    Method: GET

    Status: 404 not found

    Currently the Plugin files (javascript and css) are stored in Oracle. Does it mean that I have muss stores as static files?

    Thanks for help

    Frédéric

    Kiran,

    Unlock APEX_LISTENER and APEX_REST_PUBLIC_USER and everything works perfectly.

    Thanks to Peter and Kiran, Apex is an excellent product thanks to its fantastic team

    Best regards

    Frédéric

  • Database update issue with JavaScript and local storage

    Hi all

    I come from a PHP background and a newbie with HTML5 and JavaScript, and local storage


    Currently I'm building a mobile web application that uses a remote database.

    I have a question about the update database.

    Currently, I set it up so that when the user logs on successfully - Local Storage fields are loaded from the remote database query using a jQuery.Get. This seems to work well.

    When it's time to update the data, I fill the form in local storage, allow the user edit fields, then:

    -a form post to send data to the remote php page that updates the database...

    Here is where I have a question: How can I make sure the edit went through good - what is better to do it now?

    -Can I set up a json response to say whether or not the update was successful

    or

    -Query the database once more and recover the fields to compare the edit results

    or

    -Another technique to do of course change it went through OK

    - then if successful, I can update the local storage

    Q: what is the best way to ensure that the database has been correctly updated (and also not lose time with Access database useless)?

    Is there a recommended for this?

    In addition, if possible this beginner can use a clear example...

    Why not to use jquery get () callback status where if the success is returned then to update local storage?

    best,

    Shocker

  • The Jquery and Jquery mobile supported by DPS?

    Hello

    The Jquery and Jquery mobile supported by DPS? I'm building a html file to include it in a dps file, which is a small calculator (adding variables containing values of form entries). The calculation is triggered by pressing a button calculate, but apparently it does not trigger the calculation, but it does on the desktop, that's why I ask about script DPS support.

    Thank you

    Make sure that your code HTML and JS are in a folder by themselves (not in the same folder as your InDesign file).

    Are your links html using the navto: / / notation (my article)?

    Check your paths to ensure that the HTML using the appropriate relative path structure. For example, if you have an html file and a folder for your javascript.

    .

    Make sure you have AutoPlay and allow a verified user interaction and delay autoplay value 0.125 in the decorative Panel.

  • Application server and jQuery

    The application server DPS has a web server such as apache running? I'm working on a solution to search for jQuery and jQuery must run on a server to find HTML files even if they are in the local file tree. I'm trying not to have to convert my Indesign layouts to the text of a json file. I'd rather export to HTML format.

    DPS is available you can run arbitrary HTML servers. If you want to write something in HTML/javascript/jquery for your folios, you host it yourself.

    Neil

Maybe you are looking for

  • Satellite Pro L100 - DVD will not turn even upward

    My friend gave me an old Satellite Pro L100 PSLA4E 005009EN to look at. He acknowledges not or read the DVD. I tried using multimedia Nero, Cyberlink and VLC players, but they can't watch a DVD. A CD will play without a problem, but a DVD will not ye

  • Does anyone has installed SQL Server 2008 R2 on Windows SBS 2011 Standard?

    I know that SBS Premium Add on SQL Server 2008 R2 and install this will work.  However, if I have a copy of SQL 2008 R2 on the spot, I would like to know if there are any problems with the installation of this application because of Windows SBS alrea

  • I need help for the problem event name: BlueScreen. Help, please...

    Problem event name: BlueScreenOS version: 6.1.7600.2.0.0.768.2Locale ID: 1033 More information about the problem:BCCode: 116BCP1: FFFFFA8007D53010BCP2: FFFFF88006CEAC48BCP3: 0000000000000000BCP4: 0000000000000002OS version: 6_1_7600Service Pack: 0_0P

  • Error publishing app for Windows

    HelloI did all the necessary with makecert and pvk2pfx to generate the .pfx certificate. Transferred to the phonegap build and generated the .aspx file. But if I download this file on my windows developer account to publish to the top, I get this err

  • Show / hide the Panel programmatically

    I have a custom menu I want to show and hide my HTML5 Panel.Currently I have the 'Show' part works through the sAICSXSExtension->LaunchExtension() function.I'm trying to 'Hide' by using the HTMLController-> UnloadExtension() function. The HTML of my