Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Efficient Use of Navigation view

  1. #1
    Sencha Premium Member
    Join Date
    Aug 2012
    Posts
    13
    Answers
    1

    Default Efficient Use of Navigation view

    Hi All
    I have a problem in using the navigation view.I want to know that how to push a view into a navigation view by just removing the top view in the navigation view stack i.e. i want to replace the top most view by another view.

    Can anyone help me in doing this..?

    Thanks in advance

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2012
    Location
    The Netherlands
    Posts
    99
    Answers
    8

    Default

    I'm not sure what you mean but can't you just pop the old view and push the new view?

  3. #3
    Sencha Premium Member
    Join Date
    Aug 2012
    Posts
    13
    Answers
    1

    Default

    The problem in popping and then pushing a view in navigation view is it looks very ugly.Its like a zigzag show.So from the design point of view its very bad.

    And i also tried in a different manner i.e. first i destroyed the activeitem of the nanvigation view and then push another view but then also it looks very bad.Usually pages slide from right side while i push into the navigation view but while doing the destroy action and push operation the new view suddenly slide from the left side which is little ugly in looking sense.

    So can you suggest me how to do this.

    Thanks

  4. #4
    Sencha Premium Member
    Join Date
    Sep 2012
    Location
    The Netherlands
    Posts
    99
    Answers
    8

    Default

    Another solution is to just pop the current view and push the new view but disable animations. You could use the layout config option on the navigation view: http://docs.sencha.com/touch/2.3.0/#...iew-cfg-layout .

    I'm not sure if the transition is ugly but it's worth a try!

  5. #5
    Sencha Premium Member
    Join Date
    Aug 2012
    Posts
    13
    Answers
    1

    Default

    I made the animation to null so there is no ugly transition persist now but the whole problem is when i want to build the production version it fails everytime with the error Can you help me in suggesting anything.
    Attached Files Attached Files

  6. #6
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,108
    Answers
    342

    Default

    Well the warning message is complaining about the trailing commas have you tried running your code through jslint or http://trailingcomma.com/
    Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services [email protected]

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

  7. #7
    Sencha Premium Member
    Join Date
    Aug 2012
    Posts
    13
    Answers
    1

    Default

    Hey the trailing commas are just a warning but it is not an error atall.The error is after all the rhino errors.So can you suggest me what to do ignoring the rhino comma error.

  8. #8
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,108
    Answers
    342

    Default

    They could be causing the parser error and should be fixed first.
    Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services [email protected]

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

  9. #9
    Sencha Premium Member
    Join Date
    Aug 2012
    Posts
    13
    Answers
    1

    Default

    Please find the attached log file for the error which is coming while sencha app build production.Please tell me what to do.
    Attached Files Attached Files

  10. #10
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,108
    Answers
    342

    Default

    There may be a issue with your folder name 'SLearn_1.1'
    Generate a new app without a '.' in the folder name.
    And try to build it.
    Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services [email protected]

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •