I am creating tabs in jQuery but am having a bit of problem with jumps when the tabs are below the fold.
My Javascript is as follows:
$(".tab_content").hide();
$("ul.tabs li:first").addClass("active").show();
$(".tab_content:first").show();
$("ul.tabs li").click(function() {
$("ul.tabs li").removeClass("active");
$(this).addC...
Hi,
I am trying to block the unload event for a page until I get a response from the server for an async json call initiated by the client.
To make it clear, the scenario is the following: I need to save the user changes into a database when they close the browser. While doing so, I will show a small div and hide it when we're done ...
I'm working on a script that waits for content to load in a hidden div before activating a thumbnail that points to it.
$('#preload img:first-child')
.bind('load',activateThumb)
.each(function(){
if(this.complete || this.complete===undefined) $(this).load()});
The each part triggers the load() event for images in the cache. I ha...
Hello,
I read a couple of articles here that inspired my solution but wondering if i'm doing it the right way.
What I did was to create an event that catches an jQuery ajax error:
$('body').ajaxError(function(xmlHttpRequest, ajaxOptions, error) {
if (!locked) CheckUserAuthentication();
});
Then the CheckUserAuthentication() g...
Any ideas on how to select all citytowns from certain administrative division? Can be any country. Tried to search by fips_10_4_region_code but can't get it working, it seems that /location/citytown doesn't have this property
...
Hello,
I want build a twitter ticker in a website. I have this code:
$(document).ready(function(){
$('#twitter-ticker').fadeIn('slow');
for(var i=0;i<tweetUsers.length;i++)
{
if(i!=0) buildString+='+OR+';
buildString+='from:'+tweetUsers[i];
}
var fileref = document.createElement('script');
fileref.setAttribute("type","t...
Hi,
I am looking for an efficient way to expand/collapse hierarchical table rows using jQuery. The problem is, that the expand and collapse functionality differs.
Initially, only rows with class level_0 are show, all other rows are hidden.
expand should only show the next level, so clicking on row id=10 should only make rows with id=1...
Given code that calculates (and then constructs) how many text boxes a page has:
var gEmails = '<p>Please enter your desired emails</p>';
for (var i = 0; i < numInputs2Render; i++) {
gEmails = gEmails + '<input type="text" id="Email' + i + '" class="emailInput">';
}
How can I add code that can tell...
Helo,
A library like jQuery is fully loaded and comes with many functions that we may not use in our scripts. Am wondering if there is a way to say read my script find out all the jQuery functions that I am using and its dependencies and then remove the remaining functions from the jQuery library. This could be applied to virtually any ...
For an existing website and the users in it,how to integrate a chat application like yahoo or gmail or any other with minimum code changes.
...
Hello, i want to to validate a string if contains only a-z, 0-9, and the symbols . - _ @ and ;
i have this code:
var regex = new RegExp('[a-z0-9@.;_-]{8,}');
and is not far from what i am looking for but it return true also for:
'[email protected] °%'
I'm working with jquery to load the string by a div, i put a some code more:
var ...
Hello, I have a folloowing:
textarea and button, I would like to fill it by predefined text and in meantime make a syntax highlighting with CodeMirror:
$('#query1').button()
.click(function() {
$('#queryText').val(<?php echo $queryArray[0];?>);
}
Then:
<form id="queryFrom" name="que...
I try to control the jquery.validate errors.
I want to show them in a "span" i created for each one of them
not sure why, but my JS not working
this is my html code
<li>
<label for="name">name</label>
<span class="errmsg" for="name"></span>
<input type="text" name="name" />
</li>
<li>
<label for="a...
Hi,
I'm using the jQuery plugin GalleryView and current, when the thumbnails in the galllery are rolled over their opacity gradually becomes 100%, and when clicked, the main frame updates to reflect this thumbnail's image.
I'm trying to change it so that the main image is updated when the thumbnails are rolled over instead of having to...
I want to select all checkbox when i click the top check,
below is my code:
run.html
<script language="JavaScript" src="media/js/jquery-1.4.2.min.js"></script>
<script language="javascript">
$("#selectAll").change(function() {
$(".xxx:checkbox").attr('checked', this.checked);
});
</script>
Select All: <input type="checkbox" id="sele...
Hi all:
Our legacy system use http://abeautifulsite.net/blog/2008/12/jquery-alert-dialogs/ as alert dialogs.
I want to localize the text of button on $.prompt(...), which is "Close" by default.
How can I do that? Thanks.
...
How can I trigger a function when the browser window stops scrolling? Either by mouse wheel, click, space bar or arrow key? Is there any event for such action? I have tried to search online but couldn't get any solution. I'm fine with a jQuery solution.
...
I often code in PHP and for caching I like to use the md5 of a particular request (ie an sql statement) as the name of my cache key. md5 gives me a pretty string that is unique and thus, the reason why I use it.
Now, I am trying to implement some caching at the browser level using JQuery. It is for an address verifier form. To reduce th...
Hi,
I am using the jQueryUI Date Picker on one of my forms and if you select the field that I have attached the datepicker to, then select a date, then click "Submit" it should submit the form - which it does in IE but not in Chrome.
In Chrome, it re-opens the date picker and I have no idea why. I've put the following on pastebin to s...
Hello,
i have a huge request for the jquery fullcalendar, i need a solution to mark some timeranges in the day- and agenda-view like the today marker but not the the hole day only a range for example from 8:00 to 12:00. I will be glad if somebody have an solution or an idea how i can make this. For example modification of the fullcalend...