Results 1 to 4 of 4

Thread: Simple test function a la JavaScript alert ( )

  1. #1

    Default Simple test function a la JavaScript alert ( )

    Hi There,

    I am trying to set up a function to fire via the move event on a slider form element. I am not sure if I have constructed the listener properly so I am trying to test it.

    If I were writing in JavaScript I would simply call the alert method with a hello world string as a simple test. Can someone please provide any kind of function / code that I will be obvious when it is being called properly?

    I have plenty of Web Dev. Experieince, but I am new to Sencha Touch so feel free to assume I know next to nothing b-(.

    Thanks in advanced for your help.

  2. #2

    Default

    Isn't it great the creative juices that can flow sometimes by just asking a questions...

    For those playing at home this code will cause a simple pop up, if you call it properly:

    Ext.Msg.alert('Status', 'hello world.');

    There is probably a simpler one, but even I can get this one to work ;-)

  3. #3

    Default

    FYI - you can still call alert(), iOS will display it no problem, and it's good enough for debugging.

  4. #4

    Default

    So it does, isrealidanny. Thanks for clarifying.

    I made the classic mistake of thinking that I had a problem using the alert function when my problem is actually configuring my slider move event properly.

Similar Threads

  1. Test.Run - yet another JavaScript testing platform
    By SamuraiJack1 in forum Ext 3.x: User Extensions and Plugins
    Replies: 0
    Last Post: 21 May 2009, 11:28 AM
  2. Test.Run - yet another JavaScript testing platform
    By SamuraiJack1 in forum Community Discussion
    Replies: 0
    Last Post: 21 May 2009, 11:28 AM
  3. Errors in IE with a very simple test
    By fzammetti in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 7 Feb 2008, 10:49 AM
  4. Ext MessageBox.alert not Similar to javascript alert(..)
    By ext420 in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 10 Jul 2007, 1:12 PM

Tags for this Thread

Posting Permissions

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