Skip to main content

Posts

Showing posts with the label web-development

UTF-8 all the way through

I'm setting up a new server, and want to support UTF-8 fully in my web application. I have tried in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.

Non-blocking javascript and css in modern browsers. Is it still needed?

I am playing a little with some non-blocking JavaScript loading. This means I have a small snippet of JavaScript in my head , and load all my external files at runtime. I even took it a little further to load CSS non-blocking.

Is client-side UI rendering via Javascript a good idea?

The "classic" approach to web development has been for some time a thin client and a thick server: the server generates HTML and spits it out for the browser to render only. But with current browsers (and also due to the availability of good libraries and frameworks) Javascript now works. Web devs can now pretty much assume that their Javascript code will work and stop bothering. This certainly opened new possibilities for web development. Apps could now be composed mostly of HTML content returned from the server and rendered by the browser with some UI manipulation being done client-side. The client could even query the server for fresh data for updating parts of the UI. But can we go down all the other way? An app can certainly be designed as a server that spits only the most minimalist JSON glued together to a thick Javascript client responsible for building and controlling the whole user interface. Yeah, this approach can seriously break URLs to the extent that people

When is a PHP project too small for a framework?

I'm about to start on a small, static website project: no database or CMS required. Basically, a brochure website. I used the CodeIgniter framework recently to develop a full-blown web application, and I'm wondering if it appropriate to also use CI for smaller, simpler sites. Typically for a static brochure site I would write regular PHP pages with a few includes thrown in to save on repetition (i.e. HTML with a sprinking of PHP), but this time around I'm wondering if my new friend CodeIgniter might be able to streamline the development process. Is it sensible to consider a framework for such a simple project, or is it overkill? I'm worried that I might be the proverbial carpenter whose only tool is a hammer, and sees every problem as a nail! Source: Tips4all

Deliverables for PHP web designer

I'm in the design phase of a medium-sized PHP web application (not a static website). Since I'm a programmer with the creativity of an eggplant I'd like to contract with a freelancer to design the look and feel of the application. What deliverable should I ask for from the designer? HTML files? PHP files? How do I apply the look and feel from the designer to my app? Source: Tips4all

Tiny PHP "standalone” server (or framework) for local debug without Apache/Nginx/Lighttpd/etc

There's manage.py runserver in Django or ruby script/server in Ruby on Rails — those familiar with one of those frameworks should already get the idea what I'm looking for. They run tiny "standalone" web server, which is perfectly enough to debug the application locally, without any need for other software (Apache/Nginx/Lighttpd/etc). I wonder is there any PHP implementation of such tool, or, maybe, some PHP framework has such feature? Surely, I can pack pre-built pre-configured static nginx executable, but this would not be pretty, and certainly not cross-platform. Having standalone debug webserver written in PHP itself will make the package self-contained. I.e. I'd like to type something like php tools/runserver.php , point browser to http://localhost:8000/ and see the site up and running, ready to debug. My Google-fu has failed me, but I strongly suspect that there is such project already. Source: Tips4all

mobile phone geolocalosation and javascript

I am developing web app that will be accessed by smart-phone integrated browser. In my application I need to calculate the distance between the mobile phone actual (current) location and some other address. Beside that I should be able to find the specific location (shop location for example) that is closest to the user actual location. Can you give me a clue which js framework can I use? Is there maybe some jQuery plugin that can be helpful? Thank you

mobile phone geolocalosation and javascript

I am developing web app that will be accessed by smart-phone integrated browser. In my application I need to calculate the distance between the mobile phone actual (current) location and some other address. Beside that I should be able to find the specific location (shop location for example) that is closest to the user actual location. Can you give me a clue which js framework can I use? Is there maybe some jQuery plugin that can be helpful? Thank you

client side design using struts, jsp, html, css, java script, tiles, dojo, json, jquery etc [closed]

I need some help to design one front end system (client side ) for my new project. As per my project lead I should be using struts, jsp, html, css, java script, tiles, dojo, json, jquery etc.. The requirement is number of GUI pages like interactive graph, menu, etc.. The data will be fetched by back end code ( i am not worried much but ejb , jpa may be used). So my question is how should I progress on to this ? Can you please suggest any good design like which technology should be used where... Many Thanks

The best way to write Javascript / jQuery

I'm not new to web dev but I was just wondering if you guys have some advice for me to improve: Always when I write js or jQuery I write all the code like this in the <head> on my page: <script> $(document).ready(function() { //All my functions and animations goes here… }); </script> Now, when I look around the web I see that most people have their functions and animations in a separate ".js"-file. And they often create classes aswell. How does that work? What is the advantage of creating classes and have your functions in a separate file? Thanks, VG

Is there a way with PHP to access a file on a server and save only the first half of the file?

I want to give users a preview of certain files on my site and will be using scribd API. Does anyone know how I can access the full file from my server and save the file under a different name , which I will then show to users..Can't think of a way to do this with PHP for .docx and image files...Help is much appreciated.