Jump to content

Recommended Posts

It's only Javascript. AJAX (=Asynchronous JavaScript and XML) is used to communicate with a server without reloading a page. This BB-Parser is live ;)

 

And yes that's true... Javascript has regex support. But I don't like it :)

 

If you write [b ] and [/ b] it isn't a right syntax.

Link to comment
https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-187853
Share on other sites

Schweet, I made something like this out of php, but its not live updating, and I made it so people could enter tutorial for my site in bbcode, which they are more used to, and then submit it and the parser would convert it to HTML, its here:

 

http://claninfectionist.com/imsc/testing/replace.php

 

I also used javascript from my forum to insert the bbcode, like a forum does.

Link to comment
https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-195598
Share on other sites

That's true... but I don't know how to fix that... because if I use onchange It also doesn't work.

 

Try using a combination of onchange, onkeydown and onkeyup. You can even run some additional checks with onfocus and onblur if you want. There are definitely ways to get around what you're after.

 

Also, while it picks up http:// and www. as standard links, it doesn't pick up email addresses. I would definitely recommend you try to like enough regexp in JS to get some additional functionality like that. Otherwise, it's really a nice tool so far.

Link to comment
https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-196190
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.