How/where to use jquery with webworks and bbui?

Hi, I have a small application bbui and webworks.

now I need to add jQuery code, but I don't know where exactly he Add. I want to add for example something like this:

$(document).ready(function () {
    $("#Div1").click(function () {
        alert("Hello world!");
    });
});

I added to my index.htm, but my code designating the Div1 element, is in a http://www.sigling.is/IMO/imofishing/home.htm which is loaded via bb.pushScreen

its not working, I have to add the jQuery code for each "screen" where I want to use?

I don't know where to place them in a page 'normal' jQuery, but here the bb.pushScreen is special.

but I solved it now:

bb.pushScreen('home.htm', 'home');

can I use the following syntax:

ondomready: function(element, id) {
        if (id == 'home') {
            $("#Div1").click(function () {
                alert("Hello world!");
            });
        }
    }

and it works

Tags: BlackBerry Developers

Similar Questions

  • Open with options: I want to add a new application to the list right click on file-> open with and rearrange the list so my search app is first. I know that I can use open with-> other and select any application, but it takes too much time since I u

    I want to add a new application to the list right click on file-> open with

    and also reorder the list so my search app is first / top of the list.

    I know that I can use open with-> other and select any application, but it takes too long I should use my intended application in this way several times a day.

    Basically, I'm looking for a configurable way configure open with, something more to send to Windows.

    Thank you very much for all the advice offered.

    The operating system, not you, not control that open with the menu command.

  • How can I use iwatch with lpad2

    How can I use iwatch with lpad2?

    You can not. Apple Watch is only compatible with the iPhone.

    Read the first paragraph here:

    https://en.Wikipedia.org/wiki/Apple_Watch

  • How to make a form with report and a form of inclusion in the same page?

    Hey, guys:

    I was wondering if you could have any link or examples to show how to make a form with report and a form of inclusion in the same page, these two forms are related to the same table. Our customer wants that a user can add a new row to the table in a form and see all lines created by this user in a report, the report should provide link change as well. the problem is: whenever I inserted a new line or change a line or delete a line, and submitted and return to this page, all hidden elements lost their values, this report is empty, and some display only items also lost their values. Could someone give me any suggestions?

    Thank you very much!

    Sam

    So, the problem is essentially with page elements lose their session state values when re-loading of the page. How do you define values for the elements of the hidden page? You have default values defined for those? They are based on the database column? What is the "Source" parameter for these items on the page? It is set to "Always, replace any value in session state"? You have any process of 'Empty the Cache', which is reset these values to null element?

    What is your version of the Apex?

    I would recommend that you have installed for example in apex.oracle.com. This would help to better understand the issue.

    Published by: jaouad khalifi on 13 December 2012 22:11

  • How to fill a column with numbers and maintain when adding or deleting lines?

    So far, I've discovered two ways to fill a column with the number:

    1. Enter '1' in a single cell, '2' in the one below, select both, and then use the yellow dot to drag down - it will do the rest.

    2 create a formula such as 'A2 + 1' and drag also.

    However, in both cases it will work if I manually this continues to do for each newly added line at the bottom. Now, that alone would not be that big of a problem if it wasn't for the fact that I'm working with a table where the lines can be added among other rows in the future.

    Having said that, could someone please tell me how to create a column with a number that will increase automatically? I mean - if I add a new line between line 56 and 57, I want the new line to have a '57"in it, and the" old 57 "would now be"58"and so on." " I don't want to drag the whole column, which can be hundreds if not more than a thousand lines.

    Try to put this in the cells in the column:

    = ROW()

    In the formula, you can add or subtract a number if necessary to get the starting number that you need.

    SG

  • Using jquery with phonegap.

    I have a phonegap app, using the query.  In the application, I have the following statement:

    < script type of = "text/javascript" CBC = " ""https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js" " " ></ script >

    The app works great as a web server and using Adobe Phonegap build native IOS and Android applications.

    My question is: phonegap Build includes the library jquery with the built app, or is the application Android/IOS load jquery library initialization on the phone?

    If the application does not load the library until initialization, should I download this library to my Git repository so that PhoneGap Build will include the library in the app integrated (whereas it has to download running?)

    Thank you

    Bob

    Yes the static resources like that should be delivered within your application. Even if your application requires an internet connection, it should fail gracefully in offline mode.

  • How do I use the letters A and O in Dreamweaver?

    I wonder if there is any way I can use the letters A and o Dreamweaver transforms the letters some random mess. They are used in my mother tongue and so far I have not been able to use. I can't also set with change the language of Dreamweaver on my own since it was translated to it. Are they fixed if I download my files on the net? If this is not the case, what I have to do to fix this?

    Yes, you can use the accented characters in Dreamweaver, as long as you use a fairly recent version of Dreamweaver. Make sure that the document encoding is set to UTF - 8. If you can type accented directly from your keyboard characters, Dreamweaver inserts the characters directly.

    What you describe as back "some random mess" at the time where the browsers are not able to handle accented characters. Ä is the character entity HTML a. Older versions of Dreamweaver by default to Western European (iso-8859-1 encoding), which translates accented characters in the process of conversion to HTML character entities.

  • How can I use kuler with illustrator cc?

    Pleas

    There is another post which I think will answer your questions.   Let me know if there is something missing here.  Note also, with the name change, the Panel is called "Adobe Color Themes" or "Color Themes" in cases where there is less room for text.

    Use themes with Adobe Illustrator®, Photoshop®, InDesign®, Fireworks®, and Flash® Professional

  • How can you use a single image and change it in three different ways to export later?

    I am a new user of Lightroom 3.  How to use the same image and change several ways to produce multiple images of later export?  For example, I have a photo of a bride and groom.  I want to use this image and create a color image, a black and white image and end up with their hands.

    No, you can add them at any time.

  • How can I use tor with firefox?

    I found this Tor project recommends do not to use the customer of vidalia. Also, I found that the torbutton add-on has been removed and foxyproxy tor Wizard does not work.
    Is it possible to use tor with one other than its built-in firefox browser?

    I found that the Tor changed its default port 9050 to 9150 so you can create a proxy setting to help foxy proxy tor Wizard and change its port to 9150.
    You can also manually configure the Firefox proxy settings to use localhost on port 9150.

  • How to record the line with mbp and el capitan

    How can I burn online with a MBP 15 beginning and El Capitan?

    Set the audio input of your computer...

    How to record audio on Mac OS X EL Capitan

  • In the new Apple TV, there is no optical audio output how we can use tv with music

    MY new Apple TV dosent 4th generation has an optical audio output then, how can I use it for my music without starti tv wire

    You can get adapters that have HDMI in and HDMI and optical output, like this.

  • How to rotate the movieclip with drag and drop?

    Hello everyone,

    I work with drag and drop game.

    I'm done with drag and drop. now, I have problem in totating the movieclip.

    I want video clip rotate using the mouse. Do not use the click mouse. !!!

    Can someone give me a solution for this?

    var isDrageen:Boolean;

    var lastX:Number;

    var derriГЁre: Number;

    var dragX:Number;

    var dragY:Number;

    stage.addEventListener (MouseEvent.MOUSE_DOWN, down);

    stage.addEventListener (MouseEvent.MOUSE_UP, up);

    stage.addEventListener (MouseEvent.MOUSE_MOVE, mov);

    function down(e:MouseEvent):void {}

    isDrageen = true;

    lastX = mouseX;

    derriГЁre = mouseY;

    }

    function up(e:MouseEvent):void {}

    isDrageen = false

    }

    function mov(e:MouseEvent):void {}

    {if (isDrageen)}

    dragX = mouseX-lastX;

    dragY = mouseY-derriГЁre;

    MC.rotationY += dragX/1.65;

    MC.rotationX += dragY/1.65;

    lastX = mouseX;

    derriГЁre = mouseY;

    }

    }

  • How to create a grid with columns and gutters?

    Can someone tell me the best way to do the above?

    I hoped illustrator would have the same functionaility like inDesign to add columns and specify the width and number and column gutters.  Is it possible to do it, or can someone advise a simple way to do this?

    Way the easiest way is to draw a rectangle the size, you want the grid then it is selected

    Go to object > path > split into grid

    Enter the number of columns leave the lines as 1

    Enter the with of the gutter

    as such

    You can do something like this with text and block Options but think zI it is better to use this and put on the text.

  • Error insert using statement with subquery and prepared partition

    Connection Conn = null;
    PreparedStatement stmt = null;
    final StringBuilder lSql = new StringBuilder();
    lSql.append ("INSERT INTO table1");
    lSql.append ("(Colonne1, Colonne2, column_group, column_sequence )" ");
    lSql.append ("VALUES");
    lSql.append ("(?,?,?, (selection from table1 (PARTION column_group max (column_sequence) + 1)) " ");)
    ...

    the query was operating normally, the error occurred after you enter the code in red.

    Normally, I would ask: what error you are getting? And what channel the operation generates?

    But "select (...) over" ist lacks at least one feature after select: over clause is used for analytical functions and has the form: SELECT a_function() OVER (...) - and without the function I expect an error.

    Maybe:

    Select max (column_sequence) + 1 MORE (PARTION column_group) from table1

    might be what you want. At least it's a plausible use of the analytical function; but I guess she returns several rows and so it will not help in a clause of insert values.

Maybe you are looking for