Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #26503 > unrolled thread
| Started by | Bint <bint@ign.com> |
|---|---|
| First post | 2015-01-08 13:17 -0600 |
| Last post | 2015-01-09 20:08 +0100 |
| Articles | 18 — 10 participants |
Back to article view | Back to comp.lang.javascript
Error can't find variable: $ Bint <bint@ign.com> - 2015-01-08 13:17 -0600
Re: Error can't find variable: $ Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-08 22:26 +0100
Re: Error can't find variable: $ Denis McMahon <denismfmcmahon@gmail.com> - 2015-01-08 22:00 +0000
Re: Error can't find variable: $ Bint <bint@ign.com> - 2015-01-08 20:08 -0600
Re: Error can't find variable: $ Andrew Poulos <ap_prog@hotmail.com> - 2015-01-09 13:51 +1100
Re: Error can't find variable: $ Doc O'Leary <droleary@2usenet2014.subsume.com> - 2015-01-09 03:12 +0000
Re: Error can't find variable: $ Denis McMahon <denismfmcmahon@gmail.com> - 2015-01-09 03:04 +0000
Re: Error can't find variable: $ Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-09 10:29 +0100
Re: Error can't find variable: $ Bint <bint@ign.com> - 2015-01-09 12:21 -0600
Re: Error can't find variable: $ Tim Streater <timstreater@greenbee.net> - 2015-01-09 18:26 +0000
Re: Error can't find variable: $ "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-01-09 20:19 +0100
Re: Error can't find variable: $ Bint <bint@ign.com> - 2015-01-09 17:43 -0600
Re: Error can't find variable: $ "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-01-10 01:17 +0100
Re: Error can't find variable: $ "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-01-10 11:38 +0100
Re: Error can't find variable: $ Erwin Moller <erwinmollerusenet@xs4all.nl> - 2015-01-14 14:11 +0100
Re: Error can't find variable: $ Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-09 20:03 +0100
Re: Error can't find variable: $ Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-01-09 16:39 -0200
Re: Error can't find variable: $ Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-09 20:08 +0100
| From | Bint <bint@ign.com> |
|---|---|
| Date | 2015-01-08 13:17 -0600 |
| Subject | Error can't find variable: $ |
| Message-ID | <D0D433D8.FB25%bint@ign.com> |
I tried to add a date formatting script to my html file, and I started getting this error -- it doesn't happen every time, though. I was already including jQuery in my <head>. I put the new script include at the bottom of the <body>, but it still gives me the error. Anyone know what I can do to fix it? I haven't gotten this error when using jQuery on my own -- just once I tried to include this date formatter.. Thanks
[toc] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2015-01-08 22:26 +0100 |
| Message-ID | <1748838.7fZf9hl6LL@PointedEars.de> |
| In reply to | #26503 |
Bint wrote: > I tried to add a date formatting script to my html file, and I started > getting this error -- it doesn't happen every time, though. I was already > including jQuery in my <head>. I put the new script include at the bottom > of the <body>, but it still gives me the error. Anyone know what I can do > to fix it? > > I haven't gotten this error when using jQuery on my own -- just once I > tried to include this date formatter.. -- PointedEars FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/> Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix> Please do not cc me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | Denis McMahon <denismfmcmahon@gmail.com> |
|---|---|
| Date | 2015-01-08 22:00 +0000 |
| Message-ID | <m8mum7$k6e$1@dont-email.me> |
| In reply to | #26503 |
On Thu, 08 Jan 2015 13:17:12 -0600, Bint wrote: > I tried to add a date formatting script to my html file, and I started > getting this error -- it doesn't happen every time, though. I was > already including jQuery in my <head>. I put the new script include at > the bottom of the <body>, but it still gives me the error. Anyone know > what I can do to fix it? > > I haven't gotten this error when using jQuery on my own -- just once I > tried to include this date formatter.. It's a good job that we're all psychic and can feel our way across the internet to your machine to read your code and see the error message you're getting, because otherwise, inb the absence of you posting the actual code and error messages, we wouldn't have a clue as to what the problem is. The problem at the moment is that you have no idea how to ask for coding help: 1) Post the code that gives the error 2) If it gives an error message, post the error message message 3) If otherwise it's not doing what you want, tell us (a) what you want it to do and (b) what it actually does. -- Denis McMahon, denismfmcmahon@gmail.com
[toc] | [prev] | [next] | [standalone]
| From | Bint <bint@ign.com> |
|---|---|
| Date | 2015-01-08 20:08 -0600 |
| Message-ID | <D0D4944A.FB3E%bint@ign.com> |
| In reply to | #26509 |
On 1/8/15, 4:00 PM, in article m8mum7$k6e$1@dont-email.me, "Denis McMahon" <denismfmcmahon@gmail.com> wrote: > On Thu, 08 Jan 2015 13:17:12 -0600, Bint wrote: > >> I tried to add a date formatting script to my html file, and I started >> getting this error -- it doesn't happen every time, though. I was >> already including jQuery in my <head>. I put the new script include at >> the bottom of the <body>, but it still gives me the error. Anyone know >> what I can do to fix it? >> >> I haven't gotten this error when using jQuery on my own -- just once I >> tried to include this date formatter.. > > It's a good job that we're all psychic and can feel our way across the > internet to your machine to read your code and see the error message > you're getting, because otherwise, inb the absence of you posting the > actual code and error messages, we wouldn't have a clue as to what the > problem is. > > The problem at the moment is that you have no idea how to ask for coding > help: > > 1) Post the code that gives the error > 2) If it gives an error message, post the error message message > 3) If otherwise it's not doing what you want, tell us (a) what you want > it to do and (b) what it actually does. > Well I can't post the whole program. I thought maybe it was a simple newbie error. Did you not read my subject line? The error message is " Error can't find variable: $" just like it says in the message subject line. Basically I am including this script like this: <script type="text/javascript" src="date.js"></script> And like I said, I include it at the bottom of my body. I already include jQuery like this in my <head> <script type="text/javascript" src="jquery-1.11.2.min.js"></script> Other than that I am not sure what you want. I am not even trying to use the library, simply including it causes the error. And like I said, the error doesn't happen every time, just about half the time. It seems like a timing thing, where it is trying to parse the date.js script before it has parsed jQuery. But besides including Jquery in the head and this other script in the body, I don't know what to do to make sure the library gets loaded after jQuery. Sorry if the question is still unclear.
[toc] | [prev] | [next] | [standalone]
| From | Andrew Poulos <ap_prog@hotmail.com> |
|---|---|
| Date | 2015-01-09 13:51 +1100 |
| Message-ID | <yo6dnWz3m9UA3jLJnZ2dnUVZ8nOdnZ2d@westnet.com.au> |
| In reply to | #26510 |
On 9/01/2015 1:08 PM, Bint wrote: > Well I can't post the whole program. I thought maybe it was a simple newbie > error. Did you not read my subject line? The error message is " Error > can't find variable: $" just like it says in the message subject line. On my keyboard you can find the $ above the '4' key ie. while press and holding the Shift key press the '4' key to get the $. Andrew Poulos
[toc] | [prev] | [next] | [standalone]
| From | Doc O'Leary <droleary@2usenet2014.subsume.com> |
|---|---|
| Date | 2015-01-09 03:12 +0000 |
| Message-ID | <m8ngu0$a4q$1@dont-email.me> |
| In reply to | #26511 |
For your reference, records indicate that Andrew Poulos <ap_prog@hotmail.com> wrote: > On 9/01/2015 1:08 PM, Bint wrote: > > > Well I can't post the whole program. I thought maybe it was a simple newbie > > error. Did you not read my subject line? The error message is " Error > > can't find variable: $" just like it says in the message subject line. > > On my keyboard you can find the $ above the '4' key ie. while press and > holding the Shift key press the '4' key to get the $. You. I *like* you. -- "Also . . . I can kill you with my brain." River Tam, Trash, Firefly
[toc] | [prev] | [next] | [standalone]
| From | Denis McMahon <denismfmcmahon@gmail.com> |
|---|---|
| Date | 2015-01-09 03:04 +0000 |
| Message-ID | <m8ngf6$k6e$4@dont-email.me> |
| In reply to | #26510 |
On Thu, 08 Jan 2015 20:08:42 -0600, Bint wrote: > On 1/8/15, 4:00 PM, in article m8mum7$k6e$1@dont-email.me, "Denis > McMahon" <denismfmcmahon@gmail.com> wrote: >> 1) Post the code that gives the error 2) If it gives an error message, >> post the error message message 3) If otherwise it's not doing what you >> want, tell us (a) what you want it to do and (b) what it actually does. > Well I can't post the whole program. Reduce the problem to a minimum example. eg if you use the following html with the jquery script and the date formatting script, does an error occur, what is the error? Error messages usually include a file and source line which triggered the error. <!doctype html> <html><head><title>blah</title> <script .....><!-- load jquery here --></script> <script .....><!-- load date formatter here --></script> </head><body><p>Test</p></body></html> -- Denis McMahon, denismfmcmahon@gmail.com
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2015-01-09 10:29 +0100 |
| Message-ID | <24084724.g67CNLLCEU@PointedEars.de> |
| In reply to | #26510 |
Bint wrote: > […] "Denis McMahon" […] wrote: >> The problem at the moment is that you have no idea how to ask for coding >> help: >> >> 1) Post the code that gives the error >> 2) If it gives an error message, post the error message message >> 3) If otherwise it's not doing what you want, tell us (a) what you want >> it to do and (b) what it actually does. > > Well I can't post the whole program. I thought maybe it was a simple > newbie error. Did you not read my subject line? […] My previous posting was not by mistake. RTFFAQ. -- PointedEars FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/> Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix> Please do not cc me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | Bint <bint@ign.com> |
|---|---|
| Date | 2015-01-09 12:21 -0600 |
| Message-ID | <D0D5784D.FB4E%bint@ign.com> |
| In reply to | #26514 |
On 1/9/15, 3:29 AM, in article 24084724.g67CNLLCEU@PointedEars.de, "Thomas 'PointedEars' Lahn" <PointedEars@web.de> wrote: > Bint wrote: > >> [Š] "Denis McMahon" [Š] wrote: >>> The problem at the moment is that you have no idea how to ask for coding >>> help: >>> >>> 1) Post the code that gives the error >>> 2) If it gives an error message, post the error message message >>> 3) If otherwise it's not doing what you want, tell us (a) what you want >>> it to do and (b) what it actually does. >> >> Well I can't post the whole program. I thought maybe it was a simple >> newbie error. Did you not read my subject line? [Š] > > My previous posting was not by mistake. RTFFAQ. So funny you all are. What part of the FAQ do you mean? Do you mind explaining? I don't see anything at all about jQuery in the FAQ, and there's nothing about $. (you are talking about the FAQ listed below your name right?) If you are just trying to say I didn't write my question correctly, I'm sorry. I thought it would probably be clear enough to someone with more experience than me. As far as making a simple example, I guess I will try that but I have a feeling it has to do with the amount of code, and timing, and the problem won't be reproducible. I just thought it was probably a common mistake I was making.
[toc] | [prev] | [next] | [standalone]
| From | Tim Streater <timstreater@greenbee.net> |
|---|---|
| Date | 2015-01-09 18:26 +0000 |
| Message-ID | <090120151826069400%timstreater@greenbee.net> |
| In reply to | #26515 |
In article <D0D5784D.FB4E%bint@ign.com>, Bint <bint@ign.com> wrote: >On 1/9/15, 3:29 AM, in article 24084724.g67CNLLCEU@PointedEars.de, "Thomas >'PointedEars' Lahn" <PointedEars@web.de> wrote: > >> Bint wrote: >> >>> […] "Denis McMahon" […] wrote: >>>> The problem at the moment is that you have no idea how to ask for coding >>>> help: >>>> >>>> 1) Post the code that gives the error >>>> 2) If it gives an error message, post the error message message >>>> 3) If otherwise it's not doing what you want, tell us (a) what you want >>>> it to do and (b) what it actually does. >>> >>> Well I can't post the whole program. I thought maybe it was a simple >>> newbie error. Did you not read my subject line? […] >> >> My previous posting was not by mistake. RTFFAQ. > >So funny you all are. What part of the FAQ do you mean? Do you mind >explaining? I don't see anything at all about jQuery in the FAQ, and >there's nothing about $. (you are talking about the FAQ listed below your >name right?) Possibly because this is not a jquery group, it's a javascript group. I, f'rinstance, don't know what you mean by $. -- "Once you adopt the unix paradigm, the variants cease to be a problem - you bitch, of course, but that's because bitching is fun, unlike M$ OS's, where bitching is required to keep your head from exploding." - S Stremler in afc
[toc] | [prev] | [next] | [standalone]
| From | "Christoph M. Becker" <cmbecker69@arcor.de> |
|---|---|
| Date | 2015-01-09 20:19 +0100 |
| Message-ID | <m8p9it$8t1$1@solani.org> |
| In reply to | #26516 |
Tim Streater wrote: > I, f'rinstance, don't know what you mean by $. In the jQuery library $ is an alias of the ubiquitous jQuery() function. -- Christoph M. Becker
[toc] | [prev] | [next] | [standalone]
| From | Bint <bint@ign.com> |
|---|---|
| Date | 2015-01-09 17:43 -0600 |
| Message-ID | <D0D5C3AF.FB5F%bint@ign.com> |
| In reply to | #26520 |
Today the same thing works fine, I don't get an error. It must be the universe rewarding me for suffering abuse from all you smug douchebags!
[toc] | [prev] | [next] | [standalone]
| From | "Christoph M. Becker" <cmbecker69@arcor.de> |
|---|---|
| Date | 2015-01-10 01:17 +0100 |
| Message-ID | <m8pr2c$8el$1@solani.org> |
| In reply to | #26523 |
Bint wrote: > Today the same thing works fine, I don't get an error. > > It must be the universe rewarding me for suffering abuse from all you smug > douchebags! I suggest to read <http://www.catb.org/esr/faqs/smart-questions.html#not_losing>. HTH -- Christoph M. Becker
[toc] | [prev] | [next] | [standalone]
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
|---|---|
| Date | 2015-01-10 11:38 +0100 |
| Message-ID | <XnsA41E765D08015eejj99@194.109.133.133> |
| In reply to | #26523 |
Bint <bint@ign.com> wrote on 10 jan 2015 in comp.lang.javascript: > Today the same thing works fine, I don't get an error. Impossible. On usenet, if you don't quote, there is no 'same thing'. -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [next] | [standalone]
| From | Erwin Moller <erwinmollerusenet@xs4all.nl> |
|---|---|
| Date | 2015-01-14 14:11 +0100 |
| Message-ID | <54b66af4$0$2944$e4fe514c@news2.news.xs4all.nl> |
| In reply to | #26523 |
On 1/10/2015 12:43 AM, Bint wrote: > > Today the same thing works fine, I don't get an error. > > It must be the universe rewarding me for suffering abuse from all you smug > douchebags! > Let's hope Bint returns here. I would consider it a huge loss to have to miss his future contributions. ;-) Erwin Moller -- "That which can be asserted without evidence, can be dismissed without evidence." -- Christopher Hitchens
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2015-01-09 20:03 +0100 |
| Message-ID | <1575155.MckX62fn8E@PointedEars.de> |
| In reply to | #26515 |
Bint wrote: ^^^^ Who? > On 1/9/15, 3:29 AM, in article 24084724.g67CNLLCEU@PointedEars.de, "Thomas > 'PointedEars' Lahn" <PointedEars@web.de> wrote: It’s attribution *line*, _not_ attribution novel. >> Bint wrote: >>> [] "Denis McMahon" [] wrote: >>>> The problem at the moment is that you have no idea how to ask for >>>> coding help: >>>> >>>> 1) Post the code that gives the error >>>> 2) If it gives an error message, post the error message message >>>> 3) If otherwise it's not doing what you want, tell us (a) what you want >>>> it to do and (b) what it actually does. >>> >>> Well I can't post the whole program. I thought maybe it was a simple >>> newbie error. Did you not read my subject line? [] >> >> My previous posting was not by mistake. RTFFAQ. > > So funny you all are. Unfortunately, you have not been fun. But you are improving, if slowly. > What part of the FAQ do you mean? The FAQ Notes on posting and the FAQ on debugging, for example. > Do you mind explaining? Yes, I expect people to be intelligent enough to find out the basics of newsgroup communication for themselves. For it is not the case that one cannot read turorials, and newsgroups before posting to them. And then there’s decent upbringing by at least one parent telling that one does one’s homework first… > I don't see anything at all about jQuery in the FAQ, | 3.3 Javascript Libraries | | No javascript libraries are endorsed by this group. If you want help with | using a library, visit that library's discussion group instead. (This should not be misunderstood as “Libraries are not endorsed by this group.” Not my wording, though.) > and there's nothing about $. (you are talking about the FAQ listed below > your name right?) In this regard, you may use any of the available FAQs for this newsgroup (there are at least three variants now), there is no significant difference. > As far as making a simple example, I guess I will try that but I have a > feeling it has to do with the amount of code, and timing, and the problem > won't be reproducible. It will. The underlying mistake is so very trivial, a schoolchild could find out. > I just thought it was probably a common mistake I was making. It was. You did not provide to the runtime environment (here: the browser’s script engine) the source code that defined the symbol “$”. Did you even *read* the *actual* error message? -- PointedEars FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/> Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix> Please do not cc me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | Joao Rodrigues <groups_jr-1@yahoo.com.br> |
|---|---|
| Date | 2015-01-09 16:39 -0200 |
| Message-ID | <m8p77t$89k$1@speranza.aioe.org> |
| In reply to | #26503 |
On 08/01/2015 17:17, Bint wrote: > I tried to add a date formatting script to my html file, and I started > getting this error -- it doesn't happen every time, though. I was already > including jQuery in my <head>. I put the new script include at the bottom > of the <body>, but it still gives me the error. Anyone know what I can do > to fix it? > > I haven't gotten this error when using jQuery on my own -- just once I tried > to include this date formatter.. > > Thanks > Check this out: <http://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/> -- Joao Rodrigues
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2015-01-09 20:08 +0100 |
| Message-ID | <24085310.lvXGTqo1Ig@PointedEars.de> |
| In reply to | #26517 |
Joao Rodrigues wrote: > Check this out: > <http://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/> I do not think that is the reason for the problem here. About 364'000 Google results for the error message tell otherwise. -- PointedEars FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/> Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix> Please do not cc me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web