[jQuery] Firebug gives a "$ is not defined" error
The same pages could be run correctly on both IE and Firefox untill yesterday. Now on IE they can still run normally, but on Firefox I got a "$ is not defined" error. I didn't change the reference to the jquery library in these pages and neither move the jquery library. I'm really confused. Could any one tell me why? -- View this message in context: http://old.nabble.com/Firebug-gives-a-%22%24-is-not-defined%22-error-tp27044083s27240p27044083.html Sent from the jQuery General Discussion mailing list
css issues with connect-lists
Have grabbed the code to play with this function, so I can submit a list of what users do, from a list of options of what they could do .... here is the demo... http://jqueryui.com/demos/sortable/#connect-lists the trouble is this is only a part of a far longer form.. actually based on this template.. http://www.jankoatwarpspeed.com/post/20 ... query.aspx does the basis in CSS mean that they are incompatible? i'm really new to css, but dropping the connect list into the form really didnt work.. is
[jQuery] (validate) Problems with additional methods...
Hello everybody! I'm trying to use a custom method for validate one of my input's form, but no way. Neither the 'additional-methods.js' included in the plugin pack work for me ....Seems to be ok, but no idea. This is a resume of my code: -JAVASCRIPT- <script type="text/javascript"> $.validator.setDefaults { submitHandler: function { $ "#cForm" .ajaxSubmit { url:'inc/request.php', target: '#form-box', success: function { return false;
[jQuery] (autocomplete) Half of page disappears in IE7 when autocomplete list shows
Hi I use autocomplete newest version on http://www.kle-online.dk/stage Things work great in FF and IE8 but in IE7 half of the page disappears when the autocomplete list shows. Try to type "benz" in the search field and problem should be easy to see. Cheers, Rune
[jQuery] Corresponding indexes with images
Hi there, I want to construct an imageslider myself but i can't find the right method to iterate over my array of images. The array is grabbed from div#images which only contains images. Roughly the content of my function looks like this: $ ".next" .livequery 'click', function { $ "#images img:first" .stop .animate {opacity: 0}, 250, 'linear', function { $ "#images img:first" .hide ; $ "#images img:last" .show .css 'opacity', 0 ; $ "#images img:last" .animate {opacity: 1}, 1000, 'linear' ; } ; return
[jQuery] Help with change event
I am interested in the event change, and am looking at http://docs.jquery.com/Events/change. $ "select" .change function { var str = ""; $ "select option:selected" .each function { str = $ this .text " "; } ; $ "div" .text str ; } .change ; It all makes sense except for the very last change . Can anyone explain the purpose of this line? Thank you
[jQuery] [Problem] Insert a script-tag after a script-tag
Hi, I have witten the following lines of code: var s=document.createElement "script" ; s.type="text/javascript"; s.src="http://api.intensifier.de/js/show_ads.js"; $ "script:contains 'era_layout' " .after s ; After the ebay-script with the era_vars, the intensifier-script should be includet. But there is nothing! When I replace .after s with e.g. .after '<div></div>' , then the div- tag is on the right position. Any suggestions? Regards, odlo
Disable/enable hover on click in other script?
Hi! I am a newbe as it comes to jQuery.. I'm working on my portfolio, and i'm stuck.. I have a page with all portfolio-items (images) that can be sorted by category. So when i press on category 'Art', all the other catergory's turn to a low opacity so the selected category stay''s highlighted. See it working here: http://www.idvisual.nl/temp/IDVISUALV3/ But when I hover over the items with the low opacity, they become highlighted again. How do i lock these items so that when a category is selected,
[jQuery] (autocomplete) how to keep the suggestion list when on blur
jQuery 1.3.2 jQuery Autocomplete plugin 1.1 I would like to - keep the suggestion list when user click outside the text field. - hide the suggestion list when user select item from the suggestion list I found a possible way, remove these lines of codes if !config.mouseDownOnSelect { hideResults ; } Is there any better ways to achieve this ?
horizontal sliding menu
Hello, it's my first post here, so i say hello to all of you! I'm from Austria, so my english is maybe not that good. I have a problem with a horizontal sliding menu. The java code works fine but i need to adjust the distances between the menu links. But i don't know how! I tested the code with paddingRight, but then nothing works anymore. I took the code from a tutorial for a vertical sliding menu and changed it to work horizontal. Maybe someone can help me. JQuery: jQuery(function () { // Stack
[jQuery] Pass object to function
Hi there, I have a function which controls my interface. If people click on a link with the class 'less' i would like a dive to slide up. My code roughly looks like this: $ "a.less" .livequery 'click', function { var cur_project_id = $ this .closest "div.project" .attr "id" ; $ "#" cur_project_id .closeProject cur_project_id ; return false; } ; $.fn.extend { closeProject: function projectID { $ "#" projectID " .morebody" .slideUp 'normal' } } ; It works, but as you
Implementing repeating TextBox controls
Let's put it this way.I have the following repeating DIVs: <asp:TextBox ID="txtInsertComments" AutoPostBack="false" CssClass="expanding" runat="server" Width="400px" Text='<%# Bind("comments") %>' TextMode="MultiLine" /> <div id="commands" style="display: none;"> <table cellpadding="0" cellspacing="0" width="400px" id="tblCommands"> <tr> <td style="width: 50%; text-align: center;"> <asp:LinkButton ID="lnbInsertRes" runat="server" CommandName="Insert"
using SimpleFilter
Do you get errors in FireBug?
checking KeyCode doesn't work
yup, the working code is : $(document).keydown(function(event) { and I found out that it's not working on Firefox only on IE and Google Chrome...
[SOLVED] how to check if an image could be loaded or not
Hi, I am using Jqzoom and Jquery... I want to know if there is a possibilty to check with JQuery if an image can be loaded or not? Because when an imgae can't be loaded the Jqzoom should not work, because the big image (which is for the zoom) could not be loaded. Imagin I have hundreds of pictures, how can I check if this big image could be loaded or not? Any idea...?
Email Validation
$("#tbEmail").change(function() { var usr = $("#tbEmail"); var pattern = "^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$"; if(eregi(pattern, usr)){ $("#status").html('<img src="loader.gif" align="absmiddle"> Checking availability...'); .... Im using Jquery/AJAX to validate my field live. But the code doest seem to work. Is my IF statement correct?
[jQuery] ajax form plugin submit button
Hello everyone, I have a problem submitting a form tag with submit buttons. many of the scripts used in that page require the name of these submit buttons to work correctly. I already read about the serialize function and submit buttons so tried the form plugin as suggested on the jQuery page but i can't get this to work. On a single site there is no problem using the plugin but the site is only loaded at the beginning, after that everything works with ajax requests and the page is never reloaded.
JQuery Cycle speed
Hey, I'm using the JQuery cycle plugin (http://malsup.com/jquery/cycle/) and I have images set to auto-scroll horizontally. The plugin automatically eases the slides (I've tried turning easing off), and I'm wondering if anyone knows of a way to get them to just continually move horizontally (without slowing/speeding up). I'm using it to create the illusion of moving fish in a background image: http://blazonmarketing.net/projects/mspd Any help would be appreciated.
[SOLVED] Need help for removing errors
Thankyou. problem solved
jquery play mp3 with no flash, quicktime, etc at all
RElst wrote: Tyde wrote:I have not been using this, as I don't want to play any sound on my web-pages. ² But the topicstarter wants it... I'd found that plugin also, but I don't think you can disble the buttons... yeah, i guess you are right. I've tried that jquery as well. but hey, it turns out that html5 with <audio> tag can handle it. I don't know whether it is actually a Plugin or not, but when I right click above it, it just look like a normal element. The only problem not all browser support
Ajax JQuery loading in the Same DIV 1 time yes and 1 not. [?
You need the link to be out side the div you are loading your content into. As the line "$('#wrapper_of_subpages').load(this.href + " #wrapper_of_subpages");" in your code don't copy the event with the link you need some other way to keep your link event.
[SOLVED] Detecting siblings properties
I'm quite new to jquery so this question might sound silly: I would like to know how to detect each siblings properties while cycling through them ... I tried the following: .another object here .siblings() .animate({ marginTop: -$(this).height() }, 200); to slide each sibling up exactly it's own height - but this does'nt seem to work. How do I refer to the actual sibling in "$(this)"? Any ideas? THX
DataTables in-combination with jEditable
Hello, i´am trying myself with the plugins described at http://datatables.net/examples/api/editable.html Its very cool, but i have a little problem/question regarding the ajax/callback: I have used the example code from the page: <script type="text/javascript"> var oTable; $(document).ready(function() { /* Apply the jEditable handlers to the table */ $('#example tbody td').editable( '../index.php/masterplan/masterplan_settings', { "callback": function( sValue, y ) {
Struggling To Work With JSON
Hey, For a project of mine, a former Jquery/css designer created a neat app that takes JSON (created during page load) and is then fed into a Jquery function that animates the results. Allow me to demonstrate: A.) The JSON: (this is for a survey site, so the JSON is actually a list of survey options as well as the total # of responses each option has received as well as the % of responses they represent. Sort of like 'yes' having 44 responses and being 33% of all responses for that question) var
[jQuery] How to gain reference to hyperlink that is clicked
I understand that I can use the .click method on a hyperlink element. But how do I know which element was clicked? First I have to gain reference to the hyperlink's ID. So lets say I have a page of hyperlinks like this in view source: ...someurl somebutton ...someurl somebutton ...someurl somebutton ...someurl somebutton when a user clicks addButton1, how do I know it's addButton1 that was referenced so that I can now apply a .click event on it? -- View this message in context: http://old.nabble.com/How-to-gain-reference-to-hyperlink-that-is-clicked-tp27026713s27240p27026713.html
[jQuery] (autocoplete) problem with fast typers:)
Hello All! I have a problem with the autocomplete plugin, if one types fast enough to hit enter before the autocomplete suggestions show up which is not hard at all , then autocomplete doesn't run the result handler and it definitely should , so nothing happens. So when user types "foo" into the search input field, he has to wait for the suggestions to show up, only after this he can press enter to get the results. Is there a workaround for that? Thanks, Richard
jquery queuing?
I have this code $.each(data,function(id, name){ $clickedLink.parent().parent().find('select').append('<option value="' + id + '">' + name + '') .parent().parent() .css('display', 'block') .animate({ 'height': height + 'px' } , {duration: 'fast', queue: false}) .animate({ 'width': width + 'px' } , {duration: 'fast', queue: false}) .find('div').css('display','block');
How can I show a different quote at random on page refresh?
Hi there, I have a div on my page with an id of "quote". It contains a quotation and an image of the person who made it, like so: <div id="quote"> <blockquote>Quotation blah blah blah<p>Joe Bloggs</p></blockquote> <img src="joe_bloggs.jpg" alt="Joe Bloggs"> </div> I'd like to make the quote dynamic so that a different quote and accompanying image is shown at random when the page is refreshed. Does anyone know how I might be able to go about doing this? Or does anyone know if there are any tutorials
[jQuery] How to unsubscribe from this group?
Please unsubscribe me from this group.
[jQuery] jQuery animations VS Mootools animations
MooTools:http://www.jsfiddle.net/4vnya/ jQuery: http://www.jsfiddle.net/eFbwJ/36/ Compare the code, the effects. You decide. Why mootools is more smooth than jquery?
[jQuery] jquery google map namespace conflict?
I am toying with this plugin http://www.mayzes.org/ googlemaps.jquery.html#examples and have found what I think is a namespace conflict I am by no means expert and I could be wrong... Here is how to see it. I am using Google api loader thus: <script src="http://www.google.com/jsapi?key=mykey"></script> <script type="text/javascript" charset="utf-8"> google.load "maps", "2" ; google.load "jquery", "1" ; </script> I have some code that was working previously that used loader and was doing an address
[jQuery] Need help learning
I have been reading and playing around with jQuery and can do somethings, but making a plugin is hurting my brain. Here is what I have. function $ { $.fn.myPlugin = function { this.each function { alert this.id $.get "return.php",function data { alert this.id ; //do something with "this" & the "data" } ; } ; return this; }; } jQuery ; $ document .ready function { $ "div" .myPlugin ; } ; <div id="myID"></div>
Menu with transparency
Hi all ! I'm new to web dev / jQuery, and despite my google searches I didn't find something concerning the menus : i'd like to have a nice "item-list-style" menu with a transparency effect on it, like you can see here : http://www.ipex.org/. Is there a way to do it with base-jQuery ? Or do I have to find a plugin ? If so, does anybody knows of it ? Thank for your help and have a good day, ack.
[jQuery] Position div accounting for screen size/resize
Can you change a position of a div, based on screen size/resize with jquery? Something like if browser>= sitecontainerwidth { left:50%; margin-left: 20px; } else { left: 0%; margin-left: 600px; } I have a centered layout div{margin: top auto;} with a BG image. There's another div with a background design that needs to overlay on the BG, but off center. Figure of what the problem: http://www.kacevisual.com/files/Div-difficulties.gif
[jQuery] form validation
Is it possible to use the jquery form validation plugin http:// bassistance.de/jquery-plugins/jquery-plugin-validation/ to validate a form that was inserted into the page via javascript? What I'm trying to do is display a person's address, which is contained in a span tag, and give them the option to edit it. If they click the edit button, I'm changing the span to a form tag with jQuery and turning the parts of the address into text boxes with the values filled in. The problem I'm having is that
[jQuery] urgent help
I am using Jquery plugins like flowplayer,fancy plugin for image and video stuffs...It creates lot of erros with IE 6. Can any one help to fix compatability issue with IE6? Please reply..Very urgent....
menu behavior
Hi, I have built a simple menu with a table. The first TR is the static menu. When you hover over a TD it slides down a panel on the second TR like this: $('#btnGoAppProducts').hover(function() { $("#pnlGoAppProducts").slideDown("fast"); }, function() { $('#pnlGoAppProducts').hover(function() { return 0; },
[jQuery] ajax image
ok so I figured out that you can put in image in your page using .load imageloader.php but is there a way to load an image using regular ajax call . alittle more explanation of what I'm trying to do in my php I use imagejpeg function which outputs the image using gd great! and in my html i use to just go <img src="imageloader.php? dir=directory&name=filename" /> and that worked except now I don't want to pass that info in the query string I want to post the info AND I want all my ajax calls to run
[jQuery] jQuery BlockUI Plugin (v2) add onBlock()
Hi all, in this plug-in I need a function like onUnblock but on completed fadein.. can Add this function? tks
[Solved] why the click(function() doesn't work ?
please help... i'm stuck here... why when i click button Search.. the code does not work ? thanks <html> <head> <title>testing</title> <script type='text/javascript' src='/_include/jquery-1.3.2.min.js'></script> <script type="text/javascript"> $(document).ready(function() { $('#search').click(function() { $('#divname').append("ANOTHER TESTING"); } }); </script> </head> <body> <div id="test"> <button id="search">Search</button> <div id="divname"></div>
Next Page