[jQuery] jquery Lightbox Problem
Hi All, I've recently uploaded a website http://www.treetment.co.uk and I have used the jQuery Lightbox plugin to scroll through the portfolio pictures. I have tested the site locally and uploaded to http://www.ajtrichards.co.uk/clients/treetment/ and they both work fine. However, when you try to use the Lightbox on treetment.co.uk it just displays the picture in the browser not the lightbox and I have no idea why!! Can someone have a look to cast a fresh pair of eyes to see if they can spot a mistake!!
[jQuery] Release: jQuery No Spam plugin v1.3
Finally pushed v1.3 of my No Spam jQuery plugin out the door over the weekend. For those unfamiliar, it takes an obfuscated e-mail address and turns it into a human-readable one. It's meant to be light and easy to use, and I've updated the PHP companion function for it so they're compatible, making it even easier. The biggest update with this release is the much-request support for e- mail addresses containing multiple dots (.), so enjoy! (Please note that this release is not back-wards compatible
[jQuery] example or demo of rotating css background image?
Is anyone aware of a working example of using jQuery to display a random css background image from a set of images?
[jQuery] empty class return undefined .. bug ?
I have code .. to check what class in every id .. i found that if the class="", attr will return undefined ... example: className = $('#myid').attr('class'); I use Jquery 1.2.4b from ui.jquery.com is it the bug or it is the correct result from attr() ?
[jQuery] [Validate] using metadata mulitple messages problem.
Hi, This may be because I'm not totally fluent with the Validation plugin yet but I'm having a problem figuring out how to specify messages for each rule via metaData. It appears that an input element with 3 rules when broken will need to summarized the reason for the break in a generic message specified in the "title" attribute. Is it possible to use metadata to specify a message for each rule like you can using the non metadata api? Thanks a bunch and keep up the great work! Dane
[jQuery] [Validate] Question about Validate plugin metadata option
Hi, Not sure if my last post ended up having "validate" in the subject. So appologies for this repost. This may be because I'm not totally fluent with the Validation plugin yet but I'm having a problem figuring out how to specify messages for each rule via metadata. It appears that an input element with 3 rules when broken will need to summarized the reason for the break in a generic message specified in the "title" attribute. Is it possible to use metadata to specify a message for each rule like
[jQuery] validate() and multiple forms that arrive via ajax
In a wizard I have a container page with a few divs, every div can host a certain form, that post it's result to another div. Everything via ajax. On the bottom of these forms, I call something like this: jQuery(function($){ setupAddressForm(); }); which looks like this function setupAddressForm(){ var form = setupForm($("#formAddressStep")); createAjaxContext(form, $("#panelpaymentoption")); } function setupForm(form){ $("input.ajax-invisible").hide(); $(form).validate({ submitHandler:
[jQuery] Question about validation
This is the thing i need to be able to do trying to use the Validation 1.2 plug. Basically i want to be able to undisabled a button if the validation fails. Now i just disable the button on click which works fine but i don't see anything in the documentation on being able to trigger a function on a failed validation, only on a successful validation. is this possible? -- View this message in context: http://www.nabble.com/Question-about-validation-tp17189880s27240p17189880.html Sent from the jQuery
[jQuery] Problem whith ie 7 and slideDown
Hi, i hae the following code: $(document).ready(function(){ $('#txtSearch').attr('value', 'Enter Search tags for skills or functions').focus(function(){ $(this).attr('value', ''); showSearchBox(); }) }); function showSearchBox(){ $('#searchBox').slideDown(); } function hideSearchBox(){ $('#searchBox').slideUp(); $('#txtSearch').attr('value', 'Enter Search tags for skills or functions'); } function showMessagesBox(){ $('#messagesBox').slideDown(); } function
[jQuery] Checkbox confusion
Hi all, Can't quite get the the following functionality to work: 1. when I click on an un-checked checkbox, I want the box to be checked AND to raise an alert showing the text of the item which has just been checked. 2. Similarly if the user unchecks the box I want to raise an "unchecked" alert and then have the box unchecked. I have been trying to do this for about an hour but the behavior is: a. I am getting the "Checked" alert for clicks on both checked and unchecked checkboxes b. Once the user
[jQuery] [treeview] newbie
Hello, I have just downloaded the treeview plugin and it looks like fine var $j = jQuery.noConflict(); $j(document).ready(function(){ $j("#example").treeview(); }); but when I try to load the tree with some options var $j = jQuery.noConflict(); $j(document).ready(function(){ $j("#example").treeview( collapsed: true ); }); I have the error below: missing ) after argument list [Break on this error] collapsed: true\n but I don't see any missing ) Where am I wrong ??? Moreover. is there a
[jQuery] Ajax Load Question
Hello, I am trying to create a dynamic daily calendar (see image http://img107.imageshack.us/img107/8425/picture7gv1.png) that when the user hits "next" or "last" the calendar will slide out/in to the next week of days. I have looked at this ajax load plugin (http:// www.andreacfm.com/index.cfm/jquery-plug-ins/ajax-content) is this what I should use? How do I use the slide in/out effect with the plugin, I've used it on its on before. Thank you for any help! -Chris
[jQuery] Hello World problem
Hi all, I am afraid that this is going to be a very simple problem, but I am completely stuck. I read the start of the tutorial [1], made the hello world page[2], and the Hello World popup does not come up. I replaced the Link with onclick="alert('Hello world')" and that worked. After reading the thread at [3] I installed firebug and it reckoned there were 6 errors [4]. This is using apache as the web server, viewing in firefox 2.0.0.14. I have renamed jquery-1.2.3.js jquery.js and put it in the
[jQuery] add/remove class click function
hi all, i am using the code below to hide some content, the first part works ok & hides the content as expected but i cant get the second part to work - i.e. showing the content again - any ideas? i don't want to use toggle as i am displaying the content based on a cookie value & when the cookie is set, it takes 2 clicks to display the content if it was hidden by the cookie. $('.min').click(function() { $ (this).removeClass("min").addClass("max").parents(".Container").children(".Content").hide();
[jQuery] [ANNOUNCE] clueTip 0.9.7
Karl Swedberg released clueTip plugin 0.9.7. Fixed a few bugs. http://plugins.jquery.com/project/cluetip Rey
jquery in ie6 and 7
hi, i am using jquery for the first time on a site i am currently building.i am using the slider plugin. it works fine in safari and firefox but i am encountering different problems in ie 6 and 7: in ie 6, the rollover/hover function is not working on the buttons so when i rollover the button the slider works but the rollover state is not displayed. in ie 7, the buttons are fine but the overflow:hidden is not working on the #shifter div (which contains the panes) so the entire image is visible, meaning
[jQuery] cross platform issues
G'day Folks Firstly an admission that I'm a newbiw with jQuery (so please be gentle). On the site I'm working on I've so far used jQuery in two instances, one site wide & the other on only one page. The code on the page where both appear is... <script type="text/javascript"> $(document).ready(function() { $("#vector").addClass("v" + Math.ceil(Math.random() * 7)); $("#vector").removeClass("v3"); }); </script> <snip /> <script type="text/javascript">
[jQuery] Expression/Selector question...
One thing that I've noticed is that the "expr" attribute is pretty inconsistent across methods (such as filter, find, parents, parent, etc.) The documentation is very vague about what an "expression" is, other than it just being a selector. However I would assume a valid expression for one element would be valid for all elements, but I've noticed that an HTML element is only a valid expression in the find() method. For example: $li = $("li"); // returns the first matches for $li $("body > ul > li").find($li[0]);
[jQuery] Java applet doesn't load when markup loaded via jquery
Hi Anyone got suggestions for this? I'm trying to integrate this SFTP applet (http://www.jscape.com/ sftpapplet/) into my site. My standalone page with the object/embed code loads fine but if I try to load this dynamically into the page the applet doesn't load. I have the following function linked to the onclick method of a ui.tab so that when you click on the tab the applet code is loaded into page. Markup loads fine but applet doesn't start. function loadFTP() { $("#fragment-3").load("/sftpapplet");
[jQuery] jQuery TShirt
I noticed captain John Resig wearing a few nice threadless.com tshirts, and he mentioned a few times in a recent talk that they were selling jQuery tshirts in this or that place. I was wondering if anyone knew of any jQuery tshirts that were around? What would you put on your jQuery T? $(body) -CV
[jQuery] IE7, simple AJAX, and nothing!
<html> <body> Hello folks, I'd appreciate insight to the fault in this function which works in FF and Safari but not in IE7. Specifically, the returned ajax file is not displayed. <tt>function fnGetEbookFile(ni){ $.ajax({ url: 'textfiles/'+ni+'.txt', type: 'GET', cache: false, dataType: 'html', timeout: 2000, success: function(responsetxt){ $("#justlist,#tech").hide(); //alert("here ----" + responsetxt); $("#stext").html(responsetxt).show();
[jQuery] validate with form plugin
Hi all! I'm new in jquery and i have a queston. Somebody knows usable example like this to using form plugin with validate plugin(http://jquery.bassistance.de/validate/demo/ajaxSubmit-intergration-demo.html)? I tried 4 hours writing a working code, but i have failed (and i'm tired and nervos). I'm better in php and sql. Javascript isn't my favorite language. Thanks for the help and patience! András -- - - -- Csanyi Andras -- http://sayusi.hu -- Sayusi Ando -- "Bízzál Istenben és tartsd szárazon a
[jQuery] fastest way to edit a <select>
Hi :) what is the fastest way to edit a <select> item? I need to show some <option>'s and hide some others, depending on the value of another select. let's say if the user selects a country for his holiday, in the '#hotel_paese' select, the '#hotel_destinazione' select will show only the hotels of that country. problem is that the '#hotel_destinazione' select has already got its values, so I'm using the class attribute to keep track of the country. so if, say, egypt has code '001', then sharm el
[jQuery] ANNOUNCE: new YCodaSlider 2.0 beta
Hello jQuery(world)! I'm pleased to inform you that version 2 beta of YCodaSlider has been published. Based on coda-slider by Niall Doherty. Many thanks to Gian Carlo Mingati: Niall Doherty's Coda-Slider is a heavily modified version of his slideViewer. <a href="http://maxb.net/blog/2008/05/11/ycodaslider-20/" target="_blank">http://maxb.net/blog/2008/05/11/ycodaslider-20/</a> Features: lazy loading of image gallery. examples plugins for dilbert feed, flickr feed. "greyboxes" (iframe) into panels.
[jQuery] ANNOUNCE: new YCodaSlider 2.0 beta
Hello jQuery(world)! I'm pleased to inform you that version 2 beta of YCodaSlider has been published. Based on coda-slider by Niall Doherty. Many thanks to Gian Carlo Mingati: Niall Doherty’s Coda-Slider is a heavily modified version of his slideViewer. http://maxb.net/blog/2008/05/11/ycodaslider-20/ Features: lazy loading of image gallery. examples plugins for dilbert feed, flickr feed. "greyboxes" (iframe) into panels. Cheers, Massimiliano Balestrieri http://maxb.net/blog/
[jQuery] How should i load the contents into a frame
hi guys, i have 2 frames in a page... in one frame i have a button,onclicking it i want to load the contents into another frame.. can someone help me with this regards, vimal
[jQuery] Why does this not preload an image correctly?
I seem to be having a problem with some code similar to the pseudo- code below. Assume that I am getting an XML document that has nodes called "src" that hold image source urls, and that "someDivId" has a display property of "none" set in the CSS. - - - $(function(){ $.get( "doc.xml", function( data ) { $("#someDivId").append( "<img src='" + $("src[0]", data).text() + "' />" ); $("#someDivId img").load(function(){ $("#someDivId").css("display", "block"); }); } }); - - - In my code, the DIV is displaying
[jQuery] IE XML Parsing problem - newb
I swear I'm not blind, I believe I have an original problem. I've been stuck on it for hours. PLEASE HELP! My code works perfectly in FF and Safari on both PC and Mac. I am NOT using the meta plugin. The only other code i'm using is the YUI Grid CSS. Please advise and I will be forever indebted to the jQuery community. Here's my code: <script type="application/javascript"> $(function(){ $(document).ready(function(){ $.ajax({ type: "GET", url: "_xmls/page_0001.xml", dataType: "xml", success: function(xml){
[jQuery] jQuery Validation Plugin
Hi, In the documentation of the jQuery Validation Plugin, by default the form is not sent if invalid. "By default, the form submission is prevented when the form is invalid, and submitted as normal when it is valid." In my case this is not true. How can I debug this?
[jQuery] How to specify a frame as a link's target?
hi guys, i have 2 frames in a page... in one frame i have a button,onclicking it i want to load the contents into another frame.. can someone help me with this regards, vimal
[jQuery] looping through items with a delay
I've got a jquery page with a google map, and I need to retrieve lat long values for items to be put on the map. However, I don't want the visitors machine to try and get all the lat longs at once, as i think that would be an overload (and I think you are limited to 1 request per second per ip address, but I can't find that). Anyway, I seem to have problems looping through the items. Here's the code i'm trying to use [code] function getLatLong(){ var address= $(this).html();
[jQuery] using jsVal for validation
In an $.ajax option beforsend, I want to call a function to validate a form using jsVal script (jsVal is here: http://jsval.fantastic-bits.de/ The home page shows examples) I tried the following: ... $.ajax({ beforeSend: showRequest, ... function showRequest(){//alert('showRequest'); var objForm = document.forms["contactForm"]; validateStandard(objForm, 'error'); } The alert will show but, validateStandard() is not processed. jquery ignores this and proceeds
Not a constructor
This used to work, but it has suddenly stopped. I used some jquery to make a smooth scroll when a link was clicked. I'm getting this error in my console jQuery.fx.ScrollTo is not a constructor ScrollTo()myeffects.js (line 84) e([div#headerbackground], function(), undefined)jquery.js (line 11) e(function(), undefined)jquery.js (line 11) ScrollTo(1000)myeffects.js (line 83) (no name)()myeffects.js (line 18 ) e(Object type=click target=a.scroll currentTarget=a.scroll)jquery.js (line 11) e()jquery.js
[jQuery] [ANNOUNCE] jQuery Intro at Boston PHP User Group
Next month's BostonPHP user group: An introduction to jQuery (http://www.bostonphp.org/content/view/107/9/) Rey...
[jQuery] slideup() issue with IE. HELP NEEDED
Hey every, My Java skills are virtually non-existent, but i have been able to make use of some code to create a slideup and down effect on my content (doing this as to not have multiple html pages, but also because it looks pretty slick). In both Safari and Firefox the website functions perfectly, however, Internet explorer does not even begin to create the effect rendering the site useless. I am really unsure of what to do at this point, so i thought i would ask the community for some help. The
[jQuery] How do I get post data to go with it?
Hi, I'm new to Jquery. I'm trying to send the post data from an input box to test.php however it doesn't go over when test.php loads into #submit_result. This is what I have so far. What am I doing wrong? I know I am doing something dumb. <script type="text/javascript"> function my_onclick() { $.post("test.php", {input: $("input").val()}, function(data) { $("#submit_result").load("test.php"); }); } </script> Thanks, Jon
walking through divs sequentially
Hi all im new to js and jQuery and got the following problem. HTML (when DOM is ready): <ul> <li> <div id="conatiner"> <div id="myID"></div> <div id="imgContainer" style="visibility:hidden"></div> <div id="info"> <div id="info1">Text</div> <div id="info2">Text</div> </div> </div> </li> .... .... .... </ul> What i want to do: I want to walk through the <li> and load an img in each "imgContainer". The Path to the image is the id-value of the FIRST div in "conatiner". When image is loaded: fadeIn image/
[jQuery] jQuery not working after loading content via Ajax .load
I've been browsing around the internet and have seen some talk about it but still haven't really figured it out. I'm loading an external page with just a 'div' of content into my current page. However, I want the jQuery localscroll plugin to affect the newly loaded page and this just isn't happening. I've read about binding and liveQuery but not quite sure how to go about it. It's something along the lines of http://threeformed.com http://threeformed.com . How do they load their external content
[jQuery] setInterval for $.get .php
Hello, i just recently started using jQuery and I have to say it works great. However I cannot figure out how to constantly (every 5 seconds for example) refresh results by running the query script over and over. in Firefox 2.0 this does work, however in Internet Explorer 6.0 (and I think in 7.0 as well) this fails to work. Even after hitting the refresh button on the IE browser the results do not update after the database of which the results are being taken out of has been updated with new data.
[jQuery] Best way to autocomplete 2000 items
Hey all, I've got a list of 2000+ names that need to be filtered via an autocomplete method. I am wondering what is the best way to implement this? From what I can see I can either do it via an ajax request to the server that queries a database server side and returns a matching list, or via Javascript I load an XML document client side and filter through that? Does anyone have any experiences with implementing this for a large dataset? Many thanks Alex
Next Page