Questions tagged ajax

Explore the latest questions and answers asked by our top developers.

Direction url other type users

I am making a web page and there are different types of users.Dealer and worker.Only worker can access index.html page and only dealer can access odeme.html.I did this. index.html=http://localhost:8080 odeme.html=http://localhost:8080/odeme I’m a dealer and on the odeme.html page if i change the url,i can access index.html.I solved this problem with ajax call and location.href.But first […]

By FGY
Published
Categorized as ajax, angular, javascript, url Tagged , , ,

404 – Not Found even though the data is being retrieved at the backend

I’m tryinng to get a list using an Ajax request. Whenever I tried getting the list, it goes into the controller and get the data but there seems to be a problem while returning the data. It then throws a 404 Error. Ajax request $scope.getAllRegisters = function () { jQuery.ajax({ type: "GET", url: "./getRegisters", contentType: […]

By inquisitive
Published
Categorized as ajax, angularjs, java, spring Tagged , , ,

Best option to create a Table booking webapp

I have created a Table booking app for small scale restaurant in PHP. It is a website with dishes choose from menu . Main functionality of this webapp that customer can choose dishes and can give orders. Mainly I am using PHP/jQuery and Ajax. But I want to create same functionality in latest JS libraries […]

By Kulwant Singh
Published
Categorized as ajax, angularjs, javascript, reactjs Tagged , , ,

Merge Multiple Javascript code in one JS file

i have 3 javascript code and i want to merge them all in one .js file and then include in my website Code 1 : https://www.googletagmanager.com/gtag/js?id=UA-51600756-89 <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag(‘js’, new Date()); gtag(‘config’, ‘UA-51600756-89’); </script> Code 2 : <script type="text/javascript"> (function(c,l,a,r,i,t,y){ c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)}; t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i; y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y); })(window, document, "clarity", "script", "9zvbjor3cz"); </script> […]

By Poonam
Published
Categorized as ajax, angularjs, javascript, jquery, node.js Tagged , , , ,

Include Javascript inside JS file

How can we include javascript link inside .js file?. .js file support include, require or import like CSS or PHP? My Code : // Global site tag (gtag.js) – Google Analytics async src="https://www.googletagmanager.com/gtag/js?id=UA-51600743-15"; window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag(‘js’, new Date()); gtag(‘config’, ‘UA-51600743-15’); // Microsoft Clarity (function(c,l,a,r,i,t,y){ c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)}; t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i; y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y); })(window, document, "clarity", […]

By shanmuga pradeep
Published
Categorized as ajax, angularjs, javascript, jquery, node.js Tagged , , , ,

is there any way of handling 300 range status codes in API request responses in angular?

I have to handle status code 300 as response of api request and after send request postman and browser network tab shows response as shown image i try to handle request in res and error scopes but cant catch it. is there any way to handle it? Source: Angular Questions

By Mahesh Kularathne
Published
Categorized as ajax, angular, api, rest Tagged , , ,

Angular Onsen UI Ajax call

I am beginning to learn writing apps using Monaca and I have a sample application I am editing which is written in Onsen and Angular. I would like to be able to get data from a remote file on my server when needed as data will change regularly. What is the correct way to get […]

By RobertyBob
Published
Categorized as ajax, angularjs, monaca, onsen-ui Tagged , , ,

Choices.js: Add dynamic data into the select option

I’m using Choices.js for multi select and for a select with a search box. I am also using angular.js to populate the data but it doesn’t seem to work. Can anybody help me with populating the options dynamically. The data is being retrieved using Ajax. This is what I’ve tried <label for="docno" class="col-form-label">Name :</label> <select […]

By inquisitive
Published
Categorized as ajax, angularjs, javascript Tagged , ,

How to retain state of page using ajax and angular

I have two dropdowns i want to set selected value of dropdown as default value of dropdown even page is refreshed Personal Company 1) || (employershortlist &amp;&amp; employershortlist.length == 0)” value=”0″ &gt;select an option {{es.ShortListName}} [{{es.TotalCandidates}}] {{es.Id}} ts file ShortlistTypeChangeHandler() { this.employershortlist = []; this.cvSearchResults = []; this.cvCount = 0; //localStorage.setItem("ShortListType",JSON.stringify(this.shortListTypeId)) this.LoadUserShortLists(this.shortListTypeId); } onShortlistChangeHandler(shortlistId: any) […]

By Aleeza irum
Published
Categorized as ajax, angular, html, javascript, typescript Tagged , , , ,

Angular, add a post ajax call directly into an angular service

I have some old code which does ajax calls. I wrote a new angular 10 application, which needs to run the original ajax code directly into the angular service (per requirement). Is there a way to run an ajax call directly or a node module that can be used. Thanks for the help. Source: Angular […]

By bflow1
Published
Categorized as ajax, angular, angular-services, node.js Tagged , , ,
1 2 3 10

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq