pouncer Posted June 11, 2007 Share Posted June 11, 2007 = space? what is the tag for a new line? Quote Link to comment Share on other sites More sharing options...
AndyB Posted June 11, 2007 Share Posted June 11, 2007 <br> Quote Link to comment Share on other sites More sharing options...
pouncer Posted June 11, 2007 Author Share Posted June 11, 2007 hm is there anything else i can use apart from that? it's a javascript chatroom i use and when i send to the chatroom it puts a space there but when i send like \<br\>test it should display a new line with 'test' on the new line, but it doesnt work, i guess its the chatroom settings. isnt there a symbol like &nl; Quote Link to comment Share on other sites More sharing options...
AndyB Posted June 11, 2007 Share Posted June 11, 2007 Ah, the secret to success is to ask the question you really want answered. \n is what you need inside a javascript string. Quote Link to comment Share on other sites More sharing options...
pouncer Posted June 11, 2007 Author Share Posted June 11, 2007 hmm, \n doesn't seem to work either. weird, if works for space, im sure \n would have worked :s is there no & symbol for a new line? Quote Link to comment Share on other sites More sharing options...
soycharliente Posted June 11, 2007 Share Posted June 11, 2007 Showing some code might help sort it out faster. Quote Link to comment Share on other sites More sharing options...
AndyB Posted June 12, 2007 Share Posted June 12, 2007 Without knowing how the chat room script processes input, we'll never get a solution. Possibly, the chat room script strips all sorts of characters including anything that'll generate a carriage return. As you suggested "... i guess its the chatroom settings.". Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.