problem with iframe in Mozilla

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • saurabhpant
    New Member
    • Jun 2007
    • 14

    problem with iframe in Mozilla

    My name is Saurabh Pant. I am a web developer in .net2.0.I am working on a blog application.I am using an IFrame in my application. But the iframe is not showing in Mozilla Firefox and Netscape Navigator and working perfect in internet explorer.
    Please suggest me as soon as possible.
    Thanks and Regards
    Saurabh Pant
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Originally posted by saurabhpant
    My name is Saurabh Pant. I am a web developer in .net2.0.I am working on a blog application.I am using an IFrame in my application. But the iframe is not showing in Mozilla Firefox and Netscape Navigator and working perfect in internet explorer.
    Please suggest me as soon as possible.
    Thanks and Regards
    Saurabh Pant
    I don't think that this is a .NET problem....I've moved this thread to the HTML forum.

    Could you please post your HTML code for the iframe so that you can receive help on the problem?

    Thanks!

    -Frinny

    Comment

    • saurabhpant
      New Member
      • Jun 2007
      • 14

      #3
      Originally posted by Frinavale
      I don't think that this is a .NET problem....I've moved this thread to the HTML forum.

      Could you please post your HTML code for the iframe so that you can receive help on the problem?

      Thanks!

      -Frinny
      Hi dear, thanks for the help.Actually I have created a text editor for formatting
      the text such as bold, italic, color. For this purpose i am using an iframe as a textarea.It is working perfectly in internet explorer but not showing in mozilla and netscape .It's a big code that's why i cann't send it.
      This Complete editor is working through html and javascript.

      help me as soon as possible.

      Regards
      Saurabh Pant

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        Originally posted by saurabhpant
        Hi dear, thanks for the help.Actually I have created a text editor for formatting
        the text such as bold, italic, color. For this purpose i am using an iframe as a textarea.It is working perfectly in internet explorer but not showing in mozilla and netscape .It's a big code that's why i cann't send it.
        This Complete editor is working through html and javascript.

        help me as soon as possible.

        Regards
        Saurabh Pant
        You don't need to post all of the JavaScript and Html.
        You just need to post the snippet that concerns the iframe.
        I don't know how to help you unless I can see what you're doing.

        Have you tried validating your html with w3c? That could help.

        -Frinny

        Comment

        • saurabhpant
          New Member
          • Jun 2007
          • 14

          #5
          Originally posted by Frinavale
          You don't need to post all of the JavaScript and Html.
          You just need to post the snippet that concerns the iframe.
          I don't know how to help you unless I can see what you're doing.

          Have you tried validating your html with w3c? That could help.

          -Frinny
          hi dear .yes i have tried the html page with w3c.it showed no problem. Tell me is the css changed for the mozilla. because no functionality of the text editor is working in mozilla.if you have any link which gives me some help then send me.
          According to the company rules i cann't send the code to you, the application is working perfectly in internet explorer.

          regards
          Saurabh

          Comment

          • seeing
            New Member
            • Jul 2007
            • 6

            #6
            this works fine for me in firefox, opera, IE netscape

            in this instance, there is a aflash movie that loads into the
            iframe

            first the iframe hasa absoulte posititon (css)

            <style type="text/css">

            .content
            {
            position:absolu te;
            top: 86px;
            left: 0px;
            border: 0px none;
            width: 990px;
            height: 400px;
            visibility: visible;
            z-index: 2;
            }
            </stlye>

            and in the body......


            <table>
            <tr>
            <td width="635" height="400">

            <iframe name="content" bgcolor="FFFFFF " src="home.swf" width="635" height="400" frameborder="0" >
            </iframe>
            </td>
            </tr>
            </table>



            hope this helps :)


            sophia

            Comment

            • saurabhpant
              New Member
              • Jun 2007
              • 14

              #7
              Originally posted by seeing
              this works fine for me in firefox, opera, IE netscape

              in this instance, there is a aflash movie that loads into the
              iframe

              first the iframe hasa absoulte posititon (css)

              <style type="text/css">

              .content
              {
              position:absolu te;
              top: 86px;
              left: 0px;
              border: 0px none;
              width: 990px;
              height: 400px;
              visibility: visible;
              z-index: 2;
              }
              </stlye>

              and in the body......


              <table>
              <tr>
              <td width="635" height="400">

              <iframe name="content" bgcolor="FFFFFF " src="home.swf" width="635" height="400" frameborder="0" >
              </iframe>
              </td>
              </tr>
              </table>



              hope this helps :)


              sophia

              Thanks Sophia
              But it is not working

              .EditControl {
              WIDTH: 500px; HEIGHT: 300px;visibilit y: visible;
              }

              <iframe class="EditCont rol" id="myRTF" src="MessageBod y.htm" runat="server" style="width: 431px">
              </iframe>

              i am writing the text in the iframe through source.
              but not working in mozilla.

              regards
              Saurabh Pant

              Comment

              • seeing
                New Member
                • Jul 2007
                • 6

                #8
                Originally posted by saurabhpant
                Thanks Sophia
                But it is not working

                .EditControl {
                WIDTH: 500px; HEIGHT: 300px;visibilit y: visible;
                }

                <iframe class="EditCont rol" id="myRTF" src="MessageBod y.htm" runat="server" style="width: 431px">
                </iframe>

                i am writing the text in the iframe through source.
                but not working in mozilla.

                regards
                Saurabh Pant
                i think FF etc has trouble with the tag "class"

                try using "name" as with my example code


                hope this sorts it out for you :)


                sophia

                Comment

                • saurabhpant
                  New Member
                  • Jun 2007
                  • 14

                  #9
                  Originally posted by seeing
                  i think FF etc has trouble with the tag "class"

                  try using "name" as with my example code


                  hope this sorts it out for you :)


                  sophia

                  thanks for help sophia.
                  i think the problem in this line of the javascript function:--

                  iframeName.docu ment.designMode ='on';

                  through this line of code we use the iframe source for writing text.but i hear
                  the "designMode " is not working in Mozilla.

                  regards
                  Saurabh

                  Comment

                  • drhowarddrfine
                    Recognized Expert Expert
                    • Sep 2006
                    • 7434

                    #10
                    Without the complete code or a link, it's going to be guess work, as it has been so far. It looks like the problem may lie in your use of ASP/Microsoft controls which only work in IE.

                    Comment

                    • saurabhpant
                      New Member
                      • Jun 2007
                      • 14

                      #11
                      Originally posted by drhowarddrfine
                      Without the complete code or a link, it's going to be guess work, as it has been so far. It looks like the problem may lie in your use of ASP/Microsoft controls which only work in IE.

                      .EditControl {
                      WIDTH: 500px; HEIGHT: 300px;visibilit y: visible;
                      }

                      <iframe class="EditCont rol" id="myRTF" src="MessageBod y.htm" runat="server" style="width: 431px">
                      </iframe>

                      myRTF.document. designMode='on' ;

                      This is the complete code related to the iframe . It is working perfectly in Internet Explorer but not working in Mozilla.

                      Regards
                      Saurabh

                      Comment

                      • drhowarddrfine
                        Recognized Expert Expert
                        • Sep 2006
                        • 7434

                        #12
                        That's not the complete code but you are using so much Microsoft only code that I think that's the problem. ASP.NET leans toward non-standard Internet Explorer and doesn't always work in modern browsers like Firefox or Opera or Safari or Konqueror.

                        Comment

                        • Frinavale
                          Recognized Expert Expert
                          • Oct 2006
                          • 9749

                          #13
                          Originally posted by saurabhpant
                          .EditControl {
                          WIDTH: 500px; HEIGHT: 300px;visibilit y: visible;
                          }

                          <iframe class="EditCont rol" id="myRTF" src="MessageBod y.htm" runat="server" style="width: 431px">
                          </iframe>

                          myRTF.document. designMode='on' ;

                          This is the complete code related to the iframe . It is working perfectly in Internet Explorer but not working in Mozilla.

                          Regards
                          Saurabh
                          Hi Saurabh,

                          I didn't know what designMode did so I googled it and came across an article on using document.design mode in Mozilla.

                          It seems to me that you are going to have to write some JavaScript that will check the browser the person is using, if its IE use one set of JavaScript code, otherwise use the other set of code (explained in the link above).

                          I hope this helps

                          -Frinny

                          Comment

                          • saurabhpant
                            New Member
                            • Jun 2007
                            • 14

                            #14
                            Originally posted by Frinavale
                            Hi Saurabh,

                            I didn't know what designMode did so I googled it and came across an article on using document.design mode in Mozilla.

                            It seems to me that you are going to have to write some JavaScript that will check the browser the person is using, if its IE use one set of JavaScript code, otherwise use the other set of code (explained in the link above).

                            I hope this helps

                            -Frinny
                            Thanks to all of you.I got the solution of my problem after the hardwork of 12 days. There is a problem of javascript.Beca use all the functions of javascript are not same for Mozilla and IE.

                            Regards
                            Saurabh Pant
                            Last edited by Frinavale; Jul 6 '07, 01:36 PM. Reason: Removed email link

                            Comment

                            • drhowarddrfine
                              Recognized Expert Expert
                              • Sep 2006
                              • 7434

                              #15
                              Well, again, it's probably not javascript itself but IEs implementation of non-standard javascript as mentioned above.

                              Comment

                              Working...