Loading ...
Sorry, an error occurred while loading the content.

Big string in firefox

Expand Messages
  • Walter Cruz
    Hi all. I ve read a lot of articles about JSON and I m eager to use it ! I have read some examples on quircksmode, etc. Well, I m using a json string in an
    Message 1 of 2 , Jan 18, 2006
    • 0 Attachment
      Hi all. I've read a lot of articles about JSON and I'm eager to use it !

      I have read some examples on quircksmode, etc.

      Well, I'm using a json string in an ajax app. I return the ajax sttring
      inside XML.

      I can read the json string, and eval works fine on opera and konqueror. But
      in Ie, results in error.

      In my app when the people selects the state, the cities select is
      automagically popullated. But,when I choose a state with many cities, it
      fail.

      I suspect that my string is too big.

      {"municipios":[{"nomemunic":"Acrelândia","codmunic":"120001"},{"nomemunic":"Assis
      Brasil","codmunic":"120005"},{"nomemunic":"Brasiléia","codmunic":"120010"},{"nomemunic":"Bujari","codmunic":"120013"},{"nomemunic":"Capixaba","codmunic":"120017"},{"nomemunic":"Cruzeiro
      do Sul","codmunic":"120020"},{"nomemunic":"Epitaciolândia","codmunic":"120025"},{"nomemunic":"Feijó","codmunic":"120030"},{"nomemunic":"Jordão","codmunic":"120032"},{"nomemunic":"Manoel
      Urbano","codmunic":"120034"},{"nomemunic":"Marechal
      Thaumaturgo","codmunic":"120035"},{"nomemunic":"Mâncio
      Lima","codmunic":"120033"},{"nomemunic":"Plácido de
      Castro","codmunic":"120038"},{"nomemunic":"Porto
      Acre","codmunic":"120080"},{"nomemunic":"Porto
      Walter","codmunic":"120039"},{"nomemunic":"Rio
      Branco","codmunic":"120040"},{"nomemunic":"Rodrigues
      Alves","codmunic":"120042"},{"nomemunic":"Santa Rosa do
      Purus","codmunic":"120043"},{"nomemunic":"Sena
      Madureira","codmunic":"120050"},{"nomemunic":"Senador
      Guiomard","codmunic":"120045"},{"nomemunic":"Tarauacá","codmunic":"120060"},{"nomemunic":"Xapuri","codmunic":"120070"}]}


      Can someone help me ?

      []'s
      - Walter


      [Non-text portions of this message have been removed]
    • Douglas Crockford
      ... konqueror. But ... I think your problem is that you have linefeeds inside of your strings.
      Message 2 of 2 , Jan 18, 2006
      • 0 Attachment
        > I can read the json string, and eval works fine on opera and
        konqueror. But
        > in Ie, results in error.

        > I suspect that my string is too big.

        I think your problem is that you have linefeeds inside of your strings.

        {"municipios":[{"nomemunic":"Acrel�ndia","codmunic":"120001"},{"nomemunic":"Assi\
        s

        The C convention of a backslash before the end of the line to indicate
        a continuation is not supported in JSON.
      Your message has been successfully submitted and would be delivered to recipients shortly.