Hi everyone, I have a small (I hope) problem that I cannot manage to solve.
What I am trying to do is to send a value from flash to an html input field using javascript.
So far what I have managed to do is this:
// Flash
function SendValue() {
c.greeting = “ciao”;
getURL(“javascript:document.greetingform.greeting.value = ‘greeting = ciao’;”);
}
// HTML
<form id=“greetingform”
<input id=“greeting” type=“text” />
<input id=“greeting-submit” type=“submit” />
</form>
Obviously either the swf and the form reside on the same page.
So, resuming, once I recall the function from the button, I would like flash to send the value to the field without reloading the page. It vould also be nice to know if its possible to send a var value to the field rather than just a string of text (peraphs the “c” var listed in the script).
Is it possible or am I just dreaming?
Thanks a lot in advance to anyone who could help.
Ciao ciao!
P.S. I don’t know why but in the as script that I posted, the forum system keeps adding a space before “value”. In the original script this space does not exists.