Re: [Zope] javascript problem
Jaroslav Lukesh wrote: > > - Original Message - From: "Jaroslav Lukesh" > >> I think that you have bad code - see your error message. So try >> somethong like: >> document.forms.playlist.phones.number[1] >> instead of >> document.forms.playlist.phones.number:records.1.value > > Oh, sorry, javascript, not python :o) > > JL > > That's OK, thanks for trying. Garry ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] javascript problem
- Original Message - From: "Jaroslav Lukesh" > I think that you have bad code - see your error message. So try somethong > like: > document.forms.playlist.phones.number[1] > instead of > document.forms.playlist.phones.number:records.1.value Oh, sorry, javascript, not python :o) JL ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] javascript problem
- Original Message - From: "Garry Saddington" > Jaroslav Lukesh wrote: >> Did You have the "number" field in the hidden layer? >> >> - Original Message - From: "Garry Saddington" >> >> >> >>> I'm using the following javascript to gather phones:number values for >>> form submission. >>> >>> for (var idx = 1; idx < max; idx++) { >>> if (eval("document.forms.playlist['phones.number:records'][" + idx + >>> "].value") > 0) >>> >>> >>> Has anyone got any idea why it works fine in every browser >>> (Safari,FF,Chrome,Webkit) but not in ie8 where I get this error: >> > The form fields are dynamically created in javascript as table rows as the > user adds more options, the first row is in a hidden layer. > Garry Try to isolate base of the problem. So prepare (static) page with form fields and then submit it. For multiple fileds with same name I use datatype :list, so try it too. MSIE does not send form fields from hidden layers as you expect, instead of some versions of others, they send all form fields include hidden layers. I think that you have bad code - see your error message. So try somethong like: document.forms.playlist.phones.number[1] instead of document.forms.playlist.phones.number:records.1.value JL. ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] javascript problem
Jaroslav Lukesh wrote: > Did You have the "number" field in the hidden layer? > > - Original Message - From: "Garry Saddington" > > > >> I'm using the following javascript to gather phones:number values for >> form submission. >> >> for (var idx = 1; idx < max; idx++) { >> if (eval("document.forms.playlist['phones.number:records'][" + idx + >> "].value") > 0) >> >> >> Has anyone got any idea why it works fine in every browser >> (Safari,FF,Chrome,Webkit) but not in ie8 where I get this error: >> >> >> >> Message: 'document.forms.playlist.phones.number:records.1.value' is >> null or not an object > > The form fields are dynamically created in javascript as table rows as the user adds more options, the first row is in a hidden layer. Garry ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] javascript problem
Did You have the "number" field in the hidden layer? - Original Message - From: "Garry Saddington" > I'm using the following javascript to gather phones:number values for > form submission. > > for (var idx = 1; idx < max; idx++) { > if (eval("document.forms.playlist['phones.number:records'][" + idx + > "].value") > 0) > > > Has anyone got any idea why it works fine in every browser > (Safari,FF,Chrome,Webkit) but not in ie8 where I get this error: > > > > Message: 'document.forms.playlist.phones.number:records.1.value' is null > or not an object ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] javascript problem
I'm using the following javascript to gather phones:number values for form submission. for (var idx = 1; idx < max; idx++) { if (eval("document.forms.playlist['phones.number:records'][" + idx + "].value") > 0) Has anyone got any idea why it works fine in every browser (Safari,FF,Chrome,Webkit) but not in ie8 where I get this error: Message: 'document.forms.playlist.phones.number:records.1.value' is null or not an object Any help appreciated, but I am not surprised that ie errors, it usually does. Garry ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )