javascript solution needed

Javascript coding ..

Moderators: macek, egami, gesf

Post Reply
kiwi
New php-forum User
New php-forum User
Posts: 124
Joined: Sun Feb 29, 2004 6:26 am
Contact:

javascript solution needed

Post by kiwi » Sun Jul 04, 2010 11:57 pm

i have this problem, i got a problem in a object tag, try to set value from the page , but cant work, error appear.

form a.php
part of the code:

<div><object id="ifValidate" data="validate.php?xf_sid=0000000060" style="display:" type="text/php"></object></div>


in form validate.php
part of the code:
echo "<script type=\"text/javascript\">";
echo " parent.ifValidate.text_id.value='1234';";
echo "</script>";

the field text_id is located in a.php
any one know how to set the value to the a.php from validate.php(located in object tag)

if the object tag replace with iframe, it work, i try this before, but xhtml doest allow iframe.
and the browser use is IE, i try getElementById and it work for firefox and not in IE

any solution, thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests