Results 1 to 4 of 4
  1.    #1  
    im trying to write my first app and i want a calculation similar to the premedi app that pops up in a dialog

    i have the showDialogBox but i want it to calculate the new value plus the old value in same textbox -i have a cookie set up that works but i dont know how to perform the calculation or use the the old value

    can anyone help me

    jon
  2. chimeric's Avatar
    Posts
    69 Posts
    Global Posts
    71 Global Posts
    #2  
    So what have you set up in terms of your variables?

    Do you have something like:
    {var first = 2;
    var second =3;

    first = first + second;

    this.showDialogBox('Result',first);}

    ?
  3.    #3  
    thankyou for any help you can give me -i have been trying to do this for awhile but am having trouble figuring out how to do it
    what i have is more like this but it doesnt work



    {var first = document.textField.value;
    var second =3;

    first = first + second;

    this.showDialogBox('Result',first);}
  4. chimeric's Avatar
    Posts
    69 Posts
    Global Posts
    71 Global Posts
    #4  
    Try changing document.textField.value to this.textField.value

Posting Permissions