user702300
user702300

Reputation: 1241

To assign flashvars value from input value

I am trying to assign the URL from a input value that's parsed by PHP to FlashVars using javascript

<input id="feed" type="hidden" value="http://localhost/photo/" />

... other HTML code goes here ...

var flashvars = {
   feed: document.getElementById('feed').value(),

   ... other flashvars code goes here ...

}

But this doesn't seem to work, is there anyway to pull this off? Thank you.

Upvotes: 0

Views: 103

Answers (1)

xdazz
xdazz

Reputation: 160833

Without (), value is not a function.

Change

feed: document.getElementByID('feed').value(),

to

feed: document.getElementByID('feed').value,

Upvotes: 2

Related Questions