![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I have an index.html with a frameset with 2 php files. The top frame are buttons, that refresh the lower frame or put different content in it. Some of these pages have javascript-tabs and I keep the current tab in an array in the parent document: window.parent.curTab[window.location] = elNewTab; elNewTab is the <div> element that is shown. This works fine, with no errors in Firefox 2. However, if I try to run it in IE7, I get 'Permission denied' errors (I installed DebugBar). Apparently, writing the window.parent.curTab array is no problem, but reading it is not allowed. Are you saying that you can CHANGE the values in the |
|
I tried to change the browser security settings (the site is in 'trusted sites' now), to no avail. So, it has nothing to do with your security settings. Any help? Bart Friederichs |
#3
| |||
| |||
|
|
Are you saying that you can CHANGE the values in the window.parent.curTab, but you can NOT read it back? |
#4
| |||
| |||
|
|
GArlington wrote: Are you saying that you can CHANGE the values in the window.parent.curTab, but you can NOT read it back? Well. It's hard to know for sure that I can write them, because I cannot read them. The 'access denied' occurs when trying to read, not when trying to write. |
|
My next try is to put these variables in the DOM, hoping I can manipulate that. |
#5
| |||
| |||
|
|
Chances are that your attempts at write access are silently blocked. |
|
IIUC, you should not do that. Host objects need not to allow augmentation. We discussed this several times already. |
#6
| |||
| |||
|
|
Well, if I had XHTML, and registered a new namespace, I can put anything I like in the DOM. However, I have to support IE and IE doesn't support XHTML correctly, so that's not a viable solution. |
#7
| |||
| |||
|
|
Thomas 'PointedEars' Lahn wrote: Chances are that your attempts at write access are silently blocked. How to fix this problem then? Are there any solutions to 'register' some variables in the top frameset? Cookies? |
|
IIUC, you should not do that. Host objects need not to allow augmentation. We discussed this several times already. Well, if I had XHTML, and registered a new namespace, I can put anything I like in the DOM. |
|
However, I have to support IE and IE doesn't support XHTML correctly, so that's not a viable solution. |
#8
| |||
| |||
|
|
Bart Friederichs wrote: Well, if I had XHTML, and registered a new namespace, I can put anything I like in the DOM. However, I have to support IE and IE doesn't support XHTML correctly, so that's not a viable solution. The solution I found was the following: In the frame that stays available at all times (my navigation bar), I registered the values in the 'name' attribute of a button. Works both in IE and Fx. I know it is attribute-abuse, but completely rebuilding my app takes way more time (and thus money). |
#9
| |||
| |||
|
|
You could not (and you would not need a new namespace for that). There is a difference between properties of an (host) object and the attributes of the element it represents. The DOM Specification for XHTML 1.0 documents and elements is W3C DOM Level 2 HTML and it would be prudent to adhere to that. |
#10
| |||
| |||
|
|
Thomas 'PointedEars' Lahn wrote: You could not (and you would not need a new namespace for that). There is a difference between properties of an (host) object and the attributes of the element it represents. The DOM Specification for XHTML 1.0 documents and elements is W3C DOM Level 2 HTML and it would be prudent to adhere to that. Euh, as I understood it, XHTML is pure XML and there is nothing stopping me to register a new namespace (could do that server side) and mixing XHTML and whatever I can think of (some self-defined XML). That is actually one of the powers of XML, and thus of XHTML (i.e. embedding SVG in XHTML without needing a seperate file). |
![]() |
| Thread Tools | |
| Display Modes | |
| |