I have this script that works fine until I add a particular variable to the string
$.getJSON("http://mydomain.at/config/cfc/images.cfc?method=makeProfilePic&userID="+ #getImageInfoResults.userID# +"&thumbnailServer="+ #getImageInfoResults.imageServer# +"&thumbnailFolder="+ #getImageInfoResults.folderID# +"&thumbnailFile="+ #getImageInfoResults.imageFile#,function(result){
Everything between ## is a coldfusion variable.
The last segment is what breaks it '"&thumbnailFile="+ #getImageInfoResults.imageFile#'
I narrowed it down to '#getImageInfoResults.imageFile#' is what's breaking it.
It's just a filename. I checked the variable and for a particular instance it's '38196830020_large.jpg'
So if I put that string place of the variable it breaks too. If I remove the '.' then it's fine.
Soooooo
Do I need to encode this variable? wrap the string differently?
$.getJSON("http://mydomain.at/config/cfc/images.cfc?method=makeProfilePic&userID="+ #getImageInfoResults.userID# +"&thumbnailServer="+ #getImageInfoResults.imageServer# +"&thumbnailFolder="+ #getImageInfoResults.folderID# +"&thumbnailFile="+ #getImageInfoResults.imageFile#,function(result){
Everything between ## is a coldfusion variable.
The last segment is what breaks it '"&thumbnailFile="+ #getImageInfoResults.imageFile#'
I narrowed it down to '#getImageInfoResults.imageFile#' is what's breaking it.
It's just a filename. I checked the variable and for a particular instance it's '38196830020_large.jpg'
So if I put that string place of the variable it breaks too. If I remove the '.' then it's fine.
Soooooo
Do I need to encode this variable? wrap the string differently?