[jQuery] getAttribute is not a function error
I am getting this error and and logically I do not understand why should it be (ofcourse my logic is wrong somewhere). I have a php file(php5) that has code to parse XML DOM and it has a line where I use element->item(0)->getAttribute("src"); it works fine, the echoed content has the code generated for ajax request as I expect it to but when I inject the echoed html on my page I get this error getAttribute is not a function. Now what I dont understand is that the getAttribute I used in parsing XML
[jQuery] ero magazines
http://ero-mag.net
[jQuery] Jquery Perfomance Question
I don't know about jQuery(document).ready(function(){}); performance. But I wish to know somethings: Can I put lot of jQuery(document).ready(function(){...............some js codes........}); in some <script> tag instead just one jQuery(document).ready? Eg: <script> //eg with lot of DOM jquery ready finction, that are inject by PHP Template compilation. jQuery(document).ready(function(){...............some js codes........}); jQuery(document).ready(function(){...............some js codes........});
[jQuery] Add onclick attribute to a a link - Is it possible ?
Hello all, I love jquery but I'm really new to ajax and development (and english ;-) ). I want to add the attribute onclick on some link on my page : I found how to add a title for the link (for example), I can also change the color and some other things but in fact what I really want to do is add a onclick "return confirm('sure ?')" here is what I'm trying to do : $('.view-field a').attr({ onclick: "return confirm('sure ?')"}); Can someone help me ? Thanks. dominique.
[jQuery] $("#mycarousel").jcarousel is not a function
I keep getting this error when I try and load jcarousel with dynamic images. $("#mycarousel").jcarousel is not a function (no name)()istar.asp (line 30) e()jquery-1.js (line 11) e()jquery-1.js (line 11) e([function(), function()], function(), undefined)jquery-1.js (line 11) e()jquery-1.js (line 11) [Break on this error] $("#mycarousel").jcarousel();
[jQuery] class animation
Hi, everybody! Is there any plugin, that will animate from one css class to another one?
[jQuery] Using jCarousel functions in another script (a gallery/slide script)
I've made a slideshow (remotely similar to other jQuery slides like Frontpage Slideshow or jqGalScroll v2.1) but instead of just plain numbered links to move between slides I've used jCarousel. Clicking on the list items in jCarousel correctly shows me the proper slide in my slideshow, but I can't seem to figure out how to call jCarousel functions from my slide. For example: 1. Getting jCarousel to scroll down when my slideshow has reached the EIGHTH slide. (There are 7 jCarousel items shown at a
[jQuery] Cluetip + jCarousel???
I have installed jCarousel on an ecommerce site, to display products. Don't see a way to display text links below and would like instead to have a tooltip on hover which would display the product description and price (ala Netflix). Content is coming into the page via Perl and CGI calls. I now have it set up to show the most basic tooltip using the title attribute (start simple, right?). It shows the tooltip for only the first set (5) images. Here is the page: http://woodenhorsetoys.com/cgi-bin/category.cgi?category=5
[jQuery] tablesorter pager and multiple tables problem
Seems tablesorter pager does not work if there is a table before the sorted table that I am not using the tablesorter on. I get "c has no properties" on line 46. If I only put in the one table in works as expected. Is there a way around this so it only sorts the specified table? Thanks, D
[jQuery] .tableSorter - sorting from hidden values
Is it possible to sort based on a custom attribute in a column? If so, how? Creating a hidden column with the values I need to sort by is not working out to be the best solution at this point. Thanks in advance.
[jQuery] Return data from dimensions.js
I need to save the coordinates of a div to be able to return it to the same location and am having problems posting the offset from dimensions.js This $(".dragL").mouseup(function(e){ var stroke = $(this).attr("id"); var coordsB = $(this).offset({ scroll: false }); $.post("pre_scripts.cfm", { coords: e.pageX +','+ e.pageY, coordsDiv: coordsB, strokeNo: stroke }, function(data){ //alert(data); var commaAt = data.indexOf(',');
[jQuery] Cycle plugin pagerAnchorBuilder question
Hi, I'm using the cycle plugin (and loving it). I'm using 'pagerAnchorBuilder' to build out the nav dynamically in an Ordered List. One thing I'd like to change is instead of having the 'activeSlide' class set on the anchor element, I'd prefer to have it set on its parent LI element. What would be the most elegant way to achieve this? Your help is appreciated - thanks! (below is the code I'm using)... $(document).ready(function(){ $('#slides').after('<div id="navSlides"><ol>').cycle({ cleartype:
[jQuery] [validate] adding a loading indicator for remote method
I was wondering if anyone could help me/get me pointed in the right direction with making a loading gif come up when I am validating a username with ajax. I tried changing the class, but nothing happens. I changed this in the validate.js file: remote: function(value, element, param) { var label = this.errorsFor( element ); label.html(" ").removeClass().addClass( "loading" ); doesn't work though. Thanks
[jQuery] Draggable - Add border while dragging
Is there an option within the draggable function to allow you to add a border to a cloned "currently-being-dragged" object, similar to the way that "cursor" works ? Thanks, Liam
[jQuery] Form plugin problem - remote action
Hi, I have tried the ajax Form plugin. It works great if the email.php action is in the same server/folder. When I use a remote one, from another server, it just substitute the whole page on the browser by the remote email.php. It does send the email form, but show all the content I want to keep in the browser desapears, substituted by any eventual html content on the email.php. Is this just a bug or is some kind of kown feature? Thanks. Pedro
[jQuery] [autocomplete] more control needed
I'd been using the autocomplete from scriptaculous, and I think I got spoiled in some areas. I'm hoping that maybe someone can help me with this. 1) My backend returns JSON in the form of an array of objects, which is really nice for everything else that uses it: http://ezdispatch.com/get_customers_by_name.php?cust=ad&u=demo&p=demo&text (it uses a JSON header if you remove the &text from the url). Is there any way to make the autocompleter use that (Obviously there is a bunch of additional information,
[jQuery] [validate] disabling onBlur validation on per field basis
Hello. Is it possible to disable onBlur validation of a single field?
[jQuery] Hi!
Hi! I'm having major trouble with regards to having to work with inline javascript-code generated by the Apache Wicket-framework for Java (as you can see under). Now in order to style the input properly I'm hiding it and using a anchor to trigger the hidden submit. This works swell in 99% of the cases, but now we bumped into something that could possibly force us to redo the whole button-layout if we can't get it fixed <!-- Submit with inline onclick-JS --> <input id="savedb" class="positive save
[jQuery] Cycle plugin & opacity
Hi I'm using the fade effect of the Cycle plugin to generate a slideshow with some text overlaid on the top. The box of text should have an opacity of 0.7. This works well in Safari/Firefox on a Mac, but in IE the box of text has 100% opacity. I tried to fix it using this code: function onAfter() { $('div.banner h2').css('opacity', 0.7); } $(document).ready(function() { $('div.banner h2').css('opacity', 0.7); $('div#front_banners').cycle({ fx: 'fade',
[jQuery] New site, a simple custom store
I've got my first ever dynamic website online. I evaluated several javascript libraries, but knew pretty quick that jQuery was the right choice. Now that the hard work is done I have no regrets with jQuery at all. The site is a small custom shop at http://cupcream.com. jQuery is used to handle clicking thumbnails. There is a custom modal contact dialog and some animated hovers and scrolls. I also used the 'hoverIntent' plugin. This little plugin was a big improvement for getting more of a 'tooltip'
[jQuery] A simple plugin to check if your browser supported by jQuery - Officially
Just share with you one of a useful plugin: jQuery.supported = function() { if (typeof jQuery.supported.result != "undefined") return jQuery.supported.result; jQuery.supported.browsers = [ ["safari", "412"], ["opera", "9.0"], ["msie", "6.0"], ["mozilla", "1.8.1"] ]; jQuery.supported.result = false; var b = jQuery.supported.browsers; for (var i=0; i<b.length; i++){ if (typeof jQuery.browser[b[i][0]] != "undefinded" && jQuery.browser[b[i][0]])
[jQuery] Tablesorter + hovering +maintaing "old" background
Hi folks :) im pretty new to jQuery and after searching for an answer of my problem i'll try to post it here :) I am using Tablesorter with an hovering widget. As I am displaying some data that has a coloured background (based on their priority) I would like to keep that background colour inside Tablesorter. But Tablesorter overrides that somehow (yep im new to this whole DOM/CSS magic ;)). I have disabled the hovering widget to check if it interferes but it doesnt ;) So can anyone give me a hint
[jQuery] form plugin doesn't want to submit a file
hi :) I have this form: <form id="sub_immagini" enctype="multipart/form-data" method="post" action="./../js/ajax/upload_files.php"> <input type="hidden" name="sub_tipo" value="foto"/> <div class="materiale"> <label for="new_foto_1">File:</label> <input type="file" name="new_foto_1" id="new_foto_1" /> <label for="alias_foto_1">Nome:</label> <input type="text" name="alias_foto_1" id="alias_foto_1" /> <label for="tags_foto_1">Tags per l'immagine:</label>
[jQuery] Color animation on textarea
I am trying to apply a color animation to a textarea when text is appended to it. Here is what I have... HTML: <textarea id="reply"><textarea> JQ: $("#reply") .animate({backgroundColor:'red'}, "fast") .append("\n"+insertText+"\n") .animate({backgroundColor:'white'}, "fast"); This is not working, what am I mssing? The color does not change at all? TIA
[jQuery] Javascript breakout Game
I took my mind of things and had some fun with jQuery, John's Simple Javascript Inheritance Script and the canvas element. The result is a simple Breakout game that can be seen at: http://ontologyonline.org/jGames/breakout.html A word on browser compatibility: It doesn't work in Evil IE (Internet Explorer), which doesn't provide proper support for the canvas element. In IE it can be made functional with excanvas but it renders way too slow to be enjoyable. David Decraene http://ontologyonline.org
[jQuery] jcarousel: problem with IE (6 & 7) scrolling back
Hi - I noticed a problem on the thickbox example page in both IE 6 and 7 where when you click on an thumbnail in the carousel to get the larger image the carousel scrolls back to the left and closing the thickbox causes it to scroll back to the left again. Any idea what could be causing this and how it could be fixed? Thanks, Jeff
[jQuery] [AutoComplete]
Hi, I am using the brilliant autocomplete functionality available here (http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/) I am using the 'Multiple Birds (remote)' version from the demo. I can't see anything in the documentation about removing items that the user has already selected from the autocomplete list. Is this something I need to do manually, or is there a setting that I can tweak? Many thanks, Chris.
[jQuery] .load and take dom element
I'd like to take dom element from another page. I try with: $("title").load(url + " title"); but it make <title><title>MyPageTitle</title></title or with $("head").load(url + " title"); but the problem is that then i make $("head").load(url + " style"); to get the style it remove the title and put only the style. Have you in mind some solutions? Luca -- View this message in context: http://www.nabble.com/.load-and-take-dom-element-tp17409507s27240p17409507.html Sent from the jQuery General Discussion
[jQuery] jQuery tooltip doesn't work after UpdatePanel update?
Does jQuery supposed to work with asp.net ajax update panel? I used jQuery tooltip : http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ but after the update panel update every tooltip is reset to default tooltip. how can this be fixed? Thank you
[jQuery] load() problem in IE7
I have a html page with two alerts and it's source is given below: <html> <head> <script language="JavaScript" src="test.js" type="text/javascript"> <script language="JavaScript" type="text/javascript"> alert("Hi"); </script> </head> <body> <script language="JavaScript" type="text/javascript"> alert("Hi"); </script> </body> </html> and in the test.js file, I have kept another alert and I am loading this HTML file from another HTML page using $ ("#testDiv").load("TestAlerts.html"); This is working
[jQuery] Very basic animation of an image is jerky (not smooth). Am I doing something wrong?
I am new to jquery but an experience developer. Here's the code actually running: http://guilespi.dyndns.org/jquery/bounceimage/ CSS: http://guilespi.dyndns.org/jquery/bounceimage/bounce.css JS: http://guilespi.dyndns.org/jquery/bounceimage/bounce.js The first vector is generally very jerky. Sometimes it stops and then jumps 40px at once. Is there anything I am missing. HTML, CSS and javascript is very basic. Javascript has a bunch of math coding to calculate the time needed for each vector so it
[jQuery] Achieving smoother animate()
We've recently implement an option in which our site's users can hide and show the left hand menu to make more space for the main content when necessary (e.g. huge tables). We've done this through the following code: $("#ScreenChange").toggle( function() { $("#MenuOuter").animate({width: 0}, 750); $("#MainOuter").animate({width: "100%"}, 750); }, function () { $("#MainOuter").animate({width: "75.6%"}, 750); $("#MenuOuter").animate({width:
[jQuery] [PLUGIN] growl for jquery
Growl for jquery http://projects.zoulcreations.com/jquery/growl/ Rey
[jQuery] [swfobject + tooltip] Swfobject embedded flash disappears when tooptip overlays
Hello, I have tool tip working nicely on my site, but I have an issue with tooltip and/or swfobject 2.0 conflicting. here is the relevant page: http://www.redpointdesign.ca/ourwork When you mouse over the little thumbnail icons, ones on the right side of the list so the tooltip overlays on top of the flash, the flash will disappear.. at least in Firefox. I have no idea if this can be fixed or not... I have no idea how to do that, ...any help? Thanks in advance! Brian
[jQuery] Conditionally adding DOM using FlyDOM
I'm adding elements to the DOM after page load, using Flydom jQuery plugin (http://flydom.socianet.com/). I need to add elements only when some conditions are satisfied. To clarify, the following code is used to append a table to the exampleCA element. $('#exampleCA').createAppend( 'table', { width: '718px', style: 'border: 2px inset #336699;' }, [ 'tr', { className: 'exampleRow' }, [ 'td', { align: 'center', style: 'color: white;' }, 'I was created by createAppend()!' ] ] ); Now, I was to add another
[jQuery] Digging through wrapper DIVs
I have a setup like this <div id="container"> <div class="wrapper"> <div class="wrapper"> <div><span class="bullet">Bullet</span> <!-- other stuff, potentially inner divs also containing bullets --
[jQuery] New site -- name constructor
Hi all. I completed a new site that is pretty much all JQuery, JQuery UI, XHTML, and CSS. http://rockpebble.com I did it mostly for fun. It uses the JQuery UI drag and drop capability. I still want to add some keyboard shortcuts using the JQuery Hotkeys plugin. It did have some popup help messages implemented with the Cluetip plugin, but I found that they didn't work at all in IE 6 so I'm going to have to take another look at how to do that. Anyway any comments would be welcome. Feel free to use
[jQuery] Help getting the AJAX load() to work in Firefox
Hello. I'm fairly new to JQuery. In my learning I'm testing out very simple Ajax. I'm just trying to inject a small piece of HTML into a div in my current page. I get the same error every time. Permission denied to call method XMLHttpRequest.open xml.open(s.type, s.url, s.async); I've read several post here and I understand that this is some limitation of Javascript or AJAX and cross domain stuff. But that IE allows it. Or something to that affect. But I'm just trying to get it to work locally. On
[jQuery] jQuery is not defined and fade
Im getting problems with Jquery. In firefox show jQuery is not defined. I think that this is due to pngfix. But I dont lnow how to solve. Another problem its with fade and png transparencies with explorer. Can you help me. You can check it out in http://csshispano.com
[jQuery] Help optimize my code!
Hi everyone, I'm using the curvyCorners plugin, but I only want the corners to be curved when you're hovering over the element. Currently I've got this working but it's terrribly slow and, I fear, inefficient. $(function() { var clone; var corners = function(dis) { clone=$(this).clone(); $(this).corner({ tl: { radius: 2 }, tr: { radius: 2 }, bl: { radius: 2 }, br: { radius: 2
Next Page