<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1002260" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1002260</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/update-locked-till-rename-field-checked-locking-update-or-checking-text-fiel#comment-1010026</link>
    <description> &lt;p&gt;You can declare a boolean variable to determine whether the field has been modified or not.&lt;br /&gt;
 The example is below, however you need to do some modifications yourself:&lt;/p&gt;
&lt;p&gt; First write the script&lt;/p&gt;
&lt;p&gt; var isModified = false; //global variable&lt;br /&gt;
 function isFieldModified() {&lt;br /&gt;
  if (isModified) {&lt;br /&gt;
   if (confirm(&amp;quot;Do you want to rename the field?&amp;quot;)) {&lt;br /&gt;
    rename(); //Call the rename function&lt;br /&gt;
   }&lt;br /&gt;
  }&lt;br /&gt;
  return isModified;&lt;br /&gt;
 }&lt;/p&gt;
&lt;p&gt;and also add the onChange event handler to the input tag&lt;br /&gt;
 &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;fieldInput1&amp;quot; onChange=&amp;quot;isModified=false;&amp;quot;&amp;gt;&lt;br /&gt;
Then add the onsubmit event handler to the form tag&lt;br /&gt;
 &amp;lt;form name=&amp;quot;testForm&amp;quot; onSubmit=&amp;quot;return isFieldModified()&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;I don&#039;t know if this will work because I haven&#039;t tried it yet.&lt;/p&gt;
&lt;p&gt;----------&lt;br /&gt;
Elara - Webmasters&#039; Guide&lt;br /&gt;
&lt;a href=&quot;http://elara.hypermart.net/&quot; title=&quot;http://elara.hypermart.net/&quot;&gt;http://elara.hypermart.net/&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 07 Jun 1999 23:45:00 +0000</pubDate>
 <dc:creator>elara</dc:creator>
 <guid isPermaLink="false">comment 1010026 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
