web-development

is there a way to use a view as a menu in drupal?

I want to have a view displayed as a menu either in primarylinks or secondarylinks. I searched and looked up all modules with no luck. should I build this functionality manually ==> build a module? thanks in advance ...

What's a RESTful way of presenting a form?

I understand most of how a RESTful site design should function, but in implementing a blog cannot decide the best way to present the form to insert a new blog post. Would example.com/posts/create be reasonable? This feels like the "create" is not restful, like it's putting information into the URI that should be simply represented by PUT...

Different css files based on web.config setting

I'm using asp.net MVC2 and trying to select css file based on a setting. Index controller gets it from web.config Dim vCountryCode As String = ConfigurationManager.AppSettings(MyAppConstants.DEFAULTCOUNTRYCODE.ToString) SessionHelper.SetCountryCodeSession(vCountryCode) site.master looks like this: <% Dim CountryCode As String = Me.S...

How to reset the style properties to their CSS defaults in javascript?

On a php generated page there are several elements like this: <td class="defaultTDStyle" style="color:userDefinedCustomColor" id="myTDId"></td> So there is a default style and I apply several extra styles that override the style defined in the CSS. Is there a way to remove these added styles from javascript? It seems the obj.style.co...

Android Softkeyboard not showing up when form field is focused via JS.

So I'm using the jQuery plugin, RSV(real simple validation) because the client would like to use alert boxes as opposed to inline alerts for the form validation. This site is for mobile browsers. The problem I'm running into is that when there's an error, an alert dialogue comes up to tell the user about their offense. When the alert is ...

PageMethods not showing the my function which is declared server-side

I have a function which I defined in the code-behind as follows: <WebMethod()> _ Public Shared Function testFunction() As Integer Return 0 End Function I'm trying to call it using Javascript on the client-side as shown below: <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePartialRendering="True"...

Check how many times file downloaded?

I have a zip file on website running on a Windows 2008 / IIS7 server. Is there a way to check how many times that file was downloaded? ...

Cookie not being set on IE, but sets fine on chrome and firefox

I'm calling this code on IE8, and on firefox: document.cookie = 'val=500; expires=Wed, 18 Aug 2010 09:06:21 GMT; path=/dir/257/the-quick-brown-fox' It works fine on firefox and chrome, but not on IE. Anyone see whats wrong? UPDATE: if I don't put the path then it works in both browsers, but I'd like to be able to put the path: docum...

Threshold to stop supporting Internet Explorer

Possible Duplicates: Should we support IE6 anymore? IE6: To support or not to support. I always wondered what people generally thought about IE support for web sites and applications. Currently, I believe that it is dependent on the audience. In my opinion, a traditional company website targeted at general people should emp...

How to show image randomly with fade-in fade-out using jquery?

This is HTML Code. <div id="Slogan"> <h1> <img src="img1.gif" /> <img src="img2.gif" /> <img src="img3.gif" /> <img src="img4.gif" /> <img src="img5.gif" /> </h1> </div> #slogan {float:left;position:relative;width:100%;} I want show all image randomly but one by one like slide show, with fade-in fade-out effect. How to do with jquery...

Correct usage of HTML5 <hr> tag

Hi, I'm writing a new webpage for a company and I have (a sane subset of) HTML5/W3C recommendations in mind. After reading the semantic meaning of <hr />, I was wondering if this was a good place to use it: <section name="historyItem"> <h2>2002</h2> <p>Dolorem ipsum dolor sit amet in 2002, consectetur [...]</p> <hr /> ...

Nested lists and z-index

I'm building a navigation menu for a website and the menu has submenus. When the submenu slides down, it needs to lie behind the main navigation. I've tried using z-index but it won't work. Since the submenu is a child of the LI, is it not able to lie behind? The code is a bit verbose due to the image sprite, so I'll link to a pastie...

Input Type: Separating Javascript Code From Front End Code

The following is code that is within an html file. What is the ideal way to separate the javascript code (if (this.value etc etc)) from html file? input type="text" name="username" onblur="if (this.value == '') {this.value = 'email';}" onfocus="if (this.value == 'email') {this.value = '';}" ...

Which Web Programming Language?

I must to choose programming language for developing a popular web site. This site will use by many user and users spend many time in this site Which Web Programming Language and framework(toolkit) must be choosen? ...

How to view a site as IE would see it, without IE?

So my issue lies within the web design realm. As much as I hate IE, I want to make sure my site is showing correctly for users who are unfortunate enough to have it. The problem is, I run OS X, so the last version available to me is 5, which barely even starts on my machine. Are there any worthwhile plug ins or methods so that I can de...

Which Publish method is most efficient at maintaining a large website?

I'm using VS2010 and TFS to build a complex medium sized website. Which protocol is most efficient and secure? I think I can enable any protocol I need since I own the IIS server and control all aspects of it. My choices are: Webdeploy FTP FileSystem FPSE There is also a hint at something called "one click"... not sure what that ...

how to save images on cms?

i have an old cms (classic asp) where for every image that the editor is upload i save 3 images (small,big and original). the size of the images are pre defined in the db (for each modul difrent size). now in the new CMS (asp.net) that i build i think to save just the original and create images on demand with the right size? did it's...

Is there a way to let a user view an image they are about to upload client side before uploading to the server?

When a user is uploading an image, is there a way I can load the image client side and show it to them first, before uploading it to the server? Preferably using javascript/jquery only, but using flash would be acceptable too. ...

div vs image efficiency

What is a better solution in terms of size (page loading speed etc.): I need to have many (up to a couple hundred) small, colored boxes (about 30x30 pixels or so) shown on a single website. Should I Make each box a div with a colored background? Make each box an image loaded onto the page? There are only a few (less than 6 colors) ...

How do you override a the save method in Django and raise proper errors that will be caught by the Admin interface?

Hey everyone! I'm a little stumped here, I can't find what I'm looking for in the Django docs... What I want, is to be able to override the Save method of an Model. I want it to check for a certain set of conditions - if these conditions are met, it will create the object just fine, but if the conditions are not met, I want to raise an...