web-development

Is there a performance difference between 'append' vs 'html'?

Possible Duplicate: What is the difference between .empty().append() and .html() in jQuery? Using jQuery, is there a difference in performance between: $('#somDiv').empty().append('text To Insert') and $('#somDiv').html('text To Insert') ? Also, does one method parse the input as a DOM object before the insert vs simply ...

How can I future-proof my client URL links to my server for future HTTPS migration?

Hi How can I future-proof my client URL links to my server for future HTTPS migration? I have a .net winforms client talking to my ruby on rails backend. If I move the website in the future I want to make sure that my API links from the client don't have to change. Or is this something a hosting provider can let you configure. Oh, a...

How to fade images using javascript?

Need a webpage which displays an image for x number of seconds and then fades into another image which also contains a clickable link. How do I achieve this with javascript? I know this can be done in Flash but it needs to be iPhone compatible. ...

Web Application Testing Rig: What do you use? Any suggestions?

Hi guys, I have recently inherited testing responsibility on a web application. A lot of our testing is related to specific operating systems and browsers. Does anyone have suggestions on building a test rig? I am not talking about automated testing (that is a separate issue that I'm working on). This is more for confirming specific b...

Access Local Files with Local Javascript

Based on the other answers on this site, I already feel like I know the answer to this question, but, as it's slightly different, I wanted to ask. Is it possible to access local files from JavaScript that is running locally on the machine (AKA, my website address will be file:///C:/...)? Or, is this sandboxed as well? What I am tryi...

PHP voting code works on 5.2.5 but not on 5.2.11 anymore

Ok, so a little while back I had some help writing some PHP voting code, it worked just fine after I upgraded my server to use the latest version of PHP. However now I have switched servers, and the PHP isn't as up to date as the other one. Anyways here's my code: <?php if(!file_exists('vote/1u.txt')){ file_put_contents('vote/1u.txt', '...

Javascript Scrolling Images...

I am new to javascript so go easy. I am trying to create a section of a web page to highlight a company's clients. Rather than list them all, I would like to create a auto scrolling effect. For instance, upon landing on the page a visitor sees two logos in the "clients" section, and two seconds later, that area auto displays two new logo...

PHP: How to know whether arguments are passed by reference?

Consider the following code: class myclass { function __construct(&$arg1, &$arg2) { echo $arg1; echo $arg2; } } How do I know that constructor above has arguments passed by reference through code? Edit: I am looking for detecting of they are passed by reference programatically something like this: is_passed_by_ref(...

PHP: Alternative to variables passed by reference?

Hello There, In the minutes php6 developer meeting, i came across a point where it said that call-time-pass-by-reference is no longer there in PHP6. For example, following both are incorrect for PHP6: <?php $foo =& new StdClass(); ?> <?php function &foo() { return new StdClass(); } $f = foo(); ?> If we can't use something like ...

Free comment reply system like intensedebate?

Is there any free script in PHP/MYSQL or in ASP.NET/SQL Server for comment reply system like intensedebate.com. In intensedebate we can reply to any comment or reply. I need the similar free script which I can modify according to my website needs. Please let me know if anybody knows any system like this or if anyone has some concept whi...

Disable events triggered on HTML <SELECT> control

Is there a way to capture the events triggered on HTML controls before they are forwarded for default (generic) handling by the control itself. In my case, I want to prevent a element dropdown to open when a user clicks on the control. e.g. On this user click, OnClick() event gets fired and is handled by the default control which open t...

C++ interface version of HttpWebRequest and HttpWebResponse.

Hi All, We are wondering how to use HttpWebRequest and HttpWebResponse .net framework Class in ATL c++ project is their any interface exposed for webrequest class in C++, currently we cannot have a c# project so we are looking for alternative interface. Any help will be greatly appreciated. Ramanand. ...

Should I wait for Flash Player 10.1 or go with Flash Lite 3 to develop Flash content for mobile phones and devices

Adobe are launching Flash Player 10.1 in the first quarter of 2010, this will provide consistent runtime across desktops and mobile devices (so I assume if it was built for the web it will work on the mobile). I am about to start developing an flash based application for mobile phones, should I look at using FLash Lite 3 or wait until F...

PHP: Why Many Types of String Types And Multiple Implementations Of functions?

Hello All, A number of people are unhappy with the current implementation where there are either too many different string types (binary, string, unicode) or the multiple implementations of many internal engine functions and helper functions. Minutes PHP6 Developer Meeting This is for the PHP gurus. Do we really nee...

Simple and good CSS/HTML IDEs for Mac OS?

What are some good and simple IDEs for writing CSS/HTML code on the Mac? I realize a similar question has been asked before (here, for example), but most answers are about Windows tools. This list includes some CSS IDEs for Mac OS, but it would be good to know which ones are popular (and the list is probably not complete). I'm looki...

CSS/HTML: Does using max-height on images help HTML rendering?

I just finished reading YSlow recommendation to always define the image dimensions (height/width) to improve HTML rendering performance. However, I don't know the image dimension I'm linking too. What I do know is that the height will never be larger than 200px and the width will never be larger than 300px Would I be a benefit if I de...

Proper ApplicationContext usage?

I've recently started learning the Spring Framework, and I'm a bit unclear on how the ApplicationContext is supposed to be used - in both standalone and web applications. I understand that the ApplicationContext, once instantiated with the spring configuration xml, is the "spring container" and is a singleton. But: In the starting po...

CSS: When to use max-height / max-width on images?

When does it make sense to use max-height or max-width on an image? Does it help if I don't specify the actual dimensions of the image because I don't know it. ...

HTML: How does a browser render an image for layout ?

How much layout space does a web-browser allocate when initially rendering: < img src="image.jpg" /> How much layout space does a web-browser allocate when initially rendering: < img src="image.jpg" style="max-height:100px; max-width:200px" /> How much layout space does a web-browser allocate when initially rendering: < img src="imag...

Nested list item styles (with empty container list items)

I'm trying to make the following arrangement with lists: 1. a. TextA b. TextB c. TextC 2. Text2 a. TextA Ideally I wouldn't have to make a seperate class or markup for the first case. The problem is that currently it looks like this: 1. a. TextA b. TextB c. TextC 2. Text2 a. TextA HTML code: <ol> <li> ...