Any idea why JSON left out NaN and +/- Infinity? It puts Javascript in the strange situation where objects that would otherwise be serializable, are not, if they contain NaN or +/- infinity values.
Looks like this has been cast in stone: see RFC4627 and ECMA-262 at the top of p. 197:
Finite numbers are stringified as if
by String(...
Your help would be very much appreciated. I do not understand why the following jQuery code does not work:
function saveChanges(obj, n, id) {
var t = "content to send to server";
$.post("http://localhost:8080/Content.do?method=update",{
value: t,
key: id
},function(result){
alert(result); //WORKS
alert("INNER"+$(...
Hi.
I'm working with jQuery and a plugin called jQuery.SelectBox
I have 3 selectboxes, selecting an option in the first selectbox will change the options in the second one.
My problem comes when I try to insert values in the second selectbox via append function in jQuery. Everything works fine but the new options are not clickable.
...
Hello!
I've followed the instructions on the website of Anything slider (http://css-tricks.com/anythingslider-jquery-plugin/), about customizing, but when I add width, I have slides dissapear or blank slides.
Any help will be much apprecied.
...
Are there any logging frameworks for JavaScript?
...
this can't be too complex but it is baffling me - I would like to pass a variable through a url (www.site.com/index.html?var=whatever.htm) and use the variable within an onclick function so that the onclick button uses the variable as the url to go to..onclick.
I am trying to do this in place of a history button, since the button is wi...
Hello,
I'm trying to show up a container if a input field gets the focus and - that's the actual problem - hide the container if focus is lost. Is there an opposite event for jQuery's focus?
Some example code:
<input type="text" value="" name="filter" id="filter"/>
<div id="options">some cool options</div>
<script type="text/javascr...
Hi Guys
I'm by no means a programmer... I've never really taken a comp sci class, don't know much theory, but I still hack together code that usually works. I just don't know how ugly it actually is. I recently wrote this (simple) bit of JS and was wondering I could get some feedback on it...
If this isn't an appropriate place for i...
Hey guys,
Am looking for a good and easy to use WYSIWYG HTML editor that i can integrate into a CMS that am currently developing for a client. Am developing the CMS in PHP and is web-based. The editor will have both visual and code view. Thanks for ur help.
...
I have a floating div that gets displayed, and I want it to be hidden when the user clicks off the div. This would be similar to the .hover() funtion callback when hovering off an element. Only I want to do this for click.
I tried just setting a click event for the body, which would hide the div, but that gave unexpected results.
Any...
I'm porting an existing CF8 web app over to CF9 on a development server and am having trouble getting cflayout tabs to work properly. Firebug shows all the .js and .css files loading properly... no JS errors. The tabs work when clicked on, but they are displaying the "name" property instead of the "title" property. All tabs are closab...
i have two radio buttons within a form. a dialog box appears when one of the fields is null. how can i check if a radio button is selected?
...
This is a UI question, dealing with HTML and javascript, to see how to get the functionality I want without confusing the user
I have a table below that has a select box as the first cell in my table.
This application has no submit button. You change the select box, the database is updated, you change something in an input box the da...
I have a select tag that looks like this:
<select style="background:#fa7171; color:#FFFFFF;" name="product_type_sub" id="product_type_sub" onChange="ajaxFunction(1);">
<option value="None Selected">None Selected</option>
</select>
You can see the inline css sayin the font should be white, and it is at first. but I add/remove more ...
ECMAScript 5 is in its final draft as I write this; It is due to include a strict mode which will prevent you from assigning to the global object, using eval, and other restrictions. (John Resig's Article is a good introduction.)
This magical sanity-saving mode is triggered by including the string "use strict" at the top of your file (o...
Hi all,
The replies in this post sound very convincing, however, this post is just over my head and was hoping for some help:
I have code in my partial view that looks like this:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<div class="messageBox1"></div>
<% Html.BeginForm("BusinessAdd", "Home", FormMethod....
Html can contain little bits of Javascript embedded in it (e.g. defined in onclick event handlers).
If I were writing an Html browser using a dotNet language like C#, what technologies or APIs could I use to run such Javascript fragments, given that I don't receive it until run-time (and receive it as string data, not as executable cod...
Need help to get Pocket IE configured to execute javascript in WebBrowser Control from a VB app. Get message that security settings for Pocket IE do not authorize scripts. Is it possible to configure Pocket IE on .NET CF 2.0 to execute client side scripts? Thanks in advance and happy coding.
...
I'm using ASP.NET on the server side and javascript on the client side.
I'm trying to develop some pages that will help the user troubleshoot and I was wondering if there was a way to programmatically determine the following:
1) if active x has been disabled in Internet Explorer
2) if an active x control has been installed
3) if an acti...
I have a book, Essential ActionScript 3 (O'Reilly), to learn about using that language. It mentions that ActionScript 3 is an implementation of ECMAScript, just like Javascript. I find this strange, because there are many differences. In Javascript, as far as I know, you cannot give variables a type (var marvin : Robot) or create "tradit...