javascript

Using onRelease with sIFR

How do I catch onclick events in sIFR? I know I'm meant to use onRelease, but can't figure out how. I've been looking high and low for a solution to use it in combination with jQuery ui tabs, which is triggered with this function: $(function() { $("#tabs").tabs(); }); I've tried simply inserting it like this, obviously without any ...

Is it possible to change the color of a word in a textbox?

I have a regular texbox control. I need to highlight some words with a red color. Is it any possible to do with JavaScript (jquery or anything else)? ...

What is the unique identifier for a DOM element/node

I am traversing a HTML document using javascript DOM. I want make a list (an array actually) of all nodes/elements and thier values. On w3schools website i found a script for traversing DOM but how do i store each node value in an array. I can't seem to find the unique identifier for a node. Anyone has any pointers? I was thinking of xp...

Double loading issue in Javascript / jQuery/Microsoft-ajax hybrid

Hey StackOverflow. I Have an odd issue with some JavaScript code (again, I hate debugging JS code). I am working on a regular table - which I fill up from a JSON call, and have added in support for some paging (sort of 2x paging I guess you could call it), sorting and some selecting of rows. Everything is working nicely - BUT when a row...

unEscape JavaScript escaped value in JAVA

in our web service we set a cookie through JavaScript wich we read again in Java (Servlet) however we need to escape the value of the cookie because it may contain illegal characters such as '&' which messes up the cookie. is there a transparent way to escape (JavaScript) and unescape again (JAVA) for this? thanks, Pieter Goddijn ...

jQuery version of YAHOO.lang (isUndefined, isNull, isString etc.)

Does anyone know of a jQuery plugin that has 'helpers' or extensions like those found in the YAHOO.lang namespace? I have in mind functions such as: isNull isDefined isString isFunction I would also appreciate the same kind of thing for strings and arrays, such as Contains, StartsWith (I know these are easy to write, I'm just looking...

Javascript squared

Using the javascript function function squareIt(number) { return number * number; } When given the number 4294967296 the function returns 18446744073709552000 is returned Everyone knows the real answer is 18446744073709551616 :-) I guess this is to to with rounding on my 32-bit machine. However, would this script give the right a...

send value from popupwindow(child window) to parent window using asp.net

get value on popup page in text box to parent window textbox using asp.net 2.0 ...

How to make a div with a blinking cursor and editable text without using <input> ?

Hi, I need to make a div layer so that when you click on it you will have your cursor there blinking and you can insert/delete text just like <input type="text"> does, except that I do not want to use it as it is slightly too limited to my case. I can definitely use JavaScript. ...

What have all the AJAX frameworks to do with AJAX?

With the upcoming rise of AJAX applications on the web, I wrote some own pieces of code to understand what it is about. I know there must be easier ways than directly dealing with the XMLHttpRequest object and thought this is why all the AJAX frameworks were created. However, when I had a look at some of them, I mostly found documentati...

create an unordered list with jquery using xml

Hi Folks, I have an xml file which i want to convert to an unordered list using jquery. so far I managed to get the list working, except for the third level of the xml. Currently my code writes all child items of 'Navigation_sub_3'. What I'm trying to figure out is how to write only the child nodes that are in level_2, so the output wou...

Webbrowser Control & Javascript: Form doesn't update after changing Elements

Hi Guyz! I have a problem concerning the Webbrowser Control in VS2005 (.NET 2.0). I have a site containing this html code: Button which I want to submit Button that gets submitted Okay, with SetAttribute (either in C# or Javascript) I'm changing the type attribute of button1 to "submit" and the type attribute of button2 to "but...

Jquery - How to dispense child element from click event

Can somebody help me with this. There is HTML code: <h3> <label> <input type="checkbox" name="country" value="us" /> United States </label> </h3> <p>Some content goes here</p> I want to toggle p element by clicking on the h3 tag, but I don't wan't to toggle if I clicked on the label $('h3').click(function() { // Do...

ScriptResourceHandler does JS compression for IE only. Really?

Description of ScriptResourceHandler states: By default, the ScriptResourceHandler class compresses and caches embedded script files for Internet Explorer 7. You can turn compression and caching off through the EnableCompression and EnableCaching properties of the ScriptingScriptResourceHandlerSection class. So this ...

ASP.NET - script and css compression

Is there any native compression (for javascript/css files) available in ASP.NET? ...

UIWebView slow loading images--disturbs scrolling to anchors

We use encrypted web pages in our iPhone app, and intercepts these calls (e.g. when clicking a link) in the webView:shouldStartLoadWithRequest: method to get the file path, decrypt the data to the original html string and then doing a loadHTMLString: on the webView (returning YES in webView:shouldStartLoadWithRequest:, obviously). The p...

node explorer script?

I'd like to display a DOM node tree in a browser, with collapsable children. I'm looking for pretty much the same functionality as FireBug's "html" tab, only I want it within the browser window, and I want to be able to choose an arbitrary node as the root. Before I write it myself, I figured I'd check to make sure no one can point me to...

Memento in Javascript

Hi, I'm looking for a JavaScript implementation of the memento pattern (GoF) to be used in CRUD forms. In its basic level it will be enough to undo changes on inputs, but it would be great to use it with standard JS frameworks like YUI or Ext, to undo & redo grid actions ( new row, delete row etc.). Thanks ...

Ways to compress/minify javascript files

Duplicate: Best javascript compressor Which javascript minification library produces better results? What is the best method to reduce the size of my Javascript and CSS files? So far I have seen these tools to compress javascript files Packer List item Yahoo Compressor On Packer page there is a section "Packer versu...

Benefit of compressing javascript/css files when using IIS httpCompression.

It looks like IIS httpCompression compresses your files. If this compression is in place, what is the reason to compress files using compression tools like: Packer, JSMin or Yahoo Compressor? ...