Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Perl, DOM, Javascript and AJAX

by ukndoit (Sexton)
on Sep 15, 2009 at 09:14 UTC ( [id://795326]=perlquestion: print w/replies, xml ) Need Help??

ukndoit has asked for the wisdom of the Perl Monks concerning the following question:

Does Perl interface with DOM, Ajax and Javascript like PHP does? My Business partner has been researching it and is saying that PHP is the way to go because of how it can use those programs to make so much more powerful applications, such as changing a page and so forth without the actual page having to be refreshed.

I have 0 expierience with those, except Javascript a few years ago, but my knowledge is probably outdated on Javascript.

Thank you very much Xav

Replies are listed 'Best First'.
Re: Perl, DOM, Javascript and AJAX
by edoc (Chaplain) on Sep 15, 2009 at 09:49 UTC
    Yes, and no. Perl or PHP are used to generate the html which is sent to the browser. After that it's down to using Javascript for any updates to the content if you don't want to go back to the server. The DOM can be manipulated by Javascript to change the content on the page. AJAX is simply the use of Javascript to talk to the server to fetch or store data.

    cheers,

    J

Re: Perl, DOM, Javascript and AJAX
by marto (Cardinal) on Sep 15, 2009 at 10:17 UTC

    In addition to the advice you've already been given, I use Perl and jQuery for DOM manipulation and AJAX.

    Martin

Re: Perl, DOM, Javascript and AJAX
by Your Mother (Archbishop) on Sep 15, 2009 at 16:41 UTC

    To elaborate on what was glossed already: PHP has no capacity greater than Perl's here. Perl probably has more support for JS as well and JSON::XS is the top of the heap (JSON is generally much more pleasant than XML with Ajax). To make your choice you should look at the available talent pool in your area / price-range probably and be warned there are plenty terrible programmers in both so check references and see that whomever you hire doesn't write disposable code; i.e., sites he/she has done live longer than a year or two without needing a rewrite.

Re: Perl, DOM, Javascript and AJAX
by Anonymous Monk on Sep 15, 2009 at 10:18 UTC
    like PHP does?

    How is that?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://795326]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-19 16:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found