Script tags are never allowed to be self-closing.
On Mar 18, 9:58 pm, matt <[email protected]> wrote:
> Thank you both for your replies (and I haven't ruled out a doc type)..
>
> When I looked under FireBug the UI file wasn't there and sure enough
> if you look closely at the source
> code I posted the core file is declared with the script tag being
> closed with "/>" and the UI declaration
> had the more formal "</script>".. Firefox seems to require both to use
> the formal tag closure (i.e. use the </script>)
> once I did that it worked great.
>
> Thanks again,
> -Matt
>
> On Mar 18, 7:39 pm, Nikola <[email protected]> wrote:
>
> > This worked for me. I'm don't know if not declaring a doctype would
> > cause a problem...
>
> > Try it here.. I just added the doctype, working jQuery / jQuery UI
> > links as well as the CSS framework links. Note that the jQuery UI CSS
> > framework is optional.
>
> >http://jsbin.com/ujono/edit
>
> > On Mar 18, 8:23 pm, matt <[email protected]> wrote:
>
> > > Hello,
>
> > > I'm new to JQuery and was exploring the different demos, getting them
> > > to work locally etc. I re-created the drag demo (source below) and it
> > > works great in Safari but not at all on FF3 or FF2 (on the Mac). FF
> > > reports the error '$("#draggable").draggable is not a function'.. I
> > > searched around the internet and the closest I could come to a
> > > solution was to use a different version of jquery and jquery-ui. I
> > > wanted to see if anyone else has experienced this problem or if
> > > there's something I'm doing wrong.
>
> > > Appreciate the help,
> > > -Matt
>
> > > <head>
> > > <script type="text/javascript" src="javascript/jquery-1.3.2.js" />
> > > <script type="text/javascript" src="javascript/jquery-
> > > ui-1.7.custom.min.js"></script>
>
> > > <link type="text/css"
> > > href="css/smoothness/jquery-ui-1.7.custom.css"
> > > rel="stylesheet" />
>
> > > <style type="text/css">
> > > #draggable { width: 150px; height: 150px; padding: 0.5em; }
> > > </style>
> > > <script type="text/javascript"><!--
>
> > > $(function() {
> > > $("#draggable").draggable();
>
> > > });
> > > --></script>
> > > </head>
>
> > > <body>
> > > <div class="demo">
>
> > > <div id="draggable" class="ui-widget-content">
> > > <p>Drag me around</p>
> > > </div>
> > > </body>
> > > </html>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---