Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Multiquote (on) Multiquote (off)
Add Reply
JQuery not working?
Topic Started: Aug 26 2009, 04:25 PM (536 Views)
firestrife2
Member Avatar
sƃuıʞ ɟo poƃ
[ *  * ]
Very recently I noticed a lot of the JQuery on my board is not working...the funny thing is that a lot of it is working just fine also. http://gaming-zc.com/

My users online code is not functioning properly(hover over a username in the online list) ....for some reason the bar just disappears. A lot of text that I use JQuery to replace is not working...while others are... Is there something that could possibly be interfering with them? o.o
Offline Profile Quote Post Goto Top
 
Pete B
Member
[ *  *  *  *  *  *  *  * ]
If you could paste the codes in here, it would help, but at a guess make sure there are no @ signs in any of your JQuery, the recently update has depreciated that symbol for use.
Offline Profile Quote Post Goto Top
 
firestrife2
Member Avatar
sƃuıʞ ɟo poƃ
[ *  * ]
I used search to look for @ signs and 0 were found. Here are some of the basic codes that aren't working...while other ones that are the same are working fine. These used to all work great.

Code:
 
$("td:contains( (The newest member is )").each(function() {$(this).html($(this).html().split("(The newest member is").join("[Our newest member is"));});


^^I have a few of those


>.>

I figured it out, a few of my replacements don't use JQuery... its the .html("") and .split("").join("") functions that are not working for me.

If I type them in my browser it works fine >.>.
I edited a few of them and now some more work...Is this because of the new JQuery installation? :/
Edited by firestrife2, Aug 26 2009, 10:47 PM.
Offline Profile Quote Post Goto Top
 
Viral.
Member Avatar
Member
[ *  *  *  *  *  * ]
What box is that placed in? It won't work without some extra coding unless it is put in the below the board or above copyright box.
Offline Profile Quote Post Goto Top
 
firestrife2
Member Avatar
sƃuıʞ ɟo poƃ
[ *  * ]
Viral, I know xD. It's been working ever since the update. I got a few of them to work by changing some of the text...strange that it didn't affect it before.

:/
Offline Profile Quote Post Goto Top
 
Reid-ZNS
Member Avatar
C'est un piège!
[ *  *  *  *  *  * ]
Remove any rogue ( from your script. For example,
Code:
 
$('input[name=(Test)]')
will fail in jQuery 1.3.2 and the like.

It's only really in selectors that it matters.

For example, try this:
Code:
 
$("td:contains(The newest member is)").each(function() {$(this).html($(this).html().split("(The newest member is").join("[Our newest member is"));});
Offline Profile Quote Post Goto Top
 
firestrife2
Member Avatar
sƃuıʞ ɟo poƃ
[ *  * ]
I didn't know that, but that's what I did to get it working when I was messing around with it. I think I know how to fix some of my codes now. Thanks for the help everyone, thanks Aeroice for the knowledge on that new rule. :D
Wait a minute...does the $.get function still work? I'm having problems with it :/
Nevermind...it works when I use .append instead of .html but I get a lot of problems with append in this particular code. When I use .html(var) it will just hide the whole thing... I tried .html("text") and it worked great...except I need the variable :/
Edited by firestrife2, Aug 29 2009, 12:03 AM.
Offline Profile Quote Post Goto Top
 
Reid-ZNS
Member Avatar
C'est un piège!
[ *  *  *  *  *  * ]
Can I see the full code? :)
Offline Profile Quote Post Goto Top
 
firestrife2
Member Avatar
sƃuıʞ ɟo poƃ
[ *  * ]
Oh never mind lol...I don't know what's wrong with the variable and the html function but...it didnt work. I got append to work by adding:
Code:
 
if($("#lastactivitox:contains(minute)").length == 0 ) {


So it doesn't repeat itself anymore...thanks for the help. I think I can go on my own again xD.

Now I can add it in again with my Profile Comments code :D
Edited by firestrife2, Aug 29 2009, 12:17 AM.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards Support · Next Topic »
Add Reply