I'm pretty new to jQuery... so far I'm impressed. But I encountered a situation today that is giving me trouble. I want to use .html() to get some raw text and use that in a selector, but that function only returns the first element.
In the following structure, how can I get ALL of the "toggle_containerLG" divs to show when I click on...
Hi I have a flash menu showing a few links, but when the user is logged in I want to change the menu from menu1 to menu2 ... so that it will display "My Account" rather than "Signup"
The code below is for my flash:
<div id="menu">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pu...
Good day all, I am tasked with building a slider for our site. Here is my goal:
<div id="abc">
<div id="slider">...</div>
</div>
I need to move "slider" left 30px at a time when a button is hovered over, and right 30px when another button is hovered over.
My problem is that there doesn't seem to be a reliable method for telling the...
I'm trying to fill selects with json data from a web service. I'm getting error 'Object doesn't support this property or method.' when I do this $(this).html(options.join(''));
Any ideas what I'm doing wrong?
;(function($) {
$.fillSelect = {};
$.fn.fillSelect = function(url, map) {
var jsonpUrl = url + "?callback=?"...
Hello !
I used javascript for loading a picture on my website depending on which "small" photos in ul you clicked...
I had something like that :
<script type="text/javascript">
function viewImage(src, legende) {
document.getElementById("imageBig").src = "images/photos/"+src;
document.getElementById("legend").innerHTML =...
I have a javascript function that gathers two arrays, imagepaths and captions.
I want to send with PHP's post to the same page $_SERVER['PHP_SELF'], but I really don't know where to start..
PHP:
if (isset($_POST['Submit'])) {
$edit_photos->update_xml($edit_photos->album_id, $_POST['src_arr'], $_POST['caption_arr']);
// prevent ...
I'm using the DataTables jQuery plugin and am having issues with the First and Previous pagination links displaying correctly in IE and Safari (Firefox and Opera work).
"<<" and "<" display as "<" and "".
$(document).ready(function () {
oTable = $('#fileList').dataTable({
"bJQueryUI": true,
"sPaginationTy...
If have a variable data = '<div>... <button id="remember"> ... </button> ...</div>', is it possible to apply the .button(); method to a button inside that variable?
I've tried the following:
$('#remember', data).button();
but that doesn't work. After that i just do $(data).dialog();, which works.
I've come with a workaround and that...
Greetings,
In my current project, I have gridview, search button, text box for search, text box, and submit button.
-I should input string in the search box then click search button.
-when click search button, it will retrieve all matches records then bind them to the view grid.
-then when I click a record in the gridview, it should ...
I have multiple JQuery sortable lists that connect with each other... They allow you to assign users to certain roles.
Basically what I want to do is when a user is dragged from one list to another, I want JQuery to pick up the first list that the user was moved from so that I can send an AJAX request to delete it from that list in my d...
I have a documentFragment with several child nodes containing some .data() added like so:
myDocumentFragment = document.createDocumentFragment();
for(...) {
myDocumentFragment.appendChild(
$('<a></a>').addClass('button')
.attr('href', 'javascript:void(0)')
.html('click me')
.data('rowData', { 'id': 103, 'test': ...
I use jquery's .submit() to intercept user's submit event, however I found a problem.
When the user single click the submit button, the form is submitted normally, but if a user deliberately fast click it multiple times, it will submit multiple times, which will cause duplicated data in the database.
What's the solution for this kind ...
I'm trying to set meta tags using jQuery (please don't reply that this doesn't make sense since search engines blah-blah-blah... I am loading invoking 3rd party Javascript functions that examine these vales, such as Tweetmeme and Facebook).
If I use:
$('meta[name=some-name]').attr('content', 'some value');
it does work to set the va...
Hi, I have an IE problem. I am using the jquery ajax method to call a php script. The php script just calls die(). In firefox, the error message is displayed, but in IE the success message is displayed without any data. I would prefer the error function to be called.
Is there any way to fix this? I'm guessing my javascript code needs ch...
Hi... Anyone know how to do this:
When some user left my site by closing the browser or tab or going to other site I would like to do an action (show an alert) and if the user clicks on a link or button to other page of my own site I would like to do another action...
If I use unload event I can't differentiate between these two kind ...
I've been using Mootools 1.2.4 as my JS framework of choice. I've added Checkout by Amazon to one of my pages, and they inject jQuery 1.2.6 into the page and messes up my dollar function (among other things).
I have control over Mootools, but not jQuery. I would rather not rewrite my existing code to accomodate jQuery since Checkout by ...
My jQuery code (using ajax) request's data from a local php script (pgiproxy.php). This script grabs the desired webpage. I am using the following php function for this:
function grabPage($pageURL) {
$homepage = file_get_contents($pageURL);
echo $homepage;
}
I then extract the html code i need from the returned data using jQuery a...
Hi guys, hope you can help me on this one, I'm currently using this:
jQuery plugin:validation (Homepage)
I've been reading related questions here, but this one is the closest get.
httx://stackoverflow.com/questions/1863448/jquery-validation-on-success
from the plugin's documentation
httx://docs.jquery.com/Plugins/Validation/validate#t...
Hello,
I am looking to give the impression of zooming in from a large image to a detailed area of that image, over time, when the page loads - using javascript (jquery, preferably).
I have been given the following flash site as a reference (action happens just after title fades in):
http://www.delicatessennyc.com/
Not sure if this is...
I have the following html
<div id="list_item_template"><li><a href="#">Text</a></li></div>
and javascript:
var item = $("#list_item_template").clone();
What I want to do is access the inner <a> tag of the cloned copy and add an attribute. Without cloning I would just do:
$("#list_item_template a").attr("onclick", "SomeFunction()"...