×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    26

    variable in xhtml

    hi
    I want to use variables in my xhtml pages

    for example:

    I want to put values to select options
    the code may look like this:
    <form name=regional_form>
    <select name=site>

    <option value=index.xhtml>&nbsp;usa</option>
    <option value=http://wap.monternet.com>&nbsp;Monternet</option>

    </select>
    </form>

    how can I transfer these value to my internal functions?
    that is to say, I won't use a ASP, cgi or php, I just want to find any way function like javascript does in webpages.

    it seems the javascript donesn't work.

    Is there any other method?

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    23
    Hi,

    there is no support for any scripting language in XHTML Mobile Profile.
    The only thing, that you might try is sending the values to a wml-script page via the action attribute of the form elment like
    action="myScript.wmlsc#validateInput()"

    The WML-script may then again open an XHTML Page, according to the users input, using the WML Browser library like:

    WMLBrowser.go("usa.xhtml");

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    26
    thanks a lot.

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    26
    can I pass variables from one xhtml page to another?

    or, how can I recieve passed variables in a xhtml page?

Posting Permissions

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