It seems simple but I did not find a way.
I open a window:
a. I need that while opening the window is minimized.
b. when finished loading, I need to be normalized and then focus on the parent window.
--Code
var openwindow = null;
$(function(){
openwindow = window.open("http://www.domine.com", "winx", "width=200,height=30,too...
Hi, I would like to select certain elements in form by their name, so I suppose using getElementsByName(name). Then I would like to add a value to these elements. How do I do this loop?
boxesEL = document.getElementsByName(boxesName);
for(var x=0;x<=boxesEL.length;x++){
boxesEL[x].value = "some value";
}
I'm getting an error box...
How would I change the below to jquery? It works in IE but not Firefox so I am hoping if I change it to jquery it will work for both.
THIS
function subform() {
if (parent.option_view.document.vform_.dispatchEvent('onsubmit') != false) {
parent.option_view.document.vform_.submit();
}
}
AND THIS
img class="save_bttn" src="/images/...
Does anyone have experience with making Cappuccino-based webapps that consume REST-based webservices from Spring? Any recommended tutorials? Or just Capuccino/AJAX tutorials? Any thoughts on this combination?
Cheers
Nik
...
I have an index of titles that I am currently filtering by user entered keywords on the server before sending to HTML. I am wondering if it would be better to send the entire index to the page and have javascript show or hide the items in the list based on the user input.
I am concerned that the server side is going to get too many re...
I have a page with two iframes; a slideshow and an ad. Is is possible to have the slideshow iframe call a function in the ad iframe?
Thanks!
...
I have 3 sets of tabular data I want to display with a JavaScript framework in ASP.NET MVC. I know I can embed a separate grid in a tab, but this seems inefficient especially when large datasets are involved since I imagine 3 separate grids would be created. I haven't found a JavaScript datagrid which emulates what a spreadsheet does w...
On IE I can do this with the (terribly non-standard, but working) jQuery
if ($.browser.msie)
$(document).keydown(function(e) { if (e.keyCode == 8) window.event.keyCode = 0;});
But is it possible to do in a way which works on Firefox, or in a cross-browser way for a bonus?
For the record:
$(document).keydown(function(e) { if (e.k...
Anyone seen or used a good script, jQuery or native, that lets you do PNG fix on hover?
...
Hi people,
on all the "speed up your website" sites and books they always tell us to minimize HTTP requests at all costs. This is fine and nice but what if that means that on every page you have to reload 120kb again and again and again because the user cache is empty?
If i use 5 js files on every page of my website, wouldnt it be bett...
Thanks to some !#$#@ in another department who wrote some crap code, I am unable to use the jQuery library - despite my fervent desire to do so. Their software has already been released into the world, and I have to be compatible.
============================================
I am trying to highlight a table. Desired behavior:
Clic...
I'm in the process of building an application (a CMS to be more specific) which allows users to add Javascript to their content. There really is no way around allowing Javascript, and because of it, some security concerns are now becoming quite apparent. What we're mainly concerned about is cookie theft.
To explain the system a bit more...
Hello,
This is so simple I am baffled. I have the following:
var x = 'shrimp';
var stypes = new Array('shrimp', 'crabs', 'oysters', 'fin_fish', 'crawfish', 'alligator');
for (t in stypes) {
if (stypes[t] != x) {
alert(stypes[t]);
}
}
Once the values have iterated it starts returning a dozen functions like
functi...
I want to resize a DIV container as the window width changes via % width.
Are there any new CSS3 rules that would allow the height to change according to the change of width, maintaining the original aspect ratio?
I know I can do this via javascript, I would just rather not if I don't have to.
EDIT:
To better explain what I'm trying t...
While reviewing the demo project for the xVal, a validation framework for ASP.NET MVC, I noticed Masterpage javascript references were wrapped in an PlaceHolder control:
<asp:PlaceHolder runat="server">
<script type="text/javascript" src="<%= Url.Content("~/scripts/jquery-1.3.2.min.js") %>"></script>
<script type="text/javascrip...
I'd like to build a view that allows the user to get a list of things that are happening around a certain time.
What is the best way to build this request? E.g. If I wanted to get all of the events that are happening right now I could post to /events/2009/09/29/8/23/
That seems rather tedious especially if I want to have multiple date...
Hi,
I have 3 php files; pie.php, bar.php and line.php. These when run individually give output as a webpage. If all are run, 3 separate webpages open up displaying a pie chart, bar chart and line graph.
What i want to do is to divide a single webpage into three part and show each individual php file's result (i.e. the graphs) in one of...
I am processing xhtml using javascript. I am getting the text content for a div node by concatenating the nodeValue of all child nodes where nodeType == Node.TEXT_NODE.
The resulting string sometimes contains a non-breaking space entity. How do I replace this with a regular space character?
My div looks like this...
<div><b>Expires...
I've got the following code that shows a lightbox 'please wait' box, then does a synchronous ajax request which removes the lightbox when it finishes. Works fine everywhere else, but in IE, the lightbox doesn't show. The Ajax request works fine, but it just seems to ignore the lightbox.
The showLightbox function just does that, show a...
I'm still new to JQuery, on the way to getting my ajax example to work i got stalled with setTimeout. I have broken it down to to where it should add "." to the div every second.
The relevant code is in two files.
index.html
<html><head>
<script type='text/javascript' src='jquery.js'></script>
<script type='text/javascript' src='myC...