<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[KillerSites.com Web Design Forums - New Line]]></title>
	<link rel="self" href="http://www.killersites.com/forums/feed/atom/topic/2406/"/>
	<updated>2009-11-06T09:39:11Z</updated>
	<generator>PunBB</generator>
	<id>http://www.killersites.com/forums/topic/2406/new-line/</id>
		<entry>
			<title type="html"><![CDATA[Re: New Line]]></title>
			<link rel="alternate" href="http://www.killersites.com/forums/post/11961/#p11961"/>
			<content type="html"><![CDATA[<p>I&#039;m not sure what you&#039;re doing wrong. Did you download FireBug for Firefox?</p><p>This test page worked fine for both my Firefox and IE8 and GoogleChrome and Safari consoles.</p><div class="codebox"><pre><code>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;My Test Page&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
$(function(){
    console.log(&quot;Hello World!&quot;);
});
&lt;/script&gt;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[BeeDev]]></name>
				<uri>http://www.killersites.com/forums/user/3717/</uri>
			</author>
			<updated>2009-11-06T09:39:11Z</updated>
			<id>http://www.killersites.com/forums/post/11961/#p11961</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: New Line]]></title>
			<link rel="alternate" href="http://www.killersites.com/forums/post/11952/#p11952"/>
			<content type="html"><![CDATA[<p>BeeDev:<br />I tried using your suggestion:<br /> console.log(&quot;Top: &quot; + pTop + &quot;, left: &quot; + pLeft);<br /> console.log(&quot;width: &quot; + w +&nbsp; &quot;&nbsp; height: &quot;&nbsp; + h);</p><p>I don&#039;t see any output in the console for either IE8 or FireFox.&nbsp; Could you suggest something that I might be doing incorrectly?</p>]]></content>
			<author>
				<name><![CDATA[williamrouse]]></name>
				<uri>http://www.killersites.com/forums/user/53/</uri>
			</author>
			<updated>2009-11-06T01:45:13Z</updated>
			<id>http://www.killersites.com/forums/post/11952/#p11952</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: New Line]]></title>
			<link rel="alternate" href="http://www.killersites.com/forums/post/11909/#p11909"/>
			<content type="html"><![CDATA[<p>You can hit F12 to open Developer Tools or go to &quot;Tools&quot; -&gt; &quot;Developer Tools&nbsp; &nbsp;F12&quot; from the top right hand menu.</p><p>Then choose the &quot;Script&quot; tab on the box that pops up from the bottom of your browser (You may need to enlarge the box as it may come up minimized at first). Then on the right hand portion you see more tabs, but by default &quot;Console&quot; will be chosen.</p>]]></content>
			<author>
				<name><![CDATA[BeeDev]]></name>
				<uri>http://www.killersites.com/forums/user/3717/</uri>
			</author>
			<updated>2009-11-05T09:27:01Z</updated>
			<id>http://www.killersites.com/forums/post/11909/#p11909</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: New Line]]></title>
			<link rel="alternate" href="http://www.killersites.com/forums/post/11880/#p11880"/>
			<content type="html"><![CDATA[<p>That&#039;s a good idea.&nbsp; I will try to remember this in the future.&nbsp; How do you get to the console in IE8?</p>]]></content>
			<author>
				<name><![CDATA[williamrouse]]></name>
				<uri>http://www.killersites.com/forums/user/53/</uri>
			</author>
			<updated>2009-11-04T22:17:39Z</updated>
			<id>http://www.killersites.com/forums/post/11880/#p11880</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: New Line]]></title>
			<link rel="alternate" href="http://www.killersites.com/forums/post/11843/#p11843"/>
			<content type="html"><![CDATA[<p>Easiest way is to get Firebug for Firefox, or if you already have GOogle Chrome or Internet Explorer 8 they come with Javascript consoles too. Then you don&#039;t even need to put line breaks and stuff.</p><p>And then you can start using: console.log(messageVariable)</p><div class="codebox"><pre><code>$(document).ready(function(){
                var pTop = $(&quot;#content&quot;).position().top;
                var pLeft = $(&quot;#content&quot;).position().left;
                var h = $(&quot;#content&quot;).height();
                var w = $(&quot;#content&quot;).width();

               console.log(&quot;Top: &quot; + pTop + &quot;, left: &quot; + pLeft);
               console.log(&quot;width: &quot; + w +  &quot;  height: &quot;  + h);</code></pre></div><p>Make sure to remove the console.log lines before going live though, they will throw an error message: &quot;Console is not defined&quot; when viewed with browsers without a javascript console.</p>]]></content>
			<author>
				<name><![CDATA[BeeDev]]></name>
				<uri>http://www.killersites.com/forums/user/3717/</uri>
			</author>
			<updated>2009-11-04T09:16:45Z</updated>
			<id>http://www.killersites.com/forums/post/11843/#p11843</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: New Line]]></title>
			<link rel="alternate" href="http://www.killersites.com/forums/post/11840/#p11840"/>
			<content type="html"><![CDATA[<p>Thanks!<br />Your reply was the solution I needed.</p>]]></content>
			<author>
				<name><![CDATA[williamrouse]]></name>
				<uri>http://www.killersites.com/forums/user/53/</uri>
			</author>
			<updated>2009-11-04T05:01:10Z</updated>
			<id>http://www.killersites.com/forums/post/11840/#p11840</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: New Line]]></title>
			<link rel="alternate" href="http://www.killersites.com/forums/post/11836/#p11836"/>
			<content type="html"><![CDATA[<p>Well, in each line, you are resetting the #message&#039;s text value, you aren&#039;t adding to it. You probably should be using &quot;append&quot; instead of &quot;text&quot;, which should insert your specified code at the end of the div.</p><p>And, as a sidenote, since you are dealing with HTML code here, you probably should be using &lt;br/&gt;s for line breaks instead of \n.</p><p><a href="http://docs.jquery.com/Manipulation/append#content" rel="nofollow">http://docs.jquery.com/Manipulation/append#content</a></p><div class="codebox"><pre><code>$(document).ready(function(){
                var pTop = $(&quot;#content&quot;).position().top;
                var pLeft = $(&quot;#content&quot;).position().left;
                var h = $(&quot;#content&quot;).height();
                var w = $(&quot;#content&quot;).width();

                $(&quot;#message&quot;).append( &quot;\n Top: &quot; + pTop + &quot;, left: &quot; + pLeft);
                $(&quot;#message&quot;).append( &quot;&lt;br /&gt;&quot;);
                $(&quot;#message&quot;).append( &quot;\\n  \n \\\n &quot;);
                $(&quot;#message&quot;).append( &quot;width: &quot; + w +  &quot;  height: &quot;  + h);</code></pre></div>]]></content>
			<author>
				<name><![CDATA[falkencreative]]></name>
				<uri>http://www.killersites.com/forums/user/3/</uri>
			</author>
			<updated>2009-11-04T04:39:27Z</updated>
			<id>http://www.killersites.com/forums/post/11836/#p11836</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: New Line]]></title>
			<link rel="alternate" href="http://www.killersites.com/forums/post/11834/#p11834"/>
			<content type="html"><![CDATA[<p>In a practical example listed below, I only see the last line, not the series of text that I would expect given that I have tried a series of options.&nbsp; Which would you expect to work, or please suggest what I am doing incorrectly.</p><p>$(document).ready(function(){<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var pTop = $(&quot;#content&quot;).position().top;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var pLeft = $(&quot;#content&quot;).position().left;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var h = $(&quot;#content&quot;).height();<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var w = $(&quot;#content&quot;).width();</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;#message&quot;).text( &quot;\n Top: &quot; + pTop + &quot;, left: &quot; + pLeft);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;#message&quot;).text( &quot;&lt;br /&gt;&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;#message&quot;).text( &quot;\\n&nbsp; \n \\\n &quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;#message&quot;).text( &quot;width: &quot; + w +&nbsp; &quot;&nbsp; height: &quot;&nbsp; + h);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ...<br />Thanks for any help.</p>]]></content>
			<author>
				<name><![CDATA[williamrouse]]></name>
				<uri>http://www.killersites.com/forums/user/53/</uri>
			</author>
			<updated>2009-11-04T02:23:29Z</updated>
			<id>http://www.killersites.com/forums/post/11834/#p11834</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: New Line]]></title>
			<link rel="alternate" href="http://www.killersites.com/forums/post/11830/#p11830"/>
			<content type="html"><![CDATA[<p>For html output, use a &lt;br /&gt; tag.<br />For the source code, use &quot;\n&quot; without the quotes.</p>]]></content>
			<author>
				<name><![CDATA[jlhaslip]]></name>
				<uri>http://www.killersites.com/forums/user/399/</uri>
			</author>
			<updated>2009-11-04T01:28:57Z</updated>
			<id>http://www.killersites.com/forums/post/11830/#p11830</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[New Line]]></title>
			<link rel="alternate" href="http://www.killersites.com/forums/post/11827/#p11827"/>
			<content type="html"><![CDATA[<p>I want to print some jQuery, javascript debug information in a DIV that I created.&nbsp; I don’t know how to print the new line character.&nbsp; Please show me how to do this.<br />Thanks!</p>]]></content>
			<author>
				<name><![CDATA[williamrouse]]></name>
				<uri>http://www.killersites.com/forums/user/53/</uri>
			</author>
			<updated>2009-11-03T23:43:52Z</updated>
			<id>http://www.killersites.com/forums/post/11827/#p11827</id>
		</entry>
</feed>
