[Proto-Scripty] Re: Parse html
It's interesting to read this discussion. Around the same time last year I found JSON a much better alternative in the client side as everyone will agree I am sure. I also wrote a custom rendering prototypeJS class to interpret the JSON data into rich HTML objects like layers, links, etc. At the server end, I simply use PHP to encode data into JSON. All this sounds exactly like Karl's implementation, doesn't it, Karl? On Apr 4, 9:51 pm, kstubs kst...@gmail.com wrote: I write my own JSON on the backend. I use JSON.net if I need a JSON writer for code in C#. I just developed an object in PHP that sends JSON down the pipe to a requesting page. At first I was using the built-in json_encode function from a SimpleXmlElement but eventually I wrote my own as I did not much care for how that looked. PHP has great support for objects to JSON, Karl.. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Re: Parse html
Thanks for the reply Alphonso. I have almost completely abandoned Xml manipulation on the client-side now. I was only thinking of parsing the HTML as a way to reuse an info page that I have created as static HTML. Well, I'm back to JSON. Loving JSON on the client-side, but wish I was more proficient in hand coding and code-coding it... but worth it once you are down on the client with it! Karl.. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Re: Parse html
A book I read once described just what you are looking for. i use it regularly load windows from templates. The book was Ajax: The definitive guide by Anthony Holdener III Best regards, Joschi On Apr 4, 5:15 am, kstubs kst...@gmail.com wrote: Thanks for the reply Alphonso. I have almost completely abandoned Xml manipulation on the client-side now. I was only thinking of parsing the HTML as a way to reuse an info page that I have created as static HTML. Well, I'm back to JSON. Loving JSON on the client-side, but wish I was more proficient in hand coding and code-coding it... but worth it once you are down on the client with it! Karl.. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] Re: Parse html
I write my own JSON on the backend. I use JSON.net if I need a JSON writer for code in C#. I just developed an object in PHP that sends JSON down the pipe to a requesting page. At first I was using the built-in json_encode function from a SimpleXmlElement but eventually I wrote my own as I did not much care for how that looked. PHP has great support for objects to JSON, Karl.. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Re: Parse html
I now have a simple Ajax.Request that fetches json. I thought a little nifty trick is to add mime type .json and serve back application/json. Nice! So now, if I just want static content for my rich client pages I can drop a little json on the server like this: http://beta.meetscoresonline.com/msoinfo.json -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.