JQuery inside functions

For Joomla! 3.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, General Support Moderators

Forum rules
Locked
ceh2624
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Thu Apr 17, 2014 4:13 pm
Location: North Carolina, USA
Contact:

JQuery inside functions

Post by ceh2624 » Tue Aug 19, 2014 4:25 pm

I'm getting some strange results when using JQuery. On my joomla home page, the green text under "Getting Started" is generated by the JQuery statement, {$("#testjq").text("Initial Text");} and works fine. So, I know that JQuery is working. However, when that same statement (with different text) is put into a function fired by clicking the go button, it does nothing. Is there something I need to add to Joomla to get this to work properly? Outside Joomla it works perfectly.

I have

Code: Select all

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
on line one of the editor. (code mirror)

ceh2624
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Thu Apr 17, 2014 4:13 pm
Location: North Carolina, USA
Contact:

Re: JQuery inside functions

Post by ceh2624 » Tue Aug 19, 2014 4:31 pm

P.S.

From the seamonkey browser's error console:
Timestamp: 8/19/2014 12:27:13 PM

Error:
TypeError: $(...) is null

Source File:
http://www.ncfoothills.net/design/ Line: 134

ceh2624
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Thu Apr 17, 2014 4:13 pm
Location: North Carolina, USA
Contact:

Re: JQuery inside functions

Post by ceh2624 » Wed Aug 20, 2014 2:09 pm

UPDATE

I'm working on a project on localhost for our soon to be new website at work. I've tried installing the plugin, jQueryEasy. Evidently, this isn't what that plugin is for because, for my purposes, jQueryEasy is the figurative equivalent of screen doors on a submarine.

Does anyone have any ideas?

Cheers
Charles


Locked

Return to “Joomla! 3.x Coding”