Using "develop" version of jquery 1.2.1 it doesn't work

but using version 1.1.4 (and so without plugin) it works

can be it considered a jquery 1.2.1 bug?

On 26 Set, 14:01, julio <[EMAIL PROTECTED]> wrote:
> I'm using (compressed) jquery version 1.2.1
> I have downloaded plugin and renamed it
>
> I have transformed my test page like this:
>
> <html>
> <head>
> <title>A test page</title>
> <script type="text/javascript" src="jquery.js"></script>
> <script type="text/javascript" src="jquery.xpath.js"></script>
> </head>
> <body>
> <script>
> $(document).ready(function() {
>         $("//[EMAIL PROTECTED]'2']").hide();
>         $("//[EMAIL PROTECTED]'3']").hide();});
>
> </script>
> <h1 myattr="1">test-row1</h1>
> another row
> <h1 myattr="1">test-row2</h1>
> <img myattr="2" src="pic1.png" />
> <img myattr="2" src="pic2.png" />
> <table myattr="3">
> <tr myattr="4">
> <td myattr="5">test</td>
> </tr>
> <tr myattr="4">
> <td myattr="5">test</td>
> </tr>
> </table>
> </body>
> </html>
>
> but it doesn't work again
>
> this is plugin I have downloaded:
>
> http://jquery.com/plugins/files/jquery.xpath.js.txt
>
> On 26 Set, 13:45, "Erik Beeson" <[EMAIL PROTECTED]> wrote:
>
> > If you're using jQuery 1.2 or later, you need the XPath plugin. See 
> > here:http://docs.jquery.com/Release:jQuery_1.2#XPath_Compatibility_Plugin
>
> > --Erik
>
> > On 9/26/07, julio <[EMAIL PROTECTED]> wrote:
>
> > > it doesn't work for me. I have used
>
> > > $(function() {
>
> > > and
>
> > > $(document).ready(function() {
>
> > > but nothing works
>
> > > I'm using firefox 2.0.6
>
> > > On 26 Set, 13:33, Remy Sharp <[EMAIL PROTECTED]> wrote:
> > > > You need to wrap the jQuery in a 'ready' method - otherwise your JS is
> > > > running before the DOM is ready:
>
> > > > $(function () {
> > > >   $("//[EMAIL PROTECTED]'2']").hide();
> > > >   $("//[EMAIL PROTECTED]'3']").hide();
>
> > > > });
>
> > > > Making this change works.
>
> > > > On Sep 26, 10:45 am, julio <[EMAIL PROTECTED]> wrote:
>
> > > > > Hi,
>
> > > > > I have this simple html page:
>
> > > > > <html>
> > > > > <head><title>A test page</title></head>
> > > > > <script type="text/javascript" src="jquery.js"></script>
> > > > > <body>
> > > > > <script>
> > > > > $("//[EMAIL PROTECTED]'2']").hide();
> > > > > $("//[EMAIL PROTECTED]'3']").hide();
> > > > > </script>
> > > > > <h1 myattr="1">test-row1</h1>
> > > > > another row
> > > > > <h1 myattr="1">test-row2</h1>
> > > > > <img myattr="2" src="pic1.png" />
> > > > > <img myattr="2" src="pic2.png" />
> > > > > <table myattr="3">
> > > > > <tr myattr="4">
> > > > > <td myattr="5">test</td>
> > > > > </tr>
> > > > > <tr myattr="4">
> > > > > <td myattr="5">test</td>
> > > > > </tr>
> > > > > </table>
> > > > > </body>
> > > > > </html>
>
> > > > > and I would like hide elements retrieved via xpath like in <script/>.
>
> > > > > But it doesn't work
>
> > > > > Why? Have you any idea?
>
> > > > > Thanks,
> > > > > Julio

Reply via email to