hello community,
i have some kind of a beginner question and i really would appreciate
if you could help me with that.

when someone types a value into the textfield and clicks on "search"
or enter than the javascript line should be called regarding to the
entered value. this should happen without reloading the complete page.

# FORM
        <form id="searchForm" action="">
            <input type="text" name="searchText" id="searchText"
value="" size="30" maxlength="30"/>
            <input type="button" name="searchButton" id="searchButton"
class="button buttonText" value="Search" />
        </form>

# Script to call
<script type="text/javascript" src="http://gdata.youtube.com/feeds/api/
videos?q=' + searchTerm + '&alt=json-in-
script&callback=showMyVideos&max-results=7&format=5"></script>

see the "SearchTerm" in the js line, it should be replaced with the
value of the textfield.

thank you very much in advance!
dirk

Reply via email to