web-development

How do you generate website navigation?

I am interested in how other people handle website navigation. Not the styling or usability part, but the generation part. Most websites have some kind of “navigation tree” that is displayed in form of one or more menu levels – in what form do you save and process this tree? The simplest solution is a static menu template, something like...

You are not authorized to view this page active directory problem

I am getting the following error while browsing my asp.net page deployed in IIS..I am using active directory data retrieval in my website and credentials to the active directory is stored in the web.config file ... You are not authorized to view this page You do not have permission to view this directory or page using the credentials th...

Jboss war redeployment Zipexception

All, Server: jboss-5.1.0 Java Version: jdk1.6.0_14 Deployment Method: ant v1.7 Error: 08:40:04,260 WARN [ZipEntryContext] IGNORING: Failed to reinitialize context: vfszip:/home/username/jboss-5.1.0.GA/server/default/deploy/deployment.war java.util.zip.ZipException: error in opening zip file Error occurs if the serv...

Are there any problems handling a POST request as a GET request on the server

In an attempt to resolve the issue I posted in this question: Is it possible to send POST parameters to a CGI script using a system() call? So far the only successful resolution to the problem is to trick the environment to think the request was a GET. I do this by converting the POST parameters to a query string, saving that string i...

What should a tester report?

I have a web site I am building for a client. I now have a tester on the project with me. I feel testers are needed. REALLY! I cannot test my own code. I also appreciate the value of a new set of eyes. But what desires reporting? It is easy to say everything should be reported, but I don't have someone between me and the tester to filt...

Best way to track changes on a website for visitors' information

So I've been saddled with furthering a website, in which it is crucial that the visitors are able to see exact changes that were made in content since the last time they visited (i.e., some form of tracking system that keep pervious versions that can also be accessed). In my mind, I'm thinking of something like the history tabe in wiki...

Auto login user to third party site without showing a password to him

Background We are integrating third party email solution into our site. When a user goes to the Mail page it must be automatically authenticated at the Mail site. For now, the Mail link points to our page which automatically submits a form with the user's login and password. After clicking submit the user is redirected to the Mail sit...

Strongly-typed languages for web programming

Are there any strongly-typed programming languages for the Web? I program in PHP now, but often I wish it yelled at me when I tried to compare a number to a string. Functions in the standard library that can return either a bool or an integer don't make anything easier either. I know there's .NET, but is it my only choice? ...

Logging viewing time on website

Is there a way to log how long a visitor stays on my website? ...

reinventing the wheels: Node.JS/Event-driven programming v.s. Functional Programming?

Now there's all the hype lately about Node.JS, an event driven framework using Javascript callbacks. To my limited understanding, its primary advantage seems to be that you don't have to wait step by step sequentially (for example, you can fetch the SQL results, while calling other functions too). So my question is: how is this differen...

add asp.net control using javascript

I would like to add an ASP:label and ASP:textbox control to a page through Javascript. <asp:Label ID="lblone" runat="server"></asp:Label> if i want to write this syntax or want to add this label on page using innerHTML then want can be the way.... I want to add it on button click event... and the ID should be appended by 1 and the ne...

How to share code between a Java Web app and a normal Java app

Hello I have smallish personal project consisting of the following Eclipse workspace. + +-MyApp // this is just a vanilla Java Application +-MyWebApp // this Dynamic Java Web Application (Tomcat) +-MyCommonStuff // these are common classes // Ex. Database access code & business classes This is all well and good when I...

PHP: How To Disable Dangerous Functions

Hello All, How can I disable the dangerous eval function? Can that be done using ini_set function? Also how to disable following functions? Can we disable them using ini_set function? allow_url_fopen allow_url_include exec shell_exec system passthru popen stream_select eval is one of the most dangerous function that bad guys can u...

Easiest way to get the absolute path of directory from browser

I allow my users to upload files from a directory. I use SWFUpload so that they can upload multiple files easily. However, I need to get the absolute path of the directory from which they are uploading. A little research tells me that it can't be done in plain HTML/Javascript or in Flash. Java applets seem to support this, so that's wh...

How to profile SQL queries in MVC framework?

Hello All, I have been working on my own php MVC framework. I just wanted to get your ideas on how to profile all the queries run on my framework. I have done other profiling stuff but i have no clear idea of how to profile the sql queries too for the users to see if they turn profiling on. Thanks ...

Changing from Web Development Career to C/C++

I have been doing web development for the past 3 years, mainly in PHP and MySQL. Lately I have been changing into the C/C++ area. The reason is that I want to try out something new and expand my skillset before deciding which area I want to focus on. I would like to get advice from you guys about this. Is this a good idea? Is it a bad i...

Securely Transferring Users Between Web Sites

Here's the scenario: You have two seperate websites that exist in different environments (I.E. different databases, different web servers/domains) You have full control over the code for both sites, but from the above point, they can not directly communicate with each other's database You must transfer user from site A to site B secure...

Is there a library that emulates facebook's "Link Detect"?

I'm looking to write a library that "parses" information like facebook does when you post a link. However as I don't want to reinvent the wheel does anyone know of a library or and effort to write an Library that does this already? I have included an example so that you can get a grasp of what I mean if you don't use face book. ...

How to determine the language currently in use for browser in classic ASP?

Is there ASP code which can retrieve the users current language? In javascript I know this works... if (navigator.appName == 'Netscape') var language = navigator.language; else var language = navigator.userLanguage; But is there an equivalent for ASP/VBScript? ...

Web development on iSeries with ABL's Strategi

Advanced BusinessLink offers a suite of products called Strategi, which basically allows creating web applications running natively on iSeries, consuming and providing web services, and replacing green screens with web user interfaces, among other things. The business logic is written on RPG, with web pages combining html and a proprieta...