web-development

Web service cannot write to Event Log when called by anonymous user

SUMMARY: How to configure a web service such that writing to the Event Log is always possible (regardless of caller)? DETAILS: I have a web service which writes an entry to the Application Log. I established the event source for this by means of a little console application and I think I understand that part of things. When I test this ...

Hiding/Showing a swf in a div?

Hi. I have a flex app that I want to hide in a div until the user clicks a link or element of some type. I've noticed that embedding the swf in a div with style display:none does not actually hide the swf, so how would I go about accomplishing this? The goal is to have the flex app loading in the background while the user does other thi...

How to generate different links on web page if JavaScript is enabled?

I am trying to follow tecnhique of unobtrusive JavaScript / graceful degradation. I'd like to serve page with different links when JavaScript is turned on, and when JavaScript is turned off. For example when JavaScript is turned off the link would be <a href="script.cgi?a=action"> and when JavaScript is turned on <a href="script.cg...

How to troubleshoot PHP processes

I've built a script in PHP for a small shop that does a few things. Initiate a DB connection, and query the DB a couple times. Read/Write Sessions Make a request to PayPal PDT with fsockopen() parse the results save the order to db After some testing, the server stopped loading. Support let me know that there were 20 PHP processes runn...

Should we sort country list ?

I just wrote a list of country from the Wikipedia ISO 3166-1 My goal is to use it in select inside my xhtml, but it's a huge list. How many are you from Aruba? But how many are you from United Kingdom, France, or even United States of America? Sometimes, I can see that the most common countries are listed at the top of the list. Is it...

How do I deploy an ASP.NET MVC application if the ISP doesn't use a BIN directory?

I need to do a Bin deployment on our ISP, Network Solutions. They have NET Framework 3.5 SP1 installed on their servers, but NOT ASP.NET MVC. I need to point my application to a directory called cgi-bin instead of bin. Network Solutions says that this is the only directory they have marked for execution as medium trust. I need to put...

ASP.NET MVC: Default page works, but other pages return 404 error

I created a "Hello World" application, in the same vein as http://giantflyingsaucer.com/blog/?p=409. It works perfectly on my development computer, using the built-in web server. I followed Phil Haack's advice for doing a Bin Deployment at http://haacked.com/archive/2008/11/03/bin-deploy-aspnetmvc.aspx. I used the Publish feature to...

How would I restrict visitors from changing the size of text on my web page?

How would I restrict visitors from changing the size of text on my web page (like by means of Strl + +/- in Firefox)? ...

Should I let visitors to my site change the width of pages from fixed to a fluid?

I'm considering implementing a feature that would let visitors to my forum change the width of the pages from 800px (for example) to 100%, and vice versa... Is this a good practice? ...

How to disable the "autodeploy" to server feature in an Eclipse web project

I am using Eclipse (J2EE Galileo) and have created a dynamic web project and associated it with a server (JBoss). Now, whenever I make changes to one of my JSP pages, Eclipse will build and autodeploy the WAR file to the server. This is sometimes useful, but sometimes more in the way for me. I would like to disable this feature, and i...

Looking for a Pattern for Keeping Page Field Values on Returning to the Page

I have, e.g. a listing page with filter inputs, from which the user can navigate to a capture page, where they might spend some time capturing, before returning to the listing page. When they return to the listing page, I would like their previous filter to be be automatically applied again. This is no rocket science problem, so I'm su...

Error using QueryString, SessionVariables and ViewState in SharePoint

I am doing webparts in sharepoint and I want to transfer the data from one to another. I tried the 3 ways but they all fail. Any idea? It just says An unexpected error has occurred. ...

Web application in Delphi

I'm evaluating the possibility to write a web application using Delphi (ISAPI/CGI/...). I still cannot see enough reasons to use Delphi instead of a "classic" web development framework. If you have experience in this specific area please share your remarks. Would you recommend Delphi instead of PHP/Rails/ASP/...? Do you know any web app...

Strange website navigation mechanism

I am performing UAT on someone else's web-based application. the system is quite large with tens of forms, and hundreds of seperate input fields. Overall it seems well built and usable. I have noticed one thing that seems very strange to me. Every link I click on actually performs a POST request (containing details of the page I want) t...

What software do i need to install to use WPF in VS2005

Hi All, I have VS2005 and .net 3.5 installed on my machine I have heard of WPF and want to practice WPF solutions what other software should I install to write WPF program in VS2005 as it does not show any option for the same by default. Also any link for some cool stuff for beginners on WPF will be very helpful. Please help ...

Asp.Net Conditional URL Role Authentication

I want to restrict access to a particular url unless the user is a member of 2 different roles. In this case I only want to grant access to this url if the user is in both the Reporting AND Archiving role. Is there a way to do this in ASP.net? <location path="testpage.aspx"> <system.web> <authorization> <allow roles="Reporting, ...

Struts2 sx:div with Timer ignoring preload="true"

Hello I have the following refreshing timer: <s:url id="getDeployQueue" action="deploymentQueue" > <s:param name="readonly" value="readonly" /> </s:url> <sx:div id="deploymentQueue" href="%{#getDeployQueue}" errorText="Oh wait, I couldn't get the queue right now!" formId="queueForm" executeScripts="false" preload="true" liste...

Python Server Pages Implementations

I've been a PHP developer for quite awhile, and I've heard good things about using Python for web scripting. After a bit of research, I found mod_python, which integrates with Apache to allow Python Server Pages, which seem very similar to the PHP pages I'm used to. I also found a mod_wsgi which looks similar. I was wondering which impl...

Getting anchor's offset position.

Hey, I am attempting to scroll the window to a location on my page based on a user's selection. I am getting some strange results. Can anyone suggest a good/better way to go about this? Here is what I'm working with: var rel = $(this).attr('rel'); var citation = rel.split("-")[0]; window.scrollTo(0, $('[name = ' + citation + ' ]')....

How to play binary MP3 stream with jQuery/Javascript?

I'm getting a pure binary MP3 stream from an ajax call. No headers, nothing. Just straight MP3 bits. (Actually is that really even a stream at all?) I'd like to be able to play it in a web page (and, if possible, offer it for downloading). Is this possible? And if so what's the best way to do it? If it is not possible, what are some...