web-development

How to call a javascript function after the selection of file from the Open Dialog window close event. in HTMLusing html file type="file"

How to call a JavaScript function after the selection of file from the Open Dialog window close event. in HTML using HTML file type="file". I have a file input element <input type="file" id="fileid" > How can i call a JavaScript function after the file open dialog window close event. ...

Extracting the hyperlink value from an excel cell using asp.net

Hi, I'm reading an excel file using oledb in my asp.net code (vb). I have no problem going over the data but in one of the cells there is a string that "hides" a hyperlink. I want that hyperlink and not the string... Any ideas? Thanks ...

JavaScript: how to create a JS event that requires 2 seperate JS files to be loaded first while downloading them asynchronously?

I want to perform asynchronous JavaScript downloads of two files that have dependencies attached to them. // asynch download of jquery and gmaps function addScript(url) { var script = document.createElement('script'); script.src = url; document.getElementsByTagName('head')[0].appendChild(script); } addScript('http://google....

Does <httpRedirect> in web.config work in a mono setup? Or is it IIS7 specific?

We had some content restructure recently and I'd like to put in some redirect rules into web.config so bookmarks to the old pages can get routed to their new locations/pages. I tried using this approach: <location path="~/product/productA.aspx"> <system.webServer> <httpRedirect enabled="true" destination="~/product/category...

CSS: My site looks exactly the same in Firefox/Chrome/Safari - but IE7, it's all out of whack

On [my site][1] everything looks great in Firefox/Chrome/Safari (all the same) - but IE7, it's all out of whack. Any ideas how I can modify my CSS to make IE7 at least somewhat usable? ...

Has anyone used JanRain / RPX to enable users multiple login options (e.g. Google, Twitter, Facebook, etc)?

I'm debating whether to consider using a product like this to provide my users with multiple login options or to build/maintain this myself internally. What are the pros of this product/service? What do you see as the major arguments NOT to use this project/service? ...

Tracking progress of 'Publish Web' action in VS2008

I'm using the "Publish Web" action to deploy my web application. Is there a way to track it (see the progress) of this action? Does the command line version report progress? Is there a better alternative? ...

Is there no Javascript LIKE statement?

I want to do this but dont know how to do it in JavaScript. if (Email == "*aol.com" || Email == "*hotmail*" || Email == "*gmail*" || Email == "*yahoo*") { alert("No Hotmail, Gmail, Yahoo or AOL emails are allowed!"); return false; } Any way around this? ...

How to apply coding methodologies and practices to non-coding work?

I can talk for hours about best-practice, source control, change management, feature tracking, development cycles and the lot, but most of what I've learnt or read seems to apply to nuts-and-bolts programming of compiled applications. You know, ASCII files that gets turned into 1s and 0s. How does one apply the same discipline and wisdo...

MySQL: How to add one day to datetime field in query

Hello, In my table I have a field named eventdate in datetime format like 2010-05-11 00:00:00. How do i make a query so that it adds one day to the eventdate eg if today is 2010-05-11, i want to show in where clause to return all records with tomorrow's date. Update: I tried this: select * from fab_scheduler where custid = 133466605...

Stateful EJBs in web application?

Hello I never used stateful EJBs. I understand that a stateful EJB can be useful with a java client. But i wonder: in which case to use them on a web application? And how? Should we put these stateful beans in Session (because of stateless http)? Is it a good practice? (without debating too much about stateful vs stateless) ...

Recommendations for c++ web programming frameworks that do not use .net

There are obviously a lot of different choices out there if you want to program for the web using Java. Does anybody have recommendations for someone who wants a free software framework for web programming? I want to work on Linux, and I would prefer to avoid .net/mono. ...

mysQL Query help regarding find text

Hello, I need to get all rows in which eventname field contains this text (including single quote) 's Birthday I tried this but it is giving error: select * from fab_scheduler where eventname like '%\'s Birthday%' How do i construct such query? Thanks ...

Make Apache server available on a LAN via custom ServerName

Hi, is it possible to set up an Apache server on a machine which is part of a LAN, then allow machines on the LAN to access the server via a custom ServerName (instead of Localhost). I want to serve a simple website in an office space using a short ServerName (no ports etc if possible), but I want to make sure this is possible (after ori...

Click() works in IE but not Firefox

I have code which is trivial but only works in IE not Firefox. $(document).ready(function(){ $('li#first').click(); }); I have also tried: document.getElementById('first').click(); But that doesn't work either. Is this an IE bug/feature or is click() not supported in the other browsers? Responding to comments: There is a si...

JavaScript: When does JavaScript evaluate a function, onload or when the function is called?

When does JavaScript evaluate a function? Is it on page load or when the function is called? The reason why I ask is because I have the following code: function scriptLoaded() { // one of our scripts finished loading, detect which scripts are available: var jQuery = window.jQuery; var maps = window.google && google.maps; i...

Is it faster to do the pages first and CSS second, or should I do them at the same time?

I have been tasked with building a new web project from scratch, with the exception of reusing CSS files (the look and feel) from an existing project. In the past I have always completed development of the functionality and the web-ui before considering the appearance. This is mostly due to CSS development overlapping with the tail end...

How do I prevent 'Publish Web' from overwriting config files?

When I publish my Asp.Net MVC website to the production server (via VS2008), the web.config & castle.xml files are overwritten. The content of these files is obviously different between my local dev environment and the production server. How do I prevent these files from being published? ...

JQuery: what's the non-JQuery equalavent of "$("#myDIV li").eq(1)" ?

I'm trying to de-couple my dependence on JQuery, as such - I have the following JQuery: $("#myDIV li").eq(1).html('...'); $("#myDIV li").eq(2).html('...'); $("#myDIV li").eq(3).html('...'); How do I perform the above code without using JQuery (just plain JavaScript). ...

JavaScript: what's the difference between a function name & function reference?

I'm reading the Google Maps API and it states that the: "callback: The function to call once the script has loaded. If using the Auto-loading feature, this must specify a function name, not a function reference. What's the difference been a JavaScript function name vs a function reference? http://code.google.com/apis/ajax/documentati...