Hi
I just give a sample html example for the jquery youtube plugin .

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"; >
<head>
    <title>jQuery Youtube plugin</title>
    <script src="jquery-1.2.1.pack.js" type="text/javascript"></
script>
<script src="jquery.youtube.js" type="text/javascript"></script>
<script src="jquery.blockUI.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function(){
        $('#video').youtube({
            type: 'search',
            keyword: 'fun'
        });
    });
    </script>
</head>
<body>
    <div id="video"></div>
</body>
</html>

On Dec 9, 8:41 pm, "John Resig" <[EMAIL PROTECTED]> wrote:
> Do you have some example code? That shouldn't fail for any particular reason.
>
> --John
>
> On Dec 9, 2007 4:30 AM, Kim Johnson <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi folks,
>
> > I just spent the last hour trying to figure out why a
> > piece of jquery wasn't working, and finally tracked it
> > down to inaccurately assuming you could overwrite an
> > attribute with attr. Using attr to blank out values
> > (ex: .attr("name", "")) seems to work fine, but as
> > soon as I try to use it with an actual variable (ex:
> > .attr("id", idvar)), nothing happns.
>
> > I finally discovered that the code worked perfectly if
> > I called removeAttr("id") first, prior to the
> > .attr("id", idvar) call.
>
> > Can anyone explain to me why overwriting doesn't work
> > with attr? Is this a bug? Am I missing some kind of
> > core concept?
>
> > Thanks,
> > ~Kim
>
> >       
> > ____________________________________________________________________________________
> > Never miss a thing.  Make Yahoo your home page.
> >http://www.yahoo.com/r/hs

Reply via email to