When I run the following code in GWT I get the url I specified opening in a window with no menubar and no toolbar. What I need to do is pro grammatically create the same behaviour of this link via GWT/Javascript...
new Anchor(projectHistoryInfoDto.getJiraId(), false, projectHistoryInfoDto.getJiraProjectURL(), "_blank")
...
I am creating an extension that will launch an external script based on highlighted text. So, far, the script works, except I am having issues closing the newly created window.
In my background.html, I have the following:
<script>
function executeScript(selection) {
var queryText = 'script:' + selectedText;
chrome.tabs.create({url...
So on a specific page I have some number of form elements, anywhere between 3 and 8, depending upon the user and their action on the page.
How can I add a specific onblur event to all of the form elements dynamically on the page?
If I have:
function doThisOnBlur() { stuff }
How can I add that same function to all of these once the p...
Why did the creators of the HTML DOM and/or Javascript decide to disallow cross-domain requests?
I can see some very small security benefits of disallowing it but in the long run it seems to be an attempt at making Javascript injection attacks have less power. That is all moot anyway with JSONP, it just means that the javascript code is...
For some reason jQuery UI's autocomplete has stopped working for me. I get the same error as is described on this webpage.
I've copied the content of the query from that webpage below, hoping that somebody here will be able to answer it.
Thanks!
I am using Jquery UI Autocomplete to get a list of names. But for some reason I am get...
Around 10 months ago I looked at tons of carousel scripts, literally masses of them, trying to find the best one. My criteria were performance over features, that is, no built-in Ajax, no huge style sheets or images. Just a basic carousel (or 'slider') script.
Best carousel I found in June 2009:
jQuery Tools Scrollable
What are s...
Hello guys, I need present a grid-view in the web page, and based on the checkbox that each grid row has I want to retrieve and submit a value of the ID of each grid column. I'm using asp.net mvc and the mvc contrib grid, but accept suggestions on how to do via JQuery or Javascript too.
Thanks.
...
I have a situation where I have a form with multiple submit buttons and I want to update a remote frame. I've tried using a g:formremote with 2 g:actionsubmit buttons (which support javascript) but the multiple submit buttons have a glitch (described here: http://www.grails.org/Ajax under "Multiple buttons with formRemote").
I took the ...
UPDATE: I have updated the code snippet to include the whole page as found in Firebug.
I have the following code:
<html><head>
<title>Welcome to CodeIgniter</title>
<!--[if IE]>
<script type="text/javascript" src="/assets/js/Jit/Extras/excanvas.js"></script>
<![endif]-->
<script src="/assets/js/jquery/jquery-1.4.2.min.js" type="tex...
So I have form with two drop down lists, the second of which is dependent on the first.
For the sake of example let's say if they select "even" in the first drop down, they get 2,4 and 6 as the options in the second, correspondingly if they select "odd" in the first the second becomes 1,3,5. (defaulting to even).
I've done this in javas...
Im using stuff like
document.body.innerHTML but I dont need my page source, I need it to get an external page source, since
new Ajax.Updater ({success:'employerBox'}, '<%=appRootPath%>/userBoxHome.asp?isEmployer=true&ajaxLogin=home', {evalScripts: true});
Is not working in IE and I need div employerBox to get updated with the content...
I want to use image files to represent a custom font, and it would copy the text value when selected and copied. is this possible with JavaScript?
...
Part One:
I'm trying to figure out how to use the DOM and Javascript to create an array containing the links in multiple lists.
The problem is I need each UL to have a unique array containing the links; the only unique ID I am able
to use in this case is the name value in the link tags. I will not be able to add anything else to the mark...
I have check buttons on the document.
I want to know how many of the buttons on the docment are checked. I tried to do this
alert(document.all.CustmerRequested.checked.length); but it says undefined.
Any idea what I can do. sorry a complete newbie in Javascript
...
I'd like to create a search box on the home page of my site that would be able to search the entire site. I know it's a very general question but I'd be very happy with just a general conceptual answer is there anyway to do this?
...
I'm using Shadowbox.js to display a slideshow on a website.
This slideshow shows several pictures and I would like to know who's looking at what pictures.
For this purpose I'm using statcounter.com.
Shadowbox offers a so called hook to call a function when the slideshow opens and when it changes to another picture.
I've written a small ...
I want to get live currency rates from an external source, so I found this great webservice:
Currency Convertor
This service is working like a charm, the only downside is that it does not provide JSONP results, only XML. Therefore we have a cross browser problem while trying to consume this webservice using jQuery $.ajax().
So I found...
I have a pretty big chat app I'm working on, and had a question about best practices for JS data storage...
I have a table populated with AJAXed data from the server, and the Javascript gets some info from that, and also from an internal object, also populated with AJAXed data. I was starting to store information about each chat in an ...
I'm trying to dynamically insert the Tweetmeme button using Javascript. I'm currently using jQuery throughout the site. Here's the script that I'm using. I basically want to cycle through all the blog entries with a class of journal-entry and append the following JavaScript to the end. This Javascript comes straight from tweetmeme.com. T...
Hi,
I am using the following code to create marker and infowindow in google map. But the data is overflowing from the infowindow. Can someone please tell me how can I change the size of infowindow so that all the information can fit in.
// Create a base icon
var baseIcon = new GIcon();
baseIcon.shadow = "http:/...