I sent an email with a link to the source code
I have tried that before and it did not work either. Seems odd to me. I would get $ is not defined
the files are under Areas/App/Views/FormQuestionaire.
I have tried to add JQuery to my page but than I get other errors that pop up. So I assumed it was added by default somewhere within the project.
What is the proper way to add JQuery?
I have a strange issue. I am currently using the latest version of ASPNETZERO JQuery version. I am attempting to get SurveyJS to run properly. My issue is I am unable to get it to render and I believe it has something to do with JQuery. Attached is my view code
@using Service.Authorization @using Service.Web.Areas.App.Startup @{ ViewBag.CurrentPageName = AppPageNames.Common.FormQuestionaire; } @section Scripts { <script src="https://surveyjs.azureedge.net/1.7.4/survey.jquery.js"></script> <script src="https://surveyjs.azureedge.net/1.7.4/surveyjs-widgets.js"></script> <script src="https://surveyjs.azureedge.net/1.7.4/surveyjs-widgets.js"></script> <script abp-src="/view-resources/Areas/App/Views/FormQuestionaire/Index.js"></script> } @section Styles { <link href="https://surveyjs.azureedge.net/1.7.4/modern.css" type="text/css" rel="stylesheet" /> @<link href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/themes/smoothness/jquery-ui.css" type="text/css" rel="stylesheet" />@ }
<link href="https://surveyjs.azureedge.net/1.7.4/modern.css" type="text/css" rel="stylesheet" />
<script> //(function ($) { //jQuery($ => { $(document).ready(function () { alert("Inside Jquery");
Survey
.StylesManager
.applyTheme("modern");
var json = {
};
window.survey = new Survey.Model(json);
survey
.onComplete
.add(function (result) {
document
.querySelector('#surveyResult')
.textContent = "Result JSON:\n" + JSON.stringify(result.data, null, 3);
});
survey.render("surveyElement");
});
//});
</script> <div class="kt-content kt-grid__item kt-grid__item--fluid kt-grid kt-grid--hor"> <div class="kt-subheader kt-grid__item"> <div class="@(await GetContainerClass())"> <div class="kt-subheader__main"> <h3 class="kt-subheader__title"> <span>@L("FormQuestionaire")</span> </h3> <span class="kt-subheader__separator kt-subheader__separator--v"></span> <span class="kt-subheader__desc"> @L("FormFieldsQuestionaireHeaderInfo") </span> </div> <div class="kt-subheader__toolbar"> <div class="kt-subheader__wrapper">
</div>
</div>
</div>
</div>
<div class="@(await GetContainerClass()) kt-grid__item kt-grid__item--fluid">
<div class="kt-portlet kt-portlet--mobile">
<div class="kt-portlet__body">
<div id="surveyElement"></div>
<div id="result"></div>
</div>
</div>
</div>
</div>
From this you can see I am referencing the JS files in the @section Scripts. When I run the code in the browser I am getting the error $ is not defined. I have attempting to define in my scripts section (function ($) jQuery($ => {});); with no luck. How can I ensure JQuery is references properly?
I agree an update would be nice
I was doing some reading around a rewrite of ABP framework. I was curious if aspnetzero was planning to move to the new framework allowing for Microservices and MongoDB? If so, do you have a target timeframe for when this will be available?
we figured out the issue late last night
I did and I followed it, but when I publish I get internal error but no indication of where the error is or logs that I can find.
Hello, We have been developing a new application locally and have decided to try and run it in Azure App service. We compile the code using node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng build --prod this is due to resource issue we have with ng build --prd.
We compile the code, ftp it to Azure and on first run its throws a popup box internal error. When I take the same code base and running locally using httpserver it runs okay. Any pointers on how to figure out what is wrong.
You can see the site at http://dev.takldit.com
Thanks. I am not wanting to use that theme. I am wanting to make the background color darker so you can see the box around forms/grid. What I am working with seems to blend in and its hard to see the different sections/forms. So I would like to change the color or set a setting so it will pop out more. Any thoughts?