I'm trying to run Javascript inside of a fancyzoom modal box, but it's not working. I'm not a JS expert but my theory is that because fancyzoom moves the target div's content to a completely different area of the markup, something's getting messed up in there.
For instance, I have my Uploadify queue/uploader inside a Fancyzoom box, but ...
Hello,
I've got a short function that should show messages on a website.
function showHint() {
$('#notify').html('message text').show('slide', {direction: 'right'}, 500);
}
And there is another function that hides the messages.
function hideHint() {
$('#notify').hide('slide', {direction: 'right'}, 500);
}
The Problem i...
Ok, so here's the skinny...
I've worked out a jQuery function that will first look at the page and search for <cite> tags. Then, it looks at the text contained within it and searches for a hyphen. If it finds one, then everything BEFORE the hyphen is used as the text within the tag. Whereas, everything AFTER the hyphen is used in an onl...
I am using plugin for Jquery that I found at http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/ This plugin allows multiple items to be select into a text field such as facebook and gmail when composing a message. I was really impressed but ran into one problem. For the life of me I could no figure out how to p...
I have a series of INPUT tags with this id structure.
id="menu_popSearch_chk1_I"
id="menu_popSearch_chk2_I"
id="menu_popSearch_chk3_I"
Etc. HOWEVER, so I do not want these
id="menu_popSearch_chk1_S"
id="menu_popSearch_chk2_S"
id="menu_popSearch_chk3_S"
Is there a 'wildcard' kind of feature where I can get the first set, but not the...
hi all,
i'm having a scrollable table with fixed header.
would it be possible to have "snapped scrolling" on the scrollbar - which means that the table rows won't scroll pixel by pixel but snap responding to its row height, for better viewing.
thx
...
I have a list of items (<li>), something like 50 of them, and I want to show only the first 8 items... How can I do that?
...
So I'm using this plugin: jquery-in-place-editor, I'm trying to make a POST request according to the docs, but I'm not sure what URL to do the POST to, I can't seem to get it right.
If I'm in the show view for the object, which in this case the path is: /quote_line_items/90
But when the script executes I get this error: No action respo...
Do you know any jquery carousel that doesn't need any extra markup or so...here is my markup:
<ul class="navigation">
<li class="navigation-top"><a href="#" class="prev" title="Up"><span></span></a></li>
<li class="with"><a href="#" title="Shopping">Shopping1</a></li>
<li class="with"><a href="#" title="Shopping">Shopping2</...
Trying to accses the class name from the event.target object. Works in FF, Safari, and Chrome. InternetExplorer 7 alerts "undefined". Any suggestions?
<script type="text/javascript">
$("document").ready(function(){
$(".page").hide();
$(".page:first").show();
$("#navBar a").bind("click", linkClicked);
});
function linkClicke...
I wonder if there is a way to convert string into jQuery object and select inner elements without injecting the whole string into DOM and manipulate it in there. Thanks.
If possible, please give me example of converting
<div id=a1><//div>
<div id=a3><//div>
And select a1 from the object variable
Thanks
...
What combination of selectors could I use to get the html text that contains
Price information in the example below. (Assume user has clicked a radio button and the Submit button)
<table border="1" id="modal_table">
<tbody>
<tr>
<td> <input type="radio" name='sub' value="509"/> </td>
<td> 509 </td>
<td class='price'> Price is...
I'm using jQuery's ajax function to hit a cross domain url. The url will return json. I'm in the discovery phase with this but I think, because the json values contain several '"' strings, the json eval is throwing an error and stopping the execution of my client side script. The error that I get is "unterminated string literal". I k...
I wanted a jquery plugin which can support links on the tooltip.
I couldnt found one.
...
<html>
<head>
<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.7.1.custom.min.js"></script>
<script>
$(function(){
var $container = $('#container');
$(".obj").draggable({
cursor: 'move',
helper:'clone',
scope:'mydrag'
});
$container.droppable({
accept: '.obj...
i have a site where users enter a numeric code of 10 numbers. when reading from the db and displaying the codes i want it to display in this format
xxxx-xxxx-xx
how can i do this with php or jquery ?
...
This is a simple syntax question.
I have a ul saved as a variable like this:
$list = $("#city_list");
I am later removing some items from the list with this code:
$('ul#city_list li#city_' + $id).remove();
How can I do that using the $list variable I created earlier so that I get something like this:
$list.('li#city_' + $id).remo...
I have a ul list that is loaded by an included PHP file. Those items have a "Delete" link that removes them from the list and the database.
When an item is removed from the center of the list using this code:
$list.find('#city_' + $id).remove();
It leaves a space in the list like this:
What can I do to refresh that list, without g...
There are many <label name="delQ" style="cursor:pointer">Remove</label>
elements in a web page; the elements are dynamically created. How to determine how many "delQ" exist in the current web page?
$('[name="delQ"]').live('click', function() {
//Get the number of name="delQ" in the current web page.
});
How to do it in Jquery?
...
Hello,
Im trying out the Google Maps API Geocoding feature.The map loads fine, but im facing an issue with geocoding.I have a text box on the page where i enter the location, and on clicking the submit button, i would like to pinpoint the entered location on the map.
The setCenter method correctly marks the location on the map, first t...