$(document).ready(function() {
$(".rshownews").click(function() {
window.setInterval(function() {ajaxselectrss($(this).attr("title"))}, 1000);
});
});
function ajaxselectrss(rssurlvar) {
var ajaxRequest; // The variable that makes Ajax possible!
try{
// Opera 8.0+, Firefox, Safari
ajaxRequest = new XMLHttpReque...
Hi Everyone,
I working on a website, but here now I want a popup window should open anytime when I leave the page / close the page, like this : http://www.ultimateexitpopup.com.
Can someone let me know both script and HTML code for this please?
Regards
Balkar
...
I'm trying to place a user control inside an UpdatePanel.
When the control is displayed, typing inside the TextBoxes has a large delay while in IE (6 & 8). FireFow has an excellent performance. Not only typing, but also scrolling etc experience a large delay up to a few secons.
The usercontrol(s) contain quite a lot of javascript functi...
Hello, i have in my jsp different addresses, I can choose to copy to my fields. I wanted to know if anyone has sample code in javascript to provide me, thank you.
http://www.freeimagehosting.net/image.php?87514f7c3e.jpg
Different editable fields . A list of address, when I select an address, I want to automatically informs my fields
...
Im new to using HashMap. Im assigned a project to retrieve records from HashMap and display it as a Pie Chart on a JSP. However despite searching and look thru many different Hashmap examples. Im still stuck in my project which is about to due in 3 weeks time :(
Kindly please give me some advice and i apologize if my code is in a mess.
...
Hi all,
im calling page method on mouse over of image slider to show image from database. The problem is i'm getting multiple call backs. So does any one have idea on resolving this issue.
Thanks,
Mehul Makwana.
Code which i'm using for page method.
var contextArray = "img";
pageMethodConcept = {
callServerSideMethod: fun...
Hi,
I have a regular expression that searches for the special characters.
When I do a search on numerics, e.g. 3, I always get 0, when I'd expect to get -1.
'3'.search(/[!\"£\$%\^&\*\(\)-_\+=\[\]\{\};:@\'#\\|<,\.>\/\?]/)
Any idea why is this happening?
...
If for example, I have some jQuery doing something simple like:
$("div").fadeIn('fast');
$("div").html('Foo');
That would fade in the div, and set its html to "Foo" whilst it's still fading in, whereas:
$("div").fadeIn('fast',function(){
$("div").html('Foo');
});
Will only set the html to "Foo" after the div has completed fading...
I normally work with jQuery, which takes away most of the cross browser pain (although not, unfortunately, all). However, it doesn't seem to have any support for manipulation of the CSS DOM, and this still seems to be a bit of a minefield - QuirksMode has some information.
Our application allows users to theme their site to some extend...
I'm using the following code to call a function when the main browser's url changes.
var mainWindow = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
.getInterface(Components.interfaces.nsIWebNavigation)
.QueryInterface(Components.interfaces.nsIDocShellTreeItem)
...
I would like the user's cursor to be in "wait-state" during certain actions, but the problems with using the CSS cursor property is forcing me to search for more... creative solutions. (The problem I'm referring to, is that the cursor doesn't change until the user moves the cursor. See, for example: http://stackoverflow.com/questions/175...
I am using the Django GZip middleware (django.middleware.gzip.GZipMiddleware) to compress content if the browser allows compression.
If the browser is Internet Explorer (MSIE) and the content is a Javascript file, then the middleware does not gzip the content. My understanding is that the middleware avoids compressing in this case beca...
need to replace <wiki>this page</wiki> to <a href='wiki/this_page'>this page</a>
using callback function:
text = text.replace(/<wiki>(.+?)<\/wiki>/g, function(match)
{
return "<a href='wiki/"+match.replace(/ /g, '_')+"'>"+match+"</a>";
}
);
result is that tag <wiki> is preserved (full match) - <a href='wiki/<wiki>this_...
I have an JavaScript object like this:
id="1";
name = "serdar";
and I have an Array which contains many objects of above. How can I remove an object from that array such as like that:
obj[1].remove();
...
Hi All,
I'm just starting out with JQuery.
My Question:
I want to know if I can modify this code below to shorten long URLs, but ignore anything that isn't a URL?
My Problem:
This code fragment targets everything in the DIV ('tasks-overflow'). Although I just need it to affect URL's in that DIV based on protocol(http://...). There ar...
I updates a div content with some html via an ajax call, and I what to execute a function after all the images from the ajax response are loaded.
See the code below, #gridWrapper is coming from the Ajax response and it has a lot of thumbnail images.
success: function(Data){
MyGrid.prepGridLayout(Data.html);
$('#gridWrapper .thumbnai...
I have to add a custom styles Info Window to a Google Map. The rounded border has to go and I have to change the close button.
I've found InfoBox from Google Maps Utility Library (http://code.google.com/p/google-maps-utility-library-v3/wiki/Libraries) wich works fine but it doesn't seem to support shadows. Does anybody know of any solut...
Many articles (e.g. msdn) have told be that a circular reference can not be cleaned up in some browsers when it involves a DOM object and a JS object.
(IE 6 can't do it at all and IE7 can only do it between page requests):
Javascript Native (Leaks):
function leak(){
var elem = document.createElement("DIV");
document.body.appen...
Hello
I've a basic URL validation in my appliction. Right now i'm using the following code.
//validates whether the given value is
//a valid URL
function validateUrl(value)
{
var regexp = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/
return regexp.test(value);
}
But right now it is not a...
Is there a JS/jQuery widget that would allow me to display a simple legend that contains for example a small colored rectanlge and a text label next to it?
In this specific case the legend would show meanings behind different color codes in an inline jQuery UI datepicker widget, which would be customized to enable multiple selections by...