web-development

How to get browser to navigate to URL in Javascript?

What is the best (correct, modern, cross-browser, safe) way to get a web browser to navigate to a URL of your choice using Javascript? ...

How do I use a different image for each JQuery UI Slider handle

I'm using a JQuery UI slider which has two handles (a.k.a range slider). I know how to style the first handle: .ui-slider-horizontal .ui-slider-handle {background: white url(http://stackoverflow.com/content/img/so/vote-arrow-down.png) no-repeat scroll 50% 50%;} But how do I style the second handle differently? Using Firebug I can see...

Upload File in Ajax by Wicket

I want to upload a file by ajax in wicket.what should I do. beacuse it Seems that wicket does not support this feather. ...

Applet not seeing javascript methods every time.

I have an applet that does extensive communication with javascript and the browser. Now, I've stuck a JSObject call in the init method of the applet to notify the browser that the applet is there and good to go, but I've noticed something strange. Occasionally, when making a javascript call from an applet in its init() method, the call f...

References on how to create webtests for ASP.NET

I've been working for a while with .net unit testing and stuff. Now I need to create tests for ascx and ascx.cs pages (but it aspx and aspx.cs references might also help). I'm not very familiar with webtests. Can anyone give hints or references that might help (tutorials, blog posts about best practices, etc.)? It can be references abou...

which is the most simple registration form?

Hi all, I think it's a simple question but a little bit complex question too. ;-) What are the required fields for a simple user registration form. I think we don't want to enter all the user details at the first step of the registration, we can set that after the successful registration. sample form First name :_ _ _ _ _ _...

Using the QueryString as a debug switch?!

Hi, I was refactoring some code in a web application today and came across something like this in the base class for all webpages: if (Request.QueryString["IgnoreValidation"] != null) { if (Request.QueryString["IgnoreValidation"].ToUpper() == "TRUE") { SessionData.IgnoreValidation = true; } } To me, this appears t...

Why is my ASP.NET MVC project saving several copies of itself?

This is really weird behavior, let's say I have an asp.net mvc project as follow on my desktop (vista): /mvcapplication/app1 then over the course of development, I copy this solution to a briefcase on a thumbdrive so I can work on it from a laptop (xp). When I insert the thumbdrive back on the desktop, I notice it's taking longer and ...

Silverlight 3 Merged Resources question

I have defined a custom resourceDictionary and I have added it to the app.xaml resources I have a style with key "MyStyle" in the Theme.xaml. How can I access the MyStyle style from the MainPage.xaml? ...

state of web development using functional programming language

I am considering ditching Ruby on Rails for my web-development pet-project and using a functional programming language (with or without a framework). Not that there is anything wrong with RoR, but I'd just like to learn something else and it seems a good way to learn functional programming. I know of a couple frameworks (Lift for Scala a...

Two parter: Django book recommendation + Django real world advice

First question: What is your favorite Django book or online learning material? CodeProject examples + Django documentation, O'Reilly, etc. Second Question: What are some good tips and advice you have picked up along the way which helps you to use Django more effectively? Certain design patterns, language idioms, frameworks which tie ...

ASP.Net MVC - Style List Item Based On Controller

My ultimate goal is to have a menu that adds a class to the list item that associates with the current page I am on. So I have it set up such that each controller will be associated with an item in my menu. I need to add a class to that list item (changing the color, background, whatever). Is there a simple way to do this? Pass a v...

How to clean a string by removing anything that is not a letter in PHP

lets say I have an html document how can I remove every thing from the document I want to remove the HTML tags I want to remove any special character I want to remove everything except letters and extract the text Thanks ...

How to remove duplicate values from an array in PHP and count the occurrence?

How to remove duplicate values from an array in PHP and count the occurrence of every element? I have this array foo bar foo I want the result to be in array like this value freq ---- ---- foo 2 bar 1 Thanks ...

Which is the future of web development: HTML5 or Silverlight(or other RIA framework)?

My colleagues have a heated debate on what is the future of web development. One side is supporting HTML5 and the other is supporting Silverlight. There is no conclusion of the debate yet. In my humble opinion as a programmer, HTML5 will not improve programming productivity, while Silverlight will. In my understanding, programmers still...

How to figure out the location of a keyword in an HTML document?

I have an HTML document as a string I want to search for a keyword in this document and figure out where did it appear in the document I mean in which tag did it appear did it appear in H1,H2 or TITLE tag lets say my document is $string = "<html> <head> <title>bar , this is an example<...

Jquery ajax calls in ASP.NET webservice vs page method

I am making an AJAX call in my ASP.NET application via Jquery to a page method. $.ajax({ type: "POST", url: "APage.aspx/GetDropDowns", data: "{'AId':'1'}", contentType: "application/json; charset=utf-8", dataType: "json", success: function(msg) { alert(msg.d); }, error:...

Cool applications for WebGL?

The recent SIGGRAPH 2009 saw the announcement of WebGL - a port of OpenGL ES to javascript. The application that immediately came to my mind is web-based 3D first person shooters with AJAX as basis for communication. I think this has the potential to answer the long awaited promise set forth by VRML a long long time ago... Can you thi...

An .ascx user control page opens up as hex?

I am not sure if this is related to this weird behavior I'm experiencing: http://stackoverflow.com/questions/1229811/why-is-my-asp-net-mvc-project-saving-several-copies-of-itself But I'm completely stumped. My solution (asp.net mvc application) currently resides on the thumbdrive (cruzer micro 4gb), all the files were fine as of last n...

Customizable Web Applications

At my company we develop prefabricated web applications. While our applications work as-is in many cases, often we receive complex customization requests. We are having a problem in trying to perform this in a structured way. Generic functionality should not be influenced by customizations. At the moment we are looking into Spring Web Fl...