Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- 5 star rating system help


daveVk - 11:59 am on Dec 16, 2012 (gmt 0)


Cannot call method 'split'

Looks like one of the references to split is failing

for debug replace
var originalresult = $(this).attr('id').split('result')[1];
with
alert( 'test 1 ' + $(this).attr('id') );
var originalresult = $(this).attr('id').split('result')[1];

and
var id = $(this).parent().attr('id').split('rating')[1];
with
alert( 'test 2 ' + $(this).parent().attr('id') );
var id = $(this).parent().attr('id').split('rating')[1];


Thread source:: http://www.webmasterworld.com/javascript/4528520.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com