Tag Info

Hot answers tagged

52

It's not so much "fake" performance as real responsiveness. There are a number of reasons why it's popular: Internet connections are fairly reliable nowadays. The risk of an AJAX request failing is very low. The operations being performed are not really safety critical. If your emails don't get deleted on the server, the worst that happens is you have ...


51

HTML5 is not a single integrated thing. It's a collection of extensions to HTML, some of which are widely-implemented and can be used safely, some of which no-one implements yet, and a whole lot in-between. If you try to treat HTML5 as a coherent single development platform and ‘learn it all’ you will have a really difficult time. Instead what you need to ...


45

I am both good and bad to answer this question - good, in that I've actually used it before, and bad, in that I was quite experienced with HTML/CSS/JavaScript prior to working with GWT. This left me maddened by using GWT in a way that other Java developers who don't really know DHTML may not have been. GWT does what it says - it abstracts JavaScript and to ...


40

If I were to start a new HTML5 project from scratch right now I would probably do something like this: Download and use the HTML5 Boilerplate. This will give you a fresh page with most of the important things initialized and ready for testing. Also includes some nice debugging features you should be using along with firebug Look over Dive in to HTML5 to ...


27

Assuming something will work and displaying an error in case it fails on the remote side is much more user-friendly than blocking the user from doing anything else until there's a response from the server. An email client is actually a great example for this: When I have a list with 5 emails and the top one is selected I expect that when hitting DEL three ...


23

Today, in our work as in our life, it is more important know how to find information rather than know the information itself. I mean that a good developer is a person able to find documentation, network, and that share with an open mind. I am an experienced .NET developer and, believe me, for every project I work on I have to learn new things about the ...


16

I think it would be another way of learning and as that I would embrace the opportunity. Most of the time friends will will give you something back when you do them a favour like this. And if they don't it is still a learning experience. What I would do is: Ask him to put your name (or link to your blog or linkedIn page) in the credits with a nice ...


13

Using Flash will lose them eyeballs. One of the big reasons Google trounced Yahoo, Ask Jeeves, et. al. in the search engine wars is their landing page and results appear so incredibly fast. Even in the late 90s, when Google's search results weren't really better, they were still the go-to search engine if you didn't want to waste your time. On the other ...


13

WoW -- that's astonishing. first ask yourself these questions, and if your mind yells YES for any of these -- the answer to your original question is YES. Do I need to learn HTML -- since Dreamweaver lets me create web pages anyway Do I need to learn HTTP -- since browsers handle all HTTP automatically Do I need to learn JavaScript -- since jQuery lets me ...


13

Business logic almost always has to run on a server you control, for security reasons. If by "server" you mean "web server", then I agree, it doesn't need to have almost any business logic. But you almost always need an application server with the business logic, whether that's inside a database or a web server or is separate and called by the web server. ...


12

XML really is a pretty horrible way to represent structured data, but unfortunately it gets (ab)used quite a lot by a lot of developers and websites. So if you're only working with your own stuff, then by all means, stick to JSON and save yourself the hassle. But you still need to learn XML for those times when you end up having to interoperate with ...


12

Yes, because: Update panel runs the entire Page Lifecycle at server, while Page Methods or Web Services (AJAX calls) don't. Update panel sends back the entire ViewState to the server even for small communications like getting the current server date value, while Manual AJAX is in your control and you can send (transfer) less data. Update panel causes the ...


10

We use GWT for a big eGovernment web application (SOA in the backend) which has a heavy usage. The old UI was in DHTML but we had issues with browser compatibility, performance optimization and the development process, so we looked for alternatives. Our requirements have been: client side UI layer to minimize server load browser compatibility web based ...


10

A friend of mine is a contractor in construction, but I would not tell him "Hey, this stuff is easy for you, why don't you renovate my bathroom this weekend?" This is even more true in a commercial situation. Charging for your projects builds mutual respect and an understanding of expectations. Time is money and when someone asks you for your time and ...


10

The users don't care about what your software is doing behind the scenes: they want their actions to have visible impact, and to be able to work at their pace. If an action was successful on client side - like deleting emails - it's your job to make it successful on server side as well. Why did the deletion fail? If it's due to some kind of limitation (for ...


9

Explain that Flash is a tool for multimedia rather then supporting an entire website. Flash does some things extremely well, but a full Flash website is cumbersome and very frontloaded to the client. Load times are increased, bandwidth goes up, and development generally slows down. Going with a HTML / JavaScript solution is better for 99% of the cases ...


9

I highly recommend WebStorm, from JetBrains (or any of their IntelliJ based products, like PHPStorm, RubyMine, PyCharm as they all support HTML). You get CSS, HTML auto completion and live (while you type) checking for correctness. Refactoring support for Javascript (something I haven't seen anywhere else), and even the ability to debug Javascript in the ...


7

It depends on what you're doing and how you're doing it. If you're replacing full page loads with AJAX requests (i.e. only doing AJAX calls when a user clicks on what would have been a full page load) then AJAX will decrease server load because you're (presumably) doing less processing and returning less data. On the otherhand, if you're adding auto-update ...


7

Just a thought, perhaps you could create a list for your Ajax callback methods. You would wrap your actual Ajax callback in a method that adds that callback to a slot in an list. This list waits for callbacks in a specific order and only executes if the top element (the callback you want called first) is filled.


7

After working with something for some time you'll learn/know the important things automatically. There is no need to know all APIs, function parameter lists, etc. There are docs for things like that. Generally spoken, you need to know things or where to find them. For example, let's take the $.ajax() function of jQuery. I know what it does and the commonly ...


6

Uploading files is deliberately hard to avoid security leaks. If you could do that with a few lines of JavaScript, evil websites could secretly upload local files. For that reason, it must be done through a form, the user must see a file upload control, must choose the file by himself. After that, the form has to be submitted, and that's normal HTTP ...


6

There is no one true way to learn AJAX development. The best way to get started is, well, just to get started. The absolute minimum you need to know is, Basic JavaScript, with an emphasis on JS scoping rules and the UI thread First bookmark https://developer.mozilla.org/en/JavaScript/Reference The 'A' in AJAX stands for Asynchronous, which means that ...


6

If you're looking for an IDE recommendation, Eclipse is pretty good. If you're looking for Javascript tools, Firebug is great for debugging. However, you really don't need any "tools". I think the notion that "bigger projects can't be/aren't developed in Notepad" is, quite simply, false. I use Notepad++ to write all of my HTML/CSS/Javascript and I think ...


6

I prefer JSON Many many libraries out there for it in all languages Doesn't require a complicated schema Usually can be converted into an associate array or language equivalent quite easily. This is what makes JSON in PHP so easy Compact: Not a lot of boilerplate Easy to use: XML is notoriously hard to work with in any language, while JSON is very easy, ...


6

Sure. You are using json_encode right? So start with the same data structure. For simplicity here I will use an array. $stories = array( '[id]' => [details] ); Now you have a quick break. If the request is an AJAX request, then simply echo json_encode($stories);. Otherwise standard requests will process the view with that same data structure. I'm ...


6

I find that long term that my ajax apps (all intranet's) are easier to maintain because they seem to me much more modular. For instance if I have a page that then loads other content into containers that same content can be easily reused and rendered elsewhere. Source code for each piece is in different files for the views and methods on the controller ...


6

For the origins, see Wikipedia's XMLHttpRequest article, particularly this excerpt: The concept behind the XMLHttpRequest object was originally created by the developers of Outlook Web Access (by Microsoft) for Microsoft Exchange Server 2000. An interface called IXMLHTTPRequest was developed and implemented into the second version of the MSXML ...



Only top voted, non community-wiki answers of a minimum length are eligible