web-development

Declarative Security--what's this?

Hi, How can I define the term "Declarative Security" in context of web programming? Is it same like defining "Declarative Programming"? ...

Determine supported HTTP version by the web server

Hi, Is there a way to check whether a web server supports HTTP 1.0 or 1.1? If so, how is this done? Thanks, Kenneth ...

How do I block a certain font in Firefox?

I have Helvetica installed on my Windows XP PC, which is great for designing, but Helvetica looks horrendous when displayed in a browser on PC. EG If I visit a website with this style: font-family: Helvetica, Arial, sans-serif; ...Helvetica is displayed, as it is installed on my system. Can I force Firefox to pretend Helvetica isn'...

How to get custom value from text field in JSP?

I'm working in a very simple and small web application, it is a jsp that handles a shopping cart. What I do at this point is to iterate through all the products that are stored in the car and add them one by one to the jsp with each iteration. This is the code that adds a row to the jsp in each iteration: <tr> <td> <inp...

downloading files to users machine?

I am trying to download mp3 file to users machine without his/her consent while they are listening the song.So, next time they visit that web page they would not have to download same mp3, but palypack from the local file. this will save some bandwidth for me and for them. it something pandora used to do but I really don't know how to. ...

copy css from one class to another?

Hi! This may seem like a very basic question but I did not seem to find an answer to it. I know it is possible to define a css rule for more than one element at once as such: .element1, .element2{ font-size:14px; } Is it possible, though, to do that exact same thing, but apply the css to element after the css for element1 has been d...

Is there a Joomla Plugin for Aptana IDE ?

I use Aptana for 2 or 3 months now and i'm very happy with it. But since i need to work with Joomla! and to write some modules, compenents, etc... I'd have like to know if there is a joomla plugin for Aptana ? I would just like to have autocompletion, autosuggest, links to methods and class of the Joomla API Any ideas ? Thanks ...

Accessibility (WCAG 2.0) do we NEED labels in table cells

I'm implementing a system following version 2.0 of the WCAG guidelines. I have tabular data in the form of an editable grid this is rendered using a table. I have given the table column headings and used the scope attribute on the table cells. Going by the WAVE tool, evey form control should have a matching label, but in the context o...

Ie6 and Ie7 XHTML strict input form controls have massive padding

I'm using submit controls in my web page <input type="submit" name="BtnSearch" value="Search" id="btnSearch" title="Search" /> Even when I turn off CSS I get a big gap before the start and after the end of the text of my button. My buttons are also bigger than I want. Is there a way to style buttons in IE6 and 7 to make them more com...

Receiving an array of Object from a web form using Spring framework

Hi, I have a form JSP web page, this form contains multiple instances of the same Java object, I am using Java Spring Framework to control the "communication" with the controller and the view. My problem is that i would like to be able to receive from the view a simple array containing the instances of my objects wich are currently on...

HTML - Escaping single quotes in form controls

I have a textbox whose value contains a string with a single quote e.g. Andy's String <input type='text' value='Andy's String' /> This obviously does not render correctly in a browser. Whats the best way round this? ...

Internet explorer - how do you escape single quotes

In internet explorer how do I escape single quotes. &apos; works for firefox etc but internet explorer doesn't like it. For instance <input type="text" value='Single quotes `&apos;` Here' /> works in firefox but not in IE ...

Will Internet Explorer Developer Toolbar load on Windows 7?

I can't get the Internet Explorer Developer Toolbar to load on Windows 7, assuming IE 8. Therefore I am forced to use Firefox and it's toolbar. Has anyone got the Microsoft toolbar to work on Windows 7? ...

Web UI Development - Dead End Career Path?

Hey There, I've been involved in web application development for the last 2.5 years. I don't have a technical degree nor prior technical experience -- I've broken into the industry simply through freelance / personal projects. I spent a year as a PHP / MySQL application developer, and for the last year and half I've been employed as ...

Javascript String.replace with dynamic regular expressions?

I have the following code, which works, but I need to inject some different stuff into the regular expression object (regex2) at runtime. However, text.replace does not seem to like a string object for the regular expression, so how can I make this work? var regex2 = /\|\d+:\d+/; document.write("result = " + text.replace(regex2, '') + "...

What is the most reliable way to determine the OS of a visitor to a web site?

What is the most reliable way to determine the OS of a visitor to a web site? All other things being equal I prefer an easier to integrate solution. I'm not attempting to gather analytics and I understand there is no completely reliable method. The purpose of this is to subtlely tailor the user experience in ways that do not affect the f...

How do you make a web page change without reloading the page?

What should I look into to accomplish this. When you select an input field some text to the right shows up. For example: https://twitter.com/signup Anyway i need something like that works with PHP. What should I look in to? And also How can you query the database and not have to reload the page to see result? For example i have seen ...

Unable to communicate with Javascript from Flex after dymanically loading a swf.

Hi, for some reason, whenever I dynamically load a swf on a $(document).ready() by writing to a div, I am unable to make javascript calls to the browser. Specifically, all calls to the browser return "null". This does not occur when embedding the swf normally on the page load, but I would like to prevent loading of the swf until a specif...

Linking to scripts or images will change page rank?

If i create some useful services like some dynamic free photos or some useful java scripts, for example http://www.mysite.com/ipaddress.jpg and then other websites use this image or script in their webpages... dose it count for link popularity for me (inbound link) and does it increase my website ranks from google point of view? ...

For a website, is it true the MVC pattern is only used on the server side?

I'm diving into the field of web development after ten years of desktop application development. I'm learning as fast as I can the high level concepts, one of them being MVC. I've noticed things like javascript, css, and html don't fall into the M, V, or the C. I haven't explicitly read it anywhere, but am I right to understand that t...