web-development

.click() event not executing

http://jsfiddle.net/M6xdq/ What I want to achieve, is - when user clicks the "read more" link: it's removed changes it's label to "read less" this new "read less" link is added to next element of it's parent (readmore_holder) "readmore_holder" is displayed; Then there should be the other part with "read less" to swap links back aga...

Crosstab reports

Hi, I'm looking for a library/component/class to create synamic cross-tab reports that must be shown on a web page. One important requirement is that it must run on Linux and written in PHP, Python, FreePascal, Ruby, C or C++. I can't use Java or Mono here. ...

How to compare dates in Django

I would like to compare a date to the current date in Django, preferably in the template, but it is also possible to do before rendering the template. If the date has already passed, I want to say "In the past" while if it is in the future, I want to give the date. I was hoping one could do something like this: {% if listing.date <= no...

Gathering data for evaluating website's accessibility, and evaluating it

Is anyone aware of any kind of ressources (projects, books, academic papers, etc) on inspecting a website's accessibility with javascript? (fully ajaxified websites, otherwise it wouldn't be possible with the precision I wish). I'm especially interested in evaluating the anchor paths followed by the visitor (read: graph theory). Note: I...

PHP: regular expression to find out and retrive values from xml attributes

Hi all, How can write a regular expression to retrieve values from xml node. Actually the node structure is very big so we can't traverse easly, so i want to read as normal text file and hop i can write a regx to findout the matching elements. <node1> <node2>str</node2> <node3>Text</node3> <myvalue>Here is the values string..</myvalu...

What technology should I use/how should I deploy my killer web app?

I finally decided it was time to write that "killer web app" we all dream about. :-) I've been a programmer for almost as long as I can remember so I'm not scared of technology, but I haven't been active in the web world for about a decade. Looking for some help on the direction I should go. The app I'm considering: (in order of impor...

Features/functions that make your app more professional? Coding hobbyhorses.

What features do you implement (how) in your PHP web applications because you deem it "more professional" in some way? Or do you have personal nitpicks and code hobbyhorses, specifically small things that might count? Which unsavoured code or minor functionality do you spend an inordinate amount of time on to get right? . Example co...

What technologies and tools would you use to create a new user data driven web site?

HI, I’m an experienced c# / ms-sql developer that has been mostly focused on WinForms / backend data services using remoting / XML Web Services and now some WCF RESTful services. I also have experience with ASP.Net WebForms (although not with Ajax or MVC). I’m looking at creating a web site and wanted to get some input as to what t...

Restrict access to web directory but allow sub-domain

I am trying to deny access to a sub-domain directory from people accessing directly rather get them to browse to the sub-domain directly. For e.g I want people to be able to go to http://test.example.com and not http://example.com/test. If they do show a 403 Forbidden error. Is this possible through htaccess ? Googled it but cant see any...

What are sessions? How do they work?

I am just beginning to start learning web application development, using python. I am coming across the terms 'cookies' and 'sessions'. I understand cookies in that they store some info in a key value pair on the browser. But I have a little confusion regarding sessions, in a session too we store data in a cookie on the user's browser. ...

significant certificate for web developers?

Hello dear, I like to improve my career. And can you suggest some certifications for web developers? I find out w3school's certificate for HTML, CSS, JavaScript. How about it? Thanks! ...

How to use HttpContext of an existing web site, from a web service?

I am building a web service which uses some of an existing web site's methods. However, some classes and methods cannot be used (for example Redirect - which obivously throws an exception when not invoked from a web site's context). Now I came to a section in code where HttpContext.Current.Application.Get(keyNames.EncodedKey) Is used. ...

How can I write an automated script to log into, navigate, and save a website from a headless server?

Currently, I have a script that calls Firefox and runs a macro, but this is very buggy and rarely works the way I want it to. ...

Lazy Load Tree View Web Implementation

Hello, I'm looking for a tree view web implementation. I'm using Grails 1.3. The user has a need to navigate a data set > 80Mb. The data has a hierarchical nature, so a tree view seems natural. The ability to compare sub trees is also desirable. Loading the entire data set takes to long and will likely overload the browser. Is there a ...

Facebook starts over PHP or JAVA?

If Facebook were to start over what should it use PHP or JAVA (J2EE)? Why? Special considerations: Scaling Development speed Maintainability Development tools Development costs 3rd party applications Security Deployment speed ...

how decrease font size ?

i am using this css. .text_style3{ font:normal 8px Helvetica; color:#f7922c; } i want to it more small but after 10px this is not working. i have used 7px, 6px, 5px etc. but this is not working. so how can i decrease size. this css is not working in mozilla. ...

Content inside CDATA is not displayed properly when processed through JavaScript

I have an XML document with some sample content like this: <someTag> <![CDATA[Hello World]]> </someTag> I'm parsing the above XML in JavaScript. When I try access and render the Hello World text using xmldoc.getElementsByTagName("someTag")[0].childNodes[0].textContent all I get was a blank text on screen. The code is not returning ...

How to take dump of serverdb in mysql

Hi folks, I have database on the server but as a developer when we found some bug in the product then to resolved that bug quickly we need to take dump of database which is currently present on the server.As the db size is much larger so it is not possible everyday to create dump and download it which is wasting some times.So I w...

Keep JavaScript files in HTML or in JS file - what is best?

Would the page load faster if I keep all my JavaScript files in a separate file say MyCode.js and reference that file? Or does it not really matter? Thanks in advanced! ...

Facebook starts over PHP or JAVA?

I'm a business guy, and would like to understand some of the differences between these two technologies when they apply directly to Facebook, and the 6 points below. If Facebook were to start over what should it use PHP or JAVA? Why? Special considerations: Scaling Development speed Maintainability Development tools Development costs...