web-development

How to make editable menus with OpenCms.

How to make editable menus with OpenCms. I want when user clicks on edit button then he can change anything with menu - menu label, Link URL, he can add/del an item from sub-menu list etc. ...

Detecting the monitor resultion with javascript on a secondary monitor

I want to detect the monitor resolution with javascript. This works fine with screen.height and screen.width on the primary monitor. On a secondary monitor (extended desktop) this doesn't work! When I move the browser to the secondary monitor and call my javascript function with the resolution detection, screen.height and screen.width ha...

SSL handshake problem? (was: Web page hangs, only clearing browser cache helps)

Please see at the end, as I constantly update with latest investigation data. Currently, I need help with server-side WireShark log. I experience strange issues with ASP.NET MVC web application. Few users experience form post timeouts and hangs, so that after clicking submit it just lasts forever and does not advance to next page. The s...

Special Google Search Result - How to achieve this? (look at the attached image)

look at the following image when searched for some websites... various websites show the above kind of result on google.. like serach for stackoverflow, flickr, deviantart, Hotmail and so on HOW TO ACHIEVE THIS... ...

Why all Frameworks are so Abstract ?

All Frameworks like Zend Framework , Symfony and Others are so Abstract with Loads of includes and requires that I find that on every Request the Apache PHP Module spends atleast a Second to resolve this before actual Spitting of HTML Even starts ( Obviously 1 Second is a sort of Metaphor :) There are Front Controllers and Bootstraps and...

Should I use Ruby 1.9.2 with my new web app?

Starting a new web app with Rails 3. I'm still relatively new to web development and have really enjoyed all the internet resources available to me while working in Ruby 1.8.7 and Rails 2.3.5. Any advice against using Ruby 1.9.2 on my new project? ...

Should I use Git for deployment of web apps?

I use Git to track local changes in my PHP web applications, and I was wondering if it would be a good idea to use Git on the server as well, so that I could just use git push to deploy my changes. Would there be any pitfalls with this approach? ...

In need of a Tool/template that posts downloads similar to Wordpress?

I'm not even sure what they call this or these kinds of tools. But I'm in need of a tool that works similar to Wordpress that works like a blog. However, instead of blogging I want to post downloadable content to my website with images and maybe a description of what the download is. Like a blog, newer posts/content show up at the top o...

Good WYSIWYG web editor (php, CSS, HTML, Javascript) for Ubuntu?

Hey guys, I'm looking for suggestions as to what good easy to use web editors? It needs to edit php,javascript,html,CSS. I'm looking for something that'll speed up my development currently I'm using nano. ...

CSS Selector for Absence of Tag

Given this HTML: <div class="entry"> <a class="meta">Aug. 20, 2010</a> <div class="content"> <h2><a href="#">Hello.</a></h2> <p>...</p> </div> </div> <div class="entry"> <a class="meta">Aug. 20, 2010</a> <div class="content"> <p>...</p> </div> </div> And this CSS: .entry{ width: 760...

Please recommend a good Java framework for web development

Hi all, I am new to Java framework. I am looking for a good Java framework to help me build a JSP web site. I googled for Java framework and it returned a few related terms for me: struts, Cocoon, WebWork. I have no clue which of them is for beginning learner. Do I need to download netBean or eclipse to work along with any of these Ja...

Applying callback to nested array

Hi, I have this array: $array = array('a' => 'apple' , 'c' => 'cat', 'ar' => array('d' => 'dog', 'e' => 'elephant')); Outputting: Array ( [a] => apple [c] => cat [ar] => Array ( [d] => dog [e] => elephant ) ) How to I make the values of above nested array upper case while preser...

How to prevent javascript and css messing up?

My company has a website that serves the same app to several clients so every client has his own html templates and we can't edit anything of that. We developed a beutiful Web 2.0 app with lots of jQuery that works great, it's a web toy fully enjoyable but we have to integrate it with the horrible and buggy stuff from the clients (like ...

Concurrent moderating on a CMS

Hi, I'm building a custom CMS which allow user to post message to it. Messages are short and like tweets. The problem is that these message are moderated by real moderators. And there are multiple moderators working on the messages stream at the same time. And my concern is that what if these moderator are processing a same message. T...

Should ASP.NET v2 IIS server extension be missing after .NET 4 is installed?

I'm having a ton of issues when my ASP.NET sites are using version 2. For example, all my SVC and ASPX files return "file not found". Also when I use IISMgr and navigate to: ServerName ..... Web Service Extensions I notice that ASP.NET v2 is not present. I tried aspnet_regiis but no luck. Does anyone have Windows 2003 with .NET 4 insta...

PHP secure user variable

On my website I have a variable called $user_data that contains input from a form. I then show this variable on the user page (via echo). What is the best method to avoid any security risks with this variable? I use strip_tags(), but it is not enough. This variable also gets saved to a MySQL database. ...

How to know which submit button fired the onsubmit event

When you have more than one submit button in a form, is there a way to know which one fired the onsubmit event without adding code to the buttons themselves?? Edit: I need to do the check on the client-side, i.e. with JavaScript. ...

Keeping a settings file in a Web Application

Are there any recommendations on how to keep an application level settings/configuration file in a J2EE project? I have a web project that has dependences that must write to the logs, and a local settings file. Is there anyway to store the settings file in the local directory and have it writable? [Some of the dependencies are: hiberna...

Rendering a different Javascript file in respond_to

Hi everyone, I am stuck in an (apparently) simple problem. In my event_controller I have the i_like_it action: def i_like_it @event = Event.find(params[:id]) ... # logic respond_to do |format| format.js end end In my case "i_like_it" is called with :method => PUT (it is an Ajax call, "i_like_it.js.erb" will...

If I use an Apache v2 licensed JavaScript library in my web-application, do I have to include the copyright notice?

I have a commercial web application and just found a great JavaScript library I'd like to use. This library is licensed under Apache v2. How do I properly (and legally) use the library in my public web application? Since I like to achieve as much performance as possible in my web application, can I do the following: Can I remove the ...