FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

breaking code lines on javascript

 


ptolomeo
I had some problems with some javascript code with breaked lines. Is that possible? Must a javascript line of code be not breaked to work fine?
djclue917
What do you actually mean by "breaked lines"? Did you mean something like this:

dosomething("askdjsajd asdj adj skdj ldj asdjasdljadl jad",
1,3,
4,
5);

You get the idea...
ptolomeo
I mean splitting long lines apart in the JavaScript code. With an Enter for example.
Agent ME
Because javascript doesn't require lines to end with ; it assumes a new line is a new line of code unlike a lot of other languages. To split code between lines, I think you have to end the line with a \ to make it ignore the newline.
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.