Search Type: Posts; User: d5chris

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. 1 - Thats a good question! I've often wondered if thats possible. To my knowledge, no. However if i'm wrong it'd be great...
    2 - You can use an itemtap listener to remove the selection as soon as it...
  2. Replies
    5
    Views
    2,005
    Here's what's happening:
    When you're declaring restHandler inside your ext.setup, it's only being declared inside that scope.
    When you're declaring it outside ext.setup, its in the global scope,...
  3. Yes, the way you're doing it is more realistic: xtypes inside a formpanel. So you'd have something like:


    form = new Ext.form.FormPanel({
    items: [{
    xtype: 'fieldset',
    title: 'Edit Message...
  4. That should be fine, simply have 5 selects all with store: myStore
  5. Sure:


    Ext.regModel('MyOption', {
    fields: [
    {name: 'text', type: 'string'},
    {name: 'value', type: 'string'}
    ]
    });
  6. If you're using a Ext.form.Select, it has a 'store' property for just this purpose, so you should be able to do that. Eg set up a model and store to pull from your database, and bind the select to...
  7. Replies
    3
    Views
    2,418
    I don't think it's possible, because basic auth uses http headers, and JSONP uses '<script ... />' tags which have no way of specifying headers. You may have to find another approach.
  8. Replies
    4
    Views
    1,593
    That bit of code gets called when they tap on a 'leaf' element in the list - eg they've tapped on an item that won't expand into another list.


    var ds = subList.getStore(),
    r =...
  9. A List will do the trick nicely and will do your groupings and the a-z on the right hand side.
    You'll just need to put the code for your + and - in your itemTpl and you're good to go.
  10. Replies
    3
    Views
    807
    Ok great, and now for the explanation of *why* it worked:

    When you had your code like this: "test.views.HomePanel = Ext.extend(Ext.Panel,{...", what it is doing is declaring a class, which is like...
  11. Replies
    5
    Views
    2,005
    Yes, i'd use the way you described, eg:


    <a href="javascript:MyNamespace.myView.myHandler()">asdasd</a>

    However I'm using sencha touch's MVC features, so in my case, i simply used a route eg:...
  12. That function is used to set which card is visible, and you can use it to specify a sliding animation for the transition too.
  13. How about something like this:


    containerPanel = new Ext.Panel({
    fullscreen: true,
    layout: 'card',
    items: [
    {
    html: '<h1>Card 1</h1>'
    },
  14. Replies
    5
    Views
    2,005
    I have the same requirement.
    Basically the only way i solved it was to put an <a href=... in the template and style it with CSS so it looks similar to a sencha button.
    However if you come up with a...
  15. Replies
    3
    Views
    807
    Try this:


    test.views.HomePanel = Ext.extend(Ext.Panel,{
    fullscreen: true,
    cardSwitchAnimation: 'cube',
    items: [
    {xtype:...
  16. This is what you want:

    '<img src="{[this.findImage(values.user.Name)]}"/>',

    the 'values' is the key.
  17. I just use plain old javascript setTimeout and setInterval...
  18. Replies
    2
    Views
    2,537
    I simply follow the naming convention from here:
    http://www.sencha.com/learn/Tutorial:A_Sencha_Touch_MVC_application_with_PhoneGap
    And if in doubt, just do things as per normal javascript, eg...
  19. Replies
    2
    Views
    829
    Yeah i've noticed the same, you're not the only one - those tabs don't seem to work. Maybe they only are sortable if you actually are on an iphone - eg not within a desktop browser?
    I know that with...
  20. Thanks :)

    As for scrolling, you'll want some combo of layout and scroll settings on the list and the panel to get it to work.
    My preference is to get the fullscreen panel to have layout:fit and...
  21. Replies
    2
    Views
    1,858
    Sure you can do that. Just have a boolean field (or whatever) in your model to determine which template you want to render, and use <tpl "if... statements appropriately.

    The docs you want are...
  22. Replies
    1
    Views
    853
    A good place to start, if you have the time, is to read the ruby on rails guides on MVC - they explain the concepts quite neatly: http://guides.rubyonrails.org/

    But in short:
    A controller is...
  23. I think i found it: You haven't added your 'restaurantList' to the 'items' array in your unnamed fullscreen panel.
    Try that, eg:


    new Ext.Panel({
    fullscreen: true,
    id: 'content',
    ...
  24. Hi,
    How do you position a list after a variable-height (due to template) panel ?

    I have a template panel like so:


    var templatePanel = new Ext.Panel({
    tpl: [
    '<tpl for="show">',
    '<p...
  25. Replies
    10
    Views
    5,249
    This is how i do it on my lists:


    listeners: {
    itemtap: function(dv, ix, item, e) {
    // Delay the selection clear
    // so they get a nice blue flash for HCI's sake...
Results 1 to 25 of 59
Page 1 of 3 1 2 3

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar