|
JavaScript is a dynamically typed language based around event driven programming. Everything is based around the idea of callbacks. If you are writing NodeJS or only targeting modern browsers then you get a 'Promise' - which is an object that lets you call a 'then' member to give it a callback. It's all centred around an event loop. (Bottom line is: understand what a callback is)
Do yourself a favour, and unless you're given no other choice - avoid NodeJS like the plague. Every other server side technology ranging from Python Applications written in WSGI, ASP.Net and JSP, through to FCGI written in C (no that last one isn't an exaggeration, the logic is easier to follow) are easier to work with and understand.
I would say the place to start with client-side JavaScript is in understanding the DOM, and how to program it. I actually have a hunch that custom elements would be a good place to start if you're already knowledgeable in how to program. To change the appearance of anything in the browser though you probably need to also understand CSS - which in my opinion is actually the harder challenge as it's a declarative language that doesn't agree with most people.
If you can master both you can move onto manipulating the CSSOM with JavaScript.
|
|
|
|
|
Thank you. Understanding DOM programming is a good idea. I'll definitely look into that.
I am not the one who knocks. I never knock.
In fact, I hate knocking.
|
|
|
|
|
Read one of the HTML(5), CCS(3), JavaScript "in 24 hours" books and start with the basics.
Learn them in this order otherwise: HTML; CSS; JavaScript (one builds on the other: content -> presentation -> interaction).
Some of the smartest and best people in the field don't use any "frameworks" (like JQuery).
Decide for yourself, later.
Project Silk: Client-Side Web Development for Modern Browsers
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
modified 9-Nov-17 11:31am.
|
|
|
|
|
I want to simulate a virtual mouse with cursor,so i can use code to control it to do some automation service software, It doesn't conflict with real mouse. Does everyone know how to do this? thx.
|
|
|
|
|
Step 1: see the bold, red text a little above your message.
Step 2: do what it says.
|
|
|
|
|
not understand what you say, can you point it in detail?
|
|
|
|
|
Look at the top of this page where it says Welcome to the Lounge
Read the message below it.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
What if I want to simulate reading the message, how do I do that?
|
|
|
|
|
Also, it'll help to tell us what the use case for this is in better detail. If any of the old timers here get the feeling you're trying to make malware, you're not gonna get much help.
Jeremy Falcon
|
|
|
|
|
Put your question in the right forum. There is one for hardware, go there.
|
|
|
|
|
While the others here have redirected you to ask the question in the right place I will go easy on you and answer your question.
No - not everyone here knows how to do this.
Does that help?
I'm pretty sure I would not like to live in a world in which I would never be offended.
I am absolutely certain I don't want to live in a world in which you would never be offended.
Freedom doesn't mean the absence of things you don't like.
Dave
|
|
|
|
|
Member 12850955 wrote: I want to simulate a virtual mouse ... It doesn't conflict with real mouse
Presumably you already verified that it cannot be run via the command line (no mouse.)
I would guess in general that is not possible. Certainly difficult.
From the debugging point of view you would still want to 'turn on' the real mouse so you could see where the pointer to the application is going. When not doing that then the mouse pointer for the application could not be visible as it would cause confusion.
I know there is automation software that uses the mouse. But it uses the real mouse. If you run it on a client machine you just sit back and watch until it is done.
|
|
|
|
|
Thank you for your reply, i have get the idea how to do this
|
|
|
|
|
|
Nice, but that must a REALLY nice public road.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
We have to ask if there are any CP members living outside Vegas in the direction of Pahrump.
|
|
|
|
|
I currently live in Henderson and drove that road fourteen years ago when my then father-in-law lived in Pahrump. I have no recollection of the condition of the road, just memories of several Nevada drivers who blatantly broke traffic laws (including one who drove past a stopped school bus with flashing lights; one who didn't even slow for a stop sign and one who cut me off when changing lanes.)
|
|
|
|
|
So... pretty much like any other road then?
I'm pretty sure I would not like to live in a world in which I would never be offended.
I am absolutely certain I don't want to live in a world in which you would never be offended.
Freedom doesn't mean the absence of things you don't like.
Dave
|
|
|
|
|
Joe Woodbury wrote: one who drove past a stopped school bus with flashing lights Time to mount anti-tank weapons on school buses. I farking hate asshats who do that.
Software Zen: delete this;
|
|
|
|
|
And those who race through school crossing zones.
|
|
|
|
|
Agreed. I was hit by a car in a crosswalk next to my school when I was 13. The only reason my leg wasn't broken was the gym bag I was carrying on the side of me the car hit.
Software Zen: delete this;
|
|
|
|
|
Jörgen Andersson wrote: The best part is that they made the records on a public road
Sure, it's ok when they do it on a public road...
|
|
|
|
|
Apparently the owner of the car is some Hollywood hot shot that knows how to pull strings.
Does that count as a bribe officer?
|
|
|
|
|
Paul Walker?
No, that can't be it...
|
|
|
|
|
Unconfirmed, but it seems like the organisers were Jeffrey Cheng, John Morris, and Mark Stidham. Whoever they are.
|
|
|
|