disable "mark as read" button
I just recently started delving into ajax and jquery. I have an image that "marks an item as read" and that seems to be working, how can I disable the image so if it is clicked again it will do nothing? The image dims to invisible.... I tried setting it's attribute to disabled like the faq's suggest but I am doing something wrong. $(".markasread").click(function() { $(this).fadeTo("fast", Math.random()); //extract topic_id, to send with POST request var $topicid = $(this).attr('id').split('_'); //make
[jQuery] superfish: highlight the font of entire path
Hi, I'm using super fish and attempting to modify the style. How would I go about highlighting the text of each node in the path (as the background does). Thanks,
[jQuery] remove classes when select option is not selected
Hello, When i select something from a selectbox it adds a class to the selected option this way: $('div#tabs input[type="text"], select option:selected, input:checked, textarea').addClass('takethis'); But when i select a different option it doesn't remove the class 'takethis' from the option which I first selected. How can I force this? Thanks in advance.
ajax problem
Hi, I've build this simple website http://www.blogate.org/ to help bloggers to publish their articles, but I've one problem If you click on one of the red menu items on the right, you should see animation in the middle of that box, informations box should fade out and fade in immediately, unfortunately there's some kind of bug I can't explain. (I'll find it if you click on the menu item) Can you please help me? how would you solve this? thank you so much in advance John
Can I use jQuery & PHP to display my project gallery?
Hi, I have a site http://www.maestro2007.co.il/index.php?mid=3 in which i display project thumbnails on the right, by clicking it, i want that project id to open it's project photos on the left without reloading/refreshing the page. (the data/photos comes from the database using php & mysql) I tried doing that with ajax's XMLHttpRequest, but i can't execute javascript through responseText. I was told I could use jQuery for that, but i have NO CLUE has how to do so. Can anyone help/guide me on this
Simple div toggle, but not from 0px PLEASE HELP
Hi, I have tried searching the forums but cant seem to find an answer to what seems a simple problem. I am fairly new to jQuery so please forgive me if this is a really easy problem. Ok basically I have a div that will have dynamic content in it so the height of the div could potentially be anything. Now I only want to show part of the div on initial load, say 200px then I want to show the rest of the div, then toggle back to 200px. Everything i search for simply uses toggle to show hide the a div
[jQuery] [validate] Problem of minimizeing window on PC
Hello, I've installd the jQuery validation script on a website and it works really well, but I have a kinda serious problem with PC users (IE7 as well as some version of Firefox): If you go on http://www.gomze.be on either pages http://www.gomze.be/devenir-membre.php or http://www.gomze.be/reservations-green-fee.php the page minimizes in the Windows taskbar, and I can't explain this :( I really need to fix this quickly but don't know how :( Any ideas please? Thanks a lot !!
[jQuery] Help about how to use the jquery.kiketable.colsizable
Hello, I'm trying to create a very simple exemple with the the jquery.kiketable.colsizable pluging. But, It's not working, can you help me with this. The part of the code is bellow : IN THE HEADER <script type="text/javascript" src="jquery-1.3.2.js"></script> <script type="text/javascript" src="jquery.kiketable.colsizable-1.1.js"></script> <script type="text/javascript" src="jquery.event.drag-1.4.min.js"></ script> <link type="text/css" rel="stylesheet" href="jquery.kiketable.colsizable.css"> <script
empty() NOT WORKING as expected... (please read on)
OK, here's the problem. From inside a DIV I call a jquery function that, using ajax, replaces the content of that DIV with new content. The problem is that, for PHP/HTML reasons, the new content includes the <div> element. What happens is that the second time the event is triggered, it is triggered twice because there are now two divs identical one inside the other. I had solved this using empty(). But after I added some css istructions to prevent the collapsing of the div, the empty() stopped working.
[jQuery] Problems whith the variables for a click function
Hi! I try to make a script to change the prize between with tax and without but I cant get it to work whats wrong? var sant = 'no'; var pris = $('#productPrices').html(); $('#tax a').click(function(){ if(sant == 'no'){ var pris2 = pris.replace(/[^0-9.,]+/g, '').replace(/[,]+/g, '.'); pris2 = parseInt(pris2)*.75; $('#productPrices').html(pris2 + ':-'); sant = 'yes'; }else{ $('#productPrices').html(pris); } return false; });
[jQuery] Using 1.3 this: [class!=whatever] doesn't work.
I'm working on a project at the moment and this [class!=whatever] has stopped working. In 1.2.6 I could use this fine, but in 1.3 it doesn't work. For example, if I have two links: <a href="#">Link</a> and <a href="#" class="whatever">Link</a> Using a click function like this: $('a[class!=whatever]').click(function(){ //do something }); Doesn't work. The function wont fire on either. Is this just a slip up or is it for an actual reason? Cheers, Will
Show at random
Hi, I'm a JQuery beginner but I certainly would love to learn more about it. I'm a bit stuck now with random timed animations. There are 3 images: img1 img2 img3 button When the page loads I want the 3 images to fade in randomly, so could be 1,2,3, could be 3,1,2 etc... all with different delays. So you get a *pop* *pop* *pop* effect. (Hope this makes sense. When I click the button I want the 3 images to be replaced with 3 new ones 4, 5, 6, again, fading in randomly. The first 3 fade out first. So
[jQuery] jCarousel Re-load
First of all, sorry for my english, and thank you in advance. I can't seem to dinamically load new sets of items in a jCarousel when the user clicks on a series of tabs. I'm trying to do it by changing the innerHTML depending on the tab clicked. To do this I'd need to reload/reset the carousel completely but I couldn't manage to do it. The items' order seems to persist even changing the innerHTML of the carousel and ***trying*** to reload it, which seems to be the problem because I can't reload it
[jQuery] Ajax call problem with Firefox
There is a device with web server running. My code will check periodically the status of the device.When I pull the network cable from my laptop. I found that firefox can still response the request sometimes. It seems firefox has cache some response. IE works fine. Does some one have same experience? My code is following: asyncRequest:function(queryStr, cb, errorfn) { return $.ajax({ type: "get", url: rap_util.urlroot, data: queryStr, error: errorfn, success: cb, async: true, dataType: 'xml'});
Combining treeview and contextmenu plugin...almost there.
I'm using the "jQuery contextmenu plugin" combined with "jQuery treeview async plugin". This means that I load in all data into the treeview from the database. Next step is that I want to be able to right click these dynamically loaded elements and alert the id of each element. Everything works and I see the context menu on the dynamically created tree. The problem is when I click/choose an item in the contextmenu in Firefox nothing happens. However this works in IE. Can someone please advise?? jQuery(document).ready(function(){
Help with POST and GET
Hi all, I hope I am posting in the right forum now. I currently have a page written in PHP with a form on top, some information in the middle and an iframe on the bottom. Now when someone submits a word such as "test" in the form what happens is that the page reloads while the word is sent as POST to domain A and as GET to domain B which is also the url for the iframe. Then the page returned from domain A is parsed looking for something similar to <?xml version="1.0" encoding="UTF-8"?><tag>answer</tag>
[jQuery] 1.3.2 broke fade and slide
Hi Guyes, noone noted that 1.3.2 broke down fading and sliding. Simple code like this: $('.showSignIn').click(function(){ $('#passwordPanel').fadeOut(function(){ $('#signinPanel').fadeIn(); }); return false; }); Is not working anymore. Callback fadeIn but first call do not slide out. Same for slide up and down... At least on FF3. Any suggestion?? Andrea
hiding column in jquery
hi, i got a link which uses jQuery to hide columns of a table. http://p.sohei.org/stuff/jquery/columnm ... /demo.html In my case we have to use only DIV and no table. So how can the things mentioned in the link can work for me. Please suggest something ???????
Saving text field value to disk as a file
Hello, I can't figure out how to save text from text field to server disk as file. I get a value this way: var text=$('#myTextField').val(); Now I want save text variable to disk (to the server disk where this script is working).
[jQuery] EZPZ Tooltip
I just wanted to show off a tooltip plugin I made: http://theezpzway.com/2009/3/17/jquery-plugin-ezpz-tooltip. I know it's been done before, but mine takes a slightly different approach than most tooltip plugins out there. Any feedback is appreciated. Thanks! Mike
tab widget not working
Hi, I have been trying to use the jquery tab widget but it is not functioning properly. The whole content is getting displayed in a single tab and while clicking on the rest of the tabs nothing is happening. I have followed the steps as it is there in the jquery site to integrate the tab widget. I have put ui.core.js, ui.tabs.js and the script below: <script type="text/javascript"> $(document).ready(function(){ $("#tabs").tabs(); }); </script> Could it be a version problem as i am using an older
[jQuery] Validating a group of elements together
Is it possible to validate all the elements defined in a group together ? groups{ x: "a1 b1 c1" } I would like to validate a1, b1, c1 and display the error message until all the elements in a group become valid. - Anush
[jQuery] Find element. How can I do this?
Hello, I am trying to find update a plugin to create new functionality. On the current version I have the following: var legend = fieldset.find(':first'); var body = jQuery(document.createElement('div')); - How can I get the first OL element inside fieldset to use it as body instead of creating a new element (the div as it is currently? - And can I set which element should be searched (ol, ul, div, etc) inside the fieldset? Thank you, Miguel
[jQuery] jquery.dates
Hi All, I am using the jquery.dates plug-in (http://grover.open2space.com/ jquery.dates/documentation) with jQuery 1.3. To get started I just wanted to get the samples.html pagre up and working. It is working in FF with no problems, but in IE7 I get the "object does not support this property or method" error on line 29 27: <script type="text/javascript"> 28: $(document).ready( function () { 29: $("#sample1").datePicker(); 30: $("#sample2").datePicker({format: "yyyy.mm.dd"}); 31: $("#anchorSample3").datePicker({parent:
[jQuery] Using jQuery to parse XML
Hi all, I've spent a long time trying to figure out why my code to pull elements out of an XML file isn't working, to no avail. Here's the code snippet I'm using, given an XMLHttpRequest named responseXML which seems to be in fine shape (inspected using Safari 4 beta's "Inspect Element" feature): function extractBifData(responseXML, vorticityClass, vorticityStrength) { var bifData = []; $(responseXML).find('wave').each(function () // WTF { var wave = $(this); var A = wave.attr('A');
[jQuery] :visible change
I'm stumped on a 1.3.2 change. Here is the scenario: // Node tree: // - div.groupItem // - div.itemHeader // - a.closeEl // - div.itemContent // - All the enclosed html // // When the closeEl node is clicked, act on its parent .groupItem's // corresponding .itemContent. Then the jQuery (presuming ele is the element passed to a 'click' handler: var targetContent = $(ele).parent().siblings('div.itemContent'); if (parseInt(targetContent.css('height')) > 1) { targetContent.slideUp(300); $(ele).html('[+]');
[jQuery] jquery web site performance quite slow on Plugins screens
I have been accessing the web site quite a bit the last few days, the performance seems QUITE slow, and I keep getting messages saying "A script on this page is causing Internet Explorer to run slowly. If it continues to run your computer may become unresponsive. Do you want to abort the script?" .well obviously I do not but it has happened about 10 times. Most often I receive this message when accessing the plugins list (larger = way slower). I can duplicate this with the following steps: Open new
[jQuery] Select class="class1 class2" using jQuery
I need to select an element like this: <div class="class_1 class_a"></div> and I've found that both of the following work: $(".class_a").filter(".class_1").css("background-color", "red"); $(".class_a.class_1").css("background-color", "red"); The first one makes sense and is documented on the website. But the second one isn't documented anywhere as far as I can tell. My question is this: is this, i.e. $(".class_a.class_1") intended, documented behavior or is this some fluke that is likely to disappear?
[jQuery] Superfish
Hi, I would the Superfish menu nav-bar style to highlight the current page and if current page is on second level then it should show that level and not cloase it. THANKS :)
[jQuery] superfish
hi i have 2 problems with superfish. Hopefully someone of you can help me. I am using: - hoverIntent - superfish - supersubs - bgiframe Everything works ok except 2 things: 1) There is one white spacer (one px) on the left side of the menu. This spacer is also present if you take a look on the example page on http://users.tpg.com.au/j_birch/plugins/superfish/#download 2) The property speed does not have any impact on the menu. But delay does work as intended. This is how i create the menu: $(function(){
[jQuery] How do I subtract 64 pixels from the value of a div's height?
Here is my code: $(document).ready(function () { var contentDivHeight = $('#contentDiv').css('height'); // pseudo-code: var calculatedHeight = ???? $("#clickMe").click(function(){ $("#leftNavBox-contentPages").animate({"height": calculatedHeight}, "fast"); }); }); I need the value of calculatedHeight to be 64 pixels less than contentDiv. So, if contentDiv is 600px, calculatedHeight needs to be 536px. Jeremy
[jQuery] Select empty tables
I'm trying to select tables whose cells are all empty. $ ("table:empty") seems to return tables with no body. $("td:empty") finds empty cells. Can anyone help with such a selector? Thanks.
[jQuery] namespaces XML parsing
I have had a look at jQuery mailinglist and I have googled, and I have not found a solution to this problem. For example, in FF, if a look for a tag, I have to write "ns\\:tag" , but if a look for an attribute I have to write "ns:attribute". In google Chrome (WebKit), I have to write "tag" or "attribute" and it works. Has this problem been solved, or is there any plugin to deal with it? It is veri tedious to code a parsing case for each browser (IE, FF, Webkit, etc..) Thanks in advanced.
[jQuery] border-radius plugin for IE
This plugin adds support to IE for -moz-border-radius using VML http://gist.github.com/77516 weepy
[jQuery] Button Actions
I'm still trying to figure out how to make actions happen with an AJAX button submit. Right now I am using the jQuery Validation plugin to validate my form and then the Forms plugin to perform an AJAX submit. I have the validation and AJAX submit working perfectly right now but I was hoping to add just a bit more after the submit button has been pressed, the form validated, and the information sunmitted. I was hoping to pop up a modular window with a small box that says Thank You and then redirect
[jQuery] Superfish doesn't degrade in IE6
Hi, I tested your Superfish menu in FF 3 and IE6 for the PC. In FF it degrades fine, still showing the dropdowns on hover of their parent links, but in IE6, the menus don't show. I turned off the Javascript by going to Tools > Internet Options > Security > Custom Level, then under Scripting I disabled Active Scripting. Is that right? Thanks. Sue
[jQuery] proper syntax for a local path ../myDirectory/myFile.htm
I need to make a simple 'freestanding' prototype to be run locally. I used a simple load() to grab a div from another file: $('#ajax-panel').load("../myDirectory/myFile.htm #myDiv"); but the ../ in the url chokes. How can I accomplish that for a prototype that runs locally on my machine without a proper server? Thanks
[jQuery] Develop Ajax apps 100% faster - thanks to jQuery & Raxan PDI
Hello Everyone, I've created a PHP framework that integrates well with the jQuery library. The framework is called Raxan Framework which includes a Programmable Document Interface (PDI) extension. PDI is an Open Source PHP application framework that's design to take advantage of modern web application technologies. Main features includes: * Light Weight Framework * Multilingual Support - Internationalization and Localization * Server-side HTML DOM Traversing and Manipulation * Client - Server Event
[jQuery] superfish question
hi all i have 2 questions on superfish. How can i set the animate speed to very very fast ? :) I tried speed:'0' or speed:'fast' but none seems to have any inpact on the display speed of the menu. Delay however works great for fading out pretty fast (200 at them moment) I'd also like to know how to remove that first white spacer that appears in front of the first menu item. Thought that class="current" would take care for that? But even on the example page from "http://users.tpg.com.au/j_birch/ plugins/superfish/#download"
[jQuery] Find and replace image problem
I have the image name in a variable and want to replace it but not sure how to do this. Currently I can replace the image src with: var new_src = $(this).attr("src").replace(/ship.png$/i, fileObj.name); I want to do something like this (which doesn't work): var new_src = $(this).attr("src").replace(imagename, fileObj.name); Any help is appreciated. Chris
Next Page