AllInWorld99 provides a reference manual covering many aspects of web programming, including technologies such as HTML, XHTML, CSS, XML, JavaScript, PHP, ASP, SQL,FLASH, jQuery, java, for loop, switch case, if, if else, for...of, for...in, for...each,while loop, blogger tips, blogger meta tag generator, blogger tricks, blogger pagination, client side script, html code editor, javascript editor with instant output, css editor, online html editor, materialize css tutorial, materialize css dropdown list,break, continue statement, label,array, json, get day and month dropdown list using c# code, CSS button,protect cd or pendrive from virus, cordova, android example, html and css to make android app, html code play,telerik show hide column, Transparent image convertor, copy to clipboard using javascript without using any swf file, simple animation using css, SQL etc. AllInWorld99 presents thousands of code examples (accompanied with source code) which can be copied/downloaded independantly. By using the online editor provided,readers can edit the examples and execute the code experimentally.


Solve Scroll Issue:-
    Scroll Issue is the most common issue in all browser, this problem mostly occur when you create a dynamic content like table, text boxes and etc. The following code will help to find the dynamic expanded div height and additionally increase the side 100px. So if your div height is increased dynamically the following code will help to expand the scroll bar and fix your scroll issue problem.


Code for fix the Scroll Issue:-

         function setIframeHeight() {
             frame = parent.document.getElementById('frame1');
             var sSupersetString = navigator.userAgent;
             if (sSupersetString.indexOf("Firefox") != -1) {
                 $(frame).height(Number($(frame).contents().find("html").height()) + 600);
             }
             else {
                 if (frame) {
                     var iframeWin = frame.contentWindow || frame.contentDocument.parentWindow;
                     if (iframeWin.document.body) {
                         frame.height = iframeWin.document.documentElement.scrollHeight || iframeWin.document.body.scrollHeight;
                         frame.height = frame.height;
                         var ss = Number(frame.height) + 600;

                         innerDoc = (frame.contentDocument) ? frame.contentDocument : frame.contentWindow.document;
                         objToResize = (frame.style) ? frame.style : frame;
                         objToResize.height = (ss) + "px";
                     }
                 }
             }
         }



Advertisement




Screen shot:-

0 comments:

Post a Comment

Total Pageviews