Hello,
I've created a Facebox on my site and want to call the .click(function)() to append text to all paragraphs. My code refuses to work once I put it inside the facebox...but works when on a regular html page. Is there anyone out there that could help me out? This has caused me a great deal of pain...
Here's my code:
**// Facebox ...
I'm trying to use the jQuery forms plugin to dynamically submit a form on change.
It's definitely working, but everytime a user changes an input value, it does the .post, runs my success "alert()" and then repeats, over and over, until I refresh the page to stop the loop. Here's the code:
<!DOCTYPE html>
<head>
<meta http-equiv="Conten...
The statement I'm concerned about in the following statement is fancybox = 1; That needs to happen if my maxWidth for any of the temporary images I create is over 480.
A little background on the html this interacts with:
I have a link wrapped around an image.
The image is a resized version, and the link's href is to the original, unsiz...
I'm trying to parse data from a page of JSON in my ASP.NET MVC 1.0 web application. I need this data to display in a table on page load and I'm having a great deal of trouble mainly because I've never used JSON before. The JQuery site gives pretty terrible examples as well. This is what I have so far, I need help writing a function:
...
Hello!
Why isn't the div inside a fading div -fading along in Explorer? Firefox and safari doesn't seem to have a problem with it.
See project here: http://www.idvisual.nl/temp/IDVISUALV3/
See the portfolio items with the label 'Recent'. Click on a category in the navigation to fade. The label doesn't fade to a low opacity when the c...
I am trying to grab http://lib.softvoyage.com/cgi-bin/gate_dest_hotels.xml?code_ag=nwi&alias=tpi&language=en&with_cdata=y via AJAX however it keeps returning nadda (firebug screenshot here: http://img683.imageshack.us/img683/3279/firebug.jpg)
Below is the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ...
What I am attempting to do is see if a jQuery object (or even DOM element for that matter) contains a particular class using the same selectors as the Sizzle engine.
jQuery publicly exposes Sizzle with the following:
jQuery.find = Sizzle;
jQuery.expr = Sizzle.selectors;
jQuery.expr[":"] = jQuery.expr.filters;
jQuery.unique = Sizzle.uni...
I Recently launched my portfolio page, and I used a jquery plugin to sort my portfolio entries based on their classes. Please view it Here
You will notice that when you rollover each image, it enlarges and a case study link shows up. That is how it should look. When you press on the logos & branding button (up top) it functions perfectl...
Hello, I have an Ajax form that lets me dynamically remove rows from a table using the OnComplete AjaxOption. That works great.
The problem is that even if I hit "Cancel" on the confirm dialog, it still executes the OnComplete javascript. So the form doesn't post, but it looks like it did to the user (the row is removed from the table)....
Is there a way to replace the following code with some JQuery code that use unobtrusive javascript instead of what the MicrosoftAjax library does ?
<ul class="vote">
<li>
<%= Ajax.ActionLink("Up", "UpVote", new { VoteId = item.Id }, new AjaxOptions() { OnSuccess = "upVote(this)" }, null) %>
</li>
</ul>
...
I'm trying to apply jquery functions to a drop down menu and for some reason it only works with Firefox 3.5.7. Below is the HTML for the Dropdown Menu:
<select name="Delivery" id="Delivery" class="pulldown" tabindex="24">
<option id="pick_up" value="Pick up">Pick up</option>
<option id="mail" value="First Class Mail">First Clas...
I have successfully installed the Cycle plugin for Jquery and have my banners cycling the way I want them. My question is around building the anchors. I am trying to build something similar to http://www.bazaarvoice.com.
Seems like the anchors are being generated from the javascript but I could be wrong. Here is my html and javascript....
So after a huge headache, I got my site to load its pages all via ajax. The reason being the client wanted it to flow exactly like their old flash site.. duh.
Anyway, everything was dandy, but then I added the google analytics trackers, and it wont load anymore!
So heres how I am doing the ajax:
$("li.home a").click (function() { ...
How can I change the order of a list once applied by JS "jQuery.sortable".
For example:
<ul id="mylist">
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
</ul>
var x_sortable_list = $("mylist").sortable();
then, assuming this to work:
x_sortable_list.changeOrder([
{item:1, newOrder:2 },
{item:2, newOrder:1 },
{it...
i want to have a table of select dropdowns and when you click "commit" all of the selects will simply be regular text inside the of the table. do i have to put the select inside of a div and remove and replace with raw html?
...
I'm trying to collect some stats on some clicking events happening on my webpage.
I figured I would add an onmouse event to the links I want to track, and trigger an ajax call to my tracking php script.
What would be the most efficient way to do that, knowing that I don't expect anything in return, and that things should go on normally...
Given an unorder nested list, if one finds a first occurrence of the "li", how does one find all the siblings that are on the same level?
root.find('li:first')...?
Update: My question was not formulated correctly. I actually need to know following. If I have a reference to element, how do I find elements siblings and create a set tha...
How can I do that?
I would like them to be able to click play, pause, volume, and of course...fullscreen.
I heard you can do this with QuickTime or something? Anyone have any suggestions?
EDIT: These video files are on other people's servers. (We're a search engine)
I just want to pass take the URL of the .mp4 file...and do some java...
I am trying to attach the validation on a button click. I have:
<script>
$().ready(function() {
//
$("#btnAdd").click(function() {
$("#myForm").validate({
// $("#crap").rules("add", {required: true, messages: {required:"Required input"} });
rules: { crap: "required" },
mess...
In psuedo code, this is what I want.
var selector = $(this).cssSelectorAsString(); // Made up method...
// selector is now something like: "html>body>ul>li>img[3]"
var element = $(selector);
The reason is that I need to pass this off to an external environment, where a string is my only way to exchange data. This external environment...