
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
djsonloader
Advanced tools
DJsonLoader is a jquery add-on for loading data in JSON format into forms or other HTML tags, NOW SUPPORTS AJAX and customization.
Version 1.2.0
DJsonLoader is a jquery plugin for loading data in JSON format in forms,select options or other HTML tags, the data can be downloaded whit AJAX(v1.1.0), in addition the data can be loaded in any form field or other tag(input, select, textarea, a, img, p, span, iframe, ul, ol), simply, quickly and flexibly.
It has other features like:
Using the plugin:
$(container).djload(json,options);
It is invoked on forms, select fields or any other html container (div, nav, section, article, etc.) as a function to be called when needed, it has the following functions: load JSON data in its container, load options from a select , Reset the data of its container and modify the default parameters.
Loading a form, using json data:
$("#myform").djload(data);
Loading a form, specifying a function that is executed at the end of data loading:
$("#myform").djload(data,{
onLoad:function($container){
$container.find('select').trigger('chosen:updated');
}
});
Loading a form, resetting the data before loading:
$("#myform").djload(data,{
Reset:true,
imgPrefix: 'assets/images/'
}
});
The imgPrefix option especify a path for the images.
Example of valid json data:
var data= {
firstname:"David",
lastname:"Jerez",
age:25,
sex:"M",
notify:true,
obs:"pending certification",
languages:[1,4,6],
lastpost:"DJsonLoader!",
photo:"xjcush2.jpg",
accessdata:{
login:"admin",
password:"123",
idrole:3
}
};
To load data from the object accessdata use prefixes: 'accessdata.login' , 'accessdata.password' Load the options of a select, using data from an array:
//simple
var levels='["A","B","C","D"]';
$("#levels").djload(levels);
//object
var fruits=[{id:1,name:"banana",last:false},
{id:2,name:"pineapple",last:true},
{id:3,name:"lemon",last:false}];
$("#fruits").djload(fruits,{
slabel:'name',
svalue:'id',
sselected:'last'
});
Load html using ajax(v1.1.0):
$('#ajaxform').djload({},{
ajax:true,
method: 'get',
url:'https://jsonplaceholder.typicode.com/users/1',
onError: function(result){
alert('Error on load ajax data!');
}
});
Load select options using ajax(v1.1.0):
$('#ajaxselect').djload({},{
ajax:true,
url:'https://jsonplaceholder.typicode.com/users',
svalue:'id',
slabel:'name',
Adata:[email,phone],
onError: function(result){
alert('Error on load ajax data!');
}
});
You can find html examples on DJsonLoader download.
The DJsonLoader jquery plugin is written by David Esneyder Jerez Garnica. Email
Copyright (c) 2023 David Esneyder Jerez Garnica. Released under the GPL v3 license.
FAQs
DJsonLoader is a jquery add-on for loading data in JSON format into forms or other HTML tags, NOW SUPPORTS AJAX and customization.
We found that djsonloader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.