Hi, In a MVC Core & JQuery project, when saving the create person (professional in my case) does not reload the page. The console displays an exception that says location is not defined. What can be?
In CreateProfessionalModal.js :
this.save = function () {
//Save your modal here...
if (!_$form.valid()) {
return;
}
var professional = _$form.serializeFormToObject();
_modalManager.setBusy(true);
_professionalsService.createProfessional(professional).done(function () {
_modalManager.close();
**localtion.reload();**
}).always(function () {
_modalManager.setBusy(false);
});
};
EXCEPTION DATA:
Uncaught ReferenceError: localtion is not defined at Object.eval (eval at globalEval (<a class="postlink" href="http://localhost:62114/lib/jquery/dist/jquery.js?v=A5AzdeUZJBV1X2MpcCLHI_iCCTFSpBAn2RvZthKq5AM:338:5">http://localhost:62114/lib/jquery/dist/ ... q5AM:338:5</a>), <anonymous>:43:17) at fire (<a class="postlink" href="http://localhost:62114/lib/jquery/dist/jquery.js?v=A5AzdeUZJBV1X2MpcCLHI_iCCTFSpBAn2RvZthKq5AM:3182:31">http://localhost:62114/lib/jquery/dist/ ... AM:3182:31</a>) at Object.fireWith [as resolveWith] (<a class="postlink" href="http://localhost:62114/lib/jquery/dist/jquery.js?v=A5AzdeUZJBV1X2MpcCLHI_iCCTFSpBAn2RvZthKq5AM:3312:7">http://localhost:62114/lib/jquery/dist/ ... 5AM:3312:7</a>) at Object.deferred.(anonymous function) [as resolve] (<a class="postlink" href="http://localhost:62114/lib/jquery/dist/jquery.js?v=A5AzdeUZJBV1X2MpcCLHI_iCCTFSpBAn2RvZthKq5AM:3411:36">http://localhost:62114/lib/jquery/dist/ ... AM:3411:36</a>) at Function.handleResponse (<a class="postlink" href="http://localhost:62114/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.jquery.js?v=kgwv_knqbBGWov46FOIyKJkElndhius8GmAb4fiDnSI:126:34">http://localhost:62114/lib/abp-web-reso ... nSI:126:34</a>) at Object.<anonymous> (<a class="postlink" href="http://localhost:62114/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.jquery.js?v=kgwv_knqbBGWov46FOIyKJkElndhius8GmAb4fiDnSI:23:34">http://localhost:62114/lib/abp-web-reso ... DnSI:23:34</a>) at fire (<a class="postlink" href="http://localhost:62114/lib/jquery/dist/jquery.js?v=A5AzdeUZJBV1X2MpcCLHI_iCCTFSpBAn2RvZthKq5AM:3182:31">http://localhost:62114/lib/jquery/dist/ ... AM:3182:31</a>) at Object.fireWith [as resolveWith] (<a class="postlink" href="http://localhost:62114/lib/jquery/dist/jquery.js?v=A5AzdeUZJBV1X2MpcCLHI_iCCTFSpBAn2RvZthKq5AM:3312:7">http://localhost:62114/lib/jquery/dist/ ... 5AM:3312:7</a>) at done (<a class="postlink" href="http://localhost:62114/lib/jquery/dist/jquery.js?v=A5AzdeUZJBV1X2MpcCLHI_iCCTFSpBAn2RvZthKq5AM:8754:14">http://localhost:62114/lib/jquery/dist/ ... AM:8754:14</a>) at XMLHttpRequest.<anonymous> (<a class="postlink" href="http://localhost:62114/lib/jquery/dist/jquery.js?v=A5AzdeUZJBV1X2MpcCLHI_iCCTFSpBAn2RvZthKq5AM:9120:9">http://localhost:62114/lib/jquery/dist/ ... 5AM:9120:9</a>)
Thanks a lot!
Sorry for the question but I'm new to Metronic and I would like to know if you have or know about a tutorial, manual or examples like those offered by the official bootstrap page.
thanks!
Hi,
I have been able to resolve eliminating the dependency to "OwlCarousel ^ 1.3.2" that gave me problems, and installing the Bower libraries from the console
I should upgrade dependency to owl carousel 2?
Thanks
Could it be a problem with Bower? I tried to restore packages in the context menu on bower.json but nothing happened.
Yes, from that place
I just installed the 4.5.1 version AspnetZero with ASP.NET MVC Core and JQuery, I configured the connection to the database, I run it and when I try to log in, I get:
{"result": null, "targetUrl": "/ Account / ResetPassword? UserId = 1 & ResetCode = AF30607A68 & ReturnUrl =% 2FApp", "success": true, "error": null, "unAuthorizedRequest": false, " __ abp ": true}
Also in the login interface there are a lot files that can not be found:
simple-line-icons.css No se pudo cargar el recurso: el servidor respondió con un estado de 404 (no encontrado) font-awesome.css No se pudo cargar el recurso: el servidor respondió con un estado de 404 (no encontrado) famfamfam-flags.css No se pudo cargar el recurso: el servidor respondió con un estado de 404 (no encontrado) simple-line-icons.css Failed to load resource: the server responded with a status of 404 (Not Found) font-awesome.css Failed to load resource: the server responded with a status of 404 (Not Found) famfamfam-flags.css Failed to load resource: the server responded with a status of 404 (Not Found) bootstrap.css Failed to load resource: the server responded with a status of 404 (Not at GetScripts:993 app.js?v=RM2klNXaWg6FZqOnwu_gLXvc1roWd7WUl0teHSXkSOI:1016 Uncaught ReferenceError: jQuery is not defined
etc...
What could be the problem?
Thanks
ADDED I see that in wwwRoot the lib folder does not exist. In Solution Explorer it is with a red cross, but I don't know why
Clarifying:
Hi,
I have the same problem. I've implemented with pipes:
<input type="date" #dateBirthInput class="form-control" name="datBirth" [ngModel]="professional.dateBirth | date:'yyyy-MM-dd'" (ngModelChange)="professional.dateBirth = $event" >
and I've implemented with datetimepicker() with your solution from here: #2984.
The error is the same: "ERROR TypeError: this.dateBirth.toISOString is not a function".
But if I use ngx-bootstrap [http://valor-software.com/ngx-bootstrap/#/datepicker]) it's OK (<ins>but I don't want to use that because i need calendar popup</ins>).
<div class="form-group form-md-line-input form-md-floating-label no-hint"> <datepicker class="" type="date" name="dateBirth" [ngModel]="professional.dateBirth | date:'yyyy-MM-dd'" (ngModelChange)="professional.dateBirth = $event" required></datepicker> <label>{{l("DateBirth")}}</label> </div> Could you helpme, thks!