<script type="text/javascript" src="https://applywith.daxtra.io/js/jquery.min.js"></script> <link rel="stylesheet" type="text/css" href="https://applywith.daxtra.io/css/applyWithDaxtra.css" media="screen" /> <script type="text/javascript" src="https://applywith.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"/>
The Apply With DaXtra widget currently supports the following sources :
Source | Name for Config | Type | Description |
---|---|---|---|
Local File | "device" |
Resume Picker | Pick a Resume from local storage |
Dropbox | "dropbox" |
Resume Picker | Pick a Resume from cloud service |
"facebook" |
Social Media | Load details as saved on Social Media | |
Google Drive | "googleDrive" |
Resume Picker | Pick a Resume from cloud service |
Manual Application | "manual" |
Social Media | Call onSuccess with blank resume data |
OneDrive | "oneDrive" |
Resume Picker | Pick a Resume from cloud service |
Apply With Seek | "seekAu" |
Resume Picker | Load details and Resume from seek. This requires passing your seek advertiserId. Please contact DaXtra Support for details |
var myConfig = { ... sources : ["dropbox","device"], };
The Apply With DaXtra returns the following data :
data:application/msword;base64,0M8R4KGxG...
var myConfig = { 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 */ };
There are two places you can set the config for the Apply With DaXtra widget :
If the same config option is set in both places, the one in the jwt hash will take priority.
The following items can be set in the config :Config Name | Type | Description |
---|---|---|
onError |
Callback | This is the main method that is used to pass back any problems from the Apply With DaXtra widget to your page. |
Optional settings | ||
selector |
String | This is the location where the widget will be rendered. It should be a jquery selector that will return a single location. Not needed if using autoForm. |
onSuccess |
Callback |
This is the main method that is used to pass back candidate / resume information from the Apply With DaXtra widget to your page. Not needed if using autoForm. |
onStart |
Callback |
This method will be called at the start of various steps. The call back will be passed a hash that contains : "state" and "detail". state will be one of : "click" or "parse" detail will contain details relevant to that action. |
submitHook |
Callback |
This method will be called when the application is sent for submission to capture. Object param will be data of candidate Return the object |
postSubmit |
String |
States the behaviour after the candidate has successfully returned from Capture. Value should be of 'refresh' or URL to be redirected to. |
sources |
Array of Strings | This allows you to choose which sources will be displayed on the Apply With DaXtra widget. If not passed all possible sources are added. |
parsingFlags |
String | This allows options to be passed to the underlying DaXtra Parsing engine. If only contact information is needed use "-pers_only". |
twoPhaseParsing |
Boolean | This will parse any CV in two phases. The first phase brings back basic contact information quickly. The second phase brings back full profile information. In this case your "onSuccess" method should be called twice with an additional "phase=1" or "phase=2" value. |
autoForm |
String |
Auto-generates a form in the given element. example: '#apply_form' with the code:
<form id='apply_form'></form> |
autoFormOptions |
Hash | Options for autoForm population |
autoFormOptions.autoPopulate |
Boolean | Should Daxtra auto-populate the generated form? |
autoFormOptions.columns |
Integer | The amount of columns in the generated form. |
onMatchVacancies |
Callback |
This callback will receive the returned json vacancies data. The call back will be passed a hash that contains : "Result" Result is an array of vacancies If this is not used, ApplyWithDaxtra will generate html in the given element provided in: matchVacanciesOptions.element |
matchVacancies |
Boolean | Should match candidate to vacancies? |
matchVacanciesOptions |
Hash | Options for matching vacancies |
matchVacanciesOptions.element |
Integer |
The element that the vacancy list should be inserted in to. Not needed if using onMatchVacancies. |
matchVacanciesOptions.limit |
Integer | The amount of vacancies to be returned. |