Sponsored Content
Top Forums Programming Where do i start with Web Development? Post 302512066 by fpmurphy on Friday 8th of April 2011 10:09:12 AM
Old 04-08-2011
Learning PHP and JavaScript is a good starting point.
 

9 More Discussions You Might Find Interesting

1. Web Development

Web Development, Web 2.0 and Mashups

I think we are missing an important forum on Web Development, including Web 2.0 and Mashups. Well, here is another poll ..... I vote yes :b: (4 Replies)
Discussion started by: Neo
4 Replies

2. Shell Programming and Scripting

korn shell and Web Development

Hi , I might be asking a silly question but I just wonder if I can design/create my webpages using korn Shell or bash instead or using perl or php.This webpages I want to create are basically to perform admin work. With Perl the limitation for me is the fact of having to compile and install... (1 Reply)
Discussion started by: arizah
1 Replies

3. Programming

How is a new Web Development language written ?

I'm wondering how programmers develop new Web Development languages because I want to learn how everything begins from the start. Let's say I'm planning to write a new language for the Web. How do I do this? Is there anyone who knows about the way Web Development languages first appear ? I'm asking... (1 Reply)
Discussion started by: Anna Hussie
1 Replies

4. Programming

What Programming language should I start learning first?

I want to create a computer program that will translate from English to Spanish and vice versa. So someone could type in a word, phrase, or paragraph and translate from one language to another. What programming language would I use to write up the code and then implement this program? I want to... (8 Replies)
Discussion started by: Anna Hussie
8 Replies

5. Web Development

What Web Development languages should i learn?

I am learning Web Development, so far i am learning html,xhtml, css, java script.... What I want to know is what other Web Development languages should i learn? (1 Reply)
Discussion started by: Anna Hussie
1 Replies

6. Programming

How is a new Web Development language written ?

I'm wondering how programmers develop new Web Development languages because I want to learn how everything begins from the start. Let's say I'm planning to write a new language for the Web. How do I do this? Is there anyone who knows about the way Web Development languages first appear ? I'm... (3 Replies)
Discussion started by: Anna Hussie
3 Replies

7. Web Development

Which do you think is better Web or desktop programming?

Ok so I know they are both vitally important especially in today's technology. But which do you feel is more appealing and fun? What all are you able to do with each of them and what are the perks of one over the other Joomla templates are better run in Web Development as well (0 Replies)
Discussion started by: Anna Hussie
0 Replies

8. Web Development

What do I need to start PHP programming and web design?

I have a website and I am thinking of slowly making small mods to it and learn through tutorials along the way. To start using PHP where do I start? Should I use dreamweaver? or do I need a PHP program that will allow me to access and edit the code? My websites programmed in cakephp. I want... (3 Replies)
Discussion started by: Anna Hussie
3 Replies

9. Shell Programming and Scripting

Need help getting a web page to start a server.

Wont let me add the solved tag, say's im over the max. Removing 2 tags did not help. No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: xenial One of my game servers keeps going offline and so I want to... (18 Replies)
Discussion started by: Stuperfied
18 Replies
Data::JavaScript::Anon(3pm)				User Contributed Perl Documentation			       Data::JavaScript::Anon(3pm)

NAME
Data::JavaScript::Anon - Dump big dumb Perl structs to anonymous JavaScript structs SYNOPSIS
# Dump an arbitrary structure to javascript Data::JavaScript::Anon->anon_dump( [ 'a', 'b', { a => 1, b => 2 } ] ); DESCRIPTION
Data::JavaScript::Anon provides the ability to dump large simple data structures to JavaScript. That is, things that don't need to be a class, or have special methods or whatever. The method it uses is to write anonymous variables, in the same way you would in Perl. The following shows some examples. # Perl anonymous array [ 1, 'a', 'Foo Bar' ] # JavaScript equivalent ( yes, it's exactly the same ) [ 1, 'a', 'Foo Bar' ] # Perl anonymous hash { foo => 1, bar => 'bar' } # JavaScript equivalent { foo: 1, bar: 'bar' } One advantage of doing it in this method is that you do not have to co-ordinate variable names between your HTML templates and Perl. You could use a simple Template Toolkit phrase like the following to get data into your HTML templates. var javascript_data = [% data %]; In this way, it doesn't matter WHAT the HTML template calls a particular variables, the data dumps just the same. This could help you keep the work of JavaScript and Perl programmers ( assuming you were using different people ) seperate, without creating cross-dependencies between their code, such as variable names. The variables you dump can also be of arbitrary depth and complexity, with a few limitations. ARRAY and HASH only Since arrays and hashs are all that is supported by JavaScript, they are the only things you can use in your structs. Any references or a different underlying type will be detected and an error returned. Note that Data::JavaScript::Anon will use the UNDERLYING type of the data. This means that the blessed classes or objects will be ignored and their data based on the object's underlying implementation type. This can be a positive thing, as you can put objects for which you expect a certain dump structure into the data to dump, and it will convert to unblessed, more stupid, JavaScript objects cleanly. No Circular References Since circular references can't be defined in a single anonymous struct, they are not allowed. Try something like Data::JavaScript instead. Although not supported, they will be detected, and an error returned. MAIN METHODS
All methods are called as methods directly, in the form "Data::JavaScript::Anon->anon_dump( [ 'etc' ] )". anon_dump STRUCT The main method of the class, anon_dump takes a single arbitrary data struct, and converts it into an anonymous JavaScript struct. If needed, the argument can even be a normal text string, although it wouldn't do a lot to it. :) Returns a string containing the JavaScript struct on success, or "undef" if an error is found. var_dump $name, STRUCT As above, but the "var_dump" method allows you to specify a variable name, with the resulting JavaScript being "var name = struct;". Note that the method WILL put the trailing semi-colon on the string. script_wrap $javascript The "script_wrap" method is a quick way of wrapping a normal JavaScript html tag around your JavaScript. is_a_number $scalar When generating the javascript, numbers will be printed directly and not quoted. The "is_a_number" method provides convenient access to the test that is used to see if something is a number. The test handles just about everything legal in JavaScript, with the one exception of the exotics, such as Infinite, -Infinit and NaN. Returns true is a scalar is numeric, or false otherwise. You may also access method in using an instantiated object. new HASH This will create a Data::JavaScript::Anon object that will allow you to change some of the default behaviors of some methods. Options: quote_char : Set the quote_char for stirng scalars. Default is '"'. SECONDARY METHODS
The following are a little less general, but may be of some use. var_scalar $name, $scalar Creates a named variable from a scalar reference. var_array $name, @array Creates a named variable from an array reference. var_hash $name, \%hash Creates a named variable from a hash reference. anon_scalar $scalar Creates an anonymous JavaScript value from a scalar reference. anon_array @array Creates an anonymous JavaScript array from an array reference. anon_hash \%hash Creates an anonymous JavaScript object from a hash reference. anon_hash_key $value Applys the formatting for a key in a JavaScript object SUPPORT
Bugs should be reported via the CPAN bug tracker at: http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Data-JavaScript-Anon <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Data-JavaScript-Anon> For other comments or queries, contact the author. AUTHOR
Adam Kennedy <adamk@cpan.org> SEE ALSO
JSON, <http://ali.as/> COPYRIGHT
Copyright 2003 - 2009 Adam Kennedy. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module. perl v5.14.2 2012-03-26 Data::JavaScript::Anon(3pm)
All times are GMT -4. The time now is 08:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy