ruliang / reallysimplehistory

Automatically exported from code.google.com/p/reallysimplehistory
Other
0 stars 0 forks source link

IE6/IE7 : Javascript error due to bad iframe style setting #81

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using it with prototype
2. Configuring it with:
window.dhtmlHistory.create({
                    debugMode:true,
                    blankURL:"<%=request.getContextPath()%>/jsp/common/blank.html?",
                    toJSON: function(o) {
                            return Object.toJSON(o);
                    }, 
                    fromJSON: function(s) {
                            return s.evalJSON();
                    }
            });

3. Then calling in onload event:            
dhtmlHistory.initialize();      
dhtmlHistory.addListener(Salto.HistoryUtils.historyChange);

What is the expected output? What do you see instead?
Javascript error : Property or method not available on this object

What version of the product are you using? On what operating system?
Trunk version

Please provide any additional information below.
Occurs with IE6 AND IE7

The error is due to bad style setting:
this.iframe.style="left:-1000px;top:-1000px;width:1px;height:1px;border:0;positi
on:absolute;"

MUST BE REPLACED WITH:
            this.iframe.style.position='absolute';
            this.iframe.style.top='-1000px';
            this.iframe.style.left='-1000px';
            this.iframe.style.width='1px';
            this.iframe.style.height='1px';
            this.iframe.style.border='0';

Original issue reported on code.google.com by philippe...@gmail.com on 19 Feb 2009 at 8:49

GoogleCodeExporter commented 9 years ago
Please forget this issue, I mixed up in the versions.

Original comment by philippe...@gmail.com on 19 Feb 2009 at 8:59

GoogleCodeExporter commented 9 years ago
My inline frame src propertiy working in fire fox but not load on th IE browser

Original comment by d.balu...@gmail.com on 21 Nov 2009 at 7:35

Attachments: