Add an item link in the div with a loop

I want to do my DIV element to be able to click and go to detail page with ID as a query to my server parameter. I found a few examples of possible uses, I use, example:

http://www.google.com'">Foo

It is just that I was confused would add the script above in the code that I built.

Part of my code:

for ( var i = 0; i < response.length; ++i ) {
                str = response[i].judul;
                str2 = response[i].waktu_mulai;
                str3 = response[i].channel_code;

                var Year,Month,Date,Time,Strip,Join= ""

                var Year        = str2.substr(0,4)
                var Month       = str2.substr(5,2)
                var Date        = str2.substr(8,2)
                var Time        = str2.substr(-8,8)
                var Strip       = str2.substr(4,1)

                var Join        = Date+Strip+Month+Strip+Year+' '+Time

                listItem = document.createElement('div');
                listItem.setAttribute('data-bb-type', 'item');
                listItem.setAttribute('data-bb-img', 'images/icons/logo/'+str3+'.png');
                listItem.setAttribute('data-bb-title', str);
                listItem.innerHTML = Join+" WIB";
                container = document.createElement('div');
                container.appendChild(listItem);
                bb.imageList.apply([container]);
                dataList.appendChild(container.firstChild);
                        if (bb.scroller) {
                                bb.scroller.refresh();
                        }
}

Maybe someone can help me to use the link on each DIV additions by performing a loop of my database app.

This case has been completed by myself

I changed the migration of the page by issuing alerts and content

listItem.onclick = (function(opt) {
    return function() {
        alert(opt);
    };
})(response[i].sinopsis);

Tags: BlackBerry Developers

Similar Questions

  • How to add a second connection of the user with windows 8

    How to add a second connection of the user with windows 8

    Go to the Control Panel, then click on change the Type of account in respect of the accounts of users and parental control.  Beneath the box with user accounts, there should be a link that says add a user account.  Click on that and follow the instructions to set up another user.

  • Firefox please add a webkit for styling the div overflow scroll bars? Chrome has and they spend you upward.

    Firefox still leaves us the div overflow style scroll bars. Chrome and they are passing firefox upward! Do you think that one day before I got to the old code, they will add a webkit for styling the div overflow scroll bars?

    I see this question is about 7 years old I saw first, he asked in 2005

    Hello, this is a mainly managed by the community support forum is probably not the right place for the characteristics of the request (we are unable to implement all the features & devs read here).

    Please use https://input.mozilla.org/feedback for either your reactions or if you think that it is a missing feature in the browser file a bug at bugzilla.mozilla.org.

  • Add a new link in the R12 registration page

    Hi all

    Must please send me the steps to add a new link in the registration page in Oracle istore R12

    Thank you

    Salvation;

    Please check:
    http://docs.Oracle.com/CD/E18727_01/doc.121/e13575/T349071T350482.htm
    How to disable the 'new user registration' link in Istore [ID 1224813.1]

    Respect of
    HELIOS

  • Problem of setting a value for the hidden item click on the button with processes action or pl/sql dynamic

    Apex 4.1

    Oracle 11g

    I have a page which consists of a main and several sub-regions area.  I have a pl/sql process in after the header SET_DISPLAY(:P400_DISPLAY:='MAIN';))

    Three subregions have a contional show where P400_DISPLAY = STORE.  It works in the hiding of the sub regions.

    Now, I want to change the value P400_DISPLAY to the STORE to show the subregions when I hit a button.

    I tried to create a dynamic action for the click on the Add button, but get the following error:

    The selected button uses a model of 'button' that does not contain the #BUTTON_ID substitution string #.

    I went to the models and found:

    Substitution strings

    Top

    Substitution strings are used in sub models to reference the value of the components. This report details use of string substitution for this model.
    Substitution string Referenced De Description
    #LINK #.YesModelTo be used in an attribute "href".
    #JAVASCRIPT #.NO.To be used in an "onclick" attribute
    #LABEL #.YesModelButton label
    #BUTTON_ATTRIBUTES #.NO.The attributes button
    #BUTTON_ID #.NO.ID generated button will be ID either the static button if defined, or if not will be a generated ID internally in the format 'B ' | [Internal ID of the button.

    I then tried to create a page process, pl/sql,: P400_DISPLAY: = 'STORE '; If the button is pressed.  The action of the button is submit page. However, it does not change the value of P400_DISPLAY and the subregions are hidden.

    Suggestions please on how to fix the template or change the value of P400_DISPLAY?

    The question of the root, it's that, even if you change the value of the element of your page, it is not visible to other areas of the page until it is in the session. Thus, any other action based on the value of the element of your page. the visibility of a control, a report based on the value of the item, etc. will be affected by changing the value of the item page until it has been changed in the session. Even after that, items are stored in the session, then you must do something to influence the revalued value. To see the effect of this, observe that your page will load and assesses the value of the element of your page, it sees which is the "MAIN" and mask areas. However, he didn't reassess after that.

    Then; your choices for this value set at the session are send the page, or use JavaScript to set the value in the session. If you use the latter, you will have to do extra work to make visibility tests be re - run, so, let's stick with the submit method.

    What you did above sounds correct to do this but, there are a lot of decisions, that you might have done that may have caused things to do not occur in the correct order.

    First of all, we will confirm that what I describe above is your problem. From the development environment, load the page, click on the button to change the value and submit. Now, click on the link marked the Session. He is always at HAND? If the answer is "Yes"; That's your problem.

    Let's start with your calculation after the header. You set it to * only * run if the current value of the element of your page is null? If this isn't the case, it's your problem.

    Load the Page-> Item set to 'Hand' by calculation-> click on the button--> Item set to STORE-> Submit-> Page Load-> point by calculating the value 'hand '.

    See the problem?

    Assuming that's not the question, you have created a branch to the same page, right? What is your process for the branch point? Is it * after * Validation, computation etc.? Because if not, you are not changing the value before that didn't get to submit.

    I bet that's the first question, but take a look at these.

    See you soon,.

    -Joe

  • Add a new link in the global button bar

    Hello

    How can I add a link in the button bar world close to home, customize the page of links etc.

    Good to know,
    If the problem is resolved, could you please make the thread as answered, which will help others to verify your soln also.

    http://forums.Oracle.com/forums/Ann.jspa?annID=914

    Thank you.

    With respect,
    Kali.
    OSSi.

  • need to be re-issued missing links to the files with the extensions

    I work with files from another company. All InDesign files have links in the links with no extensions palette. The real link themselves files HAVE extensions (mostly .jpg, .psd, .ai, .pdf, etc.). All links appear as absent, and when I try to recreate a link to them that I have to do them all individually, even if all the necessary links are in the same folder (WITH extensions). I tried 'Re-edit to Folder' and "File to repeat Extension", but because there is not an extension as a first step, it simply doesn't. It's really time to recreate a link to them one at a time, since there are about 40 files InDesign averaged around 40 links each.

    I have only one possibility for this file in question, given that links are provided. The file name corresponds perfectly with what is displayed in the links Panel, except for the extension. For example, "CBZ70.howtoshootbw.beach1" appears in the links Panel, and I want to make a link to "CBZ70.howtoshootbw.beach1.jpg". I know additional periods in the file name is a big no-no. This is another unfortunate aspect of the project. This is the naming convention used for hundreds of links. I have the software for renaming batch files, but for this project, I really want to avoid changing the names of files. It's the first of the 12 projects similar, all with the same problem, so my hope is to find a solution that will help both now and in the future.

    I posted this in the general forum of InDesign (http://forums.adobe.com/message/4033140#4033140), and the users he thought it should be scriptable. Can anyone offer any help? Thank you!

    ( Just as I was typing my responselast night, my modem is blown!...) Then I went to sleep first. )

    You can test this? I do not have a file by hand with links with missing extensions (and the subfolders to start), but according to the debug output it expected to lean down in some files are there.

    var i, j, searchfolder;
    for (j=0; j 0)
      return result;
    folderList = Folder(path).getFiles(function(item) { return item instanceof Folder && !item.hidden; });
    
    for (fl=0; fl 0)
       return result;
    }
    return [];
    }
    
  • BlackBerry smartphones by CLICKING ON the LINK IN THE BROWSER with the HELP of TRACKBALL doesn't WORK MORE:'(...)

    When I try to click on a link using my browser on my BB 8900 he won't link I have to hover over the link press menu, then choose get link that my trackball works very well to scroll and click to nothing else except when I pass a link and try to click on it using my trackball This issue just started yesterday, I didn't get all apps recently that could cause this I have not changed anything in my phone that might have caused this, I clear my cache everytime I use the browser, I just want to know if anyone has had this problem and how to solve this problem, you might say customer service call , but no chance already tried... I would like to know thanks in advance guys, and any comments will be helpful so don't be shy, thanks again!

    Hello and welcome on the BlackBerry Forums

    Try restarting the device with the phone, turn on remove the battery for 30 seconds and install the battery again once, let me know please, thanks.

  • Replace the link display the basket with an image

    Hello

    I need help do the above.

    It worked but clicked the wrong button and restore to the original model.

    I searched through the 'help' and found this _image http://KB.worldsecuresystems.com/654/bc_654.html#main_Replacing_the_View_Cart_link_with_an but the link no longer works. It's in a post that Mario has implemented

    The solution involves no javascript code just a change to the tag?

    Hello

    In my view, there is an option in the tag, but I don't remember off the top of my head.  I'll check with our team for this info.

    In the meantime, the solution is to update your 'modulestylesheet.css' CSS and update the background with an image file attribute.

    Here is the result on the front-end server.

    I hope this helps!

    -Sidney

  • How to manage the structure of the event with two loops

    I have a question about the structure of the user event with 2 buttons?

    key 1: START LOGGING DATA

    key 2: STOP LOGGING DATA

    How do I control my

    structure of the event so that it will work? because now that the loop is save data... I can't stop the loop, when I clicked on buttons.

    super_saiyans wrote:

    the problem with moving it is that I don't have control of the DATA RECORD STARTING?

    Of course, you do.  When you get your press conference button, you say your state machine to move to the State of logging.  You must also make sure that you return to visit the State to wait for the event to check out the events of the stop button.

  • How to use the user with event loop event

    Hello

    I want to communicate between 2 VI, so I have a global variable (boolean) who gives the order to an event tool to run. The problem comes from the fact that event loop accepts no global variable, I found on the forum that I can use the user event. Of course, the second VI works normally when I push the button (boolean) in there to run the event loop. Please can someone explain me how to do this, I am a chemist.

    Thank you.

    You enter the receiver structure of event for the event you want to receive.

    To do this in two screws, you will have to share the user between them event reference.

  • Links of the command with the height and width fixed

    I try to display command with fixed width and height fixed as links below.

    < af:commandLink id = "cl1" inlineStyle = "width: 280px;" "height: 33px" text = "link 1" / > ".

    < af:commandLink id = "cl2" inlineStyle = "width: 280px;" "height: 33px" text = "link 2" / > ".

    But the width and height values are not get applied.

    Link is not having developed beyond the text.

    Please suggest any solution.

    Add display: block to your inlineStyle

  • How to add dynamic items based on the results of a dynamic query?

    Hi all

    I'm quite new to ofa, here's my problem.

    I have a table 'interventions', each intervention have actions stored in the table "actions".

    I want to show the actions of an intervention in a list, based on the id of the intervention. the response ID value is dynamic, so does not know the number of shares that you want to display in the list.

    Can someone tell me the steps to create a region that has dynamic elements to display names of action?

    Thank you

    Kind regards

    Afaf

    Afaf,.

    Take a look on the link below to see how to create dynamic VO:

    Blog of Anil Oracle Application Framework: create VO when running at the controller or dynamically created VO

    You could add messageStyled text like the code below:

    OAMessageStyledTextBean newMessageBean = (OAMessageStyledTextBean) createWebBean (pageContext, MESSAGE_STYLED_TEXT_BEAN, null,"" ");

    Links to dynamically create elements below:

    Add columns to the table advanced in OA Framework Programatically by Extension

    OPS KNOWLEDGE HELPER

    Let us know if you get any errors when creating.

    See you soon

    AJ

  • A link to the page with IR: to set the filter

    Hi all

    I have a link from one page to the other which has an interactive report. I put in IR_PLANTING_ID to a fixed value. Unfortunately, I get the following error.


    Error unexpected, unable to find the name of the option at the page or application level.


    ERR-1002 unable to find point item ID "IR_PLANTING_ID" in the "120" application

    PLANTING_ID is certainly one of the columns of the IR. Any ideas? Thank you

    Just make sure that you have good number of:

    Mikhail

  • Add icon w/link to the table of the Spry data set

    I placed an icon inside a table data cell, then tried to give him a hyperlink to a clip. However, the link appeared as underlined text in the cell of the table under the icon.

    Then I tried to type the HTML code in code view, and this is what it looked like. It also did not work the display page:

    "< td align ="center"> < img src =" graphics/speaker.jpg"width ="29"height ="30"/ > < img src =" graphics/movie.jpg "a href="graphics/melanoma1.wmv"/ > < table >

    How I would make the icon itself launch the WMV clip?

    Thank you!

    How I would make the icon itself launch the WMV clip?

    By using the appropriate syntax.

    
    

    If you do not border link Hypertext for image links, add this to your CSS:

    an img {border: none ;}}

    --
    Mark A. Boyd
    Keep-on-Learnine :-)

Maybe you are looking for

  • 27 "+ monitor of type C in the United Kingdom?"

    Afternoon, Recently I've been looking for a more tidy installation my Mac Book Pro 15 "(rétine fin 2013)." I have the henge horizontal dock now, but my laptop constantly get hot (fan will nut) and when I run the mac and 2 external performance of the

  • How can I get rid of open software update

    This opens up hundreds of times a day. It appears only on Firefox and not Chrome. It is not listed in my programs, so I can't uninstall it. I'm not opening it, because I don't know if it has spyware and my Firefox is updated. I'm only using Chrome un

  • 2770XDVD Satellite upgrade memory

    Hi all Well, I give up! I have sussed my Sat 2770XDVD can be upgraded to 256 MB according to the manual, but (and please don't laugh here) I can't find where to install it! Based on the laptop, there is only a single small lid that I removed it, but

  • Problem with NOR-DAQmx Base on Scientific Linux 3.4

    Hello everyone. I'm trying to install the driver OR-DAQmx Base 3.4 on Scientific Linux 6.0, but I got these errors: On this text said that Scientific Linux 5.4 and 5.5 is supported. Can anyone help me or 6.0 is not supported?

  • I encrypted my external hard drive with bit locker, now how to decrypt after reinstalling windows 7

    Original title: Bit Locker question! I encrypted my external hard drive with bit locker, I had just installed windows 7 ultimate, I found in a hurry I have does not support for 7 and decided to reformat and to return to my pro victory, I did and when