Tagged Questions
1
vote
1answer
74 views
Web Application: Combining View Layer Between PHP and Javascript-AJAX
I'm developing web application using PHP with CodeIgniter MVC framework with a huge real time client-side functionality needs. This is my first time to build large scale of client-side app. So I ...
2
votes
1answer
80 views
Caching large amount of ajax returned objects
I'm building an application which fetches large amount of items with ajax requests via other application API. It returns me 6k - 30k js objects which are used multiple times across various application ...
1
vote
4answers
573 views
Pure Front end JavaScript with Web API versus MVC views with ajax
This was more a discussion for what peoples thoughts are these days on how to split a web application.
I am used to creating an MVC application with all its views and controllers. I would normally ...
0
votes
1answer
136 views
Application use on website
Is there a good way to run a C# application on clientside in lieu of JavaScript? I have done some front end work with JavaScript and backend C# for web developing at an old job, but I am interested in ...
0
votes
2answers
273 views
“Match Making” script, a way without involving the database and php?
I am writing a matchmaking script for a game through a web portal. For the past few days I have been looking into the different options and I believe the following approach would be the most optimal ...
0
votes
3answers
841 views
Are (mostly) client-side JavaScript web apps slower or less efficient?
I am in the midst of writing a web application for work. Everything is from scratch. I have been a PHP programmer for about 13 years, Node.js programmer for the past 2 years, and have no shortage of ...
3
votes
1answer
228 views
Should JavaScript and PHP objects be treated as different objects in an interaction diagram?
I'm drawing a communication diagram for an application where you can buy books. I'm using domain-driven design and have a 'shop' object, a 'cart' object, and a 'book' object.
My first communication ...
-2
votes
1answer
234 views
is it good practice to reload a div every second [closed]
I am working on a networking site where I need to reload the notification div every second. I wanted to know is it good or bad to load it every second as there are some other divs also loading after ...
0
votes
2answers
139 views
How can I solve this potential security exploit (concerning the saving of REST resources)?
I have a File database table with the following columns:
Id (PK), Filename
And a Document database table with the following columns:
Id (PK), Name, Description, FileId (FK)
When a user wants to ...
0
votes
1answer
99 views
Technique to deal with occasionally blocking json api?
I have a web app that occasionally (after some idleness) will block a very simple request for small chunks of data (30~50 kb) up to 20 or so seconds. Assuming I can't refactor or modify the API, is ...
0
votes
0answers
137 views
Javascript: initiating file download and routing file off via POST
Every so often (seems about once a year) I get a chance to play with JS.
While not proficient, I'm comfortable enough to get the job done if I have some good references.
At this point, I feel like ...
2
votes
1answer
857 views
best way to store data from ajax call
I am writing a web-application in which I am retrieving data's from server through AJAX requests and the generate HTML content dynamically.
I have some data to load, generate HTML from it and append ...
0
votes
2answers
169 views
Async function iterated calls
I'm new to using async calls in ajax. My problem is that I have two server "tasks": one that just checks if session is set (fast), and another that sets the session (slower). I want to check if the ...
1
vote
2answers
305 views
What's the best approach to handle javascript/ajax code in a project?
In a general sense, for medium/big projects, what's the best way to handle javascript/ajax code?
Is it better, to have a script file where to put each script or, to add the script directly into the ...
1
vote
1answer
163 views
Ajax - Responding business errors
This might sound like another of those questions with "best way" or "best practice" but I couldn't find anything related that could give me some light.
The scenario... I have some ajax calls. ...
1
vote
3answers
150 views
Javascript and web application data
I am pretty new to Web Application programming and so to OOP Javascript and the new Client-Server interactions.
I am encountering some trouble wondering about how much AJAX I should use or how much ...
0
votes
2answers
239 views
Converting a user management system to use ajax
I am currently building a website, which until quite recently was purely PHP. However I am now making trying to have the site use more AJAX, to lessen the page reloads. In PHP I had a lovely object ...
39
votes
6answers
3k views
How safe are hidden AJAX requests that fake performance?
What is a hidden AJAX request?
I've noticed an increase in the usage of hidden AJAX requests designed to make a user's action appear to happen immediately. I'll refer to this type of AJAX request as ...
2
votes
2answers
286 views
AJAX Requests & Client-Side JavaScript
I am new to AJAX and trying to understand a question I've been given:
A HTTP request is generated by a form which contains some drop-down list. When the form is submitted, a new web page is displayed ...
4
votes
1answer
592 views
How should I handle a redirect to an identity provider during a web api data request
Scenario
I have a single-page web app consisting purely of html, css, and javascript. After initial load and during use, it updates various views with data from one or more RESTful apis via ajax ...
5
votes
7answers
3k views
Is it necessary to memorize code?
I am a new developer, who just got hired at a big company. I don't know how but I guess they are desperate. However, I am well-versed with HTML5/CSS3 though things change and new things are released ...
4
votes
3answers
2k views
Ajax race conditions
Is there a pattern or standard way to handle Ajax race conditions? Take the following example. You have two tables. Clicking a row on table 1 removes the data from DB and then updates table 2 (which ...
2
votes
2answers
1k views
how to choose a web framework and javascript library?
I've been procrastinating learning some framework for web apps w/ some library for AJAX, something like django with prototype, or turbogears with mootools, or zeta components with dojo, grok, jquery, ...
7
votes
6answers
1k views
Triggering custom events in AJAX callbacks
I'm pretty new to JavaScript, but one of the things that's been frustrating is that our AJAX callbacks have been getting packed with different functionality, making it difficult to keep everything ...
2
votes
4answers
1k views
Easiest way to create static HTML file with sortable and filterable table?
I want to create a static HTML file I can email to someone with a lot of data, and have that data sortable and filterable. What is the easiest to use library or package I can use to get this off the ...
5
votes
4answers
3k views
What to call pure JavaScript standalone (web)apps for which I've not written any server side code? [closed]
I've been writing a few tools as standalone webapps for which I have written no server side code and it strikes me that I'm not sure what people call such things.
I like them because they can be ...
5
votes
6answers
672 views
when to load partial views
When creating a website, when should you load partial view and when should you do a complete page refresh?
I was looking at github's site and noticed that pretty much the only place they do partial ...
3
votes
5answers
3k views
How much AJAX is too much?
My current project is part of a highly linked architecture, with individual systems each owning certain pieces of data, and exposing them RESTfully. Both our web services and our user interface take ...
8
votes
1answer
909 views
Who first created or popularized the original XMLHTTPRequest / MSXML?
I'm trying to understand the origins of AJAX, and think MSXML and XMLHTTPRequest were the objects that started it all.
Which came first, and/or became the defacto way to create dynamic pages?
1
vote
2answers
1k views
Why did javascript libraries like knockoutjs, backbonejs, and angularjs only come out in 2010?
Being a relatively new web-developer I am surprised that these libraries didn't exist before. Is there a particular technical or historical reason that at around Sep 2010, a sudden development and ...
0
votes
1answer
1k views
Should we (still) consider a synced XMLHTTPRequest bad practice?
As you may know, XMLHTTPRequest can be used synchronously or asynchronously, but synchronized requests have always been considered bad practice, and I've always agreed with that.
Not only is the ...
10
votes
1answer
988 views
Patterns for ajax-heavy web applications
Up until now, I've been a great fan of the MVC pattern for developing web applications. For the web, I've developed mostly in PHP (with the Kohana and CodeIgniter frameworks) and Ruby (RoR).
As my ...
1
vote
1answer
220 views
What does GWT not provide that straight AJAX coding gives?
For an experience core Java programmer with no AJAX and very little Javascript experience, the GWT is attractive. But, what will I be missing if I just use GWT?
1
vote
5answers
1k views
ASP vs javascript vs jQuery vs User Controls vs AJAX
Increasingly when developing sites I find myself utilising more client side technologies such as Javascript, jQuery and AJAX.
For three different pages I measured the size of the HTML sent to the ...
6
votes
3answers
1k views
Should jQuery DOM manipulation be avoided in favor of JavaScript template engines?
From what I can tell, most developers will use heavy jQuery DOM manipulation tactics to deliver their updated AJAX views. Once things get out of hand, they may consider refactoring using template ...
2
votes
1answer
352 views
Pushing changes to an open web page
I have a warehouse management app that I have written that handles batching of orders for batch picking, scanning of items for packing and accuracy. Part of this app is a Dash or control panel that ...
7
votes
9answers
1k views
Is it worth Learning XML as a web developer when JSON is better for AJAX? [duplicate]
Is it worth Learning XML as a web developer when JSON is better for AJAX? or is it better to concentrate on JSON/Javascript for AJAX?
5
votes
2answers
482 views
I'm using JSON and degrading gracefully, so how do I prevent duplicate code?
There are a bunch of questions on Stack Overflow about whether AJAX should return JSON or HTML, and most seem to agree that it is ideal to return JSON for the sake of speed. However, that means that ...
3
votes
1answer
2k views
How to generate nonce for Ajax web requests
As many of you know WordPress uses "secret key" like thing for every AJAX request. Making each request unique and also 'somewhat' secure (just a step ahead than nothing). How would I implement the ...
19
votes
12answers
2k views
How to talk a client out of a Flash website? [closed]
I have recently been doing a bunch of web side projects through word of mouth recommendations only. Although I am much more a of a programmer than a designer by any means, my design skills are not ...
36
votes
2answers
19k views
When not to use Google Web Toolkit? [closed]
I'm considering use of GWT on a major in-house web app development project, namely it's major advantage in my eyes is the cross-compilation to Javascript which would (at least theoretically) help my ...
7
votes
5answers
1k views
What are the steps to learn AJAX based web application development? [closed]
I am a complete starter in web development, as I know only basics of HTML and CSS, although I have a history of desktop development. What is the usual roadmap to get started in web apps, based on ...
41
votes
8answers
5k views
How do I get started with HTML5? [closed]
What is the recommended workflow to learn HTML5? What tools should I install? What SDK? Where to start? How to test? How to debug? What do I read?
I understand that what is often labelled as "HTML5 ...