Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: How do I mix up Perl and jQuery (for beginners)

by sundialsvc4 (Abbot)
on Aug 21, 2013 at 15:17 UTC ( #1050368=note: print w/replies, xml ) Need Help??

in reply to How do I mix up Perl and jQuery (for beginners)

Yes, see if your boss will spring for some training.   Maybe at a local community college?

Let me see if I can set the stage for you a bit.   In a modern web application, there are two programs in play:

  1. The client, written in JavaScript and probably using some client-side toolkit such as JQuery, which runs on the end user’s computer, and ...
  2. The server, written (partly) in Perl, which delivers all of the web-page content to the client side and which then responds to incoming requests (AJAX ... JSON ...) that are subsequently generated by the client-side program.

Most commonly, the user simply navigates to a page, and when he does so, that page includes <script> tags which cause the user’s browser to request and to download all the script content (including JQuery itself).   Then, say, a onload event, again on the user’s browser, causes the browser to start running all that code.

That JavaScript code, running on the client’s browser, actually builds and runs most of the user-interface.   The server now takes a supporting role, not a starring one.   To obtain information, or to request that things be done, it issues asynchronous HTTP requests (AJAX ...) to the server, which is running programming that could have been written in Perl or Python or Java or Visual Basic (dot-Net) or anything-else.   Things such as “JSON” refer to encoding schemes by which the messages that are passed back-and-forth are formatted in a compact yet HTTP-compatible way.

These are “elementary basics” of the scenario, but you must understand them thoroughly before anything else will make the slightest lick o’ sense.   Training exists.   Avail yourself of it.   In due time, “the little light will come on,” and don’t feel out-of-sorts just because it hasn’t done so quite yet.   There most assuredly was a time when all of us said, “huh?”

  • Comment on Re: How do I mix up Perl and jQuery (for beginners)

Replies are listed 'Best First'.
Re^2: How do I mix up Perl and jQuery (for beginners)
by marto (Bishop) on Aug 21, 2013 at 15:33 UTC

    "Yes, see if your boss will spring for some training. Maybe at a local community college?"

    OP goes on to say:

    "I would love to read a book or two and learn perl, html and jquery properly but my boss wants to see some results on monday also i told him i have no idea of web programming and never done something like this before."

Re^2: How do I mix up Perl and jQuery (for beginners)
by eyekona (Acolyte) on Aug 22, 2013 at 08:05 UTC
    Yeah, i figured most of it out by myself but it's really nice to have it written in one explanation like this. Thank you :-)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1050368]
[erix]: until good old Putin lobs a bomb on Berlin :)
[Your Mother]: “I’m afraid of Americans…”
[Your Mother]: “No one needs anyone / They don’t even just pretend…”
[erix]: they've stuck nuclear missiles in Kaliningrad - they can just reach Berlin :)
[LanX]: naaah! Putin wouldn't nuke all the Russians in Berlin
[Your Mother]: Putin is a bad guy but he’s not that kind of bad guy. (Who would launch.)
[erix]: fortunately, Putin seems to be ill -- or at least, they're building a hospital for him and his cronies in Moscow
[erix]: nobody knows what kind it takes :)
[erix]: I say his seems a face that launches a thousand missiles :)
[Your Mother]: I say I do. :P

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2017-01-20 00:52 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (173 votes). Check out past polls.