Skip to content

Instantly share code, notes, and snippets.

@descovi
Created October 1, 2012 16:58
Show Gist options
  • Save descovi/3813014 to your computer and use it in GitHub Desktop.
Save descovi/3813014 to your computer and use it in GitHub Desktop.
Quanto è bella?
$.ajax 'http://localhost:3000/risorsa/index',
type: 'GET',
data: "uniquekey=#{codice_commessa}",
dataType: 'json',
processData: true,
success: (data)->
customer = data.customer
for key, value of data.productInstance
if value.productName == "SCHEDA_AZIENDA_GIALLO"
productReferenceUrl = value.productReference.replace("ITA|","")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment