The Apply With DaXtra widget can be embedded directly into your page. In the config you need to specific a jquery "selector" for where it will be put (If no selector is passed the widget will assume it should be displayed as a popup). If you want to use the output to fill a form or otherwise handle on your page you will also need to include an "onSuccess" method to the config. Examples of which can be seem on the demo pages.
<script type="text/javascript" src="https://applywith-sing.daxtra.io/js/jquery.min.js"></script> <link rel="stylesheet" type="text/css" href="https://applywith-sing.daxtra.io/css/applyWithDaxtra.css" media="screen" /> <script type="text/javascript" src="https://applywith-sing.daxtra.io/js/applyWithDaxtraClient.js"></script> <script> var config = { selector: "#myJQuerySelector", onSuccess: function (response) { //handle response here to populate forms etc } }; var awd = new ApplyWithDaxtra(jwt,config); </script> <div id="myJQuerySelector"/>
var config = { selector: "#awdDiv", // jQuery selector for where to embed the widget. onSuccess: function (response) { // Called everytime when widget gets response from any social media or DaXtra parsing server myDataHandler(response.resumeData); }, /* * response contains : * resumeData : structured Resume data * source : name of the source the data came from * binary : (optional) binary version of resume as string * name : (optional) name of the original resume file */ onError: function( // Callback if something goes wrong. See the section on ErrorHandling type, // type. E.g : "auth", "config", "onSuccess",... message, // Short english description of error details){} // Error Object / hash of details };
An onError callback can be passed to the config :
var config = { onError: function( // Callback if something goes wrong. See the section on ErrorHandling type, // type. E.g : "auth", "config", "onSuccess",... message, // Short english description of error details){} // Error Object / hash of details };
Type | Description |
---|---|
auth |
There was an error authenticating with source. |
config |
An invalid config option was passed. E.g. a source that is invalid, or and invalid jwt token was passed |
onError |
There was an error on calling the onError callback. (Unless the type was 'onError', which is not reported) |
onSuccess |
There was an error on calling the onSuccess callback |
parse |
There was an error parsing a resume |
upload |
There was an error uploading a resume. (Or downloading from a remote source) |