Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #14484
| Message-ID | <1597639.oMNUckLgyt@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2012-06-13 15:06 +0200 |
| Subject | Re: Ineffective Firefox cookie |
| Newsgroups | comp.lang.javascript |
| References | <b5M+F7U$I61PFwO$@freenetname.co.uk> |
| Followup-To | comp.lang.javascript |
Followups directed to: comp.lang.javascript
Walter Briscoe wrote:
> The FAQ recommends "JavaScript The Definitive Guide". I find it an
> unreasonably heavy volume at about 1780g and starting at the beginning
> took a lot of input with little return. I have not tried JavaScript The
> Good Parts. I found "Learning Javascript" useful for a beginner.
There are probably several books with that title. If you are recommending a
book, be precise about it, so that your recommendation can be reviewed.
In general, be precise about everything that you post so as not to waste
your readers' (and potentially helpers') free time.
<http://www.catb.org/~esr/faqs/smart-questions.html>
> I installed Firebug from <http://getfirebug.com/>, put a breakpoint In
> "/tfl-global/scripts/tfl-cookies-prompt.js" at setCookie("hide-cookies-
> panel", "yes", 365); in function hidePanel() and stepped through to
> document.cookie = c_name + "=" + c_value + expires + "; path=/";
>
> How do I tell why that line is ineffective?
> I don't yet know how to examine document.cookie. ;)
RTFM: <http://getfirebug.com/wiki/index.php/Main_Page> ("Documentation").
You can
a) point at the property name while debugging
b) add a Watch expression
c) inspect the global `document' property value's properties
d) type `document.cookie' or `console.log(document.cookie)' followed
by the Enter/Return key in the command line in Firebug's "Console" tab
e) Use console.log() in your code.
And probably I forgot to mention something.
Since the value is domain-specific, you can do (d) at any time, provided the
script does not redirect to another domain.
HTH
PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
Ineffective Firefox cookie Walter Briscoe <wbriscoe@nospam.demon.co.uk> - 2012-06-12 21:10 +0100 Re: Ineffective Firefox cookie Gene Wirchenko <genew@ocis.net> - 2012-06-12 14:45 -0700 Re: Ineffective Firefox cookie JJ <jaejunks_at@_googlemail_dot._com> - 2012-06-12 23:24 +0000 Re: Ineffective Firefox cookie Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-06-13 15:06 +0200
csiph-web