[jQuery] Rewrite
How to rewrite this into jquery code ? Just getting into that... so i need some example. Thanks. var upload_button = document.theForm.action_upload; var upload_url = "test"; var append_vars = ""; for (var i=0;i<document.theForm.length;i++) { current = document.theForm.elements[i]; var new_vars = ""; if ((current.type == "text") || (current.type == "hidden")) { new_vars = current.name + "=" + encodeURIComponent(current.value);
[jQuery] Miomi
Came across this timeline-inspired site using lots and lots of scripting, including jQuery. http://beta.miomi.com/
False Alarm (was: Testing whether something is a function)
On Dec 9, 2007 4:54 AM, Douglas Crockford <douglas@crockford.com> wrote: > --- In caplet@yahoogroups.com, "Mark Miller" <erights@...>
[jQuery] Creating simple jQuery/JSON result with ASP.NET
Good morning all..... I've got a call to an aspx page, nice and simple, the alerts are just to test: function SaveThis(key, val) { $.post("/services/process/config.aspx", { Key: key, Value : val }, function(data){ alert(data); alert(data.Results); } ); } The alerts are just for testing obviously, but i am just keeping it simple anyways, the "config.aspx" simply says: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim Results As String
[jQuery] A few jQuery ideas
Follows some ideas for future jQuery development. Those come from my experience while using the library. == "microformats" == I really like how jQuery works with the whole DOM tree, it is much more flexible than other libraries but some times, I wish it could use a set of predefined DOM nodes. Think microformats. Maybe an example is more explicit : ----- HTML ----- <ul class="tabbuttons"> <li for="firsttab">First tab</li> <li for"secondtab">Second tab</li> </ul> <div class="tabgroup"> <div class="tab"
[jQuery] Percent Sign (%) Problem
I have a search process with jQuery+Php... I have to use " .... like '%entered_keyword%' ..." in mysql query. Here is the problem the Php changes "%" to " " However, when someone enters "% % % % % % % %" (8 times percent sign), it brings all datas on mysql. If i use the changing function two times like changepercentsign(percentsign($entered_keyword)) 8 times doesnt work but for this time "% % % % % % % % % % % % % % %" (15 times percent sign) works and brings all datas. What do you think? How can
[jQuery] jquery youtube plugin
Hi, I have done a project where i have to do work with youtube. I just play with some jquery plugin and finally i write a youtube plugin for jquery. It's just alpha version. I will update after getting your comments, suggestion and advice. You can check it out here . http://saidur.wordpress.com/2007/12/03/jquery-youtube-beta-plugin/. Or if you want to see the details then you can look at : http://bijon.rightbrainsolution.com/youtube/tube.html Thanks Saidur
[jQuery] jquery youtube plugin
Hi, I have done a project where i have to do work with youtube. I just play with some jquery plugin and finally i write a youtube plugin for jquery. It's just alpha version. I will update after getting your comments, suggestion and advice. You can check it out here . http://saidur.wordpress.com/2007/12/03/jquery-youtube-beta-plugin/. Or if you want to see the details then you can look at : http://bijon.rightbrainsolution.com/youtube/video.html Thanks Saidur
[jQuery] Scrollable table plugin?
Anyone know of a plugin that will make a given table scrollable? I have a large table that we would like to apply fixed headers/footers too, and have the table body scrollable. I need this in both IE and FF, so the simple CSS fixes don't seem to apply. As an added bonus I'd like the table to take ALL of the available vertical space, but setting a height of 100% on it seems to be troublesome (it's height is set to the screen height, not the available space, which results in vertical scrolling being
Add class to an element on pageload?
Hi, I basically want tab/link bookmarking functionality, but since my JS skills are low and I can't integrate history/remote plugin into superfish, so I just want to add a class, say "selected" to one of the tabs/links on page load. How do I do it? Many Thanks.
[jQuery] Code Review For Cloning Exercise
Hi; I've sussed out a solution with cloning rows that are are part of a form submit and I'd appreciate any feedback you might have. Here's an image to follow along with: http://www.hinde.net/images/jqueryhelpgraph.png I have an application where users enroll in a class. After a search is done, a list of matching classes is presented. If they click a checkbox, a list of family members is presented, via a select, and the user can chose the family member to enroll in the class. It's not unusual to enroll
[jQuery] Looking for a faster way
(sorry, long post so I can explain the background some....) I have a rather data intensive page that is pulling information via Ajax, and then populating the page. I'm wondering if anyone can see a faster way to do this, as I'm seeing 12-15 second render times, and the page will be heavily used. Basically, my page looks something like this (I'll post some code below): Bob 0 0 0 Stan 1 1 0 Vacation Coding There are many people rows (usually around 50ish), and the default veiw has 10 columns. Each
[jQuery] IE not triggering change event on dynamically added html
I am using JQuery and JQuery UI. I'm using tabs from the UI part. I'm trying to build a form dynamically adding and removing input elements on the fly. I would expect someone else has tried this before, and that there is an existing implementation somewhere that works. Here is a page with my example problem: http://www.shelfnet.com/new_tab_form_test/new_tab_form_test.html In my examples I've tried doing this three different ways. The third I know I must be doing something wrong because IE at least
[jQuery] framing
I would like to know if it is possible to protect one of my framed website page for being framed by another site. Thanks
[jQuery] jQuery Plugins Site Updated
The jQuery Plugins site had been experiencing a few issues lately. So, today I moved it to its new home, http://plugins.jquery.com. If you've got a plugin hosted on the jQuery Plugins site, please give your plugin a look and make sure everything is where it should be. If you have any issues, please submit them to the jQuery Plugins Website Issue Queue at http://plugins.jquery.com/project/jquerypluginswebsite. Mike Hostetler http://amountaintop.com
[jQuery] ClueTip - local content without attribute
I'm using ClueTip, and loading the content from some hidden divs using the default "rel" attribute. Is there a way I can do this without using the "rel" attribute? For example: I have some cells in a table: <td class="green"><a href="blah">99</a></td> <td class="red"><a href="blah">99</a></td> and some hidden divs: <div id="msg1">this is green</div> <div id="msg2">this is red</div> If I hover over an anchor inside a td with class="green", then I want to grab the content from div#msg1. Can I do this
add/remove class on click? [SOLVED]
Hi, I've used the following code to add/remove class on hover: $('#hover-demo2 p').hover(function() { $(this).addClass('hover'); }, function() { $(this).removeClass('hover'); }); I even manage to add a class on click using the above code, but ca't remove the same class. I want to be able to remove the class by clicking the same element, or if possible, clicking any another element. For example: Click on x adds a class to it, and click on y or z (not 'just' y or z) removes the class from x and adds
[jQuery] Form Plugin and File Uploads (form.submit() is not a function)
Hi, Just started to play with jQuery and Form Plugin. And now I have some problems :) I want to upload a file using jQuery and Form Plugin. When I'm trying to upload a file an error occurs, saying: "Error: form.submit is not a function Source File: jquery.form.js Line: 292" If i don't include a file the form submit seems to work fine. Anybody knows what I'm doing wrong? An example can be seen here: http://www.digitalvenues.se/_develop/allstarsrunners/formular/bilder.html (Click the link "Ladda upp
Urgent: Sub-menu DIV fades off before I'm on it.
Hi I'm using this code to display a sub-menu when over a level one menu: $("li.services").hover(function(){ $('#events_subnav').fadeIn(); },function(){ $('#events_subnav').fadeOut(); }); The only problem is that when I move away from the top menu button, sub-nav that was displayed on hover goes off too. I would appreciated any quick help. Many thanks.
[jQuery] Problem selecting a table row
Hello Dear Reader, I am stuck with the following problem. I've read the whole documentation of jQuery about traversing and selecting DOM nodes and found that i can select all nodes that contain a certain type of node - the example was $('p[a]'); all paragraphs that contain a link (anchor). But for my surprise i was unable to select a table row which contains a table header like this $('tr[th]'). I have the following data structure <table border="1" class="rates"> <tr><th>Description</th></tr> <tr><td>xxx</td></tr>
[jQuery] jCarousel help
Is it possible to use jCarousel to show images with flexible heights/ widths? For example, if I'm using the vertical display, widths are fixed, but heights are not. This causes ugly spacing between images. FYI - I'm using this with Drupal, but that's mostly incidental to this query.
[jQuery] Code feedback... Callbacks for timing...
Hi all, I hope my question is not too silly... I just wanted to get a little feedback -- basically wondering what I am doing wrong here: ...<snip>... $('#' + what).fadeOut('slow', function() { $(this).load(this.href, {'targ': what}, function() { $(this).fadeIn('slow'); }); }); ...<snip>... Basically, I want to fade-out a div, then .load(), then fade the div back in... The above code is returning errors, but I am not sure what I am doing wrong. I can post more code if need be. Any help, tips, rtfm's,
[jQuery] Select type upon jeditable start
I'd like to have jEditable, or jQuery, auto select all the type in the input that I am going to edit. I am basically looking for the same effect of clicking on the URL address bar in a browser. Select all on first click, then let the user decide what they will edit. I really have no idea how to approach this... Thanks! ben
[jQuery] Remove class from an element x, by clicking on y or z?
Hi, Although I figured out the part to add/remove class to an element: $("li.x").click(function(){ var $this = $(this); if( $this.is('.xshown') ) { $this.removeClass('xshown'); $this.addClass('xhidden'); } else { $this.removeClass('xhidden'); $this.addClass('xshown'); } return false; }); ...now I just need to know how I can remove the class from say x click on y or z instead of having to click again on x to remove the class? Many Thanks.
[jQuery] redundancy - dimensions plugin and toggle?
I've got some toggle code where I want to check the height of something using the dimensions plugin and am not sure the best way to do this: $('.container').toggle( function() { $(this).removeClass('right').addClass('down'); // check height of window and if too tall - show bottom nav if ($('#wrapper').height() > 400) { $('#bottomnav').show(); } else { $('#bottomnav').hide();
[jQuery] jquery.ifixpng.js IE 7 Transparency is Black instead of transparent
I'm just trying this nice jquery plugin and it works great to solve some of my IE 6 PNG image problems. But, in IE 7, the images are black. Has anyone else seen this and found a fix for it? Is this a problem specifically with PNG 24 alpha transparency?
[jQuery] Nice post about jQuery Selectors by Ben Sterling
http://benjaminsterling.com/jquery-what-are-the-fastest-selector/ Rey
[jQuery] Interface plugin + Object.prototype.anyPropertyName = BUG
I've been trying the Interface Sortables module that requires the Drag and Drop modules and got bugs when I decided to augment the Object prototype. I've looked at each of the code of those 3 files and realize that there was a loop over the Object properties (maybe indirectly by the jQuery object) and realize that my function were call, whatever name I give it using the Object.prototype augmentation. That was the reason of the crash. I've filter the the result to not call my function name and I do
[jQuery] UI: Autogenerated tabs
I am looking into using jQuery for implementing tabs. Up to now we've been using the Tabber library (www.barelyfitz.com/projects/tabber/), and have been happy with the unobtrusive tabs it creates. However, we have a minor nightmare of javascripts from disparate libraries scattered all over our website, some Prototype, some Behaviour, some Javascript, some others from various other sources, and it seems sensible to scrap as much of the cruft as possible and standardize on a single library. Due to
[jQuery] UI vs Interface
Hi! It has been stated in the discussion "What plugins are ready for prime time" that "Interface should be superceded by UI soon. Currently both lack the quality of code and documentation that jQuery provides." by J rn Zaefferer! Is there any official truth to that? Or is it just a personal estimation? Many of us linger between these 2 plugins and, frankly, they do seem similar. "Interface" seems more complete and is around longer, but "UI" is labeled as an "Official" plugin. So, any directions..?
[jQuery] accessible edit in place
Hello. Is there a way / plugin to have this plugin work "the other way around" ? http://www.appelsiini.net/projects/jeditable/default.html If JS is turned off, i want the form controls to be visible on the page so you can use them. If JS is turned on, i want to activate them with a click/mouse over. I want the controls to be hidden and accessible on a need-to-use basis. If they're straight on the page from the beginning, it will feel like they "should" be filled out.. If JS is turned off I have no
[jQuery] Create a Menu Draggable and Dropable to a target
I need your help; I want to made a Drag and Drop Menu with jQuery, with target areas on top, bottom and right side of my site. I don't know how made a Draggable object fit to 100% the height and Width of your target and only accept to be drop one target. The iGoogle: http://www.google.com.br/ig -> have more or less the effect that i want to applicate in my website. But in iGoogle, the Draggable DIVS are positioned on various places on the screen. How can i make this? Thank you Regards, Sorry my horrible
[jQuery] Strange unwanted delay problem
Hello all, I have several div's which are animated on mouseover: $('.pan').mouseover(function() { $(this).animate( { marginLeft:"-182px" }, 1000); }); I then have another div laying behind the animated ones that on a mouseover reverts the animation: $('##pancontainer').mouseover(function() { $('#pan1').animate( { marginLeft:"0px" }, 200); $('#pan2').animate( { marginLeft:"0px" }, 200); $('#pan3').animate( { marginLeft:"0px" }, 200); $('#pan4').animate( { marginLeft:"0px" }, 200);
[jQuery] hiding page elements instantly on page load
Hi guys, I use php to fetch a menu out of a mysql database. Basically the menu is made up of a lot of nested unordered lists (<ul>). I'm using jQuery to hide any submenu. This means that when a user visits the webpage he only sees the first <ul>. When he clicks a <li>, the submenu (again an <ul>) is shown. This works great on my localhost. However, when I publish online I experience a problem: on page load the whole <ul> is shown for a second, including all nested <ul> submenu's, before it is hidden
[jQuery] i am getting design problem while using jquery plugin
i frequently getting design problem (css) while using jquery plugin. so how can i overcome these problems while using jquery plugins.
[jQuery] [NEWS] Getting jQuery Adopted in Corporations
jQuery UI team member Marc Grabanski has an excellent writeup on how to build acceptance for jQuery in Corporate America: http://marcgrabanski.com/article/92/Getting-jQuery-into-Big-Corporations The 2 biggest points he mentions are the cross-browser rendering and the list of notable companies/sites using jQuery. Excellent post Marc. Rey
[jQuery] Toggle on TR.onclick but not on content link
Hi, I'm facing a "stupid" stuff. I have a table. When I click on a TR, it displays another TR containing datas : <table> <tr id="clickme_1" class="clickme"> <td> Data - Data - http://www.site.com Link - Data </td> </tr> <tr id="showme_1" class="showme"> <td> <div id="showmore_1" class="showmore"> Extra Data - <div>Another Div</div> - http://www.site.com Extra Data - Extra Data </div> </td> </tr>
[jQuery] newbie - validationAide and submit
I am using dnaides validationAide and need some help. I am building a web app and need to do client side validation before commiting data into a postgresql database. I am using validationAide to validate, but need to change the pagelayout once part of the page is valid. To cut a long story short, the user fills out some purchase order information and cannot continue ordering products until all purchase order information is validated. Once this information is validated I hide this part of the screen
[jQuery] different in IE and Firefox
i have this code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script> $(document).ready(function(){ $("button").click(function () { var text = $(this).val(); $("input").val(text); }); }); </script> <style> button { margin:4px; cursor:pointer; } input { margin:4px; color:blue; } </style> </head> <body> <div> <button value='feed00000'>feed</button> <button value='feed11111'>the</button>
[jQuery] newbie question
I have a javascript function like MyFunc(btn), and I would like to associate a click event to all my button with button1 class in the page to this function. I tried the following code and is not working for me: $("input[@type='button'].button1").each(function() { this.click(function(){MyFunc(this);}); }); what's wrong with my code? any help would be greatly appreciated.
Next Page