Forumlar / Cotonti / Core Labs / Archive / JS BBcodes?

oc
#1 2008-10-26 07:03
With JQuery, we can do almost half of the things we do with PHP.

We have a cache system for now, I thought it was pretty cool, but it turns out that it is very primitive and worse than before in long-term.

I know Trustmaster and a group of scientists work in a very highly secured laboratory to create a much improved cache system, not only for parsing, also more.

But, for parsing, can we use JQuery? It can be done with JS, like in message box, if the box is like this:

<div id="msgbox">

message... message2... [bold]asda[/bold]

</div>

we can manipulate browser to make [bold]'s to <b>'s. I wanted to have your ideas, some side effects, will be:

It is a process, which is done in user's computer, so page will load in min. time, but it will take time to process data. (consider todays computers, with quad core's, but this is also about browser)
medar
#2 2008-10-26 18:10
Perhaps this decision for sites with a huge load, but for casual sites are too weird :)
rangjungyeshe.ru
Trustmaster
#3 2008-10-27 17:57
Well, I'm an intensive client-side programming adept: I propose JS everywhere. But I'm unsure this helps a lot because:
[list=1]
  • Some people have JS disabled. Means we need bbcode parsing available both ways, which makes coding and maintenance more complicated.
  • Search engines don't understand bbcodes. Means the old way is required for them too.
  • Some bbcodes, like hidden text, cannot be done client-side.
  • It slows down page rendering by web browser, which may cause negative visual effects on slower client machines.

  • So, it's an interesting idea but I'm unsure it benefits over complexity it brings. More pros?
    May the Source be with you!
    medar
    #4 2008-10-27 20:03
    Search engines don't understand bbcodes. Means the old way is required for them too.
    More than enough reason to not do so.
    rangjungyeshe.ru