Pull string value out of JSON object.
Hey Everyone.. I have a web service that returns me a JSON object that contains the string "Hello World". How do I pull this string out of the object? data = [object Object] Thanks Nick ...
Hey Everyone.. I have a web service that returns me a JSON object that contains the string "Hello World". How do I pull this string out of the object? data = [object Object] Thanks Nick ...
Please look at http://www.idea-palette.com I have multiple pages that are being faded in using the top nav. When the user clicks on any of the above buttons to fade in another page that contains the Slideshow using the jQuery Cycle Plugin, IE7 crashes. When I comment out the jQuery that controls the fades of the slideshow, IE7 does not...
I'd like a simple, straight-forward answer to this question. What better place on the web than to archive it here? I have an object x. I'd like to copy it as object y, such that changes to y do not modify x. What's the most elegant way of doing this in javascript? Edit: I realize that copying objects derived from built in javascript o...
I can't get this CustomValidator working. In the <head>: <script language="javascript" type="text/javascript"> function ValidateFile(sender, args){ alert("Hi"); args.IsValid = document.getElementById("fuFile").value != "" || document.getElementById("c101_c7").value != ""; } </script> In the body...
I'm working on a mobile web app that needs to work in IE Mobile. I've narrowed down a JavaScript error I'm getting to IE Mobile not supporting the 'className' property (IE4 engine...). I'm trying to find an alternative that works across all browsers with minimal code changes (I already have a few libraries that use 'className'). The eas...
Hey everyone. I'm looking for a horizontal bar that scrolls with the page, ideally implemented in prototype or scriptaculous. I want it to be exactly like the bar shown to first time usersof stackoverflow telling them about the FAQs. Thanks. ...
I'm maintaining a legacy javascript application which has its components split into 4 JS files. They are "Default.aspx", "set1.aspx", "set2.aspx" and "set3.aspx". The ASPX pages writes out compressed JS from multiple (all-different) source files belonged to their respective set and set content-type header to "text/javascript". The appl...
I have iframe on a page, the iframe and the parent page are in different domain, can a javascript code on the parent page access elements inside this iframe? ...
How can I replace the scrollbar's images using HTML/CSS? I have: scrollbar-base-color: #00acee; scrollbar-dark-shadow-color: #00acee; scrollbar-track-color: #ffffff; scrollbar-face-color: #00acee; scrollbar-shadow-color: #00acee; scrollbar-highlight-color: #00acee; scrollbar-3d-light-color: #00acee; Can I use an image to...
I had a previous question can jquery ajax call external webservice? and some good developers answered me to use jsonp, but i don't know how to use it, i am trying to call my service using this code: $.ajax({ type: "POST", url: "http://localhost:1096/MySite/WebService.asmx?callback=?", data: "{}", ...
I'm relatively new to J2EE and I'm in need of a framework that will simplify AJAX for me. At the moment I have code that uses the dojo toolkit to draw a graph, but I'd like to have the graph updatable via AJAX. is there a good framework that allows me to do Ajax call backs and insert and run javascript into a page? If so is there a goo...
I am trying to create a dynamic menu by reading an xml file using jQuery. I have developed the code and its been working fine in FF3 and Chrome, however it just doesn't work for IE7/8. Im posting my code below, can some one please have a look and help me with this ? var menu =""; $(document).ready(function() { $.ajax({ ...
I'm searching for a Javascript library to create line charts like the ones of Google Analytics. When the mouse is over a point, a box shows you the data. An example is at http://wikirank.com/en No Flash or Air, only JS and client-side Canvas... Better if Free... ...
As far as I can tell, these two pieces of javascript behave the same way: Option A: function myTimeoutFunction() { doStuff(); setTimeout(myTimeoutFunction, 1000); } myTimeoutFunction(); Option B: function myTimeoutFunction() { doStuff(); } myTimeoutFunction(); setInterval(myTimeoutFunction, 1000); Is there any differ...
While using jQuery's autocomplete, I've noticed that characters & and ' are escaped as & and ' Example, autocomplete displays Barbara’s Straight Son but when I choose this the field shows Barbara's Straight Son. Any ideas how I can avoid this? Thank you for your time! ...
Please note that this question is intended to be a bit more on the theory side of the subject, but besides stripping whitespace what other techniques are used for JavaScript Compression? ...
Hi there, Anyone had a chance to use the javascript MVC framework with ASP.NET MVC? Basically i looking for advise on a way of using them together if possible, my asp.net MVC app i can't get rid of but i would love to use some sort of separation of concern for the javascript / Jquery... Anybody used something like this? I am trying to...
I know it is possible to add new CSS classes definitions at runtime through JavaScript. But... How to change/remove CSS classes definitions at runtime? For instance, supose a I have the class below: <style> .menu { font-size: 12px; } </style> What I want is, at runtime, change the the font-size rule of the .menu class, so that every...
Is there any way how to truncate jquery? I need to use only AJAX related methods in jquery code. As you might know the minified version is only 55KB and the uncomplressed version is about 110KB. David ...
I've got a table with a large number of rows that is not suitable for paging. The rows in this table can be sorted by clicking a column header which triggers a client side sorting algoritm based on http://www.exforsys.com/tutorials/jquery/jquery-basic-alphabetical-sorting.html The function dynamically adds an "expando" property to each r...