[jQuery] disabling right click
How I can disable right click on perticular element or div using jQuery. --- Sharique
[jQuery] TableSorter1.0: Can't use it with prototype+scriptaculous
I'm using your pluging for my Intranet project, it's great. However, I would like to know how to use your plugin together with prototype+scriptaculous. Because there are some pages that I've already applied those library, but I want to add tablesort function to the pages--and I love to use yours. (for the others, I'm too stupid to use it) Below is how I place the code in the page. Many many thanks for your guidance. -----My Code----- <head> <script type="text/javascript"> var $j = jQuery.noConflict();
[jQuery] Taconite question...
Hey, Mike... or some else... Can taconite be used to change a form field value, say from false to true, or will it only change element content? Rick _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Treeview persistence (cookies) and a dynamic (PHP/MySQL built) UL - not holding state
I'm working with Treeview, latest version, needing the cookie/ persistence feature for a project. Sample demo works fine on my local machine (I can click on 2nd tree, change what's open/closed, browse to another page, then return (BACK button), and the tree holds its state. Great! Can't get it to work in my test system though. http://www.wrctest.com/tt2006/tennis_lessons_showall.php You do not need an account or login to see the tennis lessons - and the next screen (after picking a lesson) only shows
[jQuery] Image dynamic resizing
Hi, I need some script for dynamically resize an image with jquery. Are there any plugins to handle this? regards Adam
[jQuery] Who's Using jQuery
Don't suppose this counts, but an example for using the new Digg API features jQuery: http://apidoc.digg.com/ToolkitsServicesDigg#ExamplejQuerycode - jake
[jQuery] What is wrong with this code
Hi this is what I have jQuery.get(item_link,function(item_content){ var new_content = jQuery(item_content).filter("#contentpane .contentpane > p").eq(0); jQuery("#myContent").html(new_content).slideDown("slow"); }); What I imagine this code should be doing is extract the first paragraph from the item_content and fill the #mycontent with this first paragraph. But what I get it nothing in this #mycontent. Can someone please point me to what I am I doing wrong. I intent to extract the first
[jQuery] Desperately Lost in Space with the Tabs Plugin
Hi all, I've been lurking for a while, reading as much as I can, trying to learn quickly. But sometimes it's an uphill battle :-) Sorry if this is an obvious question to you all, but I'm really banging my head against the wall with this. I've already directly emailed the maker of this plugin but haven't heard anything back yet, so thought I'd give asking the group a try. I would really appreciate it if somebody could tell me why the Tabs plugin won't work for me. I believe it's what I'm trying to
[jQuery] Retrieving information outside of $this
I have a small problem, probably more to do with me not knowing more than anything else!! My structure is like so: <div class="main loc" rel="album" name="17"> <h3>Los Angeles</h3> <div class="data"> <div class="editable" name="17"><b>Latitude:</b> <span name="latitude">34.052019404448785</span><br /> <b>Longitude:</b> <span name="longitude">-118.24318885803223</span> </div> <img src="trip-goto.gif" name="goto" rel="" width="16" height="16" border="0" alt="View this location on the map." title="View
[jQuery] Drupal and JQuery
Hello everybody, I am in the middle of developing a karma module for Drupal (amazingly, it doesn't have one already and we need one for Free Software Magazine). While I know Drupa quite well, I know nothing about Javascript and JQuery. I am finding things a little difficult, to be honest. I know how Ajax works, but I am a little lost. Basically, I need to display a small voting SELECT for each published comment (-3 to +3). A logged in user should be able to pick a number - the second s/he changes
[jQuery] jQ Site
Not sure where we're supposed to submit jQ sites, but here's http://www.e-texteditor.com/ -- looks like a cool text editor too. ~ ~ Dave
[jQuery] Is there an image cropping plugin?
Hi folks, I'm wanting to do the following thing: 1. User browses for an image 2. User crops image with a pre-set sized outline 3. Image is uploaded onto the server I know how to do #1 and #3. I also know how to do the error checking stuff like making sure the file/image is the right size, etc. (Though, I guess Mike's form plugin let's you upload files now too?) I had been eyeing the resizeable interface plugin for the crop SELECTION part (I'd give the outline a max/min width and height of the same
[jQuery] jEditable/CSS question
Hey all, I'm working with jEditable which changes text to an input field when you click the text. It works really nicely. I modded it a bit to allow me to style each of the elements individually, rather than the whole form, which is working fine. When you generate a textarea, it also creates a "submit" and "cancel" button - problem is that the submit button always appears to the right of the textarea, with the cancel button below the textarea on the next line. I'd like to have both buttons appear
[jQuery] Superfish, Tabs and IE z-index
I'm using Superfish for my menus and the Tabs plugin. By default, the Superfish menus show up behind the tabs. The Tabs css uses a z-index of 2 so I set the Superfish css to use a z-index of 3. This works in FF and the menus show up in front of the tabs. However, IE doesn't play nice and the menus show behind the tabs. Has anyone come across this and have a fix? I'm using the bgiframe option in Superfish for the menus if that matters. I don't have the code posted right now since this is on a private
[jQuery] Using EXT with Jquery
Hey guys, Just noticed a couple of days ago that ext now has a new 'extjs' for jquery, and I wanted to test it out, but for some reason I can't get it to work. I've tried to make my own page like the layout.js example ( http://extjs.com/deploy/ext/examples/dialog/layout.html ), and I get the following error in the firebug console: "el has no properties http://dalog.eli.com/javascript/ext/ext-all.js Line 127" my script load the next file: javascript/jquery.js javascript/ext/adapter/jquery/jquery-plugins.js
[jQuery] AJAX problems in IE6
Hi all, I have a new site to be launched soon which relies on jquery to provide funky AJAX features. It works lovely in FF and IE7 but in IE6 it crashes the browser. (Brings up the IE has encountered a problem and needs to close box). Any ideas why this is happening? I am using jquery 1.1.2 and the code is all valid. Ben
[jQuery] Interface $.recallDroppable();
Ciao to all, some one know how can I use $.recallDroppable(); Thanks Faz
[jQuery] The University of Murcia (Spain) takes jQuery as main JS Library for all new projects
Hi there, recently I presented a seminar of JavaScript programming with jQuery in The University of Murcia (Spain) and the results are very good. http://www.um.es/atica/mncs/forja (sorry in *spanish*) Ours web developers will use jQuery for all new projects and integrating with the main projects, Virtual Campus SUMA, Access Control KRON, task schedule manager DUMBO, payment manage system JUSTO, Invertigation Repository PAGINA, etc.... So I wait soon contribute to the jQuery project with the new code
[jQuery] Performance profiling (in IE in particular)
I posted a message some time ago on performance profiling and testing in IE and the best thing available was Firebug Lite which required me to wrap everything in start/end calls. I've since written a time library to hook functions to reduce the amount of work required to performance test. It works in IE6+, Opera, Firefox and Safari. http://remysharp.com/2007/04/20/performance-profiling-javascript/ In particular, you can attach this to any function, including the jQuery selector function: $ = time.func($);
[jQuery] Tabs plugin: Is there a way to trigger a tab with a URL to load?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> <font size="-1"><font face="Helvetica, Arial, sans-serif">I'd like to be able to trigger a tab using the following format (or something similar): $('#container').triggerTab(3, '<a class="moz-txt-link-freetext" href="http://mysite.com/updates.html">http://mysite.com/updates.html</a>'); The
[jQuery] Accordion plugin: how to keep nested lists open?
Hi everyone, I am new to all this, and need a simple bit of help using the <a href="http://bassistance.de/jquery-plugins/jquery-plugin- accordion/">Accordion plugin</a>. It is working fine - my html is standard nested lists, used as navigation, however, when a child list item within a nested list is clicked, the list closes, thus hiding all the other links within the nested list. I would like it to stay open until another parent list header is clicked. That would make browsing easy for the user.
[jQuery] small Changes to editable (Dan's)
Hi Dan, i made some minor changes to your awesome editable script. What i tried to do was using it in conjunction with cake. Imagine a list like so <table> <tr> <td class=editable name='data[User][title]'> Junior </td> <td class=editable name='data[User][phone]'> 349234 </td> </tr> </table> The changes i made make it possible to have multiple parameters depending on a name attribute in the dom element. The input element you insert gets the name attribute when i click on the td. You can still set
[jQuery] Erratic behavior of cookie plugin
I am using Klaus's cookie plugin to vary the width and open or close status of segments on my website. The problem is that it works and it does not work also. It works sometimes and fails sometimes. If it was not working I could have thought of something but now that it works randomly, I have no clue as to what is wrong. Please see this link and the jQuery code can be seen in source of the page. Please provide me some hints on what is wrong with my code. Thanks JooomlaProdigy http://www.joomlaprodigy.com
[jQuery] jQuery 1.1.3a / 1.2 ?
<div>What's the release status for 1.1.3a (or 1.2)?</div> <div> </div> <div>We're in need of support for expanded namespaces (eg. being able to select foo:bar via $('foo\\\:bar') )</div> <div> </div> <div>Cheers,</div> <div>-Jonathan</div>
[jQuery] DOM traversal: changing XHTML attributes w/ jquery???
hey all, wondering if anyone could help with this... i have two jquery functions that act independently on two separate columns of text in my webpage. a live example of the webpage is here: http://www.personal.leeds.ac.uk/~scs4ll/ with the code below working with the <b>articles > 'preview more articles'</b> and <b>comments > 'preview more comments'</b> button's respectively. $(document).ready(function() { $("#articles .view_more").toggle(function() { $("#articles .bullet_text").addClass("bullet_text_go");
[jQuery] animate background-position??
Hi, I've been trying several ways to animate the position of a background image and I'm stuck. This is the code I'm using: $("#header").click(function(){ var bkgPosX=Math.round(Math.random()*(-500)); var bkgPosY=Math.round(Math.random()*(-200)); $("#header").animate({style: 'background-position: bkgPosX bkgPosY;'},'slow'); }); Any help is much appreciated! Steve
[jQuery] manipulating TEXAREA content
Hi all, I wonder if I could get your opinion on whether or not something is possible and if it is, is there a really compact way of doing it with jquery? I would like to make a character counter for a textarea input. I would like the string that is the number of chars typed in the box to always be the last chars of the textrarea. A bit like this: I [1 char] I can [5 char] I can type [10 char] you get the idea, the little "[x char]" string floats along as if the insertion point was just before it.
[jQuery] Using Interface.Droppable
Ciao to all and sorry for my english, I m very new to jquery and his plugin Interface, I m trying to use drag and drop, but after a drop, if I clone a tag or I substitute his html with element having the same css class, the new elemnt are not sensible to the drag or drop behaviour attached to the class. Thanx to all Faz
[jQuery] Multiple File Upload Plugin for jQuery
I am trying to load (using $.load()) a page which contains a form with Multiple File Upload Plugin but it doesn't work. Any idea? Here is the code: . . <input type=button onclick="jQuery('#ap').load('upload.asp');"> <div id='ap'> Empty div </div> . . upload.asp <html> <head> <script src="/InmoFusion2/libs_Ext/jquery/jquery.js"></script> <script> jQuery.noConflict(); </script> <script src="/InmoFusion2/libs_Ext/jquery/jquery.MultiFile.js"></ script> <script src="/InmoFusion2/libs_Ext/jquery/jquery.MetaData.js"></
[jQuery] Class doesn't support Automation?
Hi folks, I think I'm missing something simple here, but I can't seem to see it. Here's my function: function DeleteGroup(){ var $group = $("#GroupKeyID")[0]; var index = $group.selectedIndex; var groupname = $group[index]; $.dump(groupname); } Calling this function (FROM IE) causes the error: "Class doesn't support Automation" FireFox (of course) has no complaints and works just fine. Grrrr.... ;o) Anyone who could help me figure this out would be my hero! :o) Thanks, Chris
[jQuery] Deleting siblings
Hi, I have this HTML <table><tr> ... <td><img src="images/spacer.gif" alt="" width="5"></td> <td class="topTab tabSelected" style="padding-left: 5px; padding- right: 5px;"> <table><tbody><tr> <td class="tabText" id="tab12">nooo</td> <td class="closeTab"><img src="images/close.gif" alt="Close" border="0"></td></tr></tbody></table> </td> <td><img src="images/spacer.gif" alt="" width="5"></td> ... </tr></table> when the user clicks
[jQuery] ?compile jQuery with plugins
Is there a way to compile a set of plugins directly into jQuery (so as not to include them in separate script tags)? I've tried to build it with "make with_plugins all" and "make with_plugins", but nothing happens, I always got the standard version of jquery compiled (the paths I found in the Makefile are correct, I mean I've placed the plugins where they are intended to be). Well, I could copy-paste everything into the core js file, but it's not the solution I think. I'm not using svn, if it is
[jQuery] ThickBox question
Hi folks, I've searched the archives, but didn't find what I was looking for. So if this has already been discussed and someone can point me to the old thread, that'd be awesome. Otherwise: Is it possible to trigger the opening of a thickbox without a link? In other words, I want to do this: <script> if(true){ open.thickbox.somehow(url, width, height, etc, etc, etc) } </script> Thanks, Chris
[jQuery] Form + BlockUI plugin
Hi guys, I am placing a form into blockUI like so $.blockUI(form) and then attaching form plugin like so .ajaxForm(options); Form pluging works perfect as long as it is not used with BlockUI, but as soon as you insert it into BlockUI submit does not really work --Kush
[jQuery] setting attbitues
I discovered that if I want to set the class for an object, this is not the code $('#' + id).setAttribute("class", "myClass"); What is the correct syntax? Thanks, - Dave
[jQuery] Problem with the fieldselector [@name=xyz]
Hi, I need help with the following code. This one alerts 'undefined': var field = 'test'; alert(jQuery("[@name='" + field + "']").attr('id')); and this one gives me the correct id: alert(jQuery("[@name='test']").attr('id')); So why the first one doesn't work? Thanks for your help.
[jQuery] ajax not working with form validation... help please...
i got this error on firebug data is not defined submitHandler(form#MyForm1 proccessajax.php)login.php (line 167) valid()jquery.validate.j... (line 511) form()jquery.validate.j... (line 374) (no name)(submit )jquery.validate.j... (line 233) handle(submit )jquery.js (line 1302) [Break on this error] data: data, anyone knows why? here is the code : <form method="post" name='MyForm1' id='MyForm1' action="/remote/proccessajax.php"> <!-- Start MyForm1uemailInputfield --> <div id="divforMyForm1uemailInputfield">
[jQuery] Remembering settings
Just discovered this library and its excellent and seems to be doing what I need at the minute. I'm no javascript programmer be any means and this made my lift a lot easier. Just one thing though. I've got it so I can move things around the page and hide/show objects but it is possible to places these settings into a cookie so it remembers what I've done for when I come back to the page or refresh? Any help would be greatly apprieciated Thanks
[jQuery] newb needing a little assistance - Checking if an input value is a Number
Hey Guys Ive had my first go at writing with Jquery, i know VERY basic JS and jquery is making life a lot easier, but not easy enough it seems.... So my task was to write a script to calculate a number of input fields and display the total in another input, which ive managed to do. Also it needed to notify the user if the total went above 100, which ive also figured out. The part im stuck on, is making sure that only numbers get passed in, and displaying an alert if the user inputs anything other
[jQuery] Ajax .load confusion
I've gone through the tutorial for Quick and Dirty Ajax (http:// 15daysofjquery.com/quick-and-dirty-ajax/14/) and I'm having a problem. I have a php file that queries a database and returns a populated table. If I call it from my browser like this: camp_table.php? Title=Campname it get a web page with the populated table. I want to use this code: $('#table').load("camp_table2.php"{key:value}); but I can't figure out how to format the key:value pair. ?Title=Campname doesn't work, and everything else
Next Page