<?xml version="1.0"?>
<rss version="2.0">
 <channel>
  <title>using javascript innerText problems | WPDFD.com Forums</title>
  <link>http://www.wpdfd.com/forums/wpdfd/layout/using_javascript_innertext_problems/</link>
  <description>A Layout forum thread at WPDFD.com</description>
  <language>en-us</language>
  <pubDate>02/07/05, 038 46 2005 2005:%i:1107758771 01:46:11</pubDate>
  <lastBuildDate>06/07/13, 158 18 2013 2013:%i:1370589511 03:18:31</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>NineLabs Framework Feed Generator</generator>
  <managingEditor>sitemaster@wpdfd.com</managingEditor>
  <webMaster>sitemaster@wpdfd.com</webMaster>
     <item>
    <title>Jargule  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/using_javascript_innertext_problems/#p1770</link>
    <description><![CDATA[I am trying to write to a table:<br />document.getElementById(&quot;PV1&quot<img src="/images/emoticons/wink.png" class="smiley" />.innerText = 'Open Circuit Voltage';<br />It works in Frontpage (stupid frontpage)<br />But nowhere else? Tried &quot;publishing&quot; that don't help.<br />All the color changes made via javascript functions work, just not the text? &nbsp;Check it out here:<br /><a href="http://home.wi.rr.com/wisc2003/pv_powered2.htm">http://home.wi.rr.com/wisc2003/pv_powered2.htm</a><br />http://home.wi.rr.com/wisc2003/pv_powered2.htm<br />Use the select fields to make things happen.<br />Is it the stupid frontpage extensions causing issues?<br />Help!<br />]]></description>
    <pubDate>02/07/05, 038 46 2005 2005:%i:1107758771 01:46:11</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/using_javascript_innertext_problems/#p1770</guid>
   </item>
     <item>
    <title>Joe Gillespie said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/using_javascript_innertext_problems/#p1771</link>
    <description><![CDATA[You can't write text with CSS like this, you can only style text that is already there. To write text you have to use document.write() or set the text of a form element with JavaScript.]]></description>
    <pubDate>02/07/05, 038 17 2005 2005:%i:1107771431 05:17:11</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/using_javascript_innertext_problems/#p1771</guid>
   </item>
     <item>
    <title>Jargule  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/using_javascript_innertext_problems/#p1772</link>
    <description><![CDATA[Can I use document.write to display some text inside a table (or cell) and not the entire page? <br />Can I create a form element inside the table cell and be able to display text there as a workaround? <br /><br />Show me some source if can, thanks<br />]]></description>
    <pubDate>02/07/05, 038 33 2005 2005:%i:1107797625 12:33:45</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/using_javascript_innertext_problems/#p1772</guid>
   </item>
     <item>
    <title>Joe Gillespie said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/using_javascript_innertext_problems/#p1773</link>
    <description><![CDATA[<blockquote><strong>jargule said:</strong><br />
Can I use document.write to display some text inside a table (or cell) and not the entire page? <br />Can I create a form element inside the table cell and be able to display text there as a workaround? <br /><br />Show me some source if can, thanks<br /></blockquote><br /><br />It is best to document.write the entire table otherwise you need a separate script inside each table cell.<br /><br />You need to enclose the entire table code inside document.write(&quot;code&quot<img src="/images/emoticons/wink.png" class="smiley" /> with the appropriate quotes and escaping the &nbsp;necessary characters - there's some homework for you to do!<br /><br />A form element inside every table cell is a very clumsy and ugly solution.<br /><br />I don't use tables for layout anymore but you can see an example of document.write (in a div) at<br /><br />http://www.minifonts.com/collection.html<br /><br />I trust that you know how to view the source of a .js file?]]></description>
    <pubDate>02/07/05, 038 09 2005 2005:%i:1107817770 18:09:30</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/using_javascript_innertext_problems/#p1773</guid>
   </item>
     <item>
    <title>Jargule  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/using_javascript_innertext_problems/#p1774</link>
    <description><![CDATA[I found a solution to use, &nbsp;I can create new tables when I need them and not use/delete the ones I created in HTML. <br />function addCell()<br />{<br /> &nbsp; var x=document.getElementById('INVTable').rows[0]<br /> &nbsp; var y=x.insertCell(0);<br /> &nbsp; y.innerHTML= &quot;some Text&quot;;<br /> &nbsp; x.style.fontFamily = &quot;Lucida Bright&quot;;<br /> &nbsp; x.style.backgroundColor = 'E7B898'; &nbsp; // brownish<br /> } <br />I want the page to only display these tables after the user makes some selections.<br />The next thing I want to do is display a background image (jpg) in one of the tables (once again, this was &quot;possible&quot; in FP) How can this be accomplished?<br />I am checking out the site and the js file thanks!<br />]]></description>
    <pubDate>02/07/05, 038 20 2005 2005:%i:1107836415 23:20:15</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/using_javascript_innertext_problems/#p1774</guid>
   </item>
     <item>
    <title>Joe Gillespie said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/using_javascript_innertext_problems/#p1775</link>
    <description><![CDATA[You are really going down a blind alley with this. innerHTML is an unofficial kludge - and at best, should contain HTML, not just text so 'some text' needs to be &lt;p&gt;Some text&lt;/p&gt;. Expect it to break in many browsers. Use of innerHTML also screws-up the browser history. When someone hits the back button, they go back to the same page.<br /><br />Specifying just 'Lucida Bright' for text is bad form. It should be<br /><br />x.style.fontFamily = &quot;Lucida Bright, Arial, sans-serif&quot;; or whatever<br /><br />Adding a background image to a table is going to cause you headaches too, it is no longer valid HTML and will display differently in the various browsers. It is best to put the table inside a div, which has the background image.]]></description>
    <pubDate>02/08/05, 039 26 2005 2005:%i:1107854778 04:26:18</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/using_javascript_innertext_problems/#p1775</guid>
   </item>
   </channel>
</rss