Mac fails on this

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark Anderson

    Mac fails on this

    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="getPre vLayout(\'resul ts\',\'preview\ ',thisPage,docu ment.resultA
    dd.item%RID%A.v alue); 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


  • Mick White

    #2
    Re: Mac fails on this

    Mark Anderson wrote:
    [color=blue]
    > 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="getPre vLayout(\'resul ts\',\'preview\ ',thisPage,docu ment.resultA
    > dd.item%RID%A.v alue); 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?[/color]

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

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

    Mick

    [color=blue]
    >
    > Regards
    >
    >
    > Mark
    >
    >[/color]

    Comment

    • Mark Anderson

      #3
      Re: Mac fails on this

      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" <mwhite13@BOGUS rochester.rr.co m> wrote in message
      news:uCvsc.2451 32$M3.216067@tw ister.nyroc.rr. com...[color=blue]
      > Mark Anderson wrote:
      >[color=green]
      > > 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="#"
      > >[/color][/color]
      onClick="getPre vLayout(\'resul ts\',\'preview\ ',thisPage,docu ment.resultA[color=blue][color=green]
      > > dd.item%RID%A.v alue); return false;">');
      > >
      > > By dropping a few alerts, I see I'm not getting into getPrevLayout()[/color][/color]
      so[color=blue][color=green]
      > > I guess the Macs are being picky about writing code with code,[/color][/color]
      rather[color=blue][color=green]
      > > than there being an issue with the function being called.
      > >
      > > Any ideas? Am I looking at the wrong issue?[/color]
      >
      > item%RID%A this is not a proper js variable syntax.
      >
      > Try:
      > document.forms[\"resultAdd\ "].elements[\"item%RID%A \"].value
      >
      > Mick
      >
      >[color=green]
      > >
      > > Regards
      > >
      > >
      > > Mark
      > >
      > >[/color][/color]


      Comment

      Working...