Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #8562
| From | beegee <bgulian@gmail.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Mod rewrite and javascript cookie |
| Date | 2011-11-23 05:53 -0800 |
| Organization | http://groups.google.com |
| Message-ID | <87b93edb-043c-4dc9-b344-57d7a2491c02@gl2g2000vbb.googlegroups.com> (permalink) |
| References | <08c68e5c-c1ce-4a13-92cf-82e05ba0737f@h42g2000yqd.googlegroups.com> |
On Nov 22, 9:44 am, Stillpoint Media <t...@stillpoint-media.nl> wrote:
>
> This works:http://www.example.com/test/php?id=1
>
> This doesn't:http://www.example.com/test/1/seo-friendly
>
> This is the javascript call. Thanks in advance!
>
> <script type="text/javascript">
> jQuery(document).ready(function(){
> if (document.cookie.indexOf('visited=true') == -1) {
> var fifteenDays = 0;
> var expires = new Date((new Date()).valueOf() + fifteenDays);
> document.cookie = "visited=true;expires=" + expires.toUTCString();
> $.colorbox({width:"580px", inline:true, href:"#subscribe"});
> }});
>
> </script>
You haven't included the code that shows the html anchor, #subscribe.
Colorbox is indeed a popup ( actually a div ). Normally href itself
would point to the url like href:"http://www.example.com/test/1/seo-
friendly". I'm not sure what the colorbox rules are for pointing to
an anchor. Try pasting the URL into the href: value and see what
happens.
Bob
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
Mod rewrite and javascript cookie Stillpoint Media <tako@stillpoint-media.nl> - 2011-11-22 06:44 -0800 Re: Mod rewrite and javascript cookie Scott Sauyet <scott.sauyet@gmail.com> - 2011-11-22 07:00 -0800 Re: Mod rewrite and javascript cookie beegee <bgulian@gmail.com> - 2011-11-23 05:53 -0800
csiph-web