$(document) and jQuery(document)

I had a widget, which broke after some other things were updated.
It was saying:
TypeError: 'undefined' is not a function (evaluating '$('#id_conta
cts_and_people-phonecontact-content_type-object_id-0-label').combo
box()')
Last night, I finally managed to fix it, after noticing that this script
(which is injected into the HTML body as many times as required for each
widget) began:
$(document).ready(function(){
while others I had seen began:
jQuery(document).ready(function($){
Changing it to the latter form made it work.
The only thing is, I don't really understand what was wrong, or how
doing that fixed it.
I understand that a jQuery conflict of some kind meant that jQuery was
unable to find the function "combobox()" and that probably this was
because of the way the template was loading JavaScript files.
But I don't understand what the changes actually mean, or what they do.
If someone can explain what is going on in this example, that would be
really helpful.
Thanks,
Daniele
--
Kraftwerk Consolation Night
20.00 1st March 2013 Chapter Arts Centre Cardiff
Eight different live ensembles playing the songs of Kraftwerk to ease
the disappointment of being unable to get tickets to see them in London

D.M. Procida wrote:
> [ ... ]
> =A0 =A0 $(document).ready(function(){
> [ ... ]
> =A0 =A0 jQuery(document).ready(function($){
>
> Changing it to the latter form made it work.
You're not generally very likely to get much help that specific to
jQuery here. You might want to check in their help forums. jQuery
and most general-purpose libraries are not well-thought of on
comp.lang.javascript.
That said, from what I've seen of jQuery, usually `$` is simply an
alias to `jQuery` unless specifically overwritten. The latter syntax
is a way to more comfortably share the global namespace with other
libraries that might also want to define `$`. So if you're not
including other libraries, and not redefining `$` yourself, I have no
idea why one would work and not the other.
-- Scott

Scott Sauyet <scott.sauyet@gmail.com> writes:
> D.M. Procida wrote:
>> [ ... ]
>> $(document).ready(function(){
>> [ ... ]
>> jQuery(document).ready(function($){
>>
>> Changing it to the latter form made it work.
> [...] So if you're not
> including other libraries, and not redefining `$` yourself, I have no
> idea why one would work and not the other.
http://api.jquery.com/jQuery.noConflict/
(might be called in included third party code, copy and pasted by the OP
himself, or whatnot)

document.all and document.getElementByIdHello,
I've a problem : I want to check which element has been checked in a
list of radiobuttons.
/////////////////////////////////////
function numeroChk(liste)
{
var elem=document.all(liste)
alert(elem.length)
for(i=0;i<elem.length;i++)
{
if (elem[i].checked)
{
indice = elem[i].value;
return indice;
}
}
}
This work fine in IE but not in Firefox
The problem is that document.all is not recognized by Firefox, but when
I try document.getElementById(liste), nothing works
liste is a string.
What must I do to translate this function properly ?
Thanks for assistance
Lu...

Document-Document similarityHi!
I need a java application which compares a text with another and gives
me a result how similar these texts are. Does there any opensource
solution exits, because I need the sourcecode as well.
Thanks,
Fabian Leitritz
...

document or document.bodyI've been attaching tables and other things directly to document. It
seems to work. Should I be using document.body? What is/are the
difference(s)?
Martin Rinehart wrote:
> I've been attaching tables and other things directly to document.
"Attaching" -- how?
> It seems to work.
Testing things positive to "work" in a handful of newest UAs without
understanding the mechanisms behind them is the first blunder.
> Should I be using document.body
Yes if you are talking about Element::appendChild() or Node::insertBefore()
and objects representing elements th...

document.write() in the middle of a document?Hi,
does anyone know of any javascript method that does the same job as
document.write(), but not necessarily at the end of the document? For
instance, insert some text inside an element that has a specific ID
tag?
thanks a lot
JL
jullag wrote on 19 sep 2005 in comp.lang.javascript:
> Hi,
>
> does anyone know of any javascript method that does the same job as
> document.write(), but not necessarily at the end of the document? For
> instance, insert some text inside an element that has a specific ID
> tag?
> thanks a lot
> JL
document.write() can be used anywhere i...

documentation specification for Documentation CenterHas anyone seen specifications on how to write and install
documentation in the Mathematica Documentation Center?
II posted the following message (mg77434) last June and never got a
response.
> Can anyone point me to documentation on how to create Documentation
> Center pages?
>
> I get the impression that the Help Browser's days are numbered. Is
> that true? If so, is there an easy way to convert Help Browser
> documentation?
>
Ken Levasseur
UMass Lowell
Ken,
Yes, I think it is a poor show that eight months after the release of
Versi...

Combining documents into one documentI currently provide a document to our customer that consists of our
program progress and various appendices in Microsoft Word. I am
interested in whether anyone knows of a program that will allow you to
combine the separate Word documents into one. Here is the catch: The
tech volume and 2 of the appendices do not need to be secured, but one
of the documents needs to be secure so that only appointed folks can
open that specific document. Microsoft Binder allows this, but our
customer is moving towards Office 2000 which does not support the
Binder and has caused some issues in our deliv...

accessing a document within a documentI have an html page that has an object element containing an external html
or svg or vml page. I would like to access elements within this sub-page
from javascript in the parent page.
Any ideas how to do this?
Thanks,
Martin
Martin Eyles wrote:
> I have an html page that has an object element containing an external
> html or svg or vml page. I would like to access elements within this
> sub-page from javascript in the parent page.
With Mozilla and Opera (and other browser implementing the W3C HTML DOM
Level 2) the object element DOM object has a property named contentDo...

[SiSU] book/document generator, sample documents: summary page for document markup and outputSiSU is a document generator, written in Ruby,
(the environment in which it has been developed is Debian:Sid/Gnu).
http://www.jus.uio.no/sisu
Structured information, Serialized Units
find below a few document samples,
(summary pages for document markup and resulting output)
(markup for Gulliver's Travels took 10 minutes):
"Free Culture", Lawrence Lessig
http://www.jus.uio.no/sisu/free_culture.lawrence_lessig/summary
"Free For All", Peter Wayner
http://www.jus.uio.no/sisu/free_for_all.peter_wayner/summary
"Free as in Freedom: Richard Stallman's Crusade for F...

Re: documentation specification for Documentation CenterFriends:
I have problems creating packages. See for example the following very simple package:
BeginPackage["fuss`Func`"]
crisclas::usage="Inputs are a set of training
vectors, a first guess vector, a zero, and a learning rate ";
Begin["`Private`"]
crisclas[trainingvec_,guess_,cero_,ritmo_]:=Module[{guess1=guess,\
hacerlalista={}},If[trainingvec[[i]].guess-cero>0, guess, \
For[i=1,i<Length[trainingvec] && trainingvec[[i]].guess1-cero<=0 \
,AppendTo[hacerlalista,guess1];guess1=(guess1+(ritmo*trainingvec[[i]])\
),i++ ];hacerl...

Integrating package documentation with the documentation centerAlthough the documentation center (DC) came with version 6.0, there is
(to my knowledge) still no published method for fully integrating
package documentation with this system (at least not without using the
Wolfram Workbench).
As part of work on my new DebugTrace package, I believe I have uncovered
the interface mechanism - using commands from the undocumented
DocumentationSearch` (!!) context. Using these commands, it is possible
to create documentation which pops up when F1 is pressed inside one of
your exported symbols, and which appears in searches done within the DC.
...

building a master document out of sub documentsI searched the archives and didn't find anything that came very close
to what I need, but it seems like this might be the place to ask. My
need isn't very "commercial", so I'm hoping this can be done with
inexpensive tools...
I'm maintaining the music part books for a band that regularly adds
and revises arrangements. There is a "book" for each instrument, and
it's composed of the "part" documents for each song for that
instrument.
I'd like to create a master document that references each of the
relevant part documents. If I can't ...

translate a HTML document into a XHTML documentregards:
Is it possible to use
java api
javax.swing.text.html.parser
to translate a HTML document into a XHTML document?
@@.
thank you
may god be with you
On Sun, 23 Jan 2005 08:53:42 -0800, mike wrote:
> regards:
>
> Is it possible to use
> java api
> javax.swing.text.html.parser
> to translate a HTML document into a XHTML document?
> @@.
I guess it _is_ possible. But i really doubt there is a toXHTML() method
in there somewhere, so some work will be necessary.
--
In pioneer days the...

document.tagID vs document.all.tagIDHi,
Is there a difference between document.tagID and document.all.tagID.
I've seen both like: document.myImage1.src = "nextImage2.jpg" and
document.all.hot1.style.color= ... where hot1 is in <span ID=hot1>.
Thanks.
Chris
yma@kicon.com (chirs) writes:
> Is there a difference between document.tagID and document.all.tagID.
Yes, "all.". :P
Seriously, they are about equally wrong. Both work in IE. Neither work
in most other browsers (e.g., Mozilla/Netscape).
> I've seen both like: document.myImage1.src = "nextImage2.jpg" and
> document....

Copy a document changin the parent documentHello everyone,
Here is my problem :
I've got a document named "AA" which is a response of the document
"A"
Using LotusScript, I want to copy the document "AA"', and name it as
"BB"... but I want "BB" to be the response of "B".
I tried several things unsuccessfully as :
Set BB = AA.CopyToDatabase(db)
Call BB.MakeResponse(B)
But nothing worked yet.
Hope someone will be able to help me !
Best Regards !
Yvan
Did you 'save' BB after calling MakeResponse?
Hello everyone,
First thanks ...

document.onmousedown document.onmousemove Problem?Hi,
I'm using document.onmousedown then document.onmousemove to draw a <div
line. The trouble is when the mouse is pressed down it moves the line a
bit but then stops moving it and looks like it's trying to drag the
image. I'm using mozilla(linux) and tried it windows but it doesn't work
as i've got the wrong commands for explorer. I've got some other code
that works but i can't see the difference here's the code i've got so
far if anyone knows please please let me know.
<HTML>
<body bgcolor="FFFFFF">
<img name="main&...

documention for the Documentation Center in math6.0Can anyone point me to documentation on how to create Documentation
Center pages?
I get the impression that the Help Browser's days are numbered. Is
that true? If so, is there an easy way to convert Help Browser
documentation?
Ken Levasseur
UMass Lowell
...

document.allHello,
1. The document.all property (array?) seems to be a popular IE-only
attribute. Other browsers (Opera, Mozilla) do not seem to care for it which,
of course, occasionally produces weird displays and non-functional links.
Is it, indeed, a IE-ism?
2. While experimenting with the elusive document.all, I ran into a sort of
catch-22, it least with Mozilla. I tried testing (null == document.all) to
decide if the property exists, and get a warning (in the Mozilla Javascript
console) that the property does not exist. Hm.
Is there a robust way to test for a property that may not exist?...

Refer to an XML document from within an XML documentIs there an "XML" way to reference an XML document from within an XML
document? How do I do this?
TIA,
- Manish
Manish Hatwalne wrote:
> Is there an "XML" way to reference an XML document from within an XML
> document? How do I do this?
XLink:
http://www.w3.org/TR/xlink/
XPointer framework:
http://www.w3.org/TR/xptr-framework/
http://www.w3.org/TR/xptr-element/
XInclude:
http://www.w3.org/TR/xinclude/
Check out yourself which of them comes close to what you understand
"reference an XML document" to do.
--
Martin Honnen
http://JavaS...

is there any documentation out there?hi there !
on my older computer i have running wine 200410... very fine with ie6,
office 2000 and many other application. on my newer machine i wanted to run
an acutal wine version from 200508.. . the installation runs without
problems. but i can't install the ie6 and i can't install office 2000
(maybe because it lacks of ie6).
as i read, there have been changes in the configuration of wine, while
everything now is configured with the *.reg files and not anymore with the
conf file. an installation guide at franks's corner is just available for
the installation with the con...

Where documented?I noticed at http://www.q-software-solutions.de/pub/README
===========
What's new in the new version of lcc-win32
------------------------------------------
Nov 21:
Added getline, getdelim, ggets fggets to the standard library.
===========
Can anyone tell me where the usage for these is documented? I couldn't
find them in either manual.doc or lcc.chm
Thanks
--
To email me directly, remove CLUTTER.
Vic Dura wrote:
>
.... snip ...
>
> What's new in the new version of lcc-win32
> ------------------------------------------
> Nov 21:
> Added getline, get...

A HTML document can be converted to XHTML document.regards:
From http://webpageworkshop.co.uk/main/xhtml_converting
A HTML document can be converted to XHTML document.
By the following Steps:
Step 1: Convert elements to lowercase
Step 2: Replace the !DOCTYPE declaration
Step 3: Change the <html> tag
Step 4: Make sure all elements are closed
Step 5: Ensure all attributes are quoted
Step 6: 'Un-minimize' minimized attributes
Step 7: Make sure that every image has an 'alt' attribute
Step 8: Check for 'overlapping' elements
Step 9: Check 'type' attributes for script and style elements
Step 10...

more about documentationSince others seem to be sharing the difficulty I have been having
finding detailed descriptions of the various perl/Tk facilities I would
like to share a link to what seems to be an excellent resource. I
believe (and I am new to perl/Tk) that perl/Tk uses essentially the same
library as that used by Tcl/Tk, which is quite well documented here:
http://www.shlrc.mq.edu.au/tcltk-man-html/contents.html
Am I correct in believing that this documentation, although written from
a Tcl standpoint, is very useful in understanding the operation of
perl/Tk? For example, I have been lookin...