javascript

debug IE6 JavaScript within Eclipse

Hi, I'm looking for an Eclipse plugin that will enable me to debug JavaScript running in IE6. Ideally, I'd like to be able to just attach the debugger to a running instance of IE6, but if I have to start IE6 from within Eclipse, I could live with that. Thanks, Don ...

Including the rendering of an HTML document into another HTML document

I have a string representing a stand-alone (and valid XHTML 1.0 Strict) HTML document, something like var html = "<?xml ... <!DOCTYPE ... <html><head><style>...</style></head> <body><table>...</table></body></html>"; The body of this HTML document contains a table whose CSS-style is described in the head of the HTML ...

Javascript to handle manipulating url anchor for bookmarking

Hello, I'd like to use the anchor part of the url (after the #) so that my page can have ajax/dhtml but still be able to have bookmarks work properly. I'm wondering is someone can help me get started on writing some javascript code for this. I'm using jQuery, but if the solution's a generic one, that's fine too. For my page, I could hav...

Stick Iframe to Bottom

I have an iframe that contains a page that is constantly updating (basically a logger type thing). Is there a way (either via JS/jQuery or otherwise) to force the iframe to stick to the bottom of that inner page even as it expands? I basically want to mimic the way may log viewers stick to the tail of a log file as it is updated. I foun...

Has Jquery/MooTools/Prototype eliminated the need for GWT?

I don't hear much about GWT any more. When it first came out, it seemed to be all the rave in certain RIA circles. But lately my impression is that GWT has suffered a dip in popularity because solutions like Jquery/MooTools/Prototype offer a much easier way of solving the same problem. Is this accurate or does GWT solve a different ty...

Which JavaScript framework does Visual Studio natively support?

Is it jQuery? Is there a way to integrate support for the excellent ExtJS or YUI libraries? Any news on whether Visual Studio 2010 will support another JS framework? ...

Display Content Result Text from AJAX Request

I have an Ajax.Action link hooked up to a post method in my controller class that returns a ContentResult. I'm able to make the request and get the response just fine when looking in a tool like firebug, but I'm having problems trying to actually access or do anything with the response text. Basically, I have something like this in my ...

how to insert a a set of table rows after a row in pure JS

I have the following problem: I need to insert N rows after row X. The set of rows i need to insert is passed to my function as chunk of HTML consisting of TR elements. I also have access to the TR after which i need to insert. This is slightly different then what i have done before where i was replacing TBODY with another TBODY. The...

How do I dynamically load Google Analytics JavaScript?

Without using any other JS frameworks (dojo, jquery, etc), how would I dynamically load Google Analytic's javascript to be used on a web page for web-tracking? The typical appropriate to dynamically loading JS is to do the following: var gaJs = document.createElement("script"); gaJs.type = "text/javascript"; gaJs.src = "http://www.goog...

Populating a FilteringSelect datastore from an onChange event.

I'm trying to bind an onChange event of one FilteringSelect to populate another FilteringSelect. // View dojo.addOnLoad(function () { dojo.connect(dijit.byId('filterselect1'), 'onChange', function () { dijit.byId('filterselect2').store = new dojo.data.ItemFileReadStore( { url: "/test/autocomplete/id/" + dijit.by...

why I don't see generated IDs for server side controls?

Hello, I'm little confused here now. Let me explain: I've seen people talking about adding a button or some other control to the page in asp.net (3.5) and when the control renders it changes the Id of that control, eg. Button1 becomes Button1_somethingsomething which prevents them from using jQuery and what they end up using is somethin...

Separating jquery and creating classes / namespaces? (OOP)

Hi, I recently came across DUI (diggs user interface) which implements jquery and gives you the ability to create classes, with jquery etc. I can't seem to find any reviews.. i saw one comment to say it wasn't up to much. I was wondering what everyone else is using with regards to separation of concerns with jquery Do you use some ki...

onClick w/ DOM vs. onClick hardcoded

In javascript, what are the pro's and con's of encoding an onclick event in the DOM and in the HTML itself? Which, if either, is better than the other and why? ...

Add own javascript to validation

Hi, I don't know very much about c#. I am updating a page built by someone else and I want to add a script to a button web control. The form is using c#'s validation and when I look at the returned markup from opening the page, there already is an onclick event handler for the postback submission and validation. So how do I add my own...

Algorithm for data filter

Can you suggest me an algorithm for filtering out data. I am using javascript and trying to write out a filter function which filters an array of data.I have an array of data and an array of filters, so in order to apply each filter on every data, I have written 2 for loops foreach(data) { foreach(filter) { check data with filt...

How can I increase the time a Javascript drop-down menu remains on-screen?

Is there any way to increase the time a drop-down menu created stays on screen? The drop down menu just appears and disappears as I touch the cursor. The drop-down was created using Prototype. ...

How do I control the order of appearance in PHP?

I currently have a page setup like this: PHP Variable Declarations HTML header, then a form to submit GET query The PHP that processes some stuff based on the GET data a bit of JavaScript that makes a pretty graph from the retrieved, processed data What I want to do is have only the form show up when the page is first loaded, and then...

What is the best/fastest way to include my external javascripts? I use jQuery.

I am nearly done with my site and am optimising it at the moment; I would like to know the best and fastest way to include all my external javascript files. I want the site to download as quick as possible, but it has quite a few (10 or so) external javascript files that need to be loaded; some are jQuery library files from Google's AJAX...

Jquery and frames

I am currently working on a web application that has been created using a magnitude of frames that stretch down up to 5 times, The issue is that i need to preform some jquery magic throughout the website. What would be the best way to go about this (other than rewriting it which i have considered)? EDIT: The Frame Structure is somethi...

How do I calculate daily, weekly, monthly compound interest accurately in Javascript?

I need a very accurate calculator formula. Right now my formula works for monthly contributions with monthly compounding, but when you use weekly contributions with monthly compounding, I don't know how to adjust the formula. You can see my calculator in action by downloading and unzipping the attached files. So far, this is the most a...