On my master page (for all pages in my site) I have a ToolkitScriptManager.
On my content page, there are a series of hyperlinks and divs for collapsible functionality.
The code to show/hide the panels work like the following:
$(document).ready(function() {
// Hookup event handlers and execute HTML DOM-related code
$('#nameHyperLink...
In my html, I use Model.Subcontract.company
How can I reference that data in my jQuery?
...
Problem with jQuery:
After changing the border and background color of some input fields in a form that fail the validation i don't know how to get the previous, original colors back as i don't pre-style the inputs but use the browser settings instead. how to handle this?
thanks in advance,
clubnite
...
Hi All,
I have a select box that gets generated dynamically. I want to allow users to create more copies of this select box if they need to but I want to avoid extra database calls so I want to use clone() instead of an AJAX load(). The problem is that I need an input field after each select box, so the user can enter a value. The clone...
Hi All,
Given:
<script type="text/javascript">
$(document).ready(function () {
var str = 'Test';
//alert(str.toUpperCase());
$('#stringFinder').keyup(function (e) {
alert($(this).val()==str.toUpperCase());
});
});
</script>
How do I make $(this).val() all upper case to get a like c...
I'd like to cancel a .load() operation, when the load() does not return in 5 seconds. If it's so I show an error message like 'sorry, no picture loaded'.
What I have is...
...the timeout handling:
jQuery.fn.idle = function(time, postFunction){
var i = $(this);
i.queue(function(){
setTimeout(function(){
...
I use the following code to collapse/show divs in my content page:
$(document).ready(function() {
// Hookup event handlers and execute HTML DOM-related code
$('#nameHyperLink').click(function() {
var div = $('#nameDiv');
var link = $('#nameHyperLink');
if (div.css('display') == 'none') {
link.text('H...
This is a minor issue, but one I find myself running into:
When I am using jQuery in Visual Studio 2010, I find myself frequently typing:
$(#S
using Intellisense to find the SomeID object ID:
$(#SomeID).click( function() { etc.. })
then going back and adding quotes:
$('#SomeID').click( function() { etc.. })
I find it annoying t...
I have a column in my database that will be updated randomly. Whenever that column is updated I need to refresh content on my page. How can I use AJAX + jQuery to perform an action only on DB changes?
...
Does anyone have a demo of using uploadify with additional fields and saving to database? The site's examples don't explain the process in depth and I am not familiar with jquery.
I don't know why but I can't get my head around how too integrate the two. I have the demo working and I have my app which uses traditional php/html forms wo...
I am wondering if there is an easy way to keep this popup window (span) JPicker (built on JQuery) on top of other modal windows or divs? Zindex, is there a way to make sure the zindex is always on top?
Thanks
...
Hey guys just a quick question, I am posting mp3s in dialog boxes each associated with a unique link and I would like it so that only one stay open at once, so that if you have one open, and try to open another one, the previous one closes. Is this possible?
...
I want to use document.createDocumentFragment() to create an optimized collection of HTML elements that contain ".data" coming from jQuery (v 1.4.2), but I'm kind of stuck on how to get the data to surface from the HTML elements.
Here's my code:
var genres_html = document.createDocumentFragment();
$(xmlData).find('genres').each(functi...
Hi,
I want to use a tool for tooltip/preview image.
And here is my choice: http://james.padolsey.com/demos/imgPreview/full/
A very nice tool for image preview.
But I should use without "a href" tag, with onmouseover(); function.
For example:
<img src="small_image.jpg" onmouseover="imgPreview('big_image.jpg');" alt="" title="">
or
...
I have several javascripts at the head of my document, as well as at the bottom, near the body closing tag. I use jQuery to call an ajax element into place and the elements that are called, require these javascripts to function. How can I include these javascripts to work with the ajax call?
Example:
jQuery(document).ready(function(){...
I'm downloading JQuery asynchronously:
function addScript(url) {
var script = document.createElement('script');
script.src = url;
document.getElementsByTagName('head')[0].appendChild(script);
}
addScript('jquery.js');
// non-jquery code ...
// jquery specific code like: $()...
As such - how do I call my JQuery specific c...
I hope i described the problem well!? You can see it here:
http://dealmob.de/index_dev.html
when u hover over the menu up and down fast u see the that its not staying, insteads its flickering like you would change the margins/paddings by few pixels.
Any advice on how to solve this problem?
thanks a lot
like requested:
#topc...
I am trying to create Facebook based login using Javascript. Once a person clicks a button he should get a div replaced by another div, if he is logged in to Facebook. However, if he is not logged in to Facebook he is asked his Facebook credentials and he logs in. However, we need the user to click the button once more for the div replac...
jQuery snippet:
$(".sliders dt a").click(function(){
$(this).parent().parent().parent().find(".triggers a").removeClass("active");
$(this).toggleClass("active");
$(this).parent().next("dd").slideToggle("fast");
return false
});
HTML:
<div class="sliders">
<div class="triggers">
<a href="#" class="active">Hi...
Could i modify this existing code to automatically scroll through the list items to display the content?
Sorry, the: ul li a {} links.
Maybe using "interval" method?
$(document).ready(function(){
$('ul.tabNav a').click(function() {
var curChildIndex = $(this).parent().prevAll().length + 1;
$(this).parent().parent()...