Am I really the only one

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tery Griffin

    Am I really the only one

    who can't get onload to fire at all in IE on a Mac? I¹m about to try the
    suggestion of adding the script after the body tag. I¹d really rather do it
    some ³right² way, if there¹s a right way that works . . .

    I have to admit that it¹s annoying to have to code around something that
    doesn¹t work in a browser that¹s no longer being supported on the platform.
    Unfortunately, we have a couple of labs full of Macs, and a lot of people
    like to use IE on them.

    Tery

  • Lee

    #2
    Re: Am I really the only one

    Tery Griffin said:[color=blue]
    >[color=green]
    >> This message is in MIME format. Since your mail reader does not understand[/color]
    >this format, some or all of this message may not be legible.
    >
    >--B_3165943671_12 1966
    >Content-type: text/plain; charset="ISO-8859-1"
    >Content-transfer-encoding: 8bit
    >
    >who can't get onload to fire at all in IE on a Mac? I¹m about to try the
    >suggestion of adding the script after the body tag. I¹d really rather do it
    >some ³right² way, if there¹s a right way that works . . .[/color]

    You've posted in MIME format to a text newsgroup and provided
    a truly worthless subject line, and then continued your message
    from the subject, so who knows what other sorts of mistakes you
    might be making.

    Comment

    • Tery Griffin

      #3
      Re: Am I really the only one

      My sincerest and most humble apologies. I was unaware that Entourage posted
      in MIME format. I guess I'll have to stop reading newsgroups with my e-mail
      program -- no matter what it claims about its ability to handle them
      properly.

      I don't think the problem is mistakes in the code. At least, no one here or
      on the IE/Mac group can find any. It just seems so unlikely that onload
      wouldn't work -- it's not exactly an esoteric command. I figured if IE is
      truly unhappy with onload, someone somewhere might have found a "legal"
      workaround.

      Back to the drawing board. But thanks so much for your assistance, Lee!

      Tery




      On 4/27/04 9:09 PM, in article c6n09502klr@drn .newsguy.com, "Lee"
      <REM0VElbspamtr ap@cox.net> wrote:
      [color=blue]
      > Tery Griffin said:[color=green]
      >>[color=darkred]
      >>> This message is in MIME format. Since your mail reader does not understand[/color]
      >> this format, some or all of this message may not be legible.
      >>
      >> --B_3165943671_12 1966
      >> Content-type: text/plain; charset="ISO-8859-1"
      >> Content-transfer-encoding: 8bit
      >>
      >> who can't get onload to fire at all in IE on a Mac? I¹m about to try the
      >> suggestion of adding the script after the body tag. I¹d really rather do it
      >> some ³right² way, if there¹s a right way that works . . .[/color]
      >
      > You've posted in MIME format to a text newsgroup and provided
      > a truly worthless subject line, and then continued your message
      > from the subject, so who knows what other sorts of mistakes you
      > might be making.
      >[/color]

      Comment

      • Robert

        #4
        Re: Am I really the only one

        [color=blue]
        > who can't get onload to fire at all in IE on a Mac?[/color]

        Please provide a link to the file or post the source.

        This is a sign of a syntax error in the file. Bad quotes will do it.

        Try running tidy on the html file. See:
        Download Tidy for free. The granddaddy of HTML tools, with support for modern standards. Tidy is a console application for macOS, Linux, Windows, UNIX, and more. It corrects and cleans up HTML and XML documents by fixing markup errors and upgrading legacy code to modern standards.


        Robert

        Comment

        • Tery Griffin

          #5
          Re: Am I really the only one

          Hi Robert,

          The page is at http://www.wsc.ma.edu/webstudents/Co.../CommSite8.htm .

          I'll try running tidy, too.

          Tery



          On 4/27/04 11:47 PM, in article
          rccharles-BEF104.23530027 042004@ne...arthlink.ne t, "Robert"
          <rccharles@my-deja.com> wrote:
          [color=blue]
          >[color=green]
          >> who can't get onload to fire at all in IE on a Mac?[/color]
          >
          > Please provide a link to the file or post the source.
          >
          > This is a sign of a syntax error in the file. Bad quotes will do it.
          >
          > Try running tidy on the html file. See:
          > http://tidy.sourceforge.net/
          >
          > Robert[/color]

          Comment

          • Brian Genisio

            #6
            Re: Am I really the only one

            Tery Griffin wrote:[color=blue]
            > Hi Robert,
            >
            > The page is at http://www.wsc.ma.edu/webstudents/Co.../CommSite8.htm .
            >
            > I'll try running tidy, too.
            >
            > Tery
            >
            >
            >
            > On 4/27/04 11:47 PM, in article
            > rccharles-BEF104.23530027 042004@ne...arthlink.ne t, "Robert"
            > <rccharles@my-deja.com> wrote:
            >
            >[color=green][color=darkred]
            >>>who can't get onload to fire at all in IE on a Mac?[/color]
            >>
            >>Please provide a link to the file or post the source.
            >>
            >>This is a sign of a syntax error in the file. Bad quotes will do it.
            >>
            >>Try running tidy on the html file. See:
            >>http://tidy.sourceforge.net/
            >>
            >>Robert[/color]
            >
            >[/color]

            You are not even doing anything with the onLoad handler.

            <BODY onLoad="code(); ">


            Brian

            Comment

            • Matt Kruse

              #7
              Re: Am I really the only one

              "Tery Griffin" <teryg-list@cox.net> wrote:[color=blue]
              > View/source shows me:
              > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
              > "http://www.w3.org/TR/html4/loose.dtd">[/color]

              Try removing the doctype and see what happens.
              [color=blue]
              > <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">[/color]

              Try removing this and see what happens.

              Maybe IE on Mac is doing something weird with your doctype or content-type.

              --
              Matt Kruse
              Javascript Toolbox: http://www.mattkruse.com/javascript/


              Comment

              • Robert

                #8
                Re: Am I really the only one

                In article <BCB513B3.A78A% teryg-list@cox.net>,
                Tery Griffin <teryg-list@cox.net> wrote:
                [color=blue]
                > http://www.wsc.ma.edu/webstudents/Co.../CommSite8.htm[/color]

                It fails for me on MacOS 10.2.8 with IE 5.2.1. There seem to be lots of
                little bugs in IE on the Mac.

                A crude fix, would be to check for IE on the mac and put up a fixed
                image.

                I know onload works. It something to do with the minimalist form.

                Why don't you just link to the real page. Do everything on the host. I
                am not an expert on host programming, but when a page request gets to
                your sever cannot you invoke php and have it pick a random image without
                the need for redirection?

                I think other posters have suggested the same thing.

                Robert

                Comment

                • Robert

                  #9
                  Re: Am I really the only one

                  Lee <REM0VElbspamtr ap@cox.net> wrote in message news:<c6ofsp012 3d@drn.newsguy. com>...[color=blue]
                  > Tery Griffin said:
                  >
                  > The actual code for the page in question seems to be:
                  >[/color]

                  Actually, I copyied this link in to Netscape 7.1 and IE. 5.2.1 on
                  MacOS 10.2.8 and I got a random set of images when I created a new
                  window and did the pastes.


                  I added the numbers 1234567 just to see if it worked with the numbers
                  following.

                  Now, back to the original HTM file...

                  The problem seems to be that the form didn't contain a submit button.

                  I got this script to work in IE 5.2.1 and Netscape 7.1 on MacOS
                  10.2.8:

                  <html>
                  <head>
                  <title>redirect ion test</title>

                  <style type="text/css">
                  ..hiddenStyle {position:relat ive; visibility:hidd en;}
                  </style>

                  <SCRIPT language="JavaS cript">
                  function submitform()
                  {
                  alert("in function submitform");
                  document.form.s ubmit();
                  }
                  </SCRIPT>

                  </head>

                  <body onload="alert(' in onload');submit form();">

                  <p>Hide the form so we do not see the submit button.</p>

                  <div id="formNotTher e"

                  class="hiddenSt yle">

                  <form name="form"
                  action=
                  "http://www.wsc.ma.edu/webstudents/CommWebSite/randomimages_2. pl">

                  <input type="submit" value="Submit form">

                  </form>
                  </div>

                  <p>Seems IE on the Mac expects a submit tag. Makes sense, if you
                  think about it.</p>
                  <p>I left the alerts in, so we can see what is going on.</p>
                  </body>
                  </html>

                  Comment

                  • Tery Griffin

                    #10
                    Re: Am I really the only one

                    Thank you! You're right -- it does make sense. I made several changes that
                    people here suggested. The only one that worked was skipping the html
                    entirely and loading the perl program directly into that frame. That throws
                    a blank screen up once in a while, though.

                    If I can't figure out what's causing the blank screen, I'll try this
                    approach. I'm glad not to have to abandon the design.

                    Thanks to everyone for the help.

                    Tery



                    On 4/29/04 12:17 AM, in article
                    c6bb75ff.040428 2017.2ff33444@p osting.google.c om, "Robert"
                    <rccharles@my-deja.com> wrote:
                    [color=blue]
                    > Lee <REM0VElbspamtr ap@cox.net> wrote in message
                    > news:<c6ofsp012 3d@drn.newsguy. com>...[color=green]
                    >> Tery Griffin said:
                    >>
                    >> The actual code for the page in question seems to be:
                    >>[/color]
                    >
                    > Actually, I copyied this link in to Netscape 7.1 and IE. 5.2.1 on
                    > MacOS 10.2.8 and I got a random set of images when I created a new
                    > window and did the pastes.
                    > http://www.wsc.ma.edu/webstudents/Co...s_2.pl?1234567
                    >
                    > I added the numbers 1234567 just to see if it worked with the numbers
                    > following.
                    >
                    > Now, back to the original HTM file...
                    >
                    > The problem seems to be that the form didn't contain a submit button.
                    >
                    > I got this script to work in IE 5.2.1 and Netscape 7.1 on MacOS
                    > 10.2.8:
                    >
                    > <html>
                    > <head>
                    > <title>redirect ion test</title>
                    >
                    > <style type="text/css">
                    > .hiddenStyle {position:relat ive; visibility:hidd en;}
                    > </style>
                    >
                    > <SCRIPT language="JavaS cript">
                    > function submitform()
                    > {
                    > alert("in function submitform");
                    > document.form.s ubmit();
                    > }
                    > </SCRIPT>
                    >
                    > </head>
                    >
                    > <body onload="alert(' in onload');submit form();">
                    >
                    > <p>Hide the form so we do not see the submit button.</p>
                    >
                    > <div id="formNotTher e"
                    >
                    > class="hiddenSt yle">
                    >
                    > <form name="form"
                    > action=
                    > "http://www.wsc.ma.edu/webstudents/CommWebSite/randomimages_2. pl">
                    >
                    > <input type="submit" value="Submit form">
                    >
                    > </form>
                    > </div>
                    >
                    > <p>Seems IE on the Mac expects a submit tag. Makes sense, if you
                    > think about it.</p>
                    > <p>I left the alerts in, so we can see what is going on.</p>
                    > </body>
                    > </html>[/color]

                    Comment

                    • Brian Genisio

                      #11
                      Re: Am I really the only one

                      Robert wrote:
                      [color=blue]
                      > Lee <REM0VElbspamtr ap@cox.net> wrote in message news:<c6ofsp012 3d@drn.newsguy. com>...
                      >[color=green]
                      >>Tery Griffin said:
                      >>
                      >>The actual code for the page in question seems to be:
                      >>[/color]
                      >
                      >
                      > Actually, I copyied this link in to Netscape 7.1 and IE. 5.2.1 on
                      > MacOS 10.2.8 and I got a random set of images when I created a new
                      > window and did the pastes.
                      > http://www.wsc.ma.edu/webstudents/Co...s_2.pl?1234567
                      >
                      > I added the numbers 1234567 just to see if it worked with the numbers
                      > following.
                      >
                      > Now, back to the original HTM file...
                      >
                      > The problem seems to be that the form didn't contain a submit button.
                      >
                      > I got this script to work in IE 5.2.1 and Netscape 7.1 on MacOS
                      > 10.2.8:
                      >
                      > <html>
                      > <head>
                      > <title>redirect ion test</title>
                      >
                      > <style type="text/css">
                      > .hiddenStyle {position:relat ive; visibility:hidd en;}
                      > </style>
                      >
                      > <SCRIPT language="JavaS cript">
                      > function submitform()
                      > {
                      > alert("in function submitform");
                      > document.form.s ubmit();
                      > }
                      > </SCRIPT>
                      >
                      > </head>
                      >
                      > <body onload="alert(' in onload');submit form();">
                      >
                      > <p>Hide the form so we do not see the submit button.</p>
                      >
                      > <div id="formNotTher e"
                      >
                      > class="hiddenSt yle">
                      >
                      > <form name="form"
                      > action=
                      > "http://www.wsc.ma.edu/webstudents/CommWebSite/randomimages_2. pl">
                      >
                      > <input type="submit" value="Submit form">
                      >
                      > </form>
                      > </div>
                      >
                      > <p>Seems IE on the Mac expects a submit tag. Makes sense, if you
                      > think about it.</p>
                      > <p>I left the alerts in, so we can see what is going on.</p>
                      > </body>
                      > </html>[/color]

                      Wow. Why in the world are you doing it this way? This is the most
                      convoluted way of redirecting I have seen yet. It is like a Rube
                      Goldberg machine (www.rube-goldberg.com). I know you have been working
                      a while to get this working properly, but you really should just scrap
                      it, and use a better method.

                      If you need a redirect, why dont you just do this?

                      <HTML><HEAD><SC RIPT>document.l ocation =
                      "http://www.wsc.ma.edu/webstudents/CommWebSite/randomimages_2. pl"</SCRIPT></HEAD></HTML>

                      Or use a META refresth tag in the head... it doesnt even require Javascript:

                      <meta http-equiv="refresh"
                      content="1;url= http://www.wsc.ma.edu/webstudents/CommWebSite/randomimages_2. pl">

                      If you really want it to work, use both... but there is no reason at all
                      to redirect the way you are. What if the user doesnt even have
                      Javascript enabled?

                      Another solution without requiring Javascript, is to use a single frame
                      that takes up all of the browser window:

                      <frameset border=0 rows="100%,*" frameborder="no " marginleft=0
                      margintop=0 marginright=0 marginbottom=0>
                      <frame
                      src="http://www.wsc.ma.edu/webstudents/CommWebSite/randomimages_2. pl"
                      scrolling=auto frameborder="no " border=0 noresize>
                      <frame topmargin="0" marginwidth=0 scrolling=no marginheight=0
                      frameborder="no " border=0 noresize>
                      </frameset>

                      This method, of course, will not change the actual location, which is OK
                      if you like the looks of the first URL better than the second. It is
                      used in domain redirecting all the time. For instance, my website,
                      brian.genisio.o rg goes to a funny domain server that uses the mentioned
                      code to take me to my university site. The university site URL is
                      messy, so I use this method, and the user always seed brian.genisio.o rg
                      as the URL.

                      Brian


                      Comment

                      • Thomas 'PointedEars' Lahn

                        #12
                        Re: Am I really the only one

                        Matt Kruse wrote:
                        [color=blue]
                        > "Tery Griffin" <teryg-list@cox.net> wrote:[color=green]
                        >> View/source shows me:
                        >> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                        >> "http://www.w3.org/TR/html4/loose.dtd">[/color]
                        >
                        > Try removing the doctype and see what happens.[/color]

                        What happens is that it becomes invalid and
                        thus less interoperable content, if that.


                        PointedEars

                        Comment

                        Working...