mounika_3 0 Newbie Poster

I am using coffee script,when I am trying hit the url..it is not getting redirected to that particualar url and the next steps are getting executed. I am getting this issue only in chrome but it is working fine in firefox

previewOpen:->
window.location.href="#/preview"
window.setTimeout(@openView(@uuid),500)

openView:(uuid) ->
$("#design_parts").empty();
console.log("done emptying...");
console.log(uuid)
view= new Embellishment.Views.DP.Preview({uid:uuid} )
$('#design_parts').html(view.render().el)

Any help is appreciated.
Thanks in advance

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.