javascript

Ext Js and Adobe Air

Can anyone reccomend some good tutorials for ext js and adobe air? The ones I have seen seem to start with you knowing a lot or already having a lot of code in place. What I am looking for is a simple step by step guide that takes you through the basics of Ext Js in use with adobe air, in fact i suppose just a good Ext Js tutorial for b...

What is the smallest ExtJS package?

Does anyone know the bare minimum files required for Ext JS 2.2? I know the ExtJS site has a feature to "build" a small version of ExtJS (ext.js) as a replacement for ext-all.js but that's for minimizing the size of ExtJS on the client. I'm interested in minimizing what's on the server. Currently the SDK comes with the following subdirec...

Pattern for wrapping an Asynchronous JavaScript function to make it synchronous

I'm working with a JavaScript API where most of the functions are asynchronous. The API is the WebKit JavaScript Database API which is a binding to a subset of functionality to manipulate SQLite3 databases. I understand the design decision to make things async as to not block and provide a responsive user interface. In my situation I ...

Ajax Loading Icons - Where to Get?

Anyone know where I can get this icon in 32x32? And more generally what's a good source for finding Ajax loading icons? This one only offers 16x16. ...

Resolved: Loading ActiveX object on Flex application html page

Hello all, I am attempting to load an activex object on the same page where my flex application resides. Is this possible? Can I have 2 object tags on one page? As of right now the flex application loads fine but when I attempt to access the activeX control it says its null. But if I have the same activex control on its own webpage i...

Firefox 3.03 and contentEditable

I'm using the contentEditable attribute on a DIV element in Firefox 3.03. Setting it to true allows me to edit the text content of the DIV, as expected. Then, when I set contentEditable to "false", the div is no longer editable, also as expected. However the flashing caret (text input cursor) remains visible even though the text is ...

How do you determine html clicked on with javascript?

Is it possible, with Javascript or some other technology to determine which hyperlink a user has clicked on, without changing the hyperlink source code. For example: Can you click on a 'tag' button, then click on a hyperlink hosted in a different iframe, and be able to calculate which hyperlink the user clicked on, without changing any ...

How can I reference a JavaScript file on every page? (ASP.NET 1.1)

I have an old ASP.NET 1.1 site that I am maintaining. We are working with Google to place analytics code on all pages. Since I can't take advantage of master pages in 1.1, I have my pages include headers/footers/sidebars with User Controls. What came to mind first is to place the JavaScript in my footer ascx control so it appears on e...

JSON call + .net works in debug mode on inbuilt web server but not by going to virtual dir directly

I have the following javascript: $.ajax({ type: "POST", dataType: "json", url: "/Home/Submit", data: { email: strEmail, message: strMessage }, success: function(result) { //alert('here'); alert(result.message); }, error: function(error) { ...

Available iPhone Web Application JavaScript UI Library/Frameworks

I'm starting a web application that will target Mobile Safari on iPhone/iPod Touch. I'm evaluating the available client-side JavaScript/CSS libraries/frameworks that are currently out there. These are the ones I'm currenlty aware of: iUI CiUI UiUIKit WebApp.Net iWebKit Apple's Dashcode Application - not really a standalone library/fr...

Should I avoid using a JavaScript library while learning how to write AJAX client code?

Is it better to learn how to code AJAX without the use of an AJAX library? What are the advantages of coding from scratch over using a library such as jQuery? See also: What are some of the pros and cons of using jQuery? ...

Problem with Prototype's AJAX.Request function.

I'm trying to create a POST request, unfortunately the body of the POST never seems to be sent. Below is the code that I'm using. The code is invoked when a user clicks on a link, not a form "submit" button. It runs without error, invokes the servlet that is being called but, as I mentioned earlier, the body of the POST never seems to...

Differentiating Between an AJAX Call / Browser Request

Is there anything in the header of an HTTP request that would allow me to differentiate between an AJAX call and a direct browser request from a given client? Are the user agent strings usually the same regardless? ...

How to change the style of an element/container when the focus is "inside" it?

Suppose to have a code like this: <div class="notSelected"> <label>Name <input type="text" name="name" id="name" /> </label> <div class="description"> Tell us what's your name to make us able to fake to be your friend when sending you an email. </div> </div> Now suppose I've some...

What is the best practice for passing variables from one HTML page to another?

I'm relatively new to web application programming so I hope this question isn't too basic for everyone. I created a HTML page with a FORM containing a dojox datagrid (v1.2) filled with rows of descriptions for different grocery items. After the user selects the item he's interested in, he will click on the "Submit" button. At this...

How do I uniquely identify computers visiting my web site?

I need to figure out a way uniquely identify each computer which visits the web site I am creating. Does anybody have any advice on how to achieve this? Because i want the solution to work on all machines and all browsers (within reason) I am trying to create a solution using javascript. I appreciate the help. Thanks. ...

"Endless scrolling" effect in a HTML table

I am displaying a scrolled data table in a web page. This table has several thousands of dynamic rows, so it is loaded from the server (via AJAX). The user can scroll up and down, so what I need is to detect when the user reaches the end of the scrollbar (that is, the last row at the bottom of the table) in order to request and show mo...

What is a good and known JavaScript MVC pattern?

What is the best way to manage the JavaScript files and the functions/objects context in an ASP.NET MVC app? ...

Embedded Slideshow/Image Viewer?

I've run across this sort of thing on multiple websites and was wondering what it was called, does anyone know? Here's a screenshot. ...

Best algorithm for determining the high and low in an array of numbers?

I am using pseudo-code here, but this is in JavaScript. With the most efficient algorithm possible I am trying to find the high and low given an array of positive whole numbers. This is what I came up with, but I don't think it is probably best, and was just wondering if anyone has any other suggestions. var low = 1; var high = 1; for (...