I'm working on an application that requires a text field to fade in with the value being loaded by AJAX. (I'm doing this all with jQuery), here's the code:
$("div#p"+eId+"_content").html("<input class='editPost' type='text' value='"
+ oldCont
+ "' id='p"
...
What is a good javascript (book or site) that is not just focused on syntax but does a good job explaining how javascript works behind the scenes? Thanks!
...
How do I expand/collapse an html field in Firefox? I incorporated a few JavaScript examples from the web, but they only worked in IE. (I'm limited to HTML and JS)
Suggestions are appreciated.
Thanks.
Yes, I would like to show/hide divs and such.
...
I am working on a JavaScript utility that tells the user the number of 3rd party links embedded into a web page. I'd like to be able to give metrics on how long they took to load (and possibly payload size) much like FireBug, but I don't know if I can get at this information using raw JS.
The consumers of this tool are business people w...
Say I have a div containing an unlimited number of child divs. Is there an easy way to get jQuery to select the nth div and every div after it so I can change those (in this case, call remove() on old divs)?
...
I've been trying for the past 3 hours to get my svg web site to open popups, and all I ever get is "Permission Denied" errors in internet explorer. I've tried everything I could find on google, and nothing works. I've even gone to the point of just calling window.open() blank with no parameters, and still get a permission denied error. W...
I'm currently building a prototype AIR application for work. It allows our clients to download and work with their data and then synchronise with the server at some later time. Pretty standard stuff.
I'm an experienced web developer and so I have been fairly successful at getting this app into a reasonable state for demonstration, but...
What is the best way of converting a multi-dimensional javascript array to JSON?
...
I'm attempting to issue two concurrent AJAX requests.
The first call (/ajax_test1.php) takes a very long time to execute (5 seconds or so).
The second call (/ajax_test2.php) takes a very short time to execute.
The behavior I'm seeing is that I /ajax_test2.php returns and the handler gets called (updateTwo()) with the contents from /...
Occasionally I search for some JavaScript help and I come upon the term "Server-side JavaScript". When would you use JavaScript server-side? And how?
My experiences of JavaScript have been in the browser. Is there a compiled version of JS?
...
Does anyone know how to limit the number of values that can be chosen in a multi-select Select And Search Prompt in Cognos 8? Currently the options are one or unlimited, and I want to write a little Javascript that limits a certain prompt to 5 or 10 values? Does anyone know how to accomplish this?
...
I have an aspx page that uses a master page. On this page I have a group of radio buttons. I need to get at the checked property for each of the elements in the radio button group in javascript. Before the page was converted to use a master page, the following javascript code worked just fine:
if((!f.rblRegUseVehicles[0].checked) && ...
I have two different methods that I want to execute when a user clicks a button. I have them working separately, but when I try to combine the two I get errors. The two ones I have currently are
<%= image_tag('go_button.png',
:id => "search_go_button",
:class => "search_go_button",
...
We've been having an problem recently where other sites are running our e-commerce site inside a frameset where our site (with the offenders affiliate id tacked on) is the only content in a single full width frame. So essentially it looks and feels like our site with their URL at the top. We can cut off their affiliate id, which would ...
I notice sometimes users mistype their email address (in a contact-us form), for example, typing @yahho.com, @yhoo.com, or @yahoo.co instead of @yahoo.com
I feel that this can be corrected on-the-spot with some javascript. Simply check the email address for possible mistakes, such as the ones listed above, so that if the user types his_...
Dear All
I am using JQuery & javascript PHP, My Ajax.php just displays the
data ,test.php has assigns the value to javascript function.
My Problem is I not able to get the values that assigned by test.php, from getList(data).
is Any wrong in my logic ?.What to do to get the values assigned by test.php will be displayed ...
I have a simple html block like:
<span id="replies">8</span>
Using jquery I'm trying to add a 1 to the value (8).
var currentValue = $("#replies").text();
var newValue = currentValue + 1;
$("replies").text(newValue);
What's happening is it is appearing like:
81
then
811
not 9, which would be the correct answer. What am I doing...
I'm wondering if it's possible to restore an element's style to it's "default" state, with Javascript or otherwise.
I need to do this because I'm inserting HTML into 3rd party web pages and cannot control what styles they attribute to different elements. For instance, they may have:
div {
margin: 10px;
padding: 5px;
line-height:...
As the title says... I'm trying to interact with my flash movie's actionscript via javascript. Specifically I'm trying to send text to my flash movie. I've come across a couple sites that had some walkthroughs but I for the life of me could not get them to work.
From the adobe site.
http://kb.adobe.com/selfservice/viewContent.do?externa...
I have an iframe in a form.
The iframe contains some info that I want deliver to the form parent by instance of Array.
The problem: the Array instance loses it's type and becomes an object!
The iframe function:
function getIDS2() { return new Array(); }
The parent call code:
alert(top.frames["sup_search"].getIDS2() instanceof Array);...