By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,199 Members | 1,551 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,199 IT Pros & Developers. It's quick & easy.

Firefox not evaluating a script

P: n/a
I am using the following script for a function to evaluate a string of
data.

<script type="text/JavaScript">
function buform1_changed() {

buform1.item_name.value=buform1.items.value.substr ing(13,buform1.items.value.length)
buform1.amount.value=buform1.items.value.substring (6,11)
buform1.item_number.value=buform1.items.value.subs tring(0,6)}
</script>

This is in my header and in the body I do have a form called buform1
It is working just fine in IE. However in Firefox it does not.
Javascript Console says that buform1 is not defined. Because it is not
defined the function will not run.

Any thoughts on why or what I need to do?
Thanks.

Feb 24 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
mike wrote:
buform1.amount.value=buform1.items.value.substring (6,11)
This is in my header and in the body I do have a form called buform1
It is working just fine in IE. However in Firefox it does not.


Quote:

The following form related properties (originally from Internet Explorer)
are not supported in the W3C Document Object Model:

* FormName.InputName.value

-- http://www.mozilla.org/docs/web-deve...ade_2.html#dom

(That document also explains the standard ways to access form controls)

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Feb 24 '06 #2

P: n/a
kay
not supported in DOM, but FF supports this particular way to acces
input's value, so its not the cause of the problem...

try accesing it like this

document.forms["buforml"].elements["item_number"].value=""

Feb 25 '06 #3

P: n/a
kay
not supported in DOM, but FF supports this particular way to acces
input's value, so its not the cause of the problem...

try accesing it like this

document.forms["buforml"].elements["item_number"].value=""

Feb 25 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.