thanks a lot for your help!
is it possible to additionally explain me how i can execute this link
through the ajax functions? that would be great!

thanks in advance

On 12 Jan., 15:53, "jQuery Lover" <ilovejqu...@gmail.com> wrote:
> Try this:
>
> $('#searchButton').click(function(){
>   var url = '<script type="text/javascript"
> src="http://gdata.youtube.com/feeds/api/videos?q='+
> $('#searchText').val() +
> '&alt=json-in-script&callback=showMyVideos&max-results=7&format=5"></script>';
>
>   // ajax functions to call $.ajax, $.load, $.get, $.post
>
> });
>
> -------------
> Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com
>
> On Mon, Jan 12, 2009 at 1:49 PM, dirk w <dirkwendl...@googlemail.com> wrote:
>
> > 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