# Flash and javascript

**URL:** https://forum.kirupa.com/t/flash-and-javascript/194788
**Category:** Uncategorized
**Created:** [July 26, 2006, 11:01am UTC](https://forum.kirupa.com/t/flash-and-javascript/194788 "2006-07-26T11:01:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bunker](https://avatars.discourse-cdn.com/v4/letter/b/8edcca/32.png) [@bunker](https://forum.kirupa.com/u/bunker)
#### Post date: [July 26, 2006, 11:01am UTC](https://forum.kirupa.com/t/flash-and-javascript/194788/1 "2006-07-26T11:01:14Z")

</div>

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.
