Hi All,
Im kinda new to Jquery, so this might be easy, then again i cant seem to find anything on Google. So here goes.
I basically have this:
<div>
<div id="row1" class="col1" onMouseOver="OnMouseOver(11)">
I dont want to select this
</div>
<div id="row1" class="col2" onMouseOver="OnMouseOver(12)">
I wan...
Hey there,
I have a form and wish to display a checklist which will just be a list of items to show the user which sections have been completed. I want to be able to apply a css class to each list item that will show a tick or cross depending on whether those form fields have been completed like so;
<ul class="summary">
<li class="...
Good Morning,
I am trying to write a selector that would select all rows that contain a span element that has a class of "cancelMenu".
Is either of these better than the other? Or is there an even better way to write it?
$("span.cancelMenu").closest("tr");
$("tr > span.cancelMenu");
Any thoughts or ideas? I am using the first one ...
Hi,
I am using ASP.NET MVC C#
I have a jQuery call that deletes a Book, then in the callback I call a function that refreshes the list of Books.
function rembook(id) {
var agree=confirm("Deletion cannot be undone. Continue?");
if (agree)
{
jQuery.ajax({ url: "/Books/Delete/" + id, dataType: null, t...
I'm trying to call an external JS function from flash using the ExternalInterface.call() method in action script. The function should open a modal window that has been written in jQuery. My problem is two fold:
How do I open this modal window without attaching the action to a link? I just want the window open and to pass in the URL.
Is...
Hello everybody,
I have a list of items in a page that must be hidden in sequence, but just after the previous item has been totally hidden.
I made the following code, where I create a big string inserting the callbacks inside the previous callbacks and later use eval to execute the effects, but despite the code is working fine as expe...
Here is the problematic part of my code, run inside .each(function(){ });
$('img','<div>'+ed.selection.getContent({format: 'html'})+'</div>').each(function(){
$img=$('<img/>').attr('src',$(this).attr('src'));
alert($('<p>'+$img+'</p>').html());
if ($(this).attr('height').length>0){
$img.attr('height',$(this).attr('height'))...
I'm trying to combine 2 parts of MVC that I haven't seen used together: 1) Ajax and 2) Error handling. The problem lies in what is returned and where (div element to update) that it's returned.
I have an ASP.net MVC page that looks like the following
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Store>" %>
<div id="MainPage...
I am trying to build a basic drag and drop print friendly photo gallery. I want to allow users to take 10 photos, arrange them anyway they want, then print them out. The code below does the basic drag and drop putting the photos/img into a div, but I can not limit the div to only accept 1 photo.
How can I fix it so when the img hovers ...
I'm rocking this bit of Javascipt in the <head> section of my page:
<script type="text/javascript">
$(document).ready(function() {
$('dl.expander dd').expander
(
{ slicePoint: 50, widow: 2, expandEffect: 'show', userCollapseText: '[^]' }
);
});
</script>
This works great the first tim...
How does the logo in the top left corner of the screen gradually change color as a rollover? I think its done in jquery. If you don't know the code can you point me to a tutorial that can? Thanks.
http://www.shopdev.co.uk/blog/
UPDATE:
Thanks everyone, I've posted a working version of the code below,
<html>
<head>
...
I asked a similar question previously, but it was so vague that I couldn't possibly have gotten the answer I wanted.
Basically, I want a user to be able to select from multiple options and have various bits of information appear based on the selections.
For example:
"How old is your computer?"
Options: [x]One Year [ ] Two Years [ ] ...
$(".trigger").click(function () {
$(this).next(".toggle").slideToggle("fast");
$(this).toggleClass("active");
return false
});
HTML:
<input type="checkbox" class="trigger">
<div class="toggle">content</div>
It isn't working, whats wrong with the code?
Thanks
...
I'm trying to filter the XFN relationships meta data found in web pages.
It is something like this:
<a href="site" rel="friend colleague" >Name</a>
in REL you can have various values, like "friend", "collegue" but even "me" and "met"
because you can have multiple values, I did this:
xfn_me = $("a[rel*=me]").length;
But this doesn...
Hello All, I am attempting to show and hide a series of divs using toggle, slideUp and slideDown. I am able to get the div to slideDown but I can't get it to slideUp. I've used this script without incident before so I'm really confused as to why this isn't working. I have included my script and the div I'm attempting to show and hide.
Q...
I am not able to fix the bug in this file.I cant paste code here cause its too lengthy for every one to work on it.. so im posting this rapidshare link
(file size is just 740kb)
Whats the problem:
Open the html file and click on any image, and that will be displayed in the right side div.I tried to do the same for the video but i do...
im currently setting up asp.net to accept DELETE http verb in the application.
However, when i send
"DELETE /posts/delete/1"
i always get a 405 Method not allow error. I tried to take a look at the header:
Response Headers
Cache-Control private
Pragma No-Cache
Allow GET, HEAD, OPTIONS, TRACE
Content-Type text/html; charset=...
I am seeing very poor page set-up time in IE using jeditable.
The page has a table in which each row has 13 span elements to which jeditable is applied as follows:
$(document).ready(function() {
$('#entry_pl span.ples').editable('my_xhr.php', {
placeholder: '<span class="placeholder">unset</span>',
indicator: '<img src...
I am trying to bind an event to a textbox that contains paramters. The following keep looks as if it should do it, but everytime the page loads, it gets executed.
jQuery(function(){
jQuery('#textbox').bind('click',EventWithParam('param'));
});
The event gets called with that parameter everytime the page loads. This may not work be...
I am looking for a jQuery plugin that manages tables. I need the capability to programmatically add/remove rows easily. Lastly, I need a "row level" "onclick" event.
A nice associated stylesheet would be appreciated :-)
NOTE: I know about plugins.jquery.com but I am pretty "newbie" when it comes to jQuery... I need your help guys, plea...