Questions tagged [javascript-framework]
A JavaScript framework is a library of pre-written JavaScript which allows for easier development of JavaScript-based applications, especially for AJAX and other web-centric technologies.
1,008
questions
0
votes
1
answer
31
views
ReferenceError when trying to add logic to a Fresh page
I'm trying to create a website with the Fresh framework, in particular I was trying to put a simple drop-down feature of a button inside a navbar, but I'm not sure where to put the code needed. I've ...
-2
votes
1
answer
34
views
A good way to authenticate a javascript frontend in django-rest-framework
What's an excellent method to implement token-based httpOnly cookie authentication for my drf API for a javascript frontend
I looked into django-rest-knox for token-based authentication but its built-...
3
votes
1
answer
97
views
Why Svelte is called a compiler while other frameworks are called transpilers
I recently got this question in school about frontend javascript frameworks, "Why are other frameworks that convert code into vanilla javascript called transpilers, but Svelte is called a ...
0
votes
1
answer
174
views
How to import vForm globally in index.js using Vue js 3
I want to register vForm in index.js globally in Vue js 3 but not work, while using vuejs 2 it work like Vue.component(Form) in Vue Vue js 3 how to define once and usable in all window or component, ...
0
votes
0
answers
47
views
Shared Javascript/CSS libraries across apps best practices
I have a variety of web applications (PHP, ASP.NET, Angular, and React) hosted under different sub-folders on a single sub-domain on the same server.
I'm currently bundling Bootstrap CSS/JS and jQuery ...
1
vote
3
answers
232
views
How can I comment out some HTML code defined into the return() method of a React component? [duplicate]
I am very new in ReactJS and I am facing this problem: how to comment out some HTML code defined into the render() method?
For example I have a component like this:
import React, {Component} from '...
0
votes
0
answers
37
views
Can i deploy a website with different copies, for example with differents JS Frameworks but with same website content?
im a SE beginner and i want to showcase my knowledge on my portfolio website.
My unique idea is to show my different tech stacks directly on that website.
For example you come to my website and on top ...
0
votes
1
answer
206
views
Resetting React Form values after validation
have that problem with resetting the values of the input fields in the form. and wanted to ask if somebody knows a better and way to do that instead of just making 'useState' for every field...
...
1
vote
2
answers
270
views
How can remove the port number from live vue site url?
while running the yarn serve I don't what to display the port no from the URL. Now, this is showing like https://example.com:8080. I want to access them from https://example.com.
vue.config.js
module....
2
votes
1
answer
1k
views
NodeJS SyntaxError: Unexpected token . How can I try to fix?
I am very new in NodeJS and I have the following problem running a node application:
andrea@ubuntu:~/Documents/XXX/custom-dashboard-be$ npm run dev
> custom-dashboard-be@1.6.0 dev /home/andrea/...
0
votes
1
answer
122
views
Angular(+11) Mono Repo different from other versions
What is Angular(+11) Mono Repo and how is it different from the other versions of Angular and should you know TypeScript for Angular (+11) mono Repo? I'm trying to find a course to learn more about ...
2
votes
1
answer
2k
views
Bootstrap react ./node_modules/bootstrap/dist/js/bootstrap.min.js Module not found: Can't resolve 'jquery'
Error :
I am geeting following error while adding navbar using bootstrap.
If I did not import jquery part it works but collapsing is not working but when I added jquery part it is giving following ...
0
votes
1
answer
26
views
Vuejs didn't install basic html files and folders after creating new Project
please I'm new to Vuejs and after installing Vuejs/CLI i created a new project with vue create test then i prompt me to choose between three options which are
> Default ([Vue 2] babel, eslint)
...
0
votes
0
answers
52
views
incoperate a code from a component to another component in a vue-app?
edited 2021-01-16
Hi fellow programmers!
I have a problem with my vue-wheater-app. I want to be able to add quotemachine code to my london.vue code. But I do not know how to do that in a good way.
The ...
2
votes
1
answer
3k
views
Why I have this problem with PrimeNG FileUpload component related to the url parameter that referer to a page that doesn't exist
I am working on an Angular application using PrimeNG and I am finding some difficulties with the PrimeNG FileUpload component, this one: https://primefaces.org/primeng/showcase/#/fileupload
I was ...
0
votes
0
answers
17
views
Programatically set controlled form values from a Chrome extension
I'm trying to write a Chrome extension that makes the process of uploading to various social media platforms a little smoother.
This requires being able to set form inputs such as the Title and ...
-4
votes
1
answer
142
views
Which Javascript framework is best for my fast loading image rich portfolio website [closed]
I want to rewrite my portfolio. I want my website to load faster than the current version. Also my portfolio will contain lots of images and I have used CDN for it. For my current version I used ...
0
votes
1
answer
456
views
How react-router works on generating the routes from an array?
So basically how react-router works on generating the routes from an array? I have been building this recipe app but generating routes is what got me stuck. From some reason the routes dont get ...
0
votes
0
answers
106
views
How to download React components for offline use
Is there a way to download React components and also have full javascript functionality? For example, a table component that still can be sorted without a network connection. Offline-first seems to ...
0
votes
1
answer
35
views
List isn't dynamically displayed in vue.js
I'm new to vue.js and learning on my own with the vue doc, youtube videos and such. I've been searching for a while and looking at youtube tutorials and haven't found an answer so far, hope you guys ...
0
votes
2
answers
96
views
Why am I obtaining this error message retrieving objects from a JSON file after this FormArray changes in my reactive form?
I am working on an Angular project using reactive form and introducing FormArray (beacause I have a situation where a field is dinamically created as multiple fields) I am facing the following problem....
3
votes
2
answers
4k
views
Is it possible to directly connect frontend to the database?
I came across this joke the other day. Someone on the internet was asking why do we need a backend, just connect the frontend to the database.
It seemed funny at first, but really is it possible to ...
2
votes
2
answers
4k
views
How to set the red border of invalid p-inputNumber PrimeNg form component via CSS?
I am working on an Angular project using PrimeNG and I am going mat trying to correctly set the style for some invalid form field.
In the specific in my form I have field of this type:
<input id=&...
1
vote
1
answer
193
views
How to calculate the monthly payment needed to reach a certain amount in savings account?
I am trying to use Javascript to get the monthly payment needed to reach a certain amount of money in a savings account given the annual interest rate, savings starting amount, final amount, and the ...
0
votes
1
answer
113
views
How can I get content type from response when there is a proxy ajax call in extjs?
In the below code, I make a proxy ajax call to the server. When the session is active, I receive the expected json format but when the session is inactive, I receive a html file as response.
Ext....
0
votes
1
answer
35
views
Closing Embedded Demo Player After Completion
Let me begin by saying I am NOT a developer. I work in digital banking and mainly focus on SEO and Marketing. I have embedded this demo into our live site for training and I would like it to close ...
0
votes
1
answer
670
views
How to check if the response received from server is html or json and find the html form by name in extjs?
I have an extjs application that sends an ajax request to the backend. The backend will send the objects which are json format if it is an active session and a html page if the session is inactive
I ...
0
votes
1
answer
220
views
preventDefault() in Event Handler Suppresses Change Detection
I created an attribute directive that is designed to work with HTML <input> elements. On every key press, I wish to disable the browser's default behavior and implement my own special behavior.
...
2
votes
0
answers
151
views
Component view doesn't render with React Navigation
I'm using React Navigation v5 for navigation in my app. User signs up to the application and right after signing up, the user is navigated to the ExtendedRegisteration Screen. After extended ...
4
votes
4
answers
13k
views
Connecting Database with Svelte
I'm new to using Svelte and would like to create a ordering website using Svelte. I know that I will need a database to keep track of the order, customer name, price etc. I have used MySQL before but ...
0
votes
0
answers
80
views
AngularJS $http request OPTIONS and POST
I'm trying to get the POST error response in $http AngularJS, but when I watch the response variable in catch, I get the preflight OPTION response. How can I get the POST response, instead of OPTION?
...
1
vote
1
answer
2k
views
Angular: Difference between Export and Public Class?
In Angular, what is the difference between an export class, and a public class?
"Angular imports/exports are used to make the content of one module available to be used in another module. So how is ...
2
votes
1
answer
75
views
Performance: listen to all form elements changes to sync all dynamic attributes with new data
There is a simple form:
<form>
<input type="checkbox" name="checkbox"> Checkbox
<input type="email" name="email">
<button>Submit</button>
</form>
Task ...
0
votes
2
answers
783
views
Is Vue.JS, React or Angular cross-platform?
After reading many articles, comparing Vue.JS vs React vs Angular vs jQuery, I came across articles that say jQuery is cross-platform.
Is Vue.JS, React or Angular also cross-platform? I could not ...
0
votes
2
answers
430
views
Sharing data with @Input and @Output in Angular components
I can't figure out why an event is required to share from child to parent (@Output), while @Input() works fine for parent to child.
What if we want to share data with parent component without ...
0
votes
2
answers
2k
views
How to get a user’s choice with onPress props in React Native
Good day everyone. please what is React Native’s replacement of React’s e.target.innerText? I’m trying to get what a user click on from TouchableOpacity component. I’m building a React Native quiz app....
0
votes
2
answers
42
views
I don´t know how select HTML Class attribute handled in Javascript toolkit Framework
I am using the Electron Framework in Javascript called Xel toolkit, and I have the following syntax from main.js:
document.querySelector("menu.selected").className.remove('selected')
Having some Xel ...
-1
votes
1
answer
272
views
Can I create a login page with HTML/CSS and javascript and later add VUE to it?
For a school project I have to create a web based application for a library system where the librarian can login which takes them to a page where they can add/remove/edit books. I am in charge of the ...
4
votes
2
answers
4k
views
In Vue can you call the created() function from a method?
So I'm making an app in vue, on page load it takes a cookie with the user's zip and performs a search using that zip, but the user is also allowed to change that zip if its wrong so I want to be able ...
0
votes
2
answers
45
views
Why ng-show is not hiding a div and its content into my page?
Gi everyone,
I am very new in Angular and I am finding the following problem trying to hide a div and its content into a view. I am trying to use the NgShow directive as explained in this tutorial: ...
1
vote
1
answer
565
views
Use v-if for a specific element in a v-for
So I have the following HTML on my Vue page
<div v-for="profile in lab.profiles" v-if="edit || profile.active" class="lab-tests-row-div" @mouseover="">
<div class="clickBox" :...
-1
votes
2
answers
2k
views
What is Isomorphic way of Rendering in ReactJS
Javascript frameworks are not 'Search-Engine Friendly'. Search Engines has a trouble while loading the data Dynamically and finally frameworks create the markup.
This problem is resolved in React in ...
0
votes
0
answers
295
views
How can I recognize the event related to the click on the default first element into a dropdown menu?
I have the following problem using Angular and the PrimeNG DropDown element, this one: https://www.primefaces.org/primeng/#/dropdown
Note before to start: as you can see in the previous page this ...
1
vote
1
answer
6k
views
Why am I obtaining this ERR_CERT_AUTHORITY_INVALID error calling an HTTPS API using a self signed certificate from an Angular service?
I have the following problem trying to call an external REST HTTPS API from an Angular service:
I have this Angular service:
@Injectable()
export class MailDetailProtocolloService {
private ...
1
vote
1
answer
151
views
Why am I obtaining this error trying to bind the properties from an Angular parent component to a child component?
I am very new in Angular and I am finding some dificulties trying to add a component and use it into a project on which I am working on.
I have a parent component view that contains thE referenceS to ...
0
votes
2
answers
1k
views
How can I create an Angular brand new component into this folder? Why am I obtaining this error message using Angular CLI?
I am an absolute beginner in Angular and I am finding some problem creating a component using the Angular CLI into an Angular project on which I am working on.
I manually created a subfolder (into my ...
0
votes
1
answer
1k
views
How is it working this Angular pipe used to perform a dynamic search of terms inserted into an input tag in my view?
I am very new in Angualar and I am following this official Angular tutorial: https://angular.io/tutorial/toh-pt6
and I have some doubts about how it works, this is my commented code of the ...
0
votes
1
answer
163
views
What is the correct meaning of this Angular async pipe?
I am very new to Angular and I have the following doubt about this piece of code.
In a view I have this code:
<li *ngFor="let hero of heroes$ | async" >
<a routerLink="/detail/{{hero.id}}"...
0
votes
3
answers
2k
views
Single Page Application on embedded systems [closed]
I am working on a project where we are running our web server on an embedded system so I have memory constraints but is there a way for me to build a Single Page Application on this web server ? If, ...
0
votes
1
answer
89
views
Angular.js 6.1.0 - Variable not being passed to the view
I'm revising my angular by working through a tutorial:
https://www.youtube.com/watch?v=z4JUm0Bq9AM
https://coursetro.com/posts/code/154/Angular-6-Tutorial---Learn-Angular-6-in-this-Crash-Course
I ...