Hi. I hope You are more 'on the ball' than I am.
I remember getting news on the Mozilla labs TestSwarm some time ago. It had active users then, but it was not more than 10 per a single browser+OS configuration.
I went there today expecting it to be far better and it turns out that there are NO active testing environments. Moreover, wh...
I have a jQuery UI Dialog that gets displayed when specific elements are clicked. I would like to close the dialog if a click occurs anywhere other than on those triggering elements or the dialog itself.
Here's the code for opening the dialog:
$(document).ready(function() {
var $field_hint = $('<div></div>')
.dialog({
...
I am calling a WebMethod from this code:
if($(this).attr("checked")) {
..
MyWebMethod(variable1, variable2, onSuccessFunction);
}
The MyWebMethod returns an integer, and I want to set $(this).attr("id") of the jQuery object above to the returned integer. Basically, I'm trying to do the equivalent of an MVC Ajax.ActionLink...Ajax...
JQuery UI tabs are implemented by named anchors in an unordered list. When you hover over one of the tabs you can see this in the link shown at the foot of the browser:
http://mysite/product/3/#orders
Above would be the "orders" tab for example. JQuery obviously intercepts the click to this anchor and opens the tab instead.
However ...
Consider de following markup:
<div id="outerElement">
<div id="innerElement" style="border: 1px solid blue; background-color: #f0f3f5; margin-top: 100px">
TESTE
</div>
</div>
I want to get the actual final height of outerElement using javascript. I noticed that if I remove the vertical margins from innerElement I am ...
This works:
var.replace(/[^0-9]+/g, '');
That simple snippet will replace anything that is not a number with nothing.
But decimals are real too. So, I'm trying to figure out how to include a period.
I'm sure it's really simple, but my tests aren't working.
...
I am developing a small web-utility that displays some data from some database tables.
I have the utility running fine on FF, Safari, Chrome..., but the memory management on IE8 is horrendous. The largest JSON request will return information to create around 5,000 or so rows in a table within the browser (3 columns in the table).
I'...
Does anyone know why this code doesn't work. This means, the alert is NOT fired
<iframe/>
<script type="text/javascript">alert('hello');</script>
While this code with the alert BEFORE the Iframe works perfeclty. This means the alert is fired
<script type="text/javascript">alert('hello');</script>
<iframe/>
Seems that no javascript pl...
can we remove history points created in web browser.
or is it possible not add history point when a sample link "some link"
is clicked and url in browser changed
...
The jQuery ajax script below doesn't work on my site if url is without www. I checked Firebug and it doesn't send the ajax call.
$.ajax(
{
type: "POST",
url: "http://www.mysite.com/beta/products.php",
data: "page_type=index&sort=relevancerank&CartId=<?php echo $CartId;?>&HMAC=<?php echo $HMAC;?>",
suc...
How do I default the "Firstpane" set to open and the others are closed....
I copied the same code from this sample but on mine everything is open view here
Script
<script>
$(function() {
$("#accordion").tabs("#accordion div.pane", {tabs: 'h2', effect: 'slide', initialIndex: null});
});
</script>
<script>
// add new effect to the ta...
In .NET 2.0, I have several client side validators ala the .NET validator controls. These run fine when I click a button...until I add my own javascript function to this button. Instead of running in addtion to the validators, it seems to prevent them from running at all.
To be clear, the validator controls are basic required field vali...
I am doing something like this in javascript to print a section of my page on click of a link
function printDiv() {
var divToPrint = document.getElementById('printArea');
newWin= window.open();
newWin.document.write(divToPrint.innerHTML);
newWin.print();
newWin.close();
}
It works great in Firefox but not in IE.
Could someone pl...
Hi,
I have a interesting question:
I want to split the year into 4 quarters. What is the idea,
A quarter can be different:
The HTML Code:
<div class="quarterBody">
<span>04-29-2010</span>
<span>06-29-2010</span>
<span>08-29-2010</span>
</div>
jQuery (javascript) is total wrong, I hope that w:
$(document).ready(...
I've developed a print mechanism for an intranet application running over HTTPS. Using javascript and jQuery I create an iframe in the page and populate it with all the dynamic data that should be printed.
The iframe has a source of /MyController/Print which just returns a blank dummy page. This is then replaced with the dynamic content...
How do I remove links from a webpage with Javascript. I am using Google Chrome. The code I tried is:
function removehyperlinks() {
try {
alert(document.anchors.length);
alert(document.getElementsByTagName('a'));
for(i=0;i=document.anchors.length;i++) {
var a = document.anchors[i];
a.ou...
I created my own custom date picker consisting of an ASP TextBox, Button, and Calendar complete with CSS styles, javascript code, and event handling vb code.
I want to use this date picker multiple times on my form. I know the wrong way to do this would be to copy all the code and just adjust each name accordingly.
How can I put those...
How do I default an accordion to be closed on start-up. here is the sample view here
Here is the code:
<script>
$(function() {
$("#accordion").tabs("#accordion div.pane", {tabs: 'h3', effect: 'slide'});
});
</script>
<script>
// add new effect to the tabs
$.tools.tabs.addEffect("slide", function(i, done) {
// 1. upon hiding, t...
I'm creating a Silverlight control using Silverlight.js like so:
var properties = {
width: '640px',
height: '480px',
background: 'black',
version: '2.0.0.0'
};
var events = {
onError: function() { alert('eek!'); },
onLoad: function(sender, args) { sender.content.Page.foo(); }
};
Silverlight.createObject(
...
I’ve been working on an extension for automating tests in Chrome, and I came across an obscure issue with JavaScript dialogs. The message shown in the dialog can’t be readily retrieved/copied. I’ve used the GetWindowText and InternalGetWindowText functions, but they only return the title of the dialog and the text from the buttons, not ...