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

Mac fails on this

P: n/a
This is fine in IE 5 & 6 on Win, the target I was asked for <g>, but
breaks in IE5.x and Safari under OSX (line will wrap):
document.write('<a href="#"
onClick="getPrevLayout(\'results\',\'preview\',thi sPage,document.resultA
dd.item%RID%A.value); return false;">');

By dropping a few alerts, I see I'm not getting into getPrevLayout() so
I guess the Macs are being picky about writing code with code, rather
than there being an issue with the function being called.

Any ideas? Am I looking at the wrong issue?

Regards
Mark
Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Mark Anderson wrote:
This is fine in IE 5 & 6 on Win, the target I was asked for <g>, but
breaks in IE5.x and Safari under OSX (line will wrap):
document.write('<a href="#"
onClick="getPrevLayout(\'results\',\'preview\',thi sPage,document.resultA
dd.item%RID%A.value); return false;">');

By dropping a few alerts, I see I'm not getting into getPrevLayout() so
I guess the Macs are being picky about writing code with code, rather
than there being an issue with the function being called.

Any ideas? Am I looking at the wrong issue?
item%RID%A this is not a proper js variable syntax.

Try:
document.forms[\"resultAdd\"].elements[\"item%RID%A\"].value

Mick


Regards
Mark

Jul 23 '05 #2

P: n/a
Mick,

Thanks. I should have explained that %RID% is a server-side include such
that "item%RID%A" arrive at the client as "item459A" or such.

Anyway, I've now fixed it. I just don't know how! Some lurking typo I
guess.

Regards

Mark

"Mick White" <mw******@BOGUSrochester.rr.com> wrote in message
news:uC********************@twister.nyroc.rr.com.. .
Mark Anderson wrote:
This is fine in IE 5 & 6 on Win, the target I was asked for <g>, but
breaks in IE5.x and Safari under OSX (line will wrap):
document.write('<a href="#"
onClick="getPrevLayout(\'results\',\'preview\',thi sPage,document.resultA dd.item%RID%A.value); return false;">');

By dropping a few alerts, I see I'm not getting into getPrevLayout() so I guess the Macs are being picky about writing code with code, rather than there being an issue with the function being called.

Any ideas? Am I looking at the wrong issue?


item%RID%A this is not a proper js variable syntax.

Try:
document.forms[\"resultAdd\"].elements[\"item%RID%A\"].value

Mick


Regards
Mark

Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.