I have a drop down box next to html link tag element, the link element is as below:
<a href="#" class="delete" onclick="remove(this)"> Delete</a>
It has an onclick attribute set to the javascript function below:
`function remove(obj) {
$(obj).prev('select[name=estateDropDownList]').remove();
$(obj).remove();
}`
Now it remo...
Is there a event that fires when javascript files are loaded. The problem occured because YSlow recoment to move javascript files in bottom of the page. This means that
$(document).ready(function1) is fired before js file that contains code of function1 event is loaded.
How to avoid this kind of situation?
...
What would be the jQuery code to add a checkbox to every <li> element in an unordered list and handle their callbacks obtaining the li text or checkbox properties like name/value?
I started with something like this:
$(document).ready(function() {
$("#SuperTextbox1_Results").children('li').each(function() {
$(this).prepend('<in...
Hi, is there some elegant way, ideally with jquery plugin like pager 1 or pager 2 how to implement paging with asp.net mvc? I am trying to go over partial views, but so far unsucessfully. Where should I store the loaded grid data? And how to respond on the page selection with just a partial refresh?
Thanks in advance.
...
I am dynamically loading a user control on a click of a checkbox. I need to run a post on the Jquery when a button is clicked on the user control. When I Load my User Control, I cannot run
$(document).ready(function(){
alert('I am here!!');
}); as a test.
Any Ideas. or do I need a $.getScript() ?.
...
Is there a way to easily handle manipulating URLs in JavaScript?
A bit of context:
I want to use ThickBox, the popular jQuery modal popup box, but unobtrusively. According to the ThickBox documentation I have to give all links that I want to be made modal a CSS class of "thickbox" and change the URL from...
http://www.mysite.com/mypop...
I would like to do something like this: http://javascript.about.com/library/blcmarquee1.htm
The script I referenced however seems to be a bit laggy (outdated?), so I was wondering if anyone knew of a solution using jQuery and its smooth animations.
...
I would like to be able to reorder lists of Models via a jQuery script.
I already have reordering within inLines on the Model update page, but I'd like to add it to the change_list page aswell?
Is this possible? I'm using Django 1.1 so have access to action sheets, if that makes things easier...
Any information would be appreciated.
...
I have a page with 10 images in and I want to fade them in one after another once the image has been downloaded. how can I detect the image is loaded and ready to be displayed? and should I loop through the loaded images fadeIn and once fadedIn wait for the next to load?
...
Hi everyone.
I am not familiar with js and jQuery, but need to create function to add/remove blog post to "My favorites" page and update counter of saved posts. Is any ready solution - plugin or snippet - to it?
There is my html snippet.
<h1><a href="http://www.example.com/add-post-to-my-favorites-page.htm" id="post_0064"><span class...
I'm dragging and dropping divs between outer container divs and need to get the id of the outer div that the drag started in.
I'm doing this by saving $(this.parentNode).attr('id') on the drag start event.
The first time I drag something this gives the expected div id but on subsequent drags of the same div this id is not correct.
Any...
I'm very new to the world of jQuery and might be asking a fairly trivial question here. I'm curious as to what the community views as the best practice for a databound object with jQuery functionality.
As a specific example, I've currently created a repeater bound to a list of objects. Each object has properties such as "link", "thumbna...
I have set up the navigation on my site using a scrollable div created with Flowplayer's JQuery tools. I also want to add a tooltip to the individual images within the scrollable div. The problem is the tooltip needs to appear outside of the div. I can adjust the height of the div so you can see the tooltip, but the tooltip is still cons...
I have a function resizePreview() that will resize an image in a jQuery dialog box if the image is too big. This image can be changed by the user. My code goes something like this:
$('#imagePreview').attr('src', newImageSrc);
resizePreview();
resizePreview() uses $('#imagePreview').width() and .height() to get the dimensions and res...
Hi there,
I have a simple table structure like this. What I would like to do is to dynamically merge some columns based on some condition within the for example, if td1 and td3 are empty then merge the cells and do
<td class="col1" colspan="3">1Meeting</td>
I tried playing around with jquery using
$(".tblSimpleAgenda td:contains('...
I want to enable an effect on my web app where a user clicks an "Edit" icon and a text box elegantly slides out horizontally immediately to the right of the icon. Currently it is sliding out, but not very elegantly, because when I click on the icon for some reason a new row is created in the browser below where I clicked (and all content...
Hi all!
I've made a desktop application which uses Cocoa's NSTokenField:
More info about it here: http://developer.apple.com/documentation/Cocoa/Conceptual/TokenField%5FGuide/Introduction/Introduction.html
Now I'm remaking this application as webapplication using PHP and AJAX. Is there a way to use a token field (comma seper...
I'm not referring to preloading images, I want to preload an HTML page using JQuery.
...
Hello,
I am currently working on building a very simple site for an open source research project for my University. I am using JQuery to animate the sub-navigation of the site. However, my code only seems to work in IE and not Firefox or Chrome.
I'm not sure if it is a compatibility issue, or if it is my fault. I looked up examples on ...
Hello,
I'm playing with the great Bassistance jQuery Validator and am stuck at a point
The idea is simple: I have lot of this markup (I semplify, but the idea is that after each there could be something else, i.e. a word, an icon, etc... that is "inline" with the corresponding):
<ol>
<li><input type="text" id="width" size="3"></input> ...