Hi all,
I've made a piece of code:
(this is in a for statement). Than I'm trying to assign the, e.g. reactions1 variable, I just made, to a jquery mobile page like this:Code:$('#reactions' + i).attr('href', 'javascript:comments('+entry.url+','+i+');');
Strange thing is, when I load this in my browser, the JS console gives me an error: "ReferenceError: Undefined variable: i_heart_chaos_ihc_after_dark_independence_day_through_a_bullhornthis_is_what" (the last thing is the value of entry.url)Code:document.write( '<a href="#" id="reactions' + i + '" data-role="button" class="ui-btn-right">Reactions</a>' );
I don't get why this is giving me an error in stead of just calling the comments function.
I hope someone here can help me.
Thanks in advance,
Jan Thiemen


Reply With Quote

Bookmarks