Eugh, now I feel like an idiot! I had:
var regextest1 = "Morate se prijaviti da bi mogli pristupiti ovome"; ...but needed: var regextest1 = /Morate se prijaviti da bi mogli pristupiti ovome/; Seems to work fine now ;) Cheers Andy On Jan 13, 5:17 pm, youradds <andy.ne...@gmail.com> wrote: > Anyone? :/ > > On Jan 13, 11:46 am, youradds <andy.ne...@gmail.com> wrote: > > > Hi, > > > Got another weird one with crappy IE :/ > > > function finishAjax(linkid, id, response) { > > jQuery('#ajax_rate_indicator' + linkid).hide(); > > > response = unescape(response); > > > /* an erorr test, in case we get an error in the <div id="error"> > > div, which didn't get caught before for some reason */ > > var error = jQuery(response).find('div.error').html(); > > var message = jQuery(response).find('div.message').html(); > > > var regextest1 = "Morate se prijaviti da bi mogli pristupiti ovome"; > > > /* alert("test: " + error);*/ > > > if (error) { > > jQuery('#'+id).html("<font color=green>Your rating has been > > accepted</font>"); > > } else if (regextest1.test(response) == true) { > > jQuery('#'+id).html("<font color=red>Please login before you can > > rate!</font>"); > > } else { > > jQuery('#'+id).html("<font color=green>Your rating has been > > accepted</font>"); > > } > > > } //finishAjax > > > I get the following error - but ONLY when an error exists (i.e the > > div.error bit) > > > Webpage error details > > > User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; > > Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR > > 3.5.30729; InfoPath.2; OfficeLiveConnector.1.3; OfficeLivePatch. > > 0.0; .NET CLR 3.0.30729) > > Timestamp: Wed, 13 Jan 2010 11:42:37 UTC > > > Message: Object doesn't support this property or method > > Line: 82 > > Char: 10 > > Code: 0 > > URI:http://www.unreal.hr/imenik/static/ajax_rate.js > > > Can anyone see a mess up? It works fine in FF and Chrome, and partly > > in IE8, but just not this bit. I'm getting really ticked off with IE > > atm :( > > > TIA! > > > Andy > >