×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Aug 2003
    Posts
    68

    How to call a function without a button press?

    I want to set a variable using either Lang.random() or my own wmlscript.

    I've seen lots of code that shows how to call the function when a button is pressed, but how do I set a variable without a button being pressed (i.e., so it is set when the deck loads)?

    Any code would be appreciated.

    Cheers,
    James

  2. #2
    Super Contributor
    Join Date
    May 2003
    Posts
    839
    Hi,

    Could you clarify....
    1) How set the number of the call
    2) Do yuo mean than when you reach the page, call starts automatically. In that point, does the user know that reaching the page start the call?



    -tum-

  3. #3
    Regular Contributor
    Join Date
    Aug 2003
    Posts
    68
    Just to clarify, all I am wanting is for my deck to generate a random number without any button needing to be pressed.

    The random number will be appended as a parameter to a url which points to a dynamic web page, and the point of appending the random number is to get around the phone's caching problem. But if anyone has any other suggestions for getting around the caching problem then please let me know.

    Cheers,
    James

  4. #4
    Super Contributor
    Join Date
    May 2003
    Posts
    839
    Hello!

    I ask again, what kind off caching problem you meant?

    -tum-

Posting Permissions

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