[jQuery] Problem for calling ajaxStart and ajaxStop
Hi, I am trying to call tow times $.ajax request using type: "POST" for different actions on same page. For this I am showing a loader image on ajaxStart and hiding on ajaxStop. I am using different id for diffrent functions but when I call any one ajax request other's loading image also showing. My mean to say that ajaxStart and ajaxStop function are not working for their respectively ids. 1) first Function call <span id="id_add_fav"><a href="#" onclick="addFavourite(); return false;">Add to Favorite</a></span>
[jQuery] superfish dropdown menu
I’ve just come across your superfish extension in the joomla extension directory, and I’d like to ask you a question about it. Is it possible to have more than three levels? The demo here (http://users.tpg.com.au/ j_birch/plugins/superfish/#examples) only shows three levels- so that’s why I ask. I am currently using the extended menu with son of suckerfish, and can’t seem to find a solution for going over 3 levels of menus. If I go over three all of the levels spill out at once when I hover over
dragging a button without using handler
Hi, I'm very new with jq and I'm trying to make a button draggable. Is there anyway to make this without using the handler option? Thanks in advance.
[jQuery] Best way to do this for multiple input fields?
Hi, I'm trying to create a form with multiple input fields. These fields should have a button to be able to check its content with .ajax. I am able to create this function for a single field, but i don't know what the best way would be to do it for multiple input fields: input#item0 input#item1 input#item2 input#item3 ..... What would be the best way to create this with jquery so i can adjust a single var to create if for x items? Thx, Carlo $(document).ready(function(){ $("span#check0").click(function(event){
Can't change default cursor with jquery (slider)
I'm using jquery slider on my website, from here http://tinyurl.com/5q6luc And.... All is fine, except there's this class set for left / right buttons, goes like this; $scroll .before('<img class="scrollButtons left" src="left.gif" />') .after('<img class="scrollButtons right" src="right.gif" />'); So - logically - to change it I looked up in the CSS; .scrollButtons { position: absolute; top: 10px; cursor: pointer; z-index: 1000; } .scrollButtons.left { left: 10px;
[jQuery] Simplemodal plugin position problem subsequent loads
I am using simplemodal perfectly fine everywhere but on one page it loads the content off to the right side of the screen on subsequent clicks. The first time the modal loads perfectly centered as it should but the second time it is on the right side of the screen and further towards the bottom and stays there for all subsequent loads. Any ideas?
[jQuery] Tooltip(?) on Jquery Home
Hi, i'm new to Jquery, and would like to know which library what kind of of tooltip is that at the jquery.com over the "Lightweight Footprint"/"CSS Compliant"/"Cross Browser". At first I though it was JTip or clueTip, but neither seemed to both be sticky and support fade. Thanks in advance.
[jQuery] jquery validation
How can i add ID="error" instead of a class using jquery. Also is there a way to say that "you must uncheck the box before submitting the form. Im using http://jquery.bassistance.de/validate/demo/milk/ as an example. Also is there a way to use jquery to show/hide passwords, i done it using js but i want to use jquery I want to add these. Can anyone help
[jQuery] close a function and load...
Hi, can I close a jquery function and load a new function with a mouse click? like this: on mouse click -> CLOSE "<script type="text/javascript" src="/media/js/function1.js"></script>" -> LOAD "<script type="text/javascript" src="/media/js/function2.js"></script>" Thanks, Alfredo
[jQuery] Issue with my dragging code
I have the following code: //add the ability to drag columns if(options.draggable === true) { $('#' + options.element_id + ' table.cr_data_grid tbody tr th span').bind('mousemove', function(event) { if(self.resize === true) { var change = event.pageX - self.mouse_down_start; $(this).parent().css('width', $(this).parent().width() + change); self.mouse_down_start = event.pageX;$('body').append('mouse down at ' + event.pageX + ' and this columns width is'
[jQuery] problem traversing
hi i am attempting to make a small quiz and am having a setback... i was hoping someone could provide a hint or solution. heres the html: <div id="quiz"> <ol> <li><strong>What is apple in french?</strong> <ol> <li><input type="radio" name="q1" /> Pomme de terre</li> <li><input type="radio" name="q1" /> Poire</li> <li><input type="radio" name="q1" /> Appeaux</li> <li class="correct"><input
[jQuery] .html() and ampersand
Hi, I use the .html() function to get the value of a label, but when it contains an ampersand (&) it is converted to & amp ; How can I prevent that or is there another way of getting the value of the label ? Thanks
[jQuery] Superfish Question (plus odd google chrome and firefox glitch)
Hey Joel, I am posting this here as you request on your support page. Quick disclaimer: my knowledge of javascript is very little :) I am about to switch my sites navigation over to the very excellent Superfish. I've slightly modified it to add the arrow graphic myself before javascript (for those without). A quick test page: http://nationalcitypd.com/super/example.html I am having the following issue. Heres hoping I can describe it (its very visually obvious). While in a submenu, the parent menu(s)
[jQuery] (newbie) animate: css-style changes but webpage doesn't
Hi guys, I was testing out animate using firebug and as an example, I'm able to move every anchor in the www.jquery.com page by typing this in the console: $("a").animate( { "top": "-=10px"}, "slow" ); But if I go to this other page: http://flowplayer.org/tools/scrollable.html which has jQuery in the header and I type in the same command, I can see the style in the anchors changing in Firebug, but the page stays the same: <a href="/index.html" style="top: -20px;">Home</a> <a href="/index.html" style="top:
[jQuery] [livequery] strangeness
Hi, I'm loading a page reloaded every x seconds is injected into the dom (#reloaded). The page in question contains links of a certain class (.loadNewPage). Clicking on a loadNewPage link will load another page in another div (#edit). Since the links are the result of a page loaded into the dom, I used livequery to bind their event. Halas... There's a "three click" problematic process (.loadNewPage links in #reloaded) 1. first click does what's expected (the remote page is loaded correctly and injuected
[jQuery] problem checking input
http://paste.pocoo.org/show/95986/ simple quiz function if the radio in li.correct is checked, then the user has selected the correct answer from a multiple choice set. right now i am getting a true no matter which radio is selected in the group thanks for any help in advance thhis one has been bugging me for a while now! j
[jQuery] Menu under Image show Module
Hi, When The menu is very close to an image rotator such Simple image Rotator, when I select down a submenu i goes under the the imege rotator, making it impossible to read and select the submenu. Is there any solution?
[jQuery] Activate tab then scroll to an element
I've got a jQuery script that makes links open in a new JavaScript window, to show a page of content regarding jargon. However, that content is now being moved into a UI tab in the current page, instead. I want to modify my script to activate the tab and then jump down to an element with an ID that corresponds to the heading for the jargon section I want to show. I can activate the tab okay, but I just can't get the browser to jump to the content I want to highlight. Here's the function as it currently
[jQuery] Make <li> list of unique json data?
Hi I'm just learning JQuery and while I've got my head around the general concepts, the real power of the logic it provides is still escaping me. I've got a page with a JSON dataset like this: var myData = { records : [ { CATEGORY : "Sport", TITLE : "The world of sport", LINK: "http://test.com" }, { CATEGORY : "Sport", TITLE : "More sport", LINK: "http://test.com" }, { CATEGORY : "News", TITLE : "News views", LINK: "http://test.com" }, { CATEGORY : "News", TITLE : "Some more news", LINK: "http://test.com"
[jQuery] Help with horizontal sliders (accordion)
I'm trying to create some horizontal jquery tab sliders, and being somewhat new to jquery, I'm having a little trouble finishing off the logic. My current code snippet is here: $(document).ready(function(){ $(".trigger").click(function(){ $(this).toggleClass("active"); $(this).parent().siblings().width(46).end().width(453).end(); $(this).next("div").show(); $(this).parent().siblings().find(".slidecontent").hide(); }); and the full code can be found at http://developer.erg.com/~bzaks/erg/test.html
Noob: Call a function that requires "this" as an a
How do I link an existing function to the onclick event of one or more page elements, and send the object of the element that was clicked to that function? //With plain old intrusive javascript: <div class='someClassName' id='Hello' onclick='myFunction(this)'></div> //With jQuery: $(document).ready ( function() { $("div.someClassName").click(function() { myFunction($(this)); }); } ); //The function being called: function myFunction(e) { alert(e.id); } The jQuery code doesn't
1 big image & Thumbnails-Gallery - how to update the url
Hi there! I've got the "1 big image & Thumbnails - Gallery" working so far, the big image should also link to a bigger image...the problem is now, that the url to the bigger image doesn't change, when the image linking to it changes. so, till now clicking on the big image (no matter which one is selected) will show the first big image of that gallery. the bigger images got the same filename but with an "big_" attached in front. my JS is: $(document).ready(function() { }); $("div.hoverthumb").click(function()
[jQuery] Superfish, Submenu not appearing on page load
Hi All, First of thanks for this awesome script... I am have a bit of a difficulty witht he nav-bar confgiuration; On the examples page (http://users.tpg.com.au/j_birch/plugins/ superfish/#sample4), the nav-bar example automatically shows the "current" sub menu items on page load. However when I used the scripts locally on my own server, i couldn't get the code to automatically show the submenu items on page load. I have my sample up here: http://www.gameskore.com/test/example2.html Can any body
[jQuery] IE8 - show()
Hi Was doing a site lately. When I test it on IE8, my navigation dropdown just won't work. (Smoothly on Safari, Firefox, IE6, IE7) So I run the jquery.com/test on IE8 (8.0.6001.18241), and it shows error: 59. core module: show() (7, 8, 15) - In red color I wonder if it's the event.show() problem? You can check it with your IE8 at http://de.cwmao.net/celc/ Or you can view the script here: http://de.cwmao.net/celc/js/main.js I doubt is the jquery core problem Hope someone alighten me? >< CS
[jQuery] looking for hijax validation (with graceful degradation)
I'm looking for a way to validate various forms which each require different information, but discrete chunks of information could be easily validated by simple rules (e.g. checks for valid email address, url, zip code, telephone, etc…) In the past, it was satisfactory to make self-submitting PHP pages that include some validation code, and if errors were found, the form would be redisplayed (with data intact), errors displayed, invalid fields highlighted with a CSS error class, etc… I was using
[jQuery] jQuery reloads all JS files on show()
Hello out there! We're currently implementing jQuery into our community software to increase usability and lifestyle (effects etc.) The following problem makes me go crazy ;) I want to show/hide a div with show()/hide(), sounds simple, but jQuery behaves very strange. My example: <img onclick="$('#mydiv').show()" /> <div id="mydiv"> <!-- here goes my content --> <script type="text/javascript" src="myjs.js"></script> <!-- as you see, it may also contain javascript files, because "stand-alone components"
[jQuery] Convert form data to xml
Folks, Looking for pointers to convert form data into xml. please help. Thanks all
I need to hire a jquery expert
I am looking for a jquery expert to help with 2 areas of a project. The main requirement is checks on an HTML form which happen live without refreshing, i have links to demonstrate the requirements so please contact me if you would be interested in this project. You must speak very good English, you must use skype and able to accept skype calls for discussions about the project. Please put the below info in a private message to me skype id email id hourly rate Best Wishes
[jQuery] Advice about Jquery selectors and updating content in DIV
Hello, Here's what I've made. I have a lot of divs on different pages which you can Digg (it's called hit). When I click on hit, I've made a code that send Ajax data to a second page which record everything needed in the database. That's working easily. But then, I need to add something to that and I can't. I need to update the number of diggs and add 1 when task is complete and I need also to add it just in one div. I also have a little message showing up but that's not necessary for now. Here's
[jQuery] Superfish: IE6 Links in drop down fail to work
Hello All, Very odd behavior in IE6 that is driving me crazy. http://ymf.org Take a look at the drop down menus in IE6 (work fine in FF, Safari, IE7). Can't get the links to work at all in the drop down, except for the last link in the Programs section - Wells Fargo. I've tried removing the various divs below the navigation bar but the menu continues to fail. I've play with various z-index settings but, others than managing to stop IE6 from settling the menu's behind the lower portion of the page,
[jQuery] RE: jQuery date picker - how to disable all Sunday
Hello Thank you for the jQuery date picker. Is there a way to disable all Sunday or any Saturday and Sunday? Thank you for everyone who has contributed. Best regards
[jQuery] Fetch (ajax) a file only if it's been modified
Hi all, I'm trying to fetch a file, but only if the Last-Modified header has changed. What I have is a page that fetches a data file every X seconds (20 in my case) and displays that info to the user. That data file is updated on the server whenever a user takes specific action. It works fine doing this: //refresh data every 20 seconds setInterval(function() { $('div#livedata').load('livedata_fetch.php') }, 20000); But that fetches the file every single time. It's not a big file, but I really only
[jQuery] Placing .get method results in a div tag
Hi I've been using jQuery all of about 12 hrs now. I want to place the results I get back from results.aspx into the div "results" rather than alert it out. Thanks. <script type="text/javascript"> function addNumbers() { var number1 = $('#number1').attr('value'); var number2 = $('#number2').attr('value'); $.get("results.aspx", { number1: number1, number2: number2 }, function(data){ alert("Data Loaded: " + data); // want to place data value in results div here }); } </script> <input type="text" id="number1"
[jQuery] syntax for $(response).$('a').each()
$('#divid').load(url, function( response ){ $(response).$('a').each(function(i){ // do stuff }); }); Unfortunately, that doesn't work, what's the correct syntax for that?
[jQuery] multiple checkboxes showing/hiding a div
Folks, I have two checkboxes. When either one is checked, I would like to show a div. When both are not checked, then I want the div hidden. However, I've only been able to use toggle to show and hide the div only when checking/unchecking one checkbox. It's not quite what I need. So far I have this: js: $("#check_1").click(function(){ $("#special").toggle("slow"); }); $("#check_2").click(function(){ $("#special").toggle("slow"); }); html: <input type="checkbox" id="check_1" name="check_options[]"
[jQuery] JQ Modal IE6 and 7 issues
Not sure what is wrong... Works great in Firefox: http://www.zero1productions.com/inacronym/preview/profile.php (please click on the my people tab and then click the first "+" sign on the first photo and the jq modal box will pop up). In IE6 and 7 everything else is not clickable on the site... Please help! -- View this message in context: http://www.nabble.com/JQ-Modal-IE6-and-7-issues-tp21019899s27240p21019899.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] [treeview] problems with async in IE but not mozilla
Hi, I really can't work this out. Im testing the async version of treeview, just retrieving JSON from a static file for the time being. I have it set up in visual studio, running on the in built development server. I have an aspx file and a plain htm file containing the JSON. (I've deconstructed my real project down to this simple test case) I cannot get the treeview to work (retrieve the json) from IE 7 but the exact same setup works fine in mozilla. If i run the set up based on the demo from my
Help with horizontal sliders (accordion)
I'm trying to create some horizontal jquery tab sliders, and being somewhat new to jquery, I'm having a little trouble finishing off the logic. My current code snippet is here: $(document).ready(function(){ $(".trigger").click(function(){ $(this).toggleClass("active"); $(this).parent().siblings().width(46).end().width(453).end(); $(this).next("div").show(); $(this).parent().siblings().find(".slidecontent").hide(); }); and the full code can be found at http://developer.erg.com/~bzaks/erg/test.html
[jQuery] clueTip + Perl bombing in IE7
New jQuery/clueTip user here. I am trying to use clueTip with Perl to create tooltips with previews of specific sections from the middle of their pages. I'm coding the rel attribute of the links to point to a Perl script plus parameters, like this: <a href="filename.html#20-150" rel="extract.pl? page=filename.html&anchor=20-150" class="basic"> Extract.pl is supposed to take the parameters, open the page, create an excerpt starting at the anchor, and then print it out as html, which then gets displayed
[jQuery] script tags in Ajax request
How do I disable reading/eval script tags in a request?
Next Page