web-development

print web on dot matrix receipt printer

Hi, I need to print a receipt from my web based apps using dot matrix printer epson tm-u220d (pos printer). I need to know, should I generate the receipt in html or in plain text ? I ever saw some commands for dot matrix printer to change the font size, line feed etc .. but I don't remember that commands. if I have to use plain text I...

CSS rules not getting applied in JSPs ?

Im building a web application using struts2. I have an authentication interceptor at the top of all the interceptors (I have set it up as such) which checks whether a user is logged in. If not, it will give a login page as result. In login page, I have some set of standard CSS rules which I use for all the JSPs in the app. But that log...

Reorganizing development environment for single developer/small shop

I have been developing for my company for approximately three years. We serve up a web portal using Microsoft .NET and MS SQL Server on DotNetNuke. I am going to leave my job full time at the end of April. I am leaving on good terms, and I really care about this company and the state of the web project. Because I haven't worked in ...

equivalent of jQuery's "load" in prototype

Hello, I am trying to find an equivalent for the following jQuery javascript: var x1 = setInterval(function() { $('#status').load("processor.php", {value:'name'} );}, 5000 ); I need to use Prototype for other applications on the page, and when I throw both jQuery and Prototype libraries in there they will not cooperate. Thank you, ...

Map external directory to web.xml

Is there an easy way to map a directory in the web.xml or other deployment descriptor (jetty.xml, etc) files? For example, if I have a directory /opt/files/ is there a way that I can access its files and sub-directories by visiting http://localhost/some-mapping/? It strikes me that there should be some simple way of doing this, but I ha...

Debugging a Browser Redirect Loop

Hi all, I am using CakePHP with the Auth and ACL components. My page loads fine for non-registered users, but if I try to log in as a registered user I get an infinite redirect loop in the browser. I am sure that this is some sort of permissions problem, but the problem exists even for users who have permissions for everything. The o...

Cost of Design vs Development

I usually develop content management solutions in php, I work with designers that create the front end (html & css) and I usually develop the backend (php & mysql) of said cms. I know that the cost of the website may vary depending of the complexity of the html or the backend, but taking as reference a very basic website, what percentage...

moving header in css to align correctly

i have this header at the top: http://yoursdproperty.com/ how do i move the swf a little bit to the left to make it align correctly? ...

Which technology is best to develop web2.0? Flex,JavaFX and html5

I would like to know the html5 has the complete feature to develop the web2.0 and i want to know from these technology like flex, javafx and html5 which one will be the best to develop the web2.0? ...

Should we only use Web-Safe Colors while in design/coding/development for website/apps?

Should we only use Web-Safe Colors while in design/coding/development for website/apps? ...

How do I deploy my ASP MVC project to my Win7 system?

Hi, I am deploying my first ASP MVC project. The project runs just fine, I would like to take the next step and run this outside of my visual studio environment on my local IIS. I am running Windows7, Visual Studio 2008, and I have created a basic ASP MVC project. On my solution, I find the project I would like to deploy. I right cli...

Facebook Connect: with no javascript?

Is it possible to write a website that uses Facebook connect without JavaScript? I have a site set up that works great using XFBML but this (obviously) fails when I visit with JavaScript disabled. I have a feeling that this is possible using the REST-api for Facebook but I'd still appreciate some pointers. There was a discussion about t...

Limit the number of service calls in a RESTful application

Imagine some kind of a banking application, with a screen to create accounts. Each Account has a Currency and a Bank as a property, Currency being a separate class, as well as Bank. The code might look something like this: public class Account { public Currency Currency { get; set; } public Bank Bank { get; set; } } public clas...

document.all vs. document.getElementById

When should you use document.all vs. document.getElementById What is your answer? ...

Why i am getting authentication_redirect_to_virtual_host error?

Hi, I am calling a web service that is online. Sometime (not all the times) crashes and gives me the following exception: Redirect (authentication_redirect_to_virtual_host) You are being redirected to the authentication virtual host. For assistance, contact your network support team. but I can open the web service from the browse...

PHP Path Problem

Hy everyone i have a problem with my path say i have a PHPfile in /home/bla/www/dev/source/test.php in this test.php i want to include a file in /home/bla/www/config/conf.php <?php include_once(""); ?> i dont want to include it like include /home/bla/www/config/conf.php How can i do it? PS. this fails include_once("../.....

Compiling LAMP from source - apache2 error "no MPM package installed"

Hi, I've compiled LAMP from source on a Ubuntu VPS. I had to remove a previously installed version of Apache then I manually compiled all the packages, which seems to have worked up unto a point - when I try to run commands like "/etc/init.d/apache2 restart" I get the following error - No apache MPM package installed. I have deliberately...

Proper encoding of href for window.open() in JavaScript

What is the proper cross-browser encoding for the href when using window.open() in JavaScript? First I was using var href = "http://127.0.0.1:8000/etf/admin/escola/t34atividade/?pop=1&amp;copy=1"; var win = window.open(href, name, 'height=500,width=800,resizable=yes,scrollbars=yes'); IE8 opens: http://127.0.0.1:8000/etf/admin/escola/...

coding a web page for viewing on iphone

Now I've seen loads of websites that look great on the iphone, such as http://twitter.com and http://deviantart.com however I can't for the life of me get the right structure within my mobile web application to make it show up as if it was an iphone application. I've discovered iphone jquery ( http://jqtouch.com ) which seems to be the ...

Looking for a Reporting Solution and Need Advice

The company I work for is looking for a reporting solution with the following requirements: Must be able to generate a set of reports nightly. Must give the client the ability to create reports dynamically. Must have robust export features. Must have a viewer that can be displayed within a web application. The company is looking at u...