javascript - Setting colorbox lightbox ajax href variable -


i getting bad request in colorbox when pops up:

is there away feed href using $ variable?

ajaxcall: function ajaxcall(url, data_array, div_id, callback_fn)    {   var d = ajaxcall(url, data_array, "rhs_info", "do_quicklist_actions");              d.done(function(data) {                         $.colorbox({href:"$data"})             });      

try removing quotes $data, like:

$.colorbox({href:$data}); 

Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -