I would like to modify some properties for all fields in a PDF form in response to the user clicking a button.
Which property or method will return me the collection of fields so that I can iterate over them?
...
Possible Duplicate:
Disable browser's back button
How can I disable a browsers back button, in an asp.net mvc project. Can I use java script for this ? or is there any other ways to do this ?
...
I'm observing that when using an HTML5 doctype (<!DOCTYPE html>), assigning a string containing HTML entities to a DOM object's innerHTML does not convert/render those entities on IE8 (and probably other IE versions).
document.getElementById('some-div').innerHTML = 'Doesn't work.';
Does anybody have a solution? I've come across t...
Hello!
I'm working on a small web application that changes the contents of a select drop-down.
I was wondering if appendChild() and add() both accomplish the same task on a select DOM object in JavaScript?
var someSelect = document.getElementById('select-list');
var newOption = document.createElement('option');
someSelect.appendChild...
I have a div tag that is contenteditable so that users can type in the div. There is a function that adds a link into the div when the user presses a button. I would like the caret to be positioned after the link so that users can continue to type. The link can be inserted many times.
Example Code:
<div id="mydiv" contenteditable="true...
Does anyone know if you can remove head elements on a button click and how to do it with jQuery?
I am trying to get rid of certain script tags from the html head when a button is clicked.
For instance. I have 1 screen view with a slideshow controlled by an external javascript file. When I click on a button "Click to get rid of this ele...
I'm using PHP minify -> http://code.google.com/p/minify/ to minify my javascript files into one document and then supply it to the browser.
FF, CHROME, SAFARI all render the dynamic js file correctly when the script is called
IE says that min failed and attempts to launch a file download and then is unable to recognize the file type ...
Ok.
Basically I am utilizng the Google Maps API - It is Javascript.
My site runs off PHP for the most part.
My intention is to make calls to the Google Maps API to get the distance between various already geocoded longitude and latitude points. I then want to display them to my users.
An example.
I have (in php):
$home=array(latitu...
I want to get the ID values of multiple selection list. The multiple selection list
is generated dynamically. How to get that values? If i can able to get the values means,
can I convert it to JSON object or, it ll be obtained as JSON object!!!!
Here is my code to generate it dynamically.
function displayMultipleList() {
EmployeeM...
Possible Duplicate:
JavaScript scope and closure
What is this for?
(function(){
//The code to be executed
})();
Also, has this anything to do with closures?
...
Hi!
Is there a way to use a image url relative path in a javascript file (just like the css files)?
for testing i used 2 divs and displayed a gif in background using css in 1st and using js in second:
-my file directory is:
root/index.html
root/module1/test.css
root/module1/test.js
root/module1/img.gif
-index.html code:
<html>
...
Our file structures is pretty good, organizing functionality in separate folders. My question is how do others work on applications that involves upwards of 500 JavaScript files.
We have written a maven plugin to concatenate these files together (also runs YUI compressor). However, this involves 3-10seconds of compiling for every ch...
How do I get a numeric or string value for a javascript object such as window instead of the string [object]
Looking for something like an object id, like 44001 or 0xFF0012 that is unique for that object
...
Hi, can you help, I have a basic xml file which is displaying well in html.
The xml file is as such...
<videoList>
<video>
<pointer>
<type><![CDATA[image]]></type>
<lat><![CDATA[52.1]]></lat>
<long><![CDATA[1.0]]></long>
</pointer>
<speaker>
...
I have a result set that when I use json_encode() in php, returns the following
[
{"id":"1","name:","value"},
{"id":"2","name:","value"},
{"id":"3","name:","value"},
{"id":"4","name:","value"}
]
I'm then using jQuery to try and loop through this:
$.each(data, function(index, itemData){
alert(itemData.id);
}
The problem is it's on...
I want to make an svg element (path, rect, or circle) be able to be draggable and give it resize handles.
But unlike HTML DOM, not all elements have an upper left hand corner x,y coordinate and a width and height for a box surrounding the content. This makes it inconvenient to make a generic resize or drag procedure.
Is it a good ide...
I am trying to display different images based on data returned. I am running into the following issues
DataSet is not available on the image control for me to make decisions based on the column information. I am using a grid layout (no tables)... Think of a letter
I tried to create report level variables and assign it the value from da...
Hi everyone,
I am using code-igniter, and some of my views require jquery. Because they must be used in multiple places they must call jquery in their file, however since they are referencing an external file, calls to $(document.ready) are evaluated before loading jquery and therefore fail. Is it possible to put jquery in the body and ...
I'm currently stumped on how to approach this situation.
my application is a content sharing system that requires the user to load my javascript file that would position a button for sharing and on click it would automatically collect content from the page and publish it to my application.
My question is:
What is the best way to find ...
We are doing a series of client-side performance tests for a large website and we primarily use Fiddler and DynaTrace for our measurements. But we've run into 2 major issues:
The clients are intent on measuring the asynchronous part of the page load (Stuff that gets kicked in after document.ready). Using fiddler, its hard to tell which...