|  | Posted by -Lost on 03/30/07 08:11 
"Steve" <no.one@example.com> wrote in message news:BC2Ph.5802$Ai4.5801@newsfe06.lga...>
 > "-Lost" <missed-spam@comcast.net> wrote in message
 > news:haadneq2G8W1ApHbnZ2dnUVZ_q-vnZ2d@comcast.com...
 > | "Steve" <no.one@example.com> wrote in message
 > news:VF0Ph.3319$Ai4.2733@newsfe06.lga...
 > | >| In the exact order:
 > | > |
 > | > | The last update was to the HTML (form page).  I added:
 > | > |
 > | > | <meta http-equiv="Expires" content="Thu, 01 Dec 1994 16:00:00 GMT" />
 > | > | <meta http-equiv="pragma-directive" content="no-cache" />
 > | > |
 > | > | Nothing else.  I continued refreshing and playing with it.
 > | > |
 > | > | Turn JavaScript on, submit, get true.
 > | > | Turn JavaScript off, submit, sometimes get true again.
 > | > | Refresh a thousand times (with JavaScript off) and finally get false.
 > | > |
 > | > | The main problem here was it showing me true, after turning JavaScript
 > | > back off.
 > | > |
 > | > | Then: updated Firefox and NoScript (and HTML Validator).
 > | > |
 > | > | Came back from eating sushi, played with it, and saw that it updated
 > each
 > | > time.
 > | > |
 > | > | Turn JavaScript on, submit, get true.
 > | > | Turn JavaScript off, submit, get false.
 > | > | Repeat.
 > | > |
 > | > | Hope that was clear enough (because I still don't know what cleared it
 > | > up).
 > | > |
 > | > | Thanks again.
 > | >
 > | > no problem. try this as your html. i used ie and my results were:
 > | >
 > | > array()
 > | > back
 > |
 > | Which is exactly what I received from Firefox.
 > |
 > | > anyway, try this just for grins and giggles (note the removal of the xml
 > tag
 > | > and placement of the js):
 > | >
 > | > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 > | > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 > | > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 > | > <head>
 > | > <title></title>
 > | > <meta http-equiv="content-type" content="text/html; charset=utf-8;" />
 > | > <meta http-equiv="Expires" content="Thu, 01 Dec 1994 16:00:00 GMT" />
 > | > <meta http-equiv="pragma" content="no-cache" />
 > | > </head>
 > | > <body>
 > | > <form id="form1" action="test_for_js_server-side.php" method="post">
 > | >  <p id="form-p1">
 > | >   <input type="hidden" name="javascript_enabled" value="false" />
 > | >   <input type="text" name="text1" value="text 1" />
 > | >   <input type="text" name="text2" value="text 2" />
 > | >   <input type="text" name="text3" value="text 3" />
 > | >   <input type="submit" value="Submit" />
 > | >  </p>
 > | > </form>
 > | > </body>
 > | > </html>
 > | > <script type="text/javascript">
 > | >  form1.javascript_enabled.value = 'true';
 > | > </script>
 > |
 > | Done.
 > |
 > | However, the result is now always false.  We find the culprit by realizing
 > you left the
 > | id="form1" yet you reference it via the named attribute.
 > |
 > | <form name="form1" ...>
 > | document.forms['form1'].elements['javascript_enabled'].value = 'true';
 > |
 > | Solves this problem.
 > |
 > | And, it works as expected.  Which, however, is not different from my final
 > initial
 > | example.
 > |
 > | So, thank you!  I see now, two comparable working documents that both
 > provide the
 > | end-result that I was hoping for.
 > |
 > | I still cannot fathom that it was somehow the NoScript extension that
 > might have been the
 > | cause of my problems.  Originally, after turning JavaScript to off, when
 > it was on,
 > | results in me seeing that it is set to "ON" (true), time and time again.
 > |
 > | Yet now that I have updated, I see no problems whatsoever, and again, the
 > form and
 > | server-side is as I wish it.
 > |
 > | Thanks again!
 >
 > no problem. man, that's frustrating. i wonder what's causing it.
 >
 > | P.S.  I would like to note at this point, if I have left out some glaring
 > omission, that I
 > | have imbibed clearly half a 5th of Jose Cuervo Especial.  Talk about a
 > glutton for
 > | punishment, aye?  I just want to code, dammit!  : )
 >
 > well, you will probably feel very code-prolific since whatever you write,
 > you'll see three of. ;^)
 
 Aye!
 
 > have a good night (that means keeping what goes down from coming back up).
 
 I surely hate to admit it, but um, I had a problem on the very last shot of a 5th.
 
 I will leave the outcome up to your imagination (as I see you are already not far off).
 
 -Lost (hiccup)
  Navigation: [Reply to this message] |