Problem creating dynamic selection lists on PDA

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Craig Jurney

    #1

    Problem creating dynamic selection lists on PDA

    Am having difficulty creating a dynamic <select> element using direct
    assignment to the element's option array (ie. someElement.opt ion[i]=new
    Option(someText , someValue);)
    that will work on Palm devices runing Blazer 3.0 or Web Browser 2.0.

    The browsers SEEM to be JavaScript1.1+ capable and the script that I
    have works on every desktop-based browser, but not the PDA ones....

    Any advice? Or is this a known deficiency?

    Thanks,
    /Craig Jurney, Stanford University
  • Richard Cornford

    #2
    Re: Problem creating dynamic selection lists on PDA

    Craig Jurney wrote:[color=blue]
    > Am having difficulty creating a dynamic <select> element
    > using direct assignment to the element's option array (ie.
    > someElement.opt ion[i]=new Option(someText , someValue);) that
    > will work on Palm devices runing Blazer 3.0 or
    > Web Browser 2.0.[/color]

    Web Browser 2.0 has no - Option - constructor (and no other mechanism
    for creating options dynamically).
    [color=blue]
    > The browsers SEEM to be JavaScript1.1+ capable[/color]

    Web Browser 2.0 is (mostly) ECMA 262 3rd edition in its javascript
    implementation, but its (W3C Level 1) DOM is not that dynamic.
    [color=blue]
    > and the script that I have works on every
    > desktop-based browser, but not the PDA ones....[/color]

    That is extremely unlikely to be true, there are a lot of desktop
    browsers. Generally no script can be expected to work on every browser,
    which is why designing for clean degradation is necessary in a public
    environment.
    [color=blue]
    > Any advice? Or is this a known deficiency?[/color]

    Don't expect scripts to successfully execute in all script capable
    browsers, and design with that in mind.

    Richard.


    Comment

    • Craig Jurney

      #3
      Re: Problem creating dynamic selection lists on PDA

      Richard Cornford wrote:
      [color=blue]
      > Craig Jurney wrote:
      >[color=green]
      >>Am having difficulty creating a dynamic <select> element
      >>using direct assignment to the element's option array (ie.
      >>someElement.o ption[i]=new Option(someText , someValue);) that
      >>will work on Palm devices runing Blazer 3.0 or
      >>Web Browser 2.0.[/color]
      >
      >
      > Web Browser 2.0 has no - Option - constructor (and no other mechanism
      > for creating options dynamically).
      >[/color]

      Ah, that explains it then.
      [color=blue]
      >[color=green]
      >>The browsers SEEM to be JavaScript1.1+ capable[/color]
      >
      >
      > Web Browser 2.0 is (mostly) ECMA 262 3rd edition in its javascript
      > implementation, but its (W3C Level 1) DOM is not that dynamic.
      >
      >[/color]

      Is there a resource online somewhere that would tell me what scripting
      capabilities this (or other) browsers have? Or is experimentation the
      only way find out this info (or asking others like this list)?
      [color=blue][color=green]
      >>and the script that I have works on every
      >>desktop-based browser, but not the PDA ones....[/color]
      >
      >
      > That is extremely unlikely to be true, there are a lot of desktop
      > browsers. Generally no script can be expected to work on every browser,
      > which is why designing for clean degradation is necessary in a public
      > environment.[/color]

      I meant to say "every desktop browser that this project must support"
      sorry about that slip, fried brain at EOD. : )
      [color=blue]
      >[color=green]
      >>Any advice? Or is this a known deficiency?[/color]
      >
      >
      > Don't expect scripts to successfully execute in all script capable
      > browsers, and design with that in mind.[/color]

      'Swhat I'm trying to do.

      Thanks for the quick reply.

      Comment

      • Richard Cornford

        #4
        Re: Problem creating dynamic selection lists on PDA

        Craig Jurney wrote:[color=blue]
        > Richard Cornford wrote:[/color]
        <snip>[color=blue][color=green]
        >> Web Browser 2.0 is (mostly) ECMA 262 3rd edition in
        >> its javascript implementation, but its (W3C Level 1)
        >> DOM is not that dynamic.[/color]
        >
        > Is there a resource online somewhere that would tell me
        > what scripting capabilities this (or other) browsers have?
        > Or is experimentation the only way find out this info (or
        > asking others like this list)?[/color]

        I have a specification document for Web Browser 2.0 that I downloaded
        some years ago (I don't recall the URL) but it is not that useful, just
        a list of the interfaces and standards 'supported'. Experimentation is
        invariably the best way of finding out what a browser really is capable
        of (and often exposes undocumented features).

        Unfortunately, for smaller, embedded, browser there does not appear to
        be much documentation available in general. It often isn't even possible
        to work out which browser any particular embedded browser really is. Web
        Browser 2.0, for example, is really NetFront 4.

        <snip>[color=blue][color=green]
        >> That is extremely unlikely to be true, there are a lot
        >> of desktop browsers. ...[/color][/color]
        <snip>[color=blue]
        > I meant to say "every desktop browser that this project
        > must support" sorry about that slip, fried brain at EOD. : )[/color]
        <snip>

        If you intend to support PDA browsers then you are already in the area
        where thinking in terms of particular set of Known browsers is
        impractical. There are more PDA/embedded browsers than desktop browsers,
        and their capabilities are much more varied.

        Richard.


        Comment

        Working...