Ahh, I just didnt redo the variable!  I knew I should've been paying
attention while reading John's book!  It was in the chapter on Scope I think

This is perfect.  Thanks guys,
Glen

On 5/9/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
>
>         <meta http-equiv="refresh" content="5;url=http://jquery.com";>
>         <script type="text/javascript" src="/js/jquery.js"></script>
>         <script type="text/javascript">
>             $(function(){
>                 $("meta").attr("content","4;url= http://commadot.com";);
>             });
>         </script>
>     </head>
>
> goes to commadot, not jquery!
>
> On 5/9/07, John Resig < [EMAIL PROTECTED]> wrote:
> >
> >
> > isn't that because you're still referring to the old value in 'meta'?
> >
> > You need to call it again before you refer to it in the second alert:
> > meta = $("meta").attr("content");
> >
> > --John
> >
> > On 5/9/07, Glen Lipka <[EMAIL PROTECTED] > wrote:
> > > <meta http-equiv="refresh" content="200;url=http://jquery.com";>
> > >
> > > $(document).ready(function(){
> > >    var meta = $("meta").attr("content");
> > >    alert(meta);  //results in 200;url= http://jquery.com
> > >
> > >   $("meta").attr("content","500;url= http://commadot.com ");
> > >    alert(meta); //results in same as first
> > >   });
> > >
> > > Good news.  The first alert works.
> > > Bad news.  The second one doesn't.
> > >
> > > Any ideas?
> > >
> > > Glen
> > >
> >
>
>
>
> --
> Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery (English)" group.
To post to this group, send email to jquery-en@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to