Hi guys, on this url: tickets.fk-austria.at/shop?shopid=4&wes=9845ecec4 how I can achieve it wit Javascript, that I click automatically on sector 102 in the SVG and then on the pop up on "Plätze wählen" which brings me to the next site?
And how do I get directly to this URL? (or whatever it is) after clicking on 102 and "Plätze wählen?"
1 hour later…
user13780186
08:35
How to fix the how to fix Access-Control-Allow-Origin in angular using fetch?
What I did is like this fetch(`dct.dhl.com/data/postLoc?cntryCd=KH`).then(res => console.log(res))
Notable Changes Experimental Web Streams API Node.js now exposes an experimental implementation of the Web Streams API. While it is experimental, the API is not exposed on the global object and is only accessible using the new stream/web core module: import { ReadableStream, WritableStream } from 'stream/web'; // Or from 'node:stream/web' Importing the mod…
@RanaShaharyar Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
@RanaShaharyar "factories" is a design pattern, depending on the source, you can find examples when it's appropriate to use. The biggest challenge of a documented design pattern is to use it appropriately
Consult "Design Patterns" book from "Gang of Four" or use ... wiki/articles somewhere on the web
@LiXiuYing what is your answer? I will "evaluate" it :P
tbh all back-end endpoints must have a token-based csrf policy in effect for non-GET requests.
@LiXiuYing are you learning programming at your own? or just to explore it while you have another profession?
it is feasible to learn programming by online tutorials, but they don't cover many cases. I advise to enroll in IT based courses (either at university or as "adult school" in the evenings)
currently, for front-end Vue.js is place to be IMO. Please note that it is a personal recommendation. This does not mean that React or Angular is garbage. Although I am not so lenient towards Angular. I would advise to not use that heh. A best answer for you is that you comprehend what each framework does. With this information, you can decide at your own which one is more suitable for a project. I always look at the goal, what I could use to reach it. I don't start by preference.
for back-end, there are many platforms you can use. It also depends of the project. Node.js is more lenient for socket based communication whereas Jakarta EE or ASP.NET might be useful for high data volumes and allows more people to step into the project.
@KarelG "[...] which one is more suitable for a project.".. but how? My main problem with new frameworks is that most of the time both documentation and "userbase" (more the SaaS provider) says that "everything is possible" and "easy" and "secure"
at most 3 weeks in the project you notice that was... a lie
you can only know a framework if you have started a mini project with that. I have a small project and written a solution for that in multiple frameworks. It helps me to figure out its capability, to compare each other and other things. It is time consuming yes. Although an investment for the future.
Research is a thing you know. When there is a big project for my team, I start with its analysis and based on the requirements, I extract some general purpose features. then I let some people work a solution on that on framework X. Then we evaluate these.
Although not all companies are lenient towards that. Managers wants to see results, they don't care about these first steps
Protoyping a small project is a good idea, thought my company is much to small to do multiple prototypes and evaluate them.
I tend to stick to whatever worked last (postgres db, laravel backend, react frontend, react-native mobile), if it's not a requirement from the very beginning like Java Spring MVC or "something with python".
@ShawnEary Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
@ShawnEary Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
I have a trivial mjs file in that is shared between a Node.js backend and Next.js frontend. Backend loads the mjs file without issue, but frontend app barfs with this error: Module not found: Can't resolve 'fs' Path from backend is "../modules/helper.mjs". Path from frontend is "../../modules/helper.mjs" Trivial helper.mjs file follows:
I noticed something about how I should be calling my getConfig function inside a getStaticProps func on the Next.js side, but so far, that hasn't worked out for me and I still get that "Can't resolve 'fs'" error: https://flaviocopes.com/nextjs-module-not-found/ Not sure why Node.js can load the 'fs' NPM module from inside my helper.mjs and Next.js won't do that for me.
The Beta channel has been updated to 92.0.4515.101 for Windows, linux and Mac. A full list of changes in this build is available in the log. Interested in switching release channels? Find out how here. If you find a new issue, please let us know by filing a bug. The community help forum is also a great place to reach out for help or learn about common issues. Srinivas Sista …
Right now I have this code:
JQuery:
<script>
function promoFade() {
$('#promo').delay(10000).fadeOut(150).delay(10000).fadeIn(150).delay(10000).fadeOut(150).delay(7000).fadeIn(150);
};
setInterval("promoFade()", 0);
</script>
HTML:
<script src="https://ajax.googleapis.com/ajax...
I am searching through hidden data to display items that have a value
$('#dpicker').val()
If the value I am searching for is lets say for example 07/07/2021 (that is a Wednesday), it will get appended to a span like so:
if (searchData.includes(api.search())) {
$('#under_txt').html("Day Of: " + moment($('#dpicker').val()).format("MMM Do YYYY"));
return true;
}
Instead of having the span show that Wednesday date, how can I have it show the Monday date corresponding with that date. All items that will show from the search will have the dates 07/05/2021 - 07/09/2021
So ideally it would show 07/05/2021 if any date other than Monday in that week was used for the search
facepalm I forgot .startOf('week') will reveal Sunday... Fixed with
$('#under_txt').html("Week Of: " + moment($('#dpicker').val())startOf('isoWeek').format("MMM Do YYYY"));
Hi everyone! We've just released Chrome Beta 92 (92.0.4515.101) for Android: it's now available on Google Play. You can see a partial list of the changes in the Git log. For details on new features, check out the Chromium blog, and for details on web platform updates, check here. If you find a new issue, please let us know by filing a bug. Krishna Govind Google Chrome