Jump to content


javascript bbcode problem


2 replies to this topic

#1 dotSilver

    Young Padawan

  • Members
  • Pip
  • 32 posts

Posted 10 August 2008 - 05:17 PM

Never mind about the support now, I found a different way round it by using ajax to send the form data to another page, and using PHP to parse bbcode and the preview. But now I have one other problem, it doesn't recognise any line breaks when using the nl2br.

Here is an example:

http://www.magicka-s....php?page=reply

Just do some random letters, then do a (or 2) new lines and click preview. All the letters are on the same line in the preview.

Any help? Thanks

Edited by dotSilver, 10 August 2008 - 06:23 PM.


#2 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 10 August 2008 - 10:36 PM

I don't know anything about Prototype, so i can't give you a definite answer. What i can tell you though, is that GET requests don't respect line-breaks; you have to use POST.

#3 dotSilver

    Young Padawan

  • Members
  • Pip
  • 32 posts

Posted 11 August 2008 - 06:47 AM

It's fixed now. You're right, it needed to go through as post instead of get. Thanks





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users