Go Back   Pligg CMS Forum > Pligg Development > Bug Report

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-25-2006, 11:16 PM
New Pligger
 
Join Date: Feb 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
javascript error

i checked the javascipt a million times, and dont find any errors.

basically what happens is when i click to vote for an article the number increments, but the image doesnt change, and i get an error in IE
a menealo( ) error

any help would be appreciated, thanks
Reply With Quote
  #2 (permalink)  
Old 02-26-2006, 12:16 AM
AshDigg's Avatar
Coder
 
Join Date: Dec 2005
Posts: 1,574
Thanks: 235
Thanked 345 Times in 206 Posts
Can you post a link to the site?
__________________
- Ash
Reply With Quote
  #3 (permalink)  
Old 02-26-2006, 12:43 AM
New Pligger
 
Join Date: Feb 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
www.chosenbythefans.com
Reply With Quote
  #4 (permalink)  
Old 03-07-2006, 12:13 PM
New Pligger
 
Join Date: Feb 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
I get the same thing...you can try on yellowsupremacist.com (my test domain)
Reply With Quote
  #5 (permalink)  
Old 03-12-2006, 04:35 AM
New Pligger
 
Join Date: Mar 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Target is null or not an object

I get the same error in IE but it works in FireFox. The error occurs in:

xmlshttp.js - line 114 char 3
Error: "target2" is null or not an object

This seems to be the function producing the error message:

function changemnmvalues (id, error)
{
split = new RegExp ("~--~");
b = mnmString[id].split (split);
target1 = document.getElementById ('mnms-' + id);
target2 = document.getElementById ('mnmlink-' + id);
if (error) {
target2.innerHTML = "<span>vote cast</span>";
return false;
}
if (b.length <= 3) {
target1.innerHTML = b[0];
target1.style.backgroundColor = mnmPrevColor[id];
target2.innerHTML = "<span>vote cast</span>";
}
return false;
}

I tried declaring target2 as a string & an array but they didn't support the function call. Where are target1 & target2 declared? What type should they be?

Thanks,
S
Reply With Quote
  #6 (permalink)  
Old 03-15-2006, 04:09 PM
New Pligger
 
Join Date: Mar 2006
Posts: 23
Thanks: 0
Thanked 2 Times in 1 Post
i am getting the same error, i will work on a fix.
Reply With Quote
  #7 (permalink)  
Old 03-15-2006, 05:51 PM
New Pligger
 
Join Date: Mar 2006
Posts: 23
Thanks: 0
Thanked 2 Times in 1 Post
i noticed this was missing in the vote button

id="mnmlink-{$link_shakebox_index}"

if you are using text as your vote buttons, you can swap out the text easily, but if you are using a img, i can't figure out how to do.

if you know, post here.
Reply With Quote
  #8 (permalink)  
Old 03-19-2006, 02:46 AM
New Pligger
 
Join Date: Feb 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
doesnt seem to resolve the issue, even if using text as the button

unless i misuderstood
where do you want
id="mnmlink-{$link_shakebox_index}"; ??
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Pligg 9.5 Beta: 500 Internal Server Error!!!! Genghis Bug Report 0 05-02-2007 03:10 AM
Got This Parse Error on c_ file on line 141 endph General Help 0 02-14-2007 06:44 PM
Tricky Javascript Error thefirelane General Help 4 03-18-2006 03:30 AM


Search Engine Friendly URLs by vBSEO 3.2.0