web-development

How to format dates in Jahia 6 CMS?

I am helping a friend of mine put up a site for his business. I’ve read different posts and sites trying to find the ideal CMS tool, but people have different views of what is the best, so I finally just picked one of them at random. So I went for an evaluation of Jahia 6.0-CE. As you’ve probably guessed by now, I don’t have so much exp...

Differences in Internet Explorer and Firefox when dynamically loading content then going forward and back

I'm developing a web application where, due to slow database access, not all content in a page is loaded immediately but rather dynamically when the user clicks a button after optionally making a selection. This works fine. However, after dynamically loading content, if I navigate to a different web page, then navigate back, in Internet...

How should Django Apps bundle static media?

Hi all, Background: I'm starting to use Django for the first time, which is also my first foray into web development. I just got stuck on the whole "serving static media" problem. After spending a while looking at all the documentation and StackOverflow questions, I think I understand how it's supposed to work (i.e. MEDIA_ROOT, MEDIA_...

Pop up based search and return values to parent form or any other altrenative...

I have a scenario where i want user to open a popup or other page from a web form to search contacts from database and add them to list and when done return that list back to parent form field and continue filling other fields. I have 2-3 user input which should take multiple values for each field from list of values and i wanted to imp...

What is being encrypted when I use a salted CRYPT_MD5 to encrypt my password?

Using md5 on a string always produces an alpha-numeric encrypted result, ie: no symbols. However, when I using the php crypt() function, specifically the CRYPT_MD5 (and it is on, I've checked) with a salt, the supposed md5 hash it returns does not look like an md5 hash. For example: if I md5 the string 'password', I get: $pass = md5(...

Top techniques to avoid 'data scraping' from a website database

I am setting up a site using PHP and MySQL that is essentially just a web front-end to an existing database. Understandably my client is very keen to prevent anyone from being able to make a copy of the data in the database yet at the same time wants everything publicly available and even a "view all" link to display every record in the...

Unable to get google analytics to work on my page which uses AJAX to load its pages.

So after a huge headache, I got my site to load its pages all via ajax. The reason being the client wanted it to flow exactly like their old flash site.. duh. Anyway, everything was dandy, but then I added the google analytics trackers, and it wont load anymore! So heres how I am doing the ajax: $("li.home a").click (function() { ...

Is there a way to force traffic comin from www.abc.com to go to abc.com via htaccess or dns?

I am having some trouble with a flash file that has hardcoded urls in it. The flash loads fine if I visit from abc.com. But if I try to view it from www.abc.com it wont load. So my question is, how do I got about forcing all traffic, including that coming from www.abc.com to be directed to abc.com instead. ...

unexplained spacing in horizontal panel in GWT

hi, i am adding widgets to a horizontal panel, and i want them to be all once next to the other on the left corner. even though i have set the spacing=0 and alignment= left the widgets still have space between them. they are spread evenly in the panel. please see the code here for the widget C'tor and the function that adds a new tab ...

Twitter New tweets feature ?

How does tweeter implement the asynchronous notifications for new tweets ? If it is a form of server push technology, does any one know or suggest how this feature could have been implemented ? Thanks ...

PHP uploader for about a thousand images?

I am working on a websitwe and I need a client to send me close to a thousand pictures. There is a bit of a geographical distance between us, so while mailing a CD or SD card is not impossible, it is not preffered. Can I write a PHP uploader to have the client submit the pictures, or is there a better way? I do not want to subscribe to ...

Listening for TCP connections through a browser

Is there some sort of method I could use to launch something from a browser which would listen for tcp connections? I explored Silverlight but it looks like I can only connect to 3rd parties with a Silverlight app. What I'm looking for is have the user run something in browser which could receive third party connections. I'm starting ...

jquery scrollable issue

Dear All, I am trying to create a scrollable jquery application in which there is an image and some text. I want an image and some text contents I am just getting 1 image and contents(in the below example the contents is in the tag) how can I get the second image and contents by clicking on any arrow. Below is the code. All your he...

Jquery Cycle Plugin Question - Changing and styling links...

Ok, I have this thing working. Rollover the links and it changes the banner/pic. Fantastic. Question is this: How can I change the text from 1,2,3... to whatever I want? In addition, how can I apply background images, hover, and active treatments. In the example at http://malsup.com/jquery/cycle/pager5.html, I am using the #nav a {blah, ...

jquery conflict - how to use the jQuery.noConflict();

I am using JQuery for some drop down nav funtionality. Worked great. Now I just added the Cycle JQuery Plugin and I can only get one to work at a time depending on which order I list them in the head. I have read about the jQuery.noConflict(); function but not really sure where to put it. Here is what I got. HTML <head> <title>#</...

New web development framework?

I have tons of experience with both Rails and Django. I now have some spare time to do some learning. Which emerging web development framework I should learn? Thanks! ...

Firefox : features addons

Firefox is one browser without which i cant even think of developing web application. This comes with so many handy add on and features which makes developers life easy. However features that Firefox has are huge and not every one is aware about them. So i request you all to add unique features/Add on of Firefox which are/will be helpfu...

Naming convention for assets (images, css, js)?

I am still struggling to find a good naming convention for assets like images, js and css files used in my web projects. So, my current would be: CSS: style-{name}.css examples: style-main.css, style-no_flash.css, style-print.css etc. JS: script-{name}.js examples: script-main.js, script-nav.js etc. Images: {imageType}-{name}.{imageE...

Login suggestion query

I want to suggest login to user if their first choice was already taken. Suppose, user want to register as "Superman". There is already some Supermans on site. Logins are suggested in form "Superman01", "Superman02" and so on. So, script must: check for 'Superman' login in db if already used, append '01' to login and check for it in DB...

Using git for a large website

I am looking for some advice on how to use git for a website with a lot of html content. We have 2 content managers that do basic html coding and upload their work to the server. I am the only developer. The site is pretty equally divided between 2 types of content. First is a news content that is posted to a database and displayed thr...