Firefox looks great, IE7 sucks,help needed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tomkure
    New Member
    • Mar 2010
    • 6

    Firefox looks great, IE7 sucks,help needed

    Hello all.

    On a website i am working on a JQuery gallery(gallery view) and it's look great in firefox.

    But in Internet Explorer 7 it looks really bad.

    I have located problem to this php code

    Code:
    <UL class=filmstrip>
    <LI><a href="#" onClick="window.open('project_gallery/37/Winter.jpg','','width=500,height=380,menubar=yes')"><img src="project_gallery/37/Winter.jpg" width="63" height="63"></LI></UL>
    I will really appreciate if somebody have suggestion how to solve this problem

    Kind Regards
    Tom
    Last edited by Dormilich; Mar 8 '10, 05:35 AM. Reason: Please use [code] tags when posting code
  • RamananKalirajan
    Contributor
    • Mar 2008
    • 608

    #2
    Can you please explain what is the "Sucking problem" you faced with IE7? Can you please describe it.

    One problem I found is
    "You haven't closed the <a> tag check it out..."

    Thanks and Reagrds
    Ramanan Kalirajan
    Last edited by RamananKalirajan; Mar 8 '10, 01:07 PM. Reason: Added some comments

    Comment

    • tomkure
      New Member
      • Mar 2010
      • 6

      #3
      I have attached 2 pictures, one for firefox, running correctly, and IE7, not looking good.

      My while loop for generating pictures is

      Code:
      while ( $i_rst = mysql_fetch_array($f_qry) ) {
        if ( $i_rst['picName'] != NULL ) {
          $path    = "{$i_rst['picPath']}{$i_rst['picName']}";
          $attrib  = "width=500,height=380,menubar=yes";
          $onClick = "onClick=\"window.open('{$path}','','{$attrib}')\"";
          echo "<LI>";
          echo "<a href=\"#\" {$onClick}";
          echo "<img src=\"{$i_rst['picPath']}{$i_rst['picName']}\" width=\"63\" 
            height=\"63\"/>";
          echo "</LI>";
          } else {
            echo "<LI>";
            echo "<img src=\"images/no_proj.jpg\" width=\"63\" height=\"63\">";
            echo "</LI>";
          }
          }
      Any help will be appreciated

      Kind Regards
      Tom
      Attached Files

      Comment

      • RamananKalirajan
        Contributor
        • Mar 2008
        • 608

        #4
        In the While loop you havent added a closing tag for <a>. I ma not that much good in PHP. Can you send the class "filmstrip" . This is may be due to the style mismatch.

        Thanks and Regards
        Ramanan Kalirajan

        Comment

        • tomkure
          New Member
          • Mar 2010
          • 6

          #5
          Thanks for you reply.

          About closing tag, If I add it, it get worse!!!!

          I have attached Jquery script.

          Kind Regards
          Tom
          Attached Files

          Comment

          • RamananKalirajan
            Contributor
            • Mar 2008
            • 608

            #6
            Can you please give the url or site from where you have downloaded the jquery script.

            It's my personal opinion. Don't take it too serious. Just try to avoid using frameworks or plugins. Try to implement the functionality by yourself. If you become addict to an framework you can use the framework well. But you cant implement things by yourself. Frameworks makes you lazy to code. People will say re-usability and optimized code for using frameworks. We also can code like that. We have to improve ourself


            Thanks and Regards
            Ramanan Kalirajan

            Comment

            • tomkure
              New Member
              • Mar 2010
              • 6

              #7
              I download it from http://spaceforaname.com/galleryview, make a few changes to suit to our website.

              Website from where gallery is running

              and
              http://thailandoceanproperties.com/p...w.php(?pjID=xx)

              Kind Regards
              Tom

              Comment

              • RamananKalirajan
                Contributor
                • Mar 2008
                • 608

                #8
                Hi Tomkure,
                I just looked into the site where you have downloaded the code. The Author had specified some issues in the column "Know Issues". He specified some functionality will not be working in IE7. Can you please just check whether the issues you have mentioned here are the same one listed there. If yes means, the author himself has generated a code which is specific to mozilla alone it seems. We can try to solve it.

                Thanks and Regards
                Ramanan Kalirajan

                Comment

                • tomkure
                  New Member
                  • Mar 2010
                  • 6

                  #9
                  Hi Ramanan Kalirajan,

                  Thanks for your answers and your time.

                  If i take this line out

                  echo "<a href=\"#\" {$onClick}";

                  then it works fine in IE7, but without open new window function.

                  Any suggestion you may have to change this line so IE7 can handle it is appreciated.


                  Kind Regards
                  Tom

                  Comment

                  • RamananKalirajan
                    Contributor
                    • Mar 2008
                    • 608

                    #10
                    Hi Tom,
                    I am not that much good in JQuery, by seeing the code I can say that, they have open a new window on click of the div itself. They are keeping this anchor tag for some work around. Have you removed that and tried it out?

                    Thanks and Regards
                    Ramanan Kalirajan

                    Comment

                    • tomkure
                      New Member
                      • Mar 2010
                      • 6

                      #11
                      Problem solved!!!

                      I change

                      echo "<a href=\"#\" {$onClick}";
                      echo "<img src=\"{$i_rst['picPath']}{$i_rst['picName']}\" ....

                      with

                      echo "<img id=\"img{$ulid} \" {$onClick} src=\"{$i_rst['picPath']}{$i_rst['picName']}\" width=...

                      where $ulid is a counter

                      Thanks for your time into this

                      Kind Regards
                      Tom

                      Comment

                      • RamananKalirajan
                        Contributor
                        • Mar 2008
                        • 608

                        #12
                        Happy to see that you yourself solved that issue. "Keep Moving Forward"


                        Thanks and Regards
                        Ramanan Kalirajan

                        Comment

                        Working...