imageList

Hello everyone, I created an ImageList only the title and the description to leave the screen. How can I set the Indent?

my function:

function dataOnLoad_initialLoad (feedsXML) {}
dataList var = document.getElementById ('dataList');
var titles = feedsXML.getElementsByTagName('title');
var descriptions = feedsXML.getElementsByTagName ('description');

for (var i = 1; i)< titles.length;="" i++)="">
Var = title titles [i].firstChild.nodeValue;
var descriptions [i].firstChild.nodeValue = description;
Immagine var = document.createElement ('div');
immagine.innerHTML = Description [i] .textContent;
var imgUrl = immagine.getElementsByTagName ("img") [0] .getAttribute ("src");
linkUrl var = immagine.getElementsByTagName ("a") [0] .getAttribute ("href");
var testoArt = immagine.getElementsByTagName ("p") [0] .innerText;
listItem = document.createElement ('div');
listItem.id = i;
listItem.setAttribute('data-bb-title',title);
listItem.setAttribute ("bb-type of data", "item");
listItem.setAttribute ("data-bb-img', imgUrl");
listItem.setAttribute('data-bb-link',linkUrl);

listItem.onclick = function() {onItemSelected ('test') ;};
listItem.innerHTML = testoArt;
dataList.appendItem (listItem);
If {(bb.scroller)
BB.scroller.Refresh ();
}

}
};

and screen.htm:


     

         

     

I solved it. I change my space: nowrap; space: wrap; in bbui.css

Tags: BlackBerry Developers

Similar Questions

  • BBUI js imagelist overlay vertical to select point to reach

    Hey webworkers,.

    what I'm trying to get a vertical overlay that shows the alphabet from A to Z on the right side of an image list. (As in the address book on alpha pb or dev)

    I tried to get http://devgrow.com/slidernav/ to work, but I guess I'm missing some things to display correctly. Maybe some of you can point me in the right direction on what to do to get something like this work. Currently, it seems that the css is not loaded correctly. I'm loading in the div of the screen containing the image list. I do the same thing with the slidernav.js and call ajax in the ondomready in my index.htm.

    How the list of example is shown at the bottom of my imagelist without a css style. Also how could I managed to access an element of specific header of the list after clicking on an entry?

    Look at the link below to scroll to the particular item:

    https://github.com/BlackBerry/bbUI.js/wiki/screens

  • How to make a horizontal imagelist even size

    I have a horizontal list of images in my page. The size of the image is larger and smaller based on the text of the label for the list.

    How can I make the image list same size regardless of the size of the Label text. I saw an ad as below.  But I do not know where to add this. Should I create a new CSS file?

    *************************************************************************************

    .t25HorizontalImageswithLabelList td {}

    Width: 128px; / * Width of the images/preferred width of list entry * /.

    vertical-align: top;

    }

    **********************************************************************************

    Help, please

    George

    Hi George,.

    The CSS does not work with TD as model (horizontal Images with the tag list) does contain no TD on that.  Open the model and you will see what I mean.  Each element has this HTML (directly from the template):

        
  • #TEXT#
  • I have a running example (hint hint an example on apex.oracle.com goes a long way), but note that each item is a LI.  So if you want each entry/box to fix then you want to control the LI elements with a width or height.

    Something like this should do the trick:

    Li .uHorizontalImagesList {width: 128px ;}}

    If you want the fixed horizontal size then who can get is so difficult you text.  There are different ways of working that, but I need a running example.

    If you want the images limited to a size, you will need BOTH CSS code snippets. one for the image and one for the LI.

    I don't know what you mean by "I don't want the image to make bigger it? He should have stayed 128px width for all. They span the height?  But probably matter if all the boxes of the same size.

    Hope this helps

    -Jorge

  • TypeError: Result of expression 'new blackberry.invoke' [undefined] is not an object. Application of bbUI

    I am facing an error during the use of the blackberry and the blackberry.invoke feature, invoke. BrowserArguments

    I have a group of items in an imageList, an element is defined as this line

    Minutes from anywhere

    function openUptownCairoLink() {}

    try {}

    var args = new blackberry.invoke.BrowserArguments ('http://blackberry.com');

    BlackBerry.Invoke.Invoke (blackberry.invoke.APP_BROWSER, args);

    } catch (e) {alert (e)}

    }

    and when I click on the element, it warns the error as in the subject of this topic.

    I'm using BB Bold 9900 with OS 7

    You will need to do the following:

    http://192.168.0.140:8888" subdomains="true">
      
      
      
      
      
      
      
      
      
      
    
    
  • Selecting the item in a list of images

    Hi @ll,

    I tried to get the selected item in a list of images (bbui - 0.9.2.js). If I try to get the selected item as described here

    https://github.com/BlackBerry/bbUI.js/wiki/image-list

    .. .the result is still "not defined".

    Here is my snip of code:

    var mc;
    var bb10HighlightColor = '#00A8DF';
    
    bb.init({bb10HighlightColor: bb10HighlightColor,
          bb10ActionBarDark: true,
          bb10ControlsDark: true,
          bb10ListsDark: false,
          bb10ForPlayBook: true,
    
          onscreenready: function(element, id) {
             if (id == 'dataOnLoad') {
           dataOnLoad_initialLoad(element);
        } else if (id == 'imagelist') {
                var resultList = element.getElementById('resultlist');
                for (var i = 0; i < mc.count; i++) {
                   var item = document.createElement('div');
                   item.setAttribute('data-bb-type', 'item');
                   item.setAttribute('id', mc.contactarray[i].ID);
                   item.setAttribute('data-bb-title', mc.contactarray[i].Company);
                   item.setAttribute('data-bb-img','img/company.png');
                   item.innerHTML = mc.contactarray[i].Zip + " " + mc.contactarray[i].City;
                   item.onclick = function() { onItemSelected('test'); };
                   resultList.appendChild(item);
                }
             }
          },
    
          ondomready: function(element, id) {
          }
    });  
    
    function doSearch() {
       parseJASONAndOpenList('{"count":3,"contactarray":[{"Company":"Acme Inc.","Lastname":"Jackson","Firstname":"Bill","City":"Maincity","ID":"45D6"},{"Company":"Backman Inc.","Lastname":"Burger","Firstname":"Marc","City":"Downtown","ID":"45D7"},{"Company":"Jingle Inc.","Lastname":"Sampson","Firstname":"John","City":"Outercity","ID":"45D8"}]}');
    };
    
    function parseJASONAndOpenList(jsonString) {
       mc = JSON.parse(jsonString);
       bb.pushScreen('imagelist.htm', 'imagelist');
    };      
    
    function onItemSelected(text) {
       alert(text);
       var selectedItem = document.getElementById('resultlist').selected;
       alert(selectedItem.getAttribute('id')); //selectedItem is always undefined here
    }
    

    The image list:

    
    
    
    
    
       
    Test item

    The image list holds something hard (id = "TEST1"), then I add three objects dynamically. After selecting one of the items, I would like to show more details in a new screen.

    I tried to solve in different ways, but the result of

    var selectedItem = document.getElementById('resultlist').selected;
    

    is always "not defined".

    I'm looking for any help!

    Hello!

    This javascript interface comes in 0.9.3 still not available in the version you are using.

  • 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);
    
  • [Help] Image cannot be dependent

    I had a problem in my application using bbUI is not able to get the images on my server.
    All the data I want to show what i've got, but only images that do not appear, but my emulator training works very well. But after I install on my blackberry OS6 did not work as I want.

    Please see pictures below (emulator Ripple):
    http://S8.PostImage.org/v4swuoo5h/success.PNG

    Please see pictures below (real device OS6):
    http://s15.PostImage.org/v8xpqr3vv/fail.PNG

    My code to retrieve data from the server, I use jsonp library like this:
    http://pastebin.com/wWBFCG6K

    And my code:

    function NowPlaying_initialLoad(element) {
        setTimeout(NP_loadAfterTimeout,15000);
    }
    
    function NP_loadAfterTimeout() {
        document.getElementById('waiting').style.display = 'none';
        NowPlayingProses_initialLoad()
    }
    
    function NowPlayingProses_initialLoad() {
    
        var url = "http://berthojoris.com/developer/services21/DataReadNP.php";
        JSONP.get(url, {}, function(response){
            var listItem, container, dataList = document.getElementById("dataList"),
            str = "",
            str2 = "",
            str3 = "",
            str4 = "",
            str5 = "";
                for ( var i = 0; i < response.length; ++i ) {
                str = response[i].judul;
                str2 = response[i].fetch_date;
                str3 = response[i].id;
                str4 = response[i].img;
                str5 = response[i].desk;
    
                var re = new RegExp("^(http[s]?://|ftp://)?(www\.)?[a-zA-Z0-9-\.]+\.(com|org|net|mil|edu|ca|co.uk|com.au|gov)$","g");
                        str4.replace(re, "");
    
                listItem = document.createElement('div');
                listItem.setAttribute('data-bb-type', 'item');
                listItem.setAttribute('data-bb-img', str4);
                listItem.setAttribute('data-bb-title', str);
                listItem.innerHTML = str5;
                container = document.createElement('div');
                        container.appendChild(listItem);
                        bb.imageList.apply([container]);
                        dataList.appendChild(container.firstChild);
                        if (bb.scroller) {
                            bb.scroller.refresh();
                        }
                    }   
    
        });
    }
    

    Are there any that should be added to my code?

    The case is solved...

    After I checked it it turns out that the problem is the link to my server problems. And I have to fix.

  • are there similar control with UISegmenControl on ios

    I noticed bbuijs includes

    ActionBar ActivityIndicator ContextMenu GridList            

    Common controls

    These controls and the common layouts are supported through BB6, BB7, PlayBook, BB10

    BBMBubbles Button CheckBox Indicated Drop-down list ImageList LabelControlContainer PillButtons ProgressIndicator Option buttons ScreenMenu ScrollPanel Slider ToggleButton                                                  

    are there similar control with UISegmenControl on ios

    Seems to me looking "buttons of the pill?

    This is in bbUI - https://github.com/blackberry/bbUI.js/wiki/Pill-Buttons

  • Problem with BBUI / Web database / asychronous timing: untreated by BBUI.js query in HTML format

    I think I solved most of my problems with getting my data to be used in various functions, etc... but the problem now (which may have been the problem basic all along) is related to the asynchronous nature of the treatment of Web database.

    I get my markup returned as a

    with all the 'data-bb-type' attributes etc, but based on the statements of 'alert' I sprinkled throughout my code, database results are processed after the 'onscreenready' event is over and "ondomready" began.

    I know that if you generate markup for use with BBUI.js, he must enter the screen "" before the screen "" is passed to BBUI.js BBUI can do everything it's the stuff of fantasy for her.

    I tried to make sense, but it escapes me. Maybe someone could point me in the right direction for a good tutorial that explains clearly what is happening behind the scenes, and then I guess I'll have to rip my code share and put back... or at least call functions in a different way or from a different location or use the callbacks more liberally (I'm not exactly clear on the use of reminders either).

    The approach you describe would be necessary in the sense that an asynchronous call in the onscreenready function will allow this function to progress / probably finish and BBUI continue on treatment until you can completely change the elements with the data returned by the database.

    Content, while not ideal, front-loading is a valid route.

    The other option, depending on which time of control you're filling, would wait for ondomready and then use the JavaScript APIs for the control (if any) to be completed after the fact. For example, the ImageList controls have JavaScript APIs to refresh their content with an array of elements, once the element has been created / BBUI-means.

  • Problems using backbone see to add to BBUI display Div in BB10

    I'm experimenting with using views of the spinal column to fill the contents of a BACKUP screen. So I have a screen empty BBUI that contains only the div and screen script tags to load the scripts with the code for views of the spinal column etc. The views of the spine are responsible for creating the bbui divs and adding them to the div. screen bbui I created a controller to handle the onscreenready event and pass the item to a view of the spine.

    In my first experience, I used a view that created an imagelist bbui a collection of the spine (and other views of backbone of sup) and added the imagelist created onscreenready to the bbui div screen Virgin
    It seems to work, but then I realized that the title of bbui created by the display of the spinal column covers the first element of the imagelist.
    So if I had a list of 5, only four components were visible. The five elements would be visible if I not add the title bar. This problem occurs only in BB10. BB6 and BB7 make as expected (tested with ripple and simulators).

    I noticed that the element passed by onscreenready contains the bbui screen, and since I am adding to this item passed to the display of the spine, I thought the error was adding to this and not the screen. Then I tried passing element.firstChild (which is the screen bbui as far as I can tell) instead, but no change.

    My experience was similar, but I used views of the spinal column to generate groups of control and containers for entry. A similar problem with the title bar, but I can not select the input field to enter text. Yet once again, this only happens about BB10.

    If I do not use backbone and enter items manually in the form as usual, it works as expected.

    Anyone have any ideas?

    I posted this question on github and it has been fixed, so no need to workaround more.

    https://github.com/BlackBerry/bbUI.js/issues/561

  • New at IDS 4235.

    Hello

    can someone tell me how to access the console of the IDS 4235.

    My ID only shows

    ttya login:

    and I'm unable to type anything on this prompt.

    You will need to download the file to image CD ISO of cisco.com.

    Then use a CD burner to create a CD from this ISO file recovery.

    Put the CD in your sensor and reboot.

    It should reboot from the CD and load a new image on the sensor.

    http://tools.cisco.com/support/downloads/go/ImageList.x?relVer=6.0%285%29E3&mdfid=277026258&sftType=Intrusion+Prevention+System+%28IPS%29+System+Software&optPlat=&nodecount=2&edesignator=null&modelName=Cisco+IDS+4235+Sensor&treeMdfId=278875311&treeName=Intrusion+Prevention+System+%28IPS%29&modifmdfid=null&imname=&hybrid=Y&imst=N&lr=Y

  • user account to download Cisco IPS signature

    Hi all

    I wanted to activate the automatic update in IPS but he asks Cisco VAC with cryptographic privileges for tΘlΘcharger Cisco.com Cisco IPS signature and engine signature updates.

    is their any default access for this?

    I have VAC ORC is if this can be used?

    You must have a Cisco.com user with privileges to download Cisco IPS signature and signature updates cryptographic engine of Cisco.com.

    Using your cisco.com account go to this link and see if you can download the IPS - K9 - 6.1 - 2 - E3.pkg to your own desktop machine.

    http://tools.cisco.com/support/downloads/go/ImageList.x?relVer=6.1%282%29E3&mdfid=280302728&sftType=Intrusion+Prevention+System+%28IPS%29+System+Upgrades&optPlat=&nodecount=2&edesignator=null&modelName=Cisco+IPS+4260+Sensor&treeMdfId=278875311&treeName=Intrusion+Prevention+System+%28IPS%29&modifmdfid=null&imname=&hybrid=Y&imst=N&lr=Y

    If you cannot download this file with your account, then you can use that account and password when you set up the sensor for updates automatic cisco.com.

    If you can not download the file with your account, your account does not have the right settings.

    Your account does not have access crypto or your account is not correctly connected to your service contract for your sensors.

    There are a handful of countries not allowed access crypto, users of other countries would just get their account changed to crypto access (I'm not sure what is this procedure).

  • PIX firewall software

    Hi guys,.

    I am looking to download IOS ver 4,0000 for PIX 515E, but can't seem to find anywhere in the downloads/security section. The only version they have is 8.0.4.

    Anyone know where I could find all earlier versions?

    Thank you very much

    Elena

    Elena, when you go to download box, choose any version 8.0, then window right side you will see a text saying previous software release click on this hyperlink and it will take you to all versions including 7.x

    http://tools.cisco.com/support/downloads/go/ImageList.x?relVer=8.0.4&mdfid=277072390&sftType=PIX+Firewall+Software&optPlat=&nodecount=2&edesignator=ED&modelName=Cisco+PIX+515E+Security+Appliance&treeMdfId=268438162&treeName=Security&modifmdfid=&imname=&hybrid=Y&imst=N&lr=Y

    but here's the direct link

    http://www.Cisco.com/cgi-bin/tablebuild.pl/PIX

    Concerning

  • CSA on 7 CCX

    I need to load the last CSA on a CCX7 server.  We don't have the Management Console.  What is the last version that supports supported a stand-alone version of the CSA?

    Yes it is. It's under CUCM 4.3.

    Please note that, unless there is specific CCX, all other software will come from the CUCM download page. for example, OS patches, updates the BIOS, CSA

    This is where you choose political or system

    http://tools.cisco.com/support/downloads/go/Model.x?mdfid=280771554&mdfLevel=Software%20Version/Option&treeName=Voice%20and%20Unified%20Communications&modelName=Cisco%20Unified%20Communications%20Manager%20Version%204.3&treeMdfId=278875240

    And here is the latest version:

    http://tools.cisco.com/support/downloads/go/ImageList.x?relVer=3.1(7)&mdfid=280771554&sftType=Security+Agent+System+Software+for+Unified+Communications+Manager/CallManager&optPlat=&nodecount=2&edesignator=null&modelName=Cisco+Unified+Communications+Manager+Version+4.3&treeMdfId=278875240&treeName=Voice+and+Unified+Communications&modifmdfid=&imname=&hybrid=Y&imst=N&lr=Y

  • ASA 8.3 VPN site-to-site does not UDP traffic to other peer

    Hello!!!

    Someone turned off the lights :-) I say this because that's 6.2 6.3 I can't get the basic things...

    On a SAA, I created a "site-site" VPN profile to connect to a remote site, on the other side (ASA 8.2) sees no problem, I can pass all IP traffic via VPN without NAT; but on a new ASA5505 with 8.3 (1) version fw and ASDM 6.3 (1) can't do that in any way :-(

    What I get is trivial...

    ... It works perfectly with TCP and ICMP traffic, but does not have UDP traffic: in practice, if I followed the traffic to a remote private IP, TCP and ICMP traffic I see only packets in vlan "inside" with the private IP, but with the UDP traffic on top of that, I see traffic on vlan 'out' with the IP public ASA and source port changed :

    Inside: UDP to 172.16.2.128:6000 to 172.16.0.200:6000
    Outside: UDP to 5.5.5.5:23400 to 172.16.0.200:6000

    Why?

    Of course, the traffic is not encrypted and does not reach the other side of the tunnel!

    Here are the important parts of the configuration:

    interface Vlan1
    nameif inside
    security-level 100
    172.16.2.1 IP address 255.255.255.0

    network obj_any object
    subnet 0.0.0.0 0.0.0.0

    remote network object
    172.16.0.0 subnet 255.255.254.0

    outside_cryptomap to access extended list ip 172.16.2.0 allow 255.255.255.0 network remote control object

    NAT (inside, outside) static source any any destination static remote-remote network

    network obj_any object

    NAT dynamic interface (indoor, outdoor)

    card crypto outside_map0 1 match address outside_cryptomap

    outside_map0 card crypto 1jeu pfs

    card crypto outside_map0 1 set ip.ip.ip.ip counterpart

    outside_map0 card crypto 1jeu nat-t-disable

    outside_map0 interface card crypto outside

    Given that the new business object, I have not yet quite clear (ok, I don't find time to do a deep reading of the documentation), someone is able to direct me to fix this trivial?

    Note: If I remove my drive manual nat and I flag "network translating" on the remote network object thus indicate that they want NAT with ip network remote control then don't work any IP vs. remote site traffic. Why, why have not more than the simple rules of 'nat exception' the old version and why the crypto-plan applies only to TCP traffic? Possible that there is an object any which takes all IP traffic?

    A big thank you to all.

    73,

    Arturo

    Hi Arturo,.

    I know that there is a certain NAT related bugs in 8.3 (1) and although I don't remember a specific which corresponds to your symptoms, I would say you try 8.3 (2) instead, or maybe even the last available version of a temp (currently to 8.3 (2.4):)

    http://tools.cisco.com/support/downloads/go/ImageList.x?relVer=8.3.2+Interim&mdfid=279916854&sftType=Adaptive+Security+Appliance+%28ASA%29+Software&optPlat=&nodecount=9&edesignator=null&modelName=Cisco+ASA+5510+Adaptive+Security+Appliance&treeMdfId=268438162&modifmdfid=&imname=&treeName=Security&hybrid=Y&imst=N

    If you still see the problem, then, check

    entry Packet-trace within the udp 172.16.2.2 1025 172.16.0.1 detail 123

    entry Packet-trace inside tcp 172.16.2.2 1025 172.16.0.1 detail 123

    and check what's different.

    HTH

    Herbert

Maybe you are looking for

  • Add a Skype Skype contact whose name is a phone number

    Skype ID my friend's phone number. When I try to add him as a contact, I get only an option to add a phone number. But I want to add her phone number as his Skype ID and be able to make Skype calls to this identification number. Help, please!

  • When I open the folder of sustainable development that I see the same sea/mountain scene, as to see photos

    When I opened the photo of SD card give all I see is the same sea/mountain scene. I have to go through them both. I used to beable to see all the photos to import into facebook.  . Thank you

  • error code 80080005

    Windows cannot check the date automatically, error code 80080005. I have windows starter edition, windows update is also on the start window. do I need to get a different Windows program?

  • I DON'T KNOW WHERE IS THE PROBLEM?

    WE HAVE WINDOWS VISTA. WE HAVE A PROBLEM WHEN YOU LOOK AT WEBSITES FURITNURE AND THUMBNAIL PICTURES WILL APPEAR BUT WHEN US CLICK TO ENLARGE THE PIC WONT SHOW UP! I JUST NEED TO KNOW IF IT IS THE COMPUTER OR THE WINDOWS VISTA BECAUSE ALL FURITNURE I

  • Unable to connect to a Time Capsule - router Apple´s

    I bought a Time Capsule (Apple´s built-in wifi router and hard drive). My Vista laptop can connect to the network, but it can't get internet access or disk access network hard. I have a mix of different devices connected to the router without a probl