web-development

Can I upload a file without the FileUpload control's attached textbox?

In my ASP.NET project, I want to add a facility to my page so that when the user clicks a button, a 'browse file' dialog box directly opens up. After he selects the file in the dialog box, I want to save that image on the server, and update an imagebox based on that selection. Is there some sort of dynamic 'browse for file' type dialog ...

How do you manage concurrent access to forms?

We've got a set of forms in our web application that is managed by multiple staff members. The forms are common for all staff members. Right now, we've implemented a locking mechanism. But the issue is that there's no reliable way of knowing when a user has logged out of the system, so the form needs to be unlocked. I was wondering if th...

How do websites change content without refreshing the whole page?

For instance, on most blogs you can click on an article and it will take you to the article without refreshing the banner at the top or the navigation bar. I always thought that this was done with javascript, but I found that these websites still work even when I disable javascript. Similar questions were asked here and here and the an...

using z-index and position in css to seperate design and core!

I am using the yui-grids css (irrelevant if you don't know what this is) with three columns. and I'm putting all the fancy design stuff on the left column and using z-index and relative psitioning bringing them in the center. and then putting all the important stuff like forms, inputs buttons, links and context in the center. Is this wro...

Reading Server Side file with Javascript

Does anyone know of a tutorial on how to read data from a server side file with JS? I cant seem to find any topics on this when I google it. I tried to use but it does not seem to work. I just want to read some data from a file to display on the page. Is this even possible? var CSVfile = new File("test.csv"); var result = CVSfile.open("...

rsort sorting order

Hello everyone, I have an array which contains the following numbers: 10000 900 670 600 500 I want to sort the array in that format above. Largest to smallest, thus using rsort(). However the outcome turns out to be: 900 670 600 500 10000 Looks like rsort() just looks at the first digit of the whole number to sort the array. Is th...

Challenges of email server development

Email server development is quite challenging. One of the biggest challenge is when developing web application that sends out several emails on behalf of users. Emails will all be sent out from one SMTP feed with sender address that of individual users. How do we ensure that if the users missuse the system (say send out spam messages) t...

Guidlines and best practices to make a proxy-friendly site

This is a question to proxy and plugin developers. The usual mindset when it comes to specific sites is "They make changes which breaks our plugin; we change the logic to make it work again". But, what if the other side worries about this too? If we want to compile a set of guidelines and best practices for site development for a proxy...

unable to add security token for identity

I am trying to hit a web service from my DEV box which is giving error "Unable to add security token for identity". I have heard that it is just happening for windows 7, but not vista or any other windows. Is there any setting needs to be done, in order to get around that. ...

create a variable name from a string.. php

Generally I pass an array of parameters to my functions. function do_something($parameters) {} To access those parameters I have to use: $parameters['param1'] What I would like to do, is run some sort of logic inside this function on those parameters that converts that array into normal variables. My main reasons is just that someti...

CSS question: why my css stylesheet selector not working?

I have the following HTML: <div id="graphicArea"> <div id="page1" class="pageArea land"></div> <div id="page2" class="pageArea land"></div> </div> my CSS stylesheet file snippet (this works): .pageArea { width:220px!important; height:210px!important; } my CSS stylesheet file snippet (this don't work): .pageArea.l...

Adding Shipping To E-Commerce Application

I recently built an ecommerce application which resides in Joomla (our CMS), uses a database back-end for product catalog / order tracking and is fully integrated with Authorize.Net (http://www.authorize.net) for processing payments. Obviously the missing piece of the puzzle is a shipping method. Our shipping needs are fairly simple, ...

Ouput stuff while php script is running.

So I just created a script to resize a whole bunch of images. Is there anyway to have there be output as its running through the loop? Basically I have like 400 photos in photo db table. Its gathering a list of all these photos, then looping through each one and resizing it 3 times. (large,medium,small version). Right now on each...

How's the "stairway to heaven" in web development formed?

Ok, I know the answer for this question may not be objective but I couldn'think for a best place to post it. However, I think it can be approached from an objective point of view and the discussion may turn into a very nice guide to the subject. So, the question is: How would you position web development skills from the bottom until the...

Why Platform as a service?

Hi Everyone, I am currently in the early stages of my project which is an ERP application that I plan to sell to enterprise clients. I heard about the Force.com platform but I'm confused on what benefits will I gain if I use it and not develop my own. Can you please explain why should I use Force.com or any PaaS? Regards, ...

Creating a multilingual site in Umbraco

Hi, I am rather new to umbraco and currently building a web site for my employer. This site will need to support multiple languages. My question is how this should be implemented with umbraco. I am looking at the following approaches: Create the site structure once and entering different translations for each page. This is described ...

Grid of checkboxes represents a many-to-many db relationship; the best way to get from webform to database (not passing go, not collecting £200)

I am using jquery/jsp/java ejb3.0/sql server. The User interface requirement (a jsp page) is a grid of checkboxes, ~10 rows high and up to about ~30 rows wide (this varies), it represents a linker table for a many-to-many table relationship. The checkboxes will be populated from the database (if row present in linker table, checkbox ch...

How do I identify and eliminate unused CSS styles from my bloated stylesheet?

I have a legacy stylesheet that is now full of unused styles. The problem is identifying the necessary from the unnecessary. Are there any tools to help with this? ...

Hosting images from unsecured servers (travelnow.com)

Hi, My application needs to serve images hosted in travelnow.com (ie. this image) but the application only allow images hosted on a secured server (ie. https). What are my options? TravelNow's suggestion is as follows. How do I do this? Akamai image servers are not secure. Therefore you are unable to serve any of the image urls wit...

ASP.net GridView - Use If-Statement in HeaderText property of BoundField

Can I do something like this: <asp:BoundField DataField="Field1" HeaderText='<% IF(Eval("Field2").ToString().SubString(3,4).Equals("Text3"),"Text1","Text2") %>' SortExpression="Field1" /> With the goal of having the header of Field1 be Text1 when the 4th-7th characters of Field2 = Text3 and Text2 otherwise? I tried it and it jus...