Array streamability...?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joakim Braun

    Array streamability...?

    I have <select> lists with a bunch of controls to set various values related
    to each item in the <select>. So far I'm concatenating the values with a
    separator character and storing the data in the option.value of each item,
    but that's obviously an unstable and non-general purpose solution. (What if
    someone enters the separation character? What if a tree-like structure is
    stored, requiring a different separation character for each level?)

    So, as it would be a bit tedious to implement the equivalent of PHP's
    "serialize( )/unserialize()" functions from scratch - anyone seen some code
    around?

    Joakim Braun


  • Thomas 'PointedEars' Lahn

    #2
    Re: Array streamability.. .?

    Joakim Braun wrote:[color=blue]
    > I have <select> lists with a bunch of controls to set various values related
    > to each item in the <select>. So far I'm concatenating the values with a
    > separator character and storing the data in the option.value of each item,
    > but that's obviously an unstable and non-general purpose solution. [...]
    >
    > So, as it would be a bit tedious to implement the equivalent of PHP's
    > "serialize( )/unserialize()" functions from scratch - anyone seen some code
    > around?[/color]

    Maybe you are looking for <news:40801D1E. 7020400@Pointed Ears.de>.


    PointedEars

    Comment

    • Randy Webb

      #3
      Re: Array streamability.. .?

      Thomas 'PointedEars' Lahn wrote:

      <--snip-->
      [color=blue]
      > Maybe you are looking for <news:40801D1E. 7020400@Pointed Ears.de>.[/color]

      And maybe you should start giving commonly accessible URL's? That URL
      does nothing for me. Nada.


      --
      Randy
      Chance Favors The Prepared Mind
      comp.lang.javas cript FAQ - http://jibbering.com/faq/

      Comment

      • Andrew Urquhart

        #4
        Re: Array streamability.. .?

        *Randy Webb* wrote:[color=blue]
        > *Thomas 'PointedEars' Lahn* wrote:[color=green]
        >> Maybe you are looking for <news:40801D1E. 7020400@Pointed Ears.de>.[/color]
        >
        > And maybe you should start giving commonly accessible URL's? That URL
        > does nothing for me. Nada.[/color]

        Try: https://www.google.com/groups?selm=4...PointedEars.de
        --
        Andrew Urquhart
        - FAQ: www.jibbering.com/faq/
        - Archive: www.google.com/groups?q=comp.lang.javascript
        - My reply address is invalid, see www.andrewu.co.uk/contact/


        Comment

        • Lasse Reichstein Nielsen

          #5
          Re: Array streamability.. .?

          Randy Webb <hikksnotathome @aol.com> writes:
          [color=blue]
          > Thomas 'PointedEars' Lahn wrote:[/color]
          [color=blue][color=green]
          >> Maybe you are looking for <news:40801D1E. 7020400@Pointed Ears.de>.[/color]
          >
          > And maybe you should start giving commonly accessible URL's? That URL
          > does nothing for me. Nada.[/color]

          Then your news client is not set up to recognize news: protocol URLs,
          or the message it refers to is not available on the news server you
          use. The URL itself is fine.

          /L
          --
          Lasse Reichstein Nielsen - lrn@hotpop.com
          DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
          'Faith without judgement merely degrades the spirit divine.'

          Comment

          • Thomas 'PointedEars' Lahn

            #6
            Re: Array streamability.. .?

            Randy Webb wrote:[color=blue]
            > Thomas 'PointedEars' Lahn wrote:[color=green]
            >> Maybe you are looking for <news:40801D1E. 7020400@Pointed Ears.de>.[/color]
            >
            > And maybe you should start giving commonly accessible URL's?[/color]

            Maybe you should stop using apostrophs where not needed ;-)
            [color=blue]
            > That URL does nothing for me. Nada.[/color]

            Alas, there is no built-in support in Mozilla/5.0 for "news:" *URIs*
            as of RFC 1738 (proposed standard), section 3.6, and RFC 2396 (draft
            standard), section 1.3 and appendix E. However, you can (and should)
            upgrade your MailNews or Thunderbird client with the Message-ID
            Finder extension, not only to support the URI scheme but also, in
            cooperation with Mnenhy, to allow for clickable/searchable References:

            <http://messageidfinder .mozdev.org/>
            <http://mnenhy.mozdev.o rg/>

            Both extensions can be installed in your profile directory, so they do
            not require you to be root/Administrator and they are still available
            after reinstalling Mozilla/5.0.

            This has been mentioned earlier here, it seems you have overlooked it.


            HTH

            PointedEars

            Comment

            • Dr John Stockton

              #7
              Re: Array streamability.. .?

              JRS: In article <19Sdnd6LscVDfH TdRVn-jw@comcast.com> , seen in
              news:comp.lang. javascript, Randy Webb <hikksnotathome @aol.com> posted at
              Mon, 5 Jul 2004 19:18:46 :[color=blue]
              >Thomas 'PointedEars' Lahn wrote:
              >
              ><--snip-->
              >[color=green]
              >> Maybe you are looking for <news:40801D1E. 7020400@Pointed Ears.de>.[/color]
              >
              >And maybe you should start giving commonly accessible URL's? That URL
              >does nothing for me. Nada.[/color]

              It's a valid URL, though not necessarily a usable one. Since it is more
              than about 17 days old, it is no longer in my newsbase; but I had to
              search the newsbase to establish that. Had he been intelligently
              considerate, he would have given the date, the subject, and the
              newsgroup in addition (in general, it is also worth stating the author).

              Actually, he did give the date; the first field of the message-ID is its
              time_t in Hex - Fri, 2004-04-16 17:51:26 GMT - but it is unreasonable to
              expect readers to recognise that without js-date3.htm#UnixT .

              Since no reasonable author posts more than one message in any given
              second, that first field is sufficient for local uniqueness. The second
              field is therefore not necessary; unless it can be shown to be useful,
              it should be removed.

              --
              © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 MIME. ©
              Web <URL:http://www.merlyn.demo n.co.uk/> - w. FAQish topics, links, acronyms
              PAS EXE etc : <URL:http://www.merlyn.demo n.co.uk/programs/> - see 00index.htm
              Dates - miscdate.htm moredate.htm js-dates.htm pas-time.htm critdate.htm etc.

              Comment

              • Matt Kruse

                #8
                Re: Array streamability.. .?

                Dr John Stockton wrote:[color=blue][color=green][color=darkred]
                >>> Maybe you are looking for <news:40801D1E. 7020400@Pointed Ears.de>.[/color]
                >> And maybe you should start giving commonly accessible URL's? That URL
                >> does nothing for me. Nada.[/color]
                > It's a valid URL, though not necessarily a usable one.[/color]

                Indeed, it might be more useful to most people in this format:


                Or, preferrably, both.

                --
                Matt Kruse
                Javascript Toolbox: http://www.JavascriptToolbox.com/


                Comment

                • Thomas 'PointedEars' Lahn

                  #9
                  Re: Array streamability.. .?

                  Matt Kruse wrote:[color=blue]
                  > Dr John Stockton wrote:[color=green][color=darkred]
                  >>>> Maybe you are looking for <news:40801D1E. 7020400@Pointed Ears.de>.
                  >>> And maybe you should start giving commonly accessible URL's? That URL
                  >>> does nothing for me. Nada.[/color]
                  >> It's a valid URL, though not necessarily a usable one.[/color]
                  >
                  > Indeed, it might be more useful to most people in this format:
                  > http://groups.google.com/groups?selm...PointedEars.de[/color]

                  It might not. NetNews is not the Web.
                  [color=blue]
                  > Or, preferrably, both.[/color]

                  Google Groups is but an archive. It does not need to reflect what is
                  on the news servers ("X-No-Archive: Yes" postings are an example).

                  So those who complain that they cannot use such URIs should get a
                  standards compliant user agent (and a NetNews service provider with a
                  reasonable expiration setting for this group -- news.inidivual. net for
                  example which still has the posting referred to), learn how to use
                  Google (Groups) or just stop whining.

                  You, Matt, as an Outlook Express user, should have the least problems
                  with news: URIs as OE has built-in support for it.


                  PointedEars

                  Comment

                  • Matt Kruse

                    #10
                    Re: Array streamability.. .?

                    Thomas 'PointedEars' Lahn wrote:[color=blue]
                    > Google Groups is but an archive. It does not need to reflect what is
                    > on the news servers ("X-No-Archive: Yes" postings are an example).[/color]

                    Yet it often reflects much more than what is on the news servers.
                    The referenced article was not on my news server, but it was on google
                    groups.

                    The best solution, probably, is to have people who understand how to take a
                    news: url and find it in google groups. ;)

                    --
                    Matt Kruse
                    Javascript Toolbox: http://www.JavascriptToolbox.com/


                    Comment

                    • Lasse Reichstein Nielsen

                      #11
                      Re: Array streamability.. .?

                      "Matt Kruse" <newsgroups@mat tkruse.com> writes:
                      [color=blue]
                      > Indeed, it might be more useful to most people in this format:
                      > http://groups.google.com/groups?selm...PointedEars.de[/color]

                      But that's not the same URL.

                      I believe XNews automatically queries Google News if the message isn't
                      available on the news server. In any case, giving a unique
                      identification of the message in a standard format should be sufficient.

                      A news: URL is just that, the smallest uniquely identifying piece
                      of information in a standard format.

                      /L
                      --
                      Lasse Reichstein Nielsen - lrn@hotpop.com
                      DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
                      'Faith without judgement merely degrades the spirit divine.'

                      Comment

                      • Thomas 'PointedEars' Lahn

                        #12
                        Re: Array streamability.. .?

                        Matt Kruse wrote:[color=blue]
                        > The best solution, probably, is to have people who understand how to
                        > take a news: url and find it in google groups. ;)[/color]

                        Full ACK :)


                        PointedEars

                        Comment

                        • Randy Webb

                          #13
                          Re: Array streamability.. .?

                          Thomas 'PointedEars' Lahn wrote:[color=blue]
                          > Matt Kruse wrote:
                          >[color=green]
                          >>Dr John Stockton wrote:
                          >>[color=darkred]
                          >>>>>Maybe you are looking for <news:40801D1E. 7020400@Pointed Ears.de>.
                          >>>>
                          >>>>And maybe you should start giving commonly accessible URL's? That URL
                          >>>>does nothing for me. Nada.
                          >>>
                          >>>It's a valid URL, though not necessarily a usable one.[/color]
                          >>
                          >>Indeed, it might be more useful to most people in this format:
                          >>http://groups.google.com/groups?selm...PointedEars.de[/color]
                          >
                          >
                          > It might not. NetNews is not the Web.[/color]

                          Very true. And vice versa.
                          [color=blue]
                          >[color=green]
                          >>Or, preferrably, both.[/color]
                          >
                          >
                          > Google Groups is but an archive. It does not need to reflect what is
                          > on the news servers ("X-No-Archive: Yes" postings are an example).[/color]

                          Why anyone would want a post in c.l.j not archived is beyond me, unless
                          you don't want what you say to be reviewed in the future.
                          [color=blue]
                          > So those who complain that they cannot use such URIs should get a
                          > standards compliant user agent (and a NetNews service provider with a
                          > reasonable expiration setting for this group -- news.inidivual. net for
                          > example which still has the posting referred to), learn how to use
                          > Google (Groups) or just stop whining.[/color]

                          I have both. A "standards compliant user agent" and a NetNews service
                          provider with a "reasonable expiration setting". What I fail to have is
                          a setup the same as yours. It does NOT make mine "non-compliant". For
                          one to provide a URI/URL that is not "commonly accessible URI/URL" is a
                          fallacy that I pointed out, not whining. Learn the difference.

                          --
                          Randy
                          Chance Favors The Prepared Mind
                          comp.lang.javas cript FAQ - http://jibbering.com/faq/

                          Comment

                          • Frederic Banaszak

                            #14
                            Re: Array streamability.. .?

                            On Tue, 06 Jul 2004 15:47:39 +0200, Thomas 'PointedEars' Lahn
                            <PointedEars@nu rfuerspam.de> wrote:
                            [color=blue]
                            >Randy Webb wrote:[color=green]
                            >> Thomas 'PointedEars' Lahn wrote:[color=darkred]
                            >>> Maybe you are looking for <news:40801D1E. 7020400@Pointed Ears.de>.[/color]
                            >>
                            >> And maybe you should start giving commonly accessible URL's?[/color]
                            >
                            >Maybe you should stop using apostrophs where not needed ;-)
                            >[/color]

                            Somebody apparently made this just for you:


                            And by the by, the word, in English, is apostrophe. If you are going
                            to be pedantic, you might as well go all the way.



                            --
                            Fred

                            Comment

                            • Thomas 'PointedEars' Lahn

                              #15
                              Re: Array streamability.. .?

                              Randy Webb wrote:[color=blue]
                              > Thomas 'PointedEars' Lahn wrote:[color=green]
                              >> Matt Kruse wrote:[color=darkred]
                              >>> Dr John Stockton wrote:
                              >>>>>> Maybe you are looking for <news:40801D1E. 7020400@Pointed Ears.de>.
                              >>>>> And maybe you should start giving commonly accessible URL's? That URL
                              >>>>> does nothing for me. Nada.
                              >>>> It's a valid URL, though not necessarily a usable one.
                              >>> Indeed, it might be more useful to most people in this format:
                              >>> http://groups.google.com/groups?selm...PointedEars.de
                              >>>
                              >>> Or, preferrably, both.[/color]
                              >>
                              >> Google Groups is but an archive. It does not need to reflect what is
                              >> on the news servers ("X-No-Archive: Yes" postings are an example).[/color]
                              >
                              > Why anyone would want a post in c.l.j not archived is beyond me, unless
                              > you don't want what you say to be reviewed in the future.[/color]

                              That's the point. It is not very polite to readers, but an issue and
                              sometimes there are valid reasons for doing so.
                              [color=blue][color=green]
                              >>So those who complain that they cannot use such URIs should get a
                              >>standards compliant user agent (and a NetNews service provider with a
                              >>reasonable expiration setting for this group -- news.inidivual. net for
                              >>example which still has the posting referred to), learn how to use
                              >>Google (Groups) or just stop whining.[/color]
                              >
                              > I have both.[/color]

                              No, you have not.
                              [color=blue]
                              > A "standards compliant user agent"[/color]

                              If that would be the case, it would understand standardized news: URIs
                              by default, without any extension. Alas, that is not true for any
                              Mozilla/5.0 application to date. I am using e.g. Mozilla/5.0
                              Thunderbird for which this applies, too, so please do not blame me for
                              Mozilla bashing. Mozilla/5.0 MailNews/Thunderbird is good, yet its
                              support is incomplete and thus it cannot be considered a 100% standards
                              compliant client.
                              [color=blue]
                              > and a NetNews service provider with a "reasonable expiration setting"[/color]

                              Fine.
                              [color=blue]
                              > What I fail to have is a setup the same as yours.[/color]

                              Yes, you have the *default* setup which is exactly the problem here.
                              [color=blue]
                              > It does NOT make mine "non-compliant".[/color]

                              I have never said that.
                              [color=blue]
                              > For one to provide a URI/URL that is not "commonly accessible URI/URL"
                              > is a fallacy that I pointed out[/color]

                              It *is* a commonly accessible URI. It is standardized (you maybe want
                              to get informed about RFCs) and millions of Outlook Express and Google
                              Groups users can use it. I do not hail to OE and GG when it comes to
                              Usenet for there are serious flaws in either software, but that is one
                              important thing both implement and Mozilla does not.
                              [color=blue]
                              > Learn the difference.[/color]

                              I suggest *you* do and we continue further off-topic discussion via
                              e-mail or on MozillaZine or anywhere else but not here. Mozilla's
                              *default* behavior in this case is clearly _not_ standards compliant.


                              PointedEars

                              Comment

                              Working...