网上体育投注

Questions tagged [javascript]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). This tag is rarely used alone but is most often associated with the tags [node.js], [json], and [html].

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

In django how to send json object using XMLHttpRequest in javascript

Please Help me with how to send json object and receive it it views.py in django. my script: var obj={ 'search_name':search_name,'search_email':search_email }; jsonobj=JSON.stringify(obj); //alert(...
0
votes
0answers
9 views

Expected server HTML to contain a matching <tag> in <tag>

We are using nextjs and getting this error at page refresh (or first load) My error is: react-dom.development.js:88 Warning: Expected server HTML to contain a matching <tag> in <tag>. ...
-1
votes
0answers
14 views

REACTJS: TypeError: posts.map is not a function

I know there are a lot of questions about this but after being for one hour trying to solve it I couldn't. I am using Reducer hook And Context Hook (just FYI) in my app and on a Postlist Component, ...
1
vote
1answer
11 views

Targeting only the clicked item on a mapped component ( React quiz trivia App)

i'm trying to develop an App with React using the Open trivia Api. I have mapped a button component (using material ui) to show the different answers for each question. I'm struggling now to target ...
0
votes
0answers
5 views

Is it possible to share resources between single page applications (SPAs) running in different tabs in the same browser?

Is it possible to share resources (e.g. memory) between single page applications (SPAs) running in different tabs in the same browser? Example A user opens up my SPA in a tab and some data is ...
0
votes
0answers
8 views

Question alert with confirming operation in JS

I am beginner web developer. I have dropzone in my website. It's work fine. I have this code in my website: Dropzone.options.dropzone = { maxFilesize: 50000, maxFiles: ...
0
votes
0answers
9 views

Using JavaScript/JQuery to trigger CSS keyframes via scroll position

I have a page which is 4 viewports high (400vh) - every viewport (25% scroll), there's anther "scene", where every element on the page is in a different place. What I want to do is animate between ...
0
votes
4answers
26 views

Wait for for loop to be executed in javascript

I have a for loop that creates products in the database and also want that productsarray to be pushed in another collection ,so I want it to store in a temporary array,but before executing the ...
-1
votes
0answers
10 views

Objects are not valid as a React child (found: [object Promise]). If you meant to render a collection of children, use an array instead.(NEXT JS)

i am having this problem in my nextJS project and its frustrating me... when i try to render a component in my _app.js . this is the value of the (this.props ==> {"response":"...
0
votes
0answers
7 views

Adding WASM file odoo 8

On Odoo 8, I have to add a WASM file in the same folder as JS which is /web/js/web.assets_backend I've tried to add a line in template id="assets.backed" in the XML file but nothing works
0
votes
0answers
3 views

d3 geoPath is not working with Angular 9, geoPath is not a function overload

I am trying to load SVG map of India with d3 in angular. I am new to d3 using tutorial I made up below code. But path variable is not working it keep poping error (local var) path: d3.GeoPath No ...
0
votes
0answers
23 views

invalid regular expression for matching phone numbers

I have the following function to match phone number in my country: function extractPhoneNumber(bio) { const regex = '/(\+62 ((\d{3}([ -]\d{3,})([- ]\d{4,})?)|(\d+)))|(\(\d+\) \d+)|\d{3}( \d+)+|(\...
-2
votes
2answers
26 views

How do I create an HTML element that remains on the page and is unaffected by scroll?

I want to create a button that remains on the screen, no matter how much we scroll through the page, like the button is stuck on the display. Is there a way to do this?
0
votes
0answers
7 views

Getting the graph node positions in a rendered DOT

I am trying to read a dot file, parse and render it, and then get the position of each node (x,y) in the page. For reading, and rendering the DOT file, i found this post. // Parse the DOT syntax ...
-1
votes
1answer
16 views

how to design <div> that contain items but when it is overloaded it should be divided horizontally like pages or scroll?

I want to design a div container that contain other elements which are of equal width and height and if the elements are more then they should be equally divided or splitted horizontally inside that ...

15 30 50 per page
1
2 3 4 5
134868