handling country specific fomatted numbers/floats
Hi there I have a form with a target value and some actual values (precison 1). I have to calculate the % for the actuals compared to target. would not be a problem but the values are displayed formatted. here in Switzerland we use ',' as decimal sign and '.' for the grouping. 1.500,5 is of course NaN to JavaScript, so is 10,5 It would be nice to have a little util plugin, which allows calculations with country specific formatted numbers. Has anybody already overcome this problem? I'm not that strong
[jQuery] [Superfish] Close current after delay
Hi I've a new layout with Superfish (horizontal + 2 vertical sub): http://www.metadelic.com/upload/brassam/layout_brassam/ Everthing is perfect. Exept that I wish close after a short delay the current path and display only the active menu (horizontal in red). How I can do that? Thx in advance for your help and time. Regards, Dom
[jQuery] button to bottom of the page and along a bit
I originally saw the UI Effects button on HotAJAX (http:// www.hotajax.org/jquery/photos--other-plugins/486-jrails-jquery-on-rails.html) and fell in love with them, but only wanted one, I decided to go with the 'slide' one. For me, a man who cannot program code at all, its always an uphill process, even when its all done for me. What I wanted was the button at the bottom of the page and so to click it would give the impression of just disappearing. Not easy. First of all I tried hacking away at the
css.('font-size') in IE
This has me baffled. In FF, Opera and Safari $(this).css('font-size') gives me the actual font-size in px. But in IE7 I get a px-value I cannot decipher. I declare the font-size in my style sheet in ems, and I get the strangest results. Sometimes it is the font-size but multiplied again with the ems (so if font-size is 2em (28px) in all browsers but IE states it is 28*2=56px. But sometimes I get values that run into the 100s which have no relation to anything at all as far as I can see. Despite this,
[jQuery] call a php function with onclick
Hi, I would like to know how it is possibile to call a php function inside an onclick=function (....), I try to explain me better I have 2 php functions : 1. add_friend($me,$friend) and 2. remove_friend($me, $firend) I would like to have 2 links in this way: <a href="#" id="add-friend" onclick="add_friend($me,$friend)>Add Friend</a> <a href="#" id="add-friend" onclick="remove_friend($me,$friend)>Remove Friend</a> when I click on the first link I call the add function when I click on the other the
[jQuery] Catching 401 errors to $.ajax calls
Fellow earthicans, I would like to use $.ajaxSetup to set up a global error handler that knows how to deal with HTTP 401 codes ("Authentication required"). I am enhancing a few tables with AJAX using jQuery but I made my backend send back an HTTP error code 401 to force authentication if the user's login session timed out. The idea was to redirect to the '/login' page then. This is what I tried: $.ajaxSetup({ error: function (XMLHttpRequest, textStatus, errorThrown) { alert(errorThrown + '/' + textStatus
[jQuery] Simple AJAX call is not loading?
I'm trying to do what should be a fairly simple AJAX call. However it's not playing nicely. Here is the code I have so far. $(document).ready(function() { $('loading').ajaxStart(function() { $(this).show(); }).ajaxStop(function() { $(this).hide(); }); $('#menu > li > a').click(function() { $('page').load($(this).attr("href") + '.php', function() { $(this).fadeIn();
[jQuery] jQuery JavaScript Library
jQuery: The Write Less, Do More, JavaScript LibraryA fast, concise, library that simplifies how to traverse HTML documents, handle events, perform animations, and add AJAX. Just click the hyperlink and register your details in the below given website ************************************* http://www.freewebs.com/incandeslight *************************************
[jQuery] Highlight text, then apply element around selection
I would like to be able to select some text with my cursor, then click a button to execute code that will wrap that selection in a tag that I specify, such as a span. I know this is possible, but I am a little lost as to where I should start.
[jQuery] Help with Superfish
Hello, As suggested on the superfish homepage (http://users.tpg.com.au/ j_birch/plugins/superfish/#download) i am posting here with a problem i am experiencing.... its probably user error, but i cant seem to get it to work properly. The problem is that when users hover of the menu "buttons" and a user start mousing around in the menu the menu "button" turns back to the normal (non-hover) image, when it should stay as the hover-state image. The example available on the superfish site works the way
[jQuery] Fly out nav menu with a div instead of ul?
I'm looking for a solution that will allow me to display a fly out container once a navigation menu item is clicked. This is essentially the same idea as a normal fly out unordered list menu but I'd like to have a div fly out in which I can add text, links and possibly and image or two just like you would in a normal div container. Similar to what ABC has going on with their menu: http://abc.go.com/ Thanks
[jQuery] BlockUI Plugin - FadeIn?
Is there a way to get the 'Modal Dialog' feature of this plugin to fade in? It already fade outs by default when the dialog is canceled. -Thx
[jQuery] what is difference between $(document).height() and $(window).height() ?
what is difference between $(document).height() and $ (window).height() ?
[jQuery] [autocomplete]
Hi, This a wondeful plugin. I tried to use it with the Hebrew language with not much of a success. Is there a solution to this issue? Thanks a lot Itaymesh
[jQuery] Atribute selector with squared brackets
We got a ticket about how to select elements by an attribute with brackets. I replied with the common link to the FAQ and the reporter replied that the example in the docs doesn't work. I tried that myself, and indeed, that didn't work. http://dev.jquery.com/ticket/3443 $('[name=foo[bar]]'); // Doesn't work $('[name=foo\\[bar\\]]'); // Should work, but doesn't $('[name="foo[bar]"]'); // Does work Now... I think the last option is good enough. But we need to update the docs. Anything to add ? Anyone
[jQuery] Table grouping
Hi am looking to see if there is an easy way to do the following with jquery. I have values in a table and I want to have the table group data depending on the value of one of my columns. For instance let's say my data looks like this: Type Name Fruit Apple Fruit Pear Veggie Carrot Veggie Peas If I click on the type column I want the data grouped and displayed as follows: Fruit Apple Pear Veggie Carrot Peas
[jQuery] Simple AJAX call does not load
I'm trying to do what should be a fairly simple AJAX call. However it's not playing nicely. Here is the code I have so far. $(document).ready(function() { $('loading').ajaxStart(function() { $(this).show(); }).ajaxStop(function() { $(this).hide(); }); $('#menu > li > a').click(function() { $('page').load($ (this).attr("href") + '.php', function() { $(this).fadeIn(); }); return false; }); }); I've been trying to debug this for the last hour but am coming up with zilch. Please help me figure out what's
[jQuery] Find index of div with class "selected"
I'm trying to get the index of a div marked as selected, it's all a bit complicated because I have two levels of selected divs. My mark up looks like this: <div id="container"> <div id="kid1" class="kid selected"> <div id="k1w1" class="week selected"></div> <div id="k1w2" class="week"></div> <div id="k1w3" class="week"></div> <div id="k1w4" class="week"></div> </div> <div id="kid2" class="kid">
[jQuery] Excellent website for free certification
Dear All, I have just seen my first free certification website - www.BrainBeez.com It offers certification in various I.T. and Non I.T. subjects like accounts, English, Maths, Java, Oracle etc., 1. You get free certification directly to your email address. 2. You get a lot interview prep material @ http://www.brainbeez.com/intQuest.do 3. You get new job postings at the website @ http://www.brainbeez.com/jobs.do 4. You get a lot of help from members of Brainbeez.com @ http://www.brainbeez.com/yabb/YaBB.pl
[jQuery] Faceted navigation Solution Ideas
I want a starting point for a faceted navigation system, using jquery, similar to that at http://www.indeed.com/jobs?q=programmer&l= for example Can someone please point me in the right direction ... Thanks for any help
[jQuery] Trying to create a user name constructor
I am trying to create a form that when a user enters a user name into a form field they are automatically shown what their email address would look like. For example, if I were to type x12345 into the filed I would be shown x12345@domainname.com. If possible I would like to display several domain names simultaneously. Any help would be greatly appreciated.
[jQuery] accordion query
Hi folks, I'm using the following for an accordion style menu <div class="accordion"> <h3>Latest news</h3> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi malesuada, ante at feugiat tincidunt, enim massa gravida metus, commodo lacinia massa diam vel eros. Proin eget urna. Nunc fringilla neque vitae odio.<br /> read more about xxx...<br /> <br /> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi malesuada, ante at feugiat tincidunt, enim massa gravida
[jQuery] Help optimising jquery code - there must be a better way
I am relatively new to jquery, but have managed to muddle my way through a complicated navigation design that has overlapping selected states, eg with menu items 1,2,3,4 and 5, when item 2 is selected, the images for items 1 and 3 also have to change. The code is long and convoluted, and I am sure there is a cleaner way to do what I am doing. If anyone has any ideas, that would be great. Here's the code: // setup before and after classes $(".current_page_item").next().addClass('after'); $(".current_page_item").prev().addClass('before');
[jQuery] $(document).ready() vs $(function () {});
I am seeing more and more references to using the $(function() {}); format for the ready method. Is there a compelling reason for this? Or will $(document).ready() perform as well? Or perhaps I'm mis-understanding what the newer format is being used for? Thanks for any tips. Shawn
[jQuery] Examples of JQuery & Ecommerce: Draggable Cart, Enhance Product Images...
Here's an article showing JQuery UI to make a draggable cart, an enhanced product image display and an animated menu. I hope to see JQuery become a staple of ecommerce websites (if it isn't already). http://www.searchfit.com/blog/ecommerce/ecommerce-user-interface-using-jquery-with-searchfit.htm
[jQuery] scrollTo jScrollPane using each()
I can't figure out how to scroll ALL my panes to the top. Here is the pertinent code: // dynamically assign ids and jScrollPane, I would rather not assign any IDs... $('.scrollpane').each(function(n) { $(this).attr('id', 'scrollpane'+n); $(this).jScrollPane({showArrows:true, scrollbarWidth: 11}); }); etc... function scrollAllToTop() { $('#scrollpane1')[0].scrollTo(0); // will scroll that one id to the top, just as described // but, why doesn't this work? I keep getting $(this)[0].scrollTo is not
[jQuery] How do i use JQuery ?
Im trying to download JQuery but its downloading a .download file ... what should i do ?
rotating css file using a setinterval, problem with ie
I'm a complete javascript newbie and I know it's not exactly wise to jump into jquery as such, but I did so anyway because I needed something done fairly quickly and in a simple manner. So, forgive me if this is not the most efficient way to get this done. Anyway, the idea behind the script is to swap out the existing linked css file with another random one after a set amount of time. As such, I have the following in the head section: <link href="styles/style1.css" type="text/css" rel="stylesheet"
[jQuery] help with rotating css file using a setinterval, problem with ie
I'm a complete javascript newbie and I know it's not exactly wise to jump into jquery as such, but I did so anyway because I needed something done fairly quickly and in a simple manner. So, forgive me if this is not the most efficient way to get this done. Anyway, the idea behind the script is to swap out the existing linked css file with another random one after a set amount of time. As such, I have the following in the head section: Code: <link href="styles/style1.css" type="text/css" rel="stylesheet"
[jQuery] [validate] Group validation - validate per page in one form.
I am attempting to paginate a form, and validate for each page (page navigation via accordion or simply .show()/.hide()). However, the only sample I've seen of this appears to be the Help me Buy and Sell a House demo at http://jquery.bassistance.de/validate/demo/multipart/. This sample requires that a "pageRequired" method be added as follows: $.validator.addMethod("pageRequired", function(value, element) { var $element = $(element) function match(index) { return current
[jQuery] Check if an element DOESN'T have a class
Hey all, I understand how hasClass() works, but I'm trying to figure out how to use it to see if an element DOESN'T have a class. I want to check if the class doesn't exist, and if not then I'll add it. Do I use the older is() method? Just looking for the best way. Thanks!
{ANN} Lead Python Web Services Framework Architect - JQuery
Lead Python Web Services Framework Architect - Python, WSGI, PostgresSQL, Apache Server Job Responsibilities The Lead Python Web Services Framework Architect will be responsible for maintenance and expansion of the Python Web Framework which powers the WordStream Suite of SaaS products. Day-to-day activities include: Design and development of improvements to the Python-based software stack which our products are built upon Implementation and management of distributed database systems Development
Anyone know where Jquery UI MENU code is? Supposedly it WAS
Hi....great to be here! So, there's n2menu, superfish... and I've played around with both... I'm getting drawn to using as much as can in UI... so it's like... where's the menu code... was on the google boards and back in like June there's was talk of UI having ui.menu.js at some point.. anyways... I'm hoping someone knows something... like where the beta code is or whatever ... cool! thanks
[jQuery] Dragging Google Widget results in page refresh...
In the application I am writing, I have a div box that needs to be draggable. Inside the box is an iframe containing a google widget. For some reason, as soon as I try the drag, the entire page refreshes and only the google widget shows. Has anyone else experienced this and if so, were you able to create a work around? Thanks -j
[jQuery] Way to use a Multi-Line Example Prompt in a Single-line Text Input Field
I'm trying to prompt for input within the field using the Example plugin (http://plugins.jquery.com/project/example). The idea is that I'm styling my input field to be unsually large when the user types (it will be no more than a 4 or 5 digits), so I can use closer to normal size text as the prompt. I know I can do this with a textarea, but it's semantically incorrect, and using the return key creates a new line. I don't want to shoehorn the simple input into a textarea, but I want the prompt to
[jQuery] load dynamic content into myobj
Hello, what I am trying to do is this... I have a link on a page when i click the link i want it to load "Page2.php?+..." into "myobj". here is some of the code i was working with... hope someone can help... Thank you. <script> $(document).ready(function(){ $("#generate2").click(function(){ $("#myobj").fadeOut("fast"); $("#myobj").slideToggle("slow"); $("#myobj").load(" ****what goes here**** "); $(this).toggleClass("active"); }); }); </script> ********* <div id="myobj" align="center">
[jQuery] Linkselect Plug-in Released...
My current employer has released another jQuery plug-in: the Linkselect jQuery Plug-in. This plug-in converts a normal <select /> element into a component that can be highly stylized via CSS. While there are a number of similar plug-ins already, there are a several of key differences which we think make this unique: * Drop down menus are intelligently positioned to stay in the viewport * Specifically designed to work in a limited amount of real estate * Specifically designed to work well with elements
[jQuery] Setting select menu option value with onClick event
Hi All, I'm trying to manually change the value of a select menu to a certain option by referencing it's value. I've got the three instances I've tried (below) which aren't changing the select menu option correctly, in which am having trouble getting the correct syntax as to how to SET the value on an "onClick" event. + <li><a href="#" onClick="$("#select_9").attr('value','23')); return false;">one</a></li> +<li><a href="#" onClick="$ ("select[id='select_9']").attr('value','23')); return false;"></a></
[jQuery] problem with click event-IE needs to click where FF needs only one:
<script type="text/javascript"> $(document).ready(function(){ $("#pac").click(function(){ $("#pac").animate({marginTop: "17px", paddingBottom: "17px", borderBottom: "2px solid white"}, 2500 ); $.post("rpc.php", {u:"genia"}, function(data){ if(data.length >0) { $("#pac_c").append(data); }else{ $("#pac_c").css({overflow: "none", display: "none"}); } $("#pac_c").css({overflow: "auto", display: "block"}); })}); }); </script> In FF the
[jQuery] Change code based on link clicked
I'm new to jQuery and JS I want to change a snippet of code based on which link the user clicked. So if the user clicked this link on the page: # click me I would like to hide a particular snippet of code inside a script tag. But I'm not really sure how to write the JS/jQuery Example: <script> $("#vclick2").click(function(){ if the above link (#vclick2) is clicked hide part of the script }); </script> I'm having trouble getting it to work. -- View this message in context: http://www.nabble.com/Change-code-based-on-link-clicked-tp20091922s27240p20091922.html
Next Page