web-development

sending username and password through email after user registration in web application

What is your opinion on sending the username and password to their email address when they register on our website..this way if they forget the password in the future, they can look it up in their email...also we wont have to implent the forget/reset password scenario (we are close to release).. is this approach safe enough? My second...

sprites vs image slicing

I don't have much experience with the sprite approach to images (http://www.alistapart.com/articles/sprites). Anyone care to share some pros/cons of sprites vs. old-school slices? ...

Trouble with join query

Hello overflowers ;) I'm implementing home brew ACL system in web app and it gives me hard time. I believe this is trivial, just can't get my head around it. I have 3 tables in one to many relationship: resource, perms_group, perms_users where perms_group is a key table while perms_users allowes me to fine tune access per user basis if...

Writing a website in Python

I'm pretty proficient in PHP, but want to try something new. I'm also know a bit of Python, enough to do the basics of the basics, but haven't used in a web design type situation. I've just written this, which works: #!/usr/bin/python def main(): print "Content-type: text/html" print print "<html><head>" print "<title...

Do web apps encrypt passwords during login when integrated security is enabled within IIS?

I have always enabled integrated security on my web apps inside IIS with the assumption that the passwords that are requested on the client end will always be transmitted securely (encrypted) to my authentication server (AD/LSA). Am I correct on my assumption? The reason I have always assumed this is 'coz I always think of them as being ...

AM / PM not showing on DateTimes in .NET 2.0 Website. AMDesignator/PMDesignator is periodically set to empty.

I have a .NET 2.0 website that is periodically losing the value for the DateTimeFormatInfo.CurrentInfo.AMDesignator (or PMDesignator) property. This causes code such as Now.ToString() or even Now.ToString("dd/MM/yyyy hh:mm tt") to not properly display the AM/PM designation which then causes date validation to fail. This issue happens sp...

What information to save to a cookie for future account authentication?

So I'm building my first ever website with user accounts. What data should I store to the cookie so the user can prove that they are in fact that user? Right now when the user logs in I save the user ID, the username, a randomly generated session ID and the hashed and salted password for future authentication. I'm not sure if I should be...

How to specify language of website? (HTML?)

How do I specify that a page is in a certain language so search engines can understand? Is it a meta tag I put at the top? If it is, do you know if most of the search engines use this to determine language? I have converted 1 page of content in english to several different languages, and would like to include that information in the ht...

How to implement one time (per user) messages in a web app?

When you want to alert a user of something once (one time notes about new features, upcoming events, special offers, etc.), what's the best way to do it? I'm mainly concerned with the data representation, but if there are more issues to think about please point them out. This is my first time approaching this particular problem. So my ...

Advantages of web applications over desktop applications

In the company I'm working for, it seems that all of a sudden all of our applications need to be ported to web applications. For as far as I can understand, the only reason is that the web application hype has finally contaminated some of our decision makers. I am a fan of desktop applications because they are more user friendly. In my ...

asp.net development server + FF issue. IE OK

Guys, I've came across this problem I can't resolve myselg, I'm pretty sure I miss something pretty obvious, but that's usually how it is. I'm developing my asp.net webapp in VS2008, XP SP3. When I want to debug, the asp.net starts the development server and the default browser associated with the vs2008 opens up and loads the page. In...

Block spam from "tell a friend" forms

You have to have a form on your website for people to send an email to a friend if they found something interesting. You can force people to be logged in (which is not a good option in my case). You can make time delay (this is not really urgent email, so it can wait for 5 minutes). Do you have this problem? How would you solve it? Edit...

Does jQuery or JavaScript have the concept of classes and objects?

I found the following code somewhere, but I am not understanding the code properly. ArticleVote.submitVote('no');return false; Is ArticleVote a class and submitVote() a function of that class? Or what does the above code mean? And is there any concept of classes and objects in jQuery or in traditional JavaScript? How to create them?...

How to generate 63 million prize codes

Hiya All, I am trying to come up with a "smart" and "secure" way of generating about 63million unique codes to be used in a competition. The codes will be about 10 characters long. Has anyone done anything similar or aware of any "hurdles" that might arise from this issues? How do we minimize the probability of someone being able to gu...

consuming web services in classic asp

hey guys, i need ur help regarding web services in classic asp here is my code Set oSOAP = Server.CreateObject("MSSOAP.SoapClient30") oSOAP.ClientProperty("ServerHTTPRequest") = True oSOAP.mssoapinit("http://buergerserviceschul.niedersachsen.de/modules/id/public/webservice/V4_00/rpc_lit/?wsdl") strXml = oSOAP.getAnliegenkategorien(ses...

Validation are dissapearing while deployment in asp.net

I have a asp.net validation in test box when i debug and run in vs2008 web developer edition is working fine. But when i display the code in the production server by copy pasting the code in web root folder its not working. I am developing the application using vs2008 web developer edition in windows 2003 server, i am deploying the cod...

JavaScript to gather visitor information/stats.

I am looking for a piece of code, or even a list of all browsers' properties JavaScript can access so I can prepare my own stats system. I'm not looking for anything that server-side parser can get (e.g. Agent, referrer, etc.). I am not interested in external solutions like Google Analytics. The reason for this is that I want to run i...

How to capture submit form response "different domain"?

I have a case where i want to submit a form and get the response from this submit, because based on this response "at least submit complete response" i will make some other logic. What makes my case is different that this form is on a domain and i am submitting it to another domain name so can't use ajax submit due to cross script secur...

How to make a page wait till another page finish submit?

I am using Javascript-JQuery to submit 2 aspx pages, $('#MyForm1').submit(); $('#MyForm2').submit(); for some reason i want form1 to don't start loading or submitting until form1 finish loading. I want all of this to be server side. Can a page wait another page in asp.net? ...

What's the Best Way to use Response.Redirect to for A Pop-Up in a .NET Web Application?

I'm trying to do this in a way that will prevent end-user browser security features (such as a pop-up blocker) from getting in the way of my application. ...