I’ll try and explain briefly here: Problem only on IE7.
I am passing a variable from Flash to an HTML form. I have some javascript code that captures this variable and displays it in an html input text field.
[B]Here is the javascript:
[CODE]<script language=”javascript”>
function setVal(id,val) {
var field = document.getElementById(id);
field.value = val;
}
</script>
[B]Here is the Flash (actionscript) variable code:
[CODE]ExternalInterface.call(“setVal”,’rgb’,display_txt.text);
[B]Here is the html input text box:
[CODE]<input type=”text” name=”file_name_show” id=”rgb” value=”<? echo $rgb;?>”>
[B]And here’s the FlashVars on the html page:
[CODE]fo.addParam(“FlashVars”, “&rgb=<?php echo $rgb; ?>&”);
What I’m doing is using Flash to upload a file, then grabbing the filename and displaying it in an html text box so I can pass it from page to page with PHP.
This works perfectly in IE6, FF, ect… But NOT in IE7 !
It is a known issue with IE7 that “getElementById(id)” has a bug. I need to know how to fix this please.
[B]You can see a striped down example here:Try It !
[URL=”http://www.poprocketpress.com/ad_uploads/test/flash_uploader.php”]http://www.poprocketpress.com/ad_uploads/test/flash_uploader.php
Thanks for any help,