Base solution for your next web application

Activities of "jbalda"

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>)

Question

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!

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

Showing 1 to 3 of 3 entries