Tagged Questions

0
votes
1answer
7 views

Load JSON at runtime rather than dynamically via AJAX

Hi, I don't think this can be done "cleanly", but I'll ask anyway. I have a system which needs to get a JSON resource via a REST GET call in order to initialize. At the moment th …
1
vote
4answers
47 views

What do you use to debug JavaScript besides Firebug? [closed]

What are your favorite JavaScript debugging tools besides Firebug? Thanks, Eric Duplicate: http://stackoverflow.com/questions/103155/javascript-debugger
0
votes
2answers
55 views

JSON security best practices?

While researching the issue of JSON vs XML, I came across this question. Now one of the reasons to prefer JSON was listed as the ease of conversion in Javascript, namely with the …
0
votes
4answers
54 views

How do I add a DOM element with jQuery?

I have a funciton that I am currently using to show a hidden div.a_type How can I modify this code so that instead of fading in the hidden div, I can add the new div to the DOM …
0
votes
6answers
34 views

Implementing a self resetting XMLHttpRequest object

I'm trying to implement a comet style, long polling connection using an XMLHttpResponse object. The idea is to maintain an open connection to a server which sends data when it is a …
1
vote
2answers
107 views

Ideas on implementing Stack Overflow-style comments

I like the Stack Overflow comment UI a great deal and I'm looking into implementing the same thing on my own website. I looked at the code and it looks like the main tool here is …
1
vote
2answers
37 views

Get Element StyleSheet Style in JavaScript

I've been using John Resig's getStyle function from Pro JavaScript Techniques to get the style of elements: function getStyle(elem, name) { // J/S Pro Techniques p136 if ( …
4
votes
5answers
76 views

Ajax - Library or Plain Javascript

Ive been doing a lot of reading about AJAX, and wanted to know which is the better way to approach things. By using a library such as jQuery using their built-in methods or creatin …
4
votes
7answers
199 views

If innerHTML is evil, then what’s a better way change the text of a link?

I know innerHTML is supposedly evil, but I think it's the simplest way to change link text. For example: <a id="mylink" href="">click me</a> In JS you can change the …
0
votes
1answer
37 views

Get css top value as number not as string?

In jQuery you can get the top position relative to the parent as a number, but you can not get the css top value as a number if it was set in px. Say I have the following: #ele …
1
vote
5answers
55 views

How to programmatically capture a web page with forced updates.

I need to capture a web site and am looking for an appropriate library or program to do this. The website uses Java Script and pushes updates to the page and I need to capture thes …
0
votes
6answers
78 views

Passing data to a jQuery UI Dialog

I'm developing an ASP.Net MVC site and on it I list some bookings from a database query in a table with an ActionLink to cancel the booking on a specific row with a certain Booking …
1
vote
3answers
50 views

Cross-site XMLHttpRequest

I want to provide a piece of Javascript code that will work on any website where it is included, but it always needs to get more data (or even modify data) on the server where the …
1
vote
7answers
190 views

Which Javascript framework (jQuery vs Dojo vs … )?

There are a few Javascript frameworks/toolets out there, such as: jQuery; Dojo; Prototype; YUI; MooTools; ExtJS; SmartClient; and others I'm sure. It certainly seems that jQuer …
1
vote
1answer
29 views

Tools to enforce a coding style for Javascript

I need to automatically check the style of javascript sources written by different people. Do you know of a good tool to do it? Integration with emacs would be a plus. Thank you in …

153050per page