In my default.aspx page, I have some ESRI tools (and some commands) in a toolbar, so something like this.
<ToolbarItems>
<esri:Tool ClientAction="MapPoint('Map1','%toolbarItem%',false,'crosshair') DefaultImage="~/images/default_tool.gif"
EnablePostBack="True" JavaScriptFile="" Name="TestTool" SelectedImage="~/images/selected_to...
I'm using the Fancybox plugin for my modal windows. It seems like no matter what options I use I can't prevent the fancybox modal window from closing when the user clicks outside of the fancybox modal window (grayed out area).
Is there a way to force the user to click the X or a button that I trigger the close event? This seems like i...
I've been trying to stringify a javascript array which is keyed by strings. JSON always stringifies the array as empty ([]).
var arr = new Array(3);
arr['A'] = "Foo";
arr['B'] = "Bar";
arr['C'] = "Baz";
var str = JSON.stringify(arr);
If I replace the 'A', 'B', 'C' with 0,1,2 then the array is stringified correctly. I'm sure I'm missi...
I have a sentence which I would like to be able to hide words by using Javascript. For example, hiding the first and 6th word or something. Coming from a PHP background my guess is that it would go something like this.
You have a DIV with a sentence in it.
You get the value of the DIV (the text sentence).
You split the text by spaces ...
Hi all,
I just started learning JS the other day and am (of course) having some difficulty. I usually grasp onto things quickly but I can't for the life of my find a solution to this. I'd like to understand why this is happening.
My objective is to use 3 prompt boxes, all which come one after another, to print out a piece of html code,...
For my web application I need to close the child window whenever the parent window is closed. By "closed" I mean that the browser window is actually closed, not just navigated to a new page.
I have seen the "How can I close the child window if the parent window is closed?" question already, but mine is an extension on that. The answer t...
I am trying to fade in a hidden element, and then fade it back out again using mootools.
I can't just use $('my_div').fade('toggle'), because that assumes the element is always visible, whereas my div starts out with display:none.
Is there a simple way to combine a fade in/out with a slide in/out or some other way to achieve a nice eff...
Hello All,
I'm new to the site and need some help!
I need buttons that when rolled over, they reveal a table (I got that done), as well as change their own image to a tab (which they do), but keep that rollover tab image until the mouse leaves either the button or its respective table (this is the problem).
Basically, it's pretty easy...
I have a group DIV tags in an HTML page whose location is controlled via several parent/grandparent DIVs. Those parent and grandparent's location is controlled via CSS classes. I need to retrieve the top attribute of the given DIV. Where is it in the DOM or how would I calculate it using Javascript?
Clarification: I need the coord...
We just started using jCarousel with our application and we're experiencing some strange UI behavior. For a split second before the page is rendered, every LI that makes up the content is shown expanded on the page. Once the jQuery("#carousel-name").jcarousel(); is executed, though, the page springs back to what it's supposed to look lik...
Hi all, I'd like to know a simple way to instantanely higlight an array of words while i write in a input form/textbox.
...
I work on a JScript/VBScript HTML application (so we can execute at higher privileges than a normal web page) and we're providing the capability to download a file and need to provide feedback on the download progress to our users. Naturally, I figured a progress bar or progress text based on the total file size and the amount of the fi...
From a sidebar in Firefox 3.5 I am getting a reference to the main window with:
var mainWindow = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
.getInterface(Components.interfaces.nsIWebNavigation)
.QueryInterface(Components.interfaces.nsIDocShellTreeItem)
.rootTreeItem
...
Hi All,
I am trying to use the following code to create a list of client names from some json returned from an Ajax call.
The data is as follows:
{"status":1,"data":{"clients":[{"ClientID":"1","AccountID":"1","ClientName":"Access Loan Mitigation","Active":"1"},{"ClientID":"2","AccountID":"1","ClientName":"Big Time Business","Active":"...
I'm trying to access and edit the contents of an iframe. The iframe points to a page on a subdomain on my own domain. This is the javascript code I'm using, although it doesn't really matter.
$('iframe').load(function(){
$('div.code textarea.html').val($(this).contents()[0].html());
});
When I run it it says I don't have permission ...
I have multiple fields, typically enter will be pressed on one of the two main ones. I want to know which field enter has been pressed on, how do i do this? (i dont know much JS)
Possible Duplicates
http://stackoverflow.com/questions/756786/javascript-capture-key
http://stackoverflow.com/questions/1235716/disable-keyboard-e...
I have some JS that runs fine in FF and IE but in Chrome I see the following error:
uncaught exception ReferenceError: JSON is not defined
I presume I need to include something but I'm not sure what. Help?
Also, any clue why this might work on IE/FF but not Chrome?
Btw, I'm using JSON.stringify() in my script.
...
I have a need to create a small pop up information box when a user clicks on a certain link. Basically just a hidden div that floats above the content at the location almost like a tooltip, but requiring a click.
I've tried passing the event.clientX and clientY to the style.left and style.right properties, but it doesn't seem to put it ...
I'm trying to figure out how to load a new image with ajax when a link is clicked on.
The link looks like this (there are several links like this on the page they have little image thumbnails inside them so user can know approximately what image will load when he/she clicks on the link):
<div class="box-content2">
<a href="/path/to...
But I don't know what's causing it on my page at http://www.jazmyn.com/media.html
I keep getting this message:
HTML Parsing Error: Unable to modify the parent container element before
...