web-development

Runtime creation of tables in Javascript?

Hi, I my application "When a button is clicked it should create a new text field in the table". So i have done like this and its not working as well. So what could be the problem in the following snippet. <html> <script type="text/javascript" language="javascript"> var newtr=document.createElement("tr"); var newtd=document.crea...

How can I automate and share sessions between Firefox and Perl?

Is it possible to do part of a web flow in Perl and then transfer the rest of the session to Firefox? I need to retry(with Perl) logging in to a website which returns 500 every now and then on a successful login, transfer the authenticated session to Firefox, from where I can continue my normal browsing. Is this possible? If this is poss...

Moving from web generalist to some particular specialization. Any suggestions?

I've kind of asked this before but I don't think I asked it properly, so I'm changing it up and hopefully I should get better responses. I'd like to change the nature of my day job, Rails, with something that requires more thinking, something that requires math hopefully. I'd really like for the change to be gradual. That would help my ...

firebug: does the toggle inspect mode shortcut work for you?

Hi everyone, I love firebug, but I get annoyed by the fact that when using "inspect mode" I cannot (i) place the mouse over the element I am interested in and then (ii) move the mouse to the firebug pane without firebug tracking my mouse movements while on my way there. What happens is that, between the moment I place my mouse over the ...

Need Generic Utility Method C# for Populating Asp.net DropDownList

I have a method like the following in a Utility class. I would like to change the parameter dataSource to accept any type of datasource i.e. dataset, dataview, List, datatable, arraylist. Is this possible? How would I change the method signature (and parameters and types) to allow me the flexibility of passing in any acceptable datasou...

How do I undeploy/completley-remove .war deployed under webapps directory when Tomcat 6.x is uninstalled?

Hi All, Does anyone know of a method to remove all webapps deployed from .war files when uninstalling Tomcat (other then Shift + Delete . . .)? The reason I ask is is described below. I am using InstallShield 2009 to lay down a copy of the JRE and Tomcat 6.x, where the Tomcat start/stop uses org.apache.catalina.startup.Bootstrap and i...

Should I be using XML + Stylesheets vs. XHTML and CSS?

I have been developing web apps for a while now and for the past year I have been really exploring as many technologies as possible. I know some people are creating pages using XML and XSLT or maybe css style sheets; however, it seems to me that the trends are still not moving in direction. Plus it seems less functional/easy than XHTML/C...

Is there a PHPish way of doing webpages with Ruby?

Is there a framework or something out there so that I can develop webpages in Ruby the same way I can as PHP. Something like <html><head></head><body> <?ruby puts '<p> Hello there!</p>' ?> </body></html> The only thing I'm seeing for using Ruby in webpages is huge complex frameworks that is completely different from how PHP works. I...

Will this urllib2 python code download the page of the file?

urllib2.urlopen(theurl).read() ...this downloads the file. urllib2.urlopen(theurl).geturl()...does this download the file? (how long does it take) ...

Resizing images on mouse over (Javascript/MooTools)

I've built a webpage that's supposed to increase the size of images onmouseover. I'm not replacing the images with bigger ones but rather "stretch" the existing ones because of system limitations. Here's the webpage: http://www.moviez.4pu.com/IMDBQueries.aspx You can see that the movie images get bigger when you're on them. Problem i...

How to apply Google Closure to my entire web page?

Google has the very nice JavaScript compressor called "Closure" http://closure-compiler.appspot.com/home But it's a pain to use for inline JavaScript within an HTML file. Question: Does an online tool exist where I simply give the input "uncompress.html" and it spits out the compressed version of that HTML with all inline JavaScript c...

best practice for loading necessary JSON data: jquery's $(document).ready() hook? in the <HEAD> of page?

Hi everyone, I have been reading Yahoo's Best Practices For Speeding Up Your Website, but still have a question that I could really use your help with: The very first page of my web app needs to display a bunch of data that is dependent on the city the user is in. On the first visit, the user is prompted to pick her city and I store ...

How do I execute a query string contaning an unencoded url?

how can I do this without getting "forbidden". Other sites do it, for example http://twitter.com?status=http%3A//somesite.com works just fine. I've been looking everywhere for an answer. Please can somebody help! Please note my example is automatically encoded (imagine it without the %3A) ...

How to select current menu in master pages?

In my web app (asp.net C#) I have menus as "All", "Education", "Fun", "Comedy". I want when I select All then it should be displayed as current menu, for which I have a CSS class current. In case of WebUserControls I can do it easily by passing parameter of current page to select as below: mywebpage.aspx <uc:header ID="header1" runat=...

Development environment - VCS from development to staging server to production

Hi, I've read a number of topics in the same sort of ballpark as this one, but in all honesty I'm still not exactly sure on the best approach (as a starting point). I am a solo developer in a small office and I have around 30 websites which are hosted on a linux VPS. I want to start using using version control (probably SVN) and also set...

MSBuild Create Virtual Directory on XP (IIS 5.1)

Our process for creating a new development (get latest, setup db, setup IIS directories with permissions) environment has got a little complicated and I want to automate it. The only bit I am stuck on is creating an IIS Virtual Directory for the WCF service layer. We develop with windows XP (IIS 5.1) but will be moving to Windows 7 (I...

JavaScript: set_map not working anymore

I was using built-in JavaScript .set_map function as discussed on this stackoverflow entry but not, it just stopped working. I've literally not changed my code in 2 months and now, Firebug is reporting: Error: *set_map is not a function* It appears the original poster of the Google Maps plugin is also experiencing the issue on his/her...

JavaScript: Sluggishness events? Google Chrome "Speed Tracer" extension is reporting

Using Google Chromes new Speed Tracer extension to profile my app. Appears my app is constantly reporting "Sluggish (events) 100%", which means the browser is blocking html rendering. I don't understand enough how to interpreter the Speed Tracer tool to fix this issue. Any help appreciated. My web app is: bit.ly/7J0U ...

JavaScript and Flash incompatibility with IE

Hey! I have a JavaScript Picture gallery. The arrows under the gallery make possible to move through all pictures of the gallery. When I have added to that page also a .SWF flash animation the gallery arrows stoped working properly in IE. But in other browsers like Mozilla, Google Chrome, Opera and so on it works! I have removed the .SW...

What is the difference between .empty().append() and .html() in jQuery?

Using jQuery, what's the performance difference between using: $('#somDiv').empty().append('text To Insert') and $('#somDiv').html('text To Insert') ? ...