/    Sign up×
Community /Pin to ProfileBookmark

Hello,
I’ve got a problem with <object> tag in IE (gecko is OK). How can i acces parent document ?
Thanks.
Rémy.

<html>
<body>
<input id=’monInput’ type=’text’> </input>
<object data=’fichier.html’> </object>
</body>
</html>

fichier.html :
——————

<html>
<body>
<script>
HOW ACCESS TO ‘monInput’ field ?????
parent.document.getElementById(‘monInput’) is not OK with IE
</script>
</body>
</html>

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@LeruraOct 20.2005 — put fichier.html in an iframe instead:
[CODE]<html>
<body>
<input id='monInput' type='text'> </input>
<iframe src='fichier.html'></iframe>
</body>
</html[/CODE]
>

then it should work
Copy linkTweet thisAlerts:
@R__my29authorOct 20.2005 — Thanks,

I know this solution, but if it's possible i want doing XHTML strict...

iframe is not valid, but it works ;-)

If it's possible... If it's not an IE bug...

Rémy
Copy linkTweet thisAlerts:
@LeruraOct 20.2005 — The try "XHTML transitional" here iframes are still valid
Copy linkTweet thisAlerts:
@felgallOct 20.2005 — XHTML 1.0 has three variants - transitional, strict, and frameset

If you want to use frames you can't use strict.

IE6 doesn't support the object tag properly as a lot of the definition of how that tag should be used has been developed since the release of that antiquated browser.
×

Success!

Help @R__my29 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...