<a class="source" href="jquery-lead.php?source=<?=$src;?>">3</a>
<script type="text/javascript">
$("a.source").live('click', function() {
$("#results").load(this.href, { page: $(this).text() });
return false;
});
$("a.source:first").click()
</script>
I am able to pass $src variable to my php script, but I...
I have some jQuery code that goes through a table of location results and puts corresponding pins on a map. I am having trouble figuring out how to set the bounds so that when it goes through the loop and generates the markers on the map that it zooms and pans to fit the markers in the view. I've tried implementing code from some similar...
I want to be able to apply opacity to some elements to make them invisible only if javascript is enabled. I don't want to use display:none because I want the layout to act as if they're in the DOM, so setting opacity to 0 is perfect.
I want to be able to set this initial value using Javascript, using JQuery, so I don't have to mess wit...
There is a panel on my page with no default background-image css. On load it is set with jquery to an initial image, waits for 10 seconds then loads a random image out of some predetermined images. There are previous and next buttons which allow you to cycle through the images. In ie6 the initial image loads and then a random image also ...
Should each page have its own .js, with reusable features (live search, drop-down menus) being included in some kind of all.js for each page? Not sure what the best way to structure this is. Thanks for your input!
...
Seems like this might be easy, but from reading other SO answers there are a number of ways for it to possibly work:
I have the "thanks" div below that shows when a php form is sucessfully submitted:
<?php if(isset($emailSent) && $emailSent == true) { ?>
<div class="thanks"></div>
The page does not reload after the form is submitted;...
I have a big div, and a small button inside the div.
When the div is clicked, I want it to do something.
When the button is clicked, I want it to do something else.
$('#myDiv').click(OnDivClicked);
$('#myButton').click(OnButtonClicked);
Currently when the button is clicked, both OnDivClicked and OnButtonClicked are fired.
How do you...
I'm using SimpleModal:
http://www.ericmmartin.com/projects/simplemodal/
And displaying an iframe, as per the example:
// Display an external page using an iframe
var src = "http://365.ericmmartin.com/";
$.modal('<iframe src="' + src + '" height="450" width="830" style="border:0">', {
closeHTML:"",
containerCss:{
backgr...
So I am trying to replicate Facebook's picture tagging functionality, and I have the functionality that onClick, a box is created and there is a comment box.
Now the issue is that I want to be able to (without doing any back-end processing) take the input from the input field and add it in some form to the underlying image area that the...
I have a jquery Image slider in a content page that worked fine. Once I converted it into a asp repeater the first image of the repeater would display twice, then run normally.
Any idea on why the repeater is causing this?
I think I discovered that the first image link
<ItemTemplate>
<a href='<%#Eval("Url")%>'>
<img src='<%#Eval("Im...
I am working on a rails application that uses big javascript libraries (e.g. jquery UI), and I also have a handful of my own javascript files. I'm using asset packager to package up my own javascript. I'm considering two ways of serving these files:
Link to the jQuery libraries from Google Code as described at http://code.google.com/...
Hi all,
I have a modal form that changes the caption of a photo (paragraph under the image) and I am also trying to change the image's ALT attribute but cannot seem to.
Here is the jQuery I am trying to make work
$(".edit").click(function() {
var parent = $(this).parents('.item');
var caption = $(parent...
The issue about jquery flexigrid using php.
unfortunately http://flexigrid.info site is down very often
so managed to take some sample code from http://sanderkorvemaker.nl/test/flexigrid/
and worked based on that.
The above sample code works now I need to create a grid with a column with checkboxes, So that I can click a couple of tho...
Hey everyone. I am having some issues on my end and hopefully it's just something on my end but, could someone take a look at REMOVED SINCE FIXED in IE and let me know if you can see what is wrong. Please check it out first in FF or Chrome or Safari because it all works fine in those browsers.
The two scripts I am using are a custom-ish...
How does Gowalla.com perform it's slide effect on the frontpage?
What JQuery effect can mimic that functionality of the sliding down effect?
...
I have tested this on Windows XP SP3 in IE7 and IE8 ( in all compatibility modes ) and Windows 7 Ultimate in IE8 (in all compatiblity modes) and it fails the same way on both. I am running the latest HEAD from the the couchapp repository. This works fine on my OSX 10.6.3 development machine. I have tested with Chrome 4.1.249.1064 (45376)...
When the button in the following script gets clicked, it should load in the contents of the file "http://tanguay.info/knowsite/data.txt" and display it on the screen.
What is the correct syntaxt so that the .get() function retrieves the data from the external website and puts it in #content?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...
I have some code that basically inflates a 'balloon' through 15 or so stages and then makes it pop at the 16th stage. (yes, images are changed). What I'm wondering now is if it's possible to use Jquery to play a sound file whenever I reach that 16th stage (or when whatever var reaches whatever value) - in other words...when I want.
I've...
With jQuery 1.4.2, I can't figure out how to combine has() with :gt. I'd like to select any <ul> which contains more than 3 <li>s, so here's what I've tried:
$(document).ready(function(){
$("ul.collapse:has(li:gt(2))")
.each( function() {
$(this).css("border", "solid red 1px");
});
});
This does work with t...
If i use jquery in projects then should i keep "firequery" installed?
http://firequery.binaryage.com/
Would it be helpful?
...