[jQuery] Converting this mootools code to jQuery....help?
Hey guys, I'm trying to convert my scripts to jQuery, I wondered if you guys could help me out with this... window.addEvent('domready', function Online_User_Updater() { ajaxRequest = new Ajax(siteURL+'fetch/online-users', {method: 'get', update: $('usersOnlineTxt')}); if(ajaxRequest.request()){ var interval = setInterval('ajaxRequest.request()',300000); } } );
[jQuery] [tooltip] bug on $('select').tooltip({...}) ...
I think i have found a little bug, you can see it when you call tooltip on select form element with an any options The tooltip will show in the top left of the screen. not over the select.. dont know solution... (bgiframe not helps) thanks for any kind of info best regards to authors :)
JQuery Validator by DIV rather than by FORM
Unfortunately we have a really large input form with 150-200 input fields that I applied the validator to. We have created a 7 step process that is used to guide the user through the fields and they cannot go onto the next step until the 1st step is complete. But beause there are so many fields it takes forever for the validation to process since it is appears to always pulling the elements from the entire form and trying to validate them. Question: is there any way to have the validator work by
[jQuery] jScrollPane and display:none
I have a page that shows and hides a layer based on a click. When the page loads, this layer is set to css ; display:none I have a scrollpane inside of this layer. When I click and show the hidden layer, everything works except the scrollpane? If I remove the display attribute and reload the page, then the scrollpane is there and works fine. It has something to do with the parent layer being hidden I and I cannot figure it out. Any ideas? Using FF and Safari
[jQuery] BlockUI Plugin
Greetings! I faced with such a problem with jQuery BlockUI Plugin: I need to display a dialog-window on the page of the site I working with. After opening this 'window' (which is div, you know) UI should be blocked, but the window position should not be fixed. Simply, the window could be bigger than the client height of the browser. I inspected all the demo-pages of http://www.malsup.com/jquery/block/ but didnt found the solution. PS: sorry if I posted this twice.
[jQuery] jQuery BlockUI Plugin
Greetings! I faced with such a problem with jQuery BlockUI Plugin: I need to display a dialog-window on the page of the site I working with. After opening this 'window' (which is div, you know) UI should be blocked, but the window position should not be fixed. Simply, the window could be bigger than the client height of the browser. I inspected all the demo-pages of http://www.malsup.com/jquery/block/ but didnt found the solution.
[jQuery] [jqModal] IE keep loading after opening a modal
Hi all, I have come to an issue that IE is keep loading after a jqModal is opened. I think the issue might be related to an IE bug [link]. I tried to add window.status everywhere in code but still no progress. Anyone have encounter this before? [link] <a href="http://dangermoose.blogspot.com/2006/01/why-status-bar-keeps-loading-in.html">http://dangermoose.blogspot.com/2006/01/why-status-bar-keeps-loading-in.html</a><br clear="all"> -- Best Regards, Jacky <span>網絡暴民 <a href="http://jacky.seezone.net">http://jacky.seezone.net</a>
[jQuery] YouLove.us crazy cool.
Did anyone else see the new http://youlove.us design-house portfolio site? It's pretty cutting edge stuff, worth a study.
[jQuery] [PLUGIN] Tweet! Added Twitter to your website
Found on Twitter: Announcing Tweet (http://tweet.seaofclouds.com/), a simple @jquery plugin to put Twitter on your website. Rey...
[jQuery] What is +new Date; in the function now()?
I'm not familiar with the JavaScript syntax of "+new" in the now() function in jQuery 1.2.5. Would you explain the plus (+) operator? How does it work? What does it mean? function now(){ return +new Date; } Is it the same as the following? function now(){ return new Date(); }
[jQuery] Use different CSS class
Hello, As far as I know to style the error messages a "error" CssClass is used. Can I use another CSS Class? For example, "ShowError"? Thanks, Miguel
[jQuery] [validate] Use Regex
Hello, How can I check the value inserted in an Input using a RegEx expression? Thanks, Miguel
[jQuery] [validate] Use Ajax
Hello, How can I check the value inserted in an Input using Ajax? Thanks, Miguel
[jQuery] editable table + json
hi, is there any plugin for creating editable tables out of json data? thanks in advance michal
[jQuery] Automatically expanding input form --- please help to port it to jQuery!
Quite frequently, I need an input form with a variable number of records/rows --- as many as the visitor wants to enter (which is not known before hand). Please check the following example (tested with Firefox): http://www.yaakovnet.net/AutoForm/input.html As soon as the visitor selects an option from the select box, a new input row is appended --- allowing unlimited input. The visitor can also delete a record by selecting the option '---' from the select box. I would like to improve my JavaScript
[jQuery] Is it possible for jQuery define version of browser, for example IE 7.0?
I know that jQuery can define browser: $.browser.msie $.browser.safari $.browser.opera $.browser.mozilla but can I define version??? IE 7.0 - ? IE 6.0 - ? IE 5.0 - ?
[jQuery] Autocomplete with hidden ID
Just a quickie - does anyone know of a jQuery plugin for creating an autocomplete that acts like a <SELECT> i.e. I need people to search by name, and have them choose one from the list - but whilst displaying the name, the form needs to return an associated ID (as well as the name which will be ignored). TIA R
[jQuery] Linking & showing Subsection of page
Heres my page: http://tinyurl.com/5eov82 If you click on the 'FAQ' or 'Prices' buttons you wil see that it shows/hides certain divs on the page. If the javascript is disabled it, autmaticaly shows all of the content in one long page. The problem is, I'll need to link directly to the 'FAQ' section and the 'Prices' section, from other parts of the site, or possibly externally. If it was just a case of anchor tags, it wouldn't be a problem, but if I try and link direct (#faq etc) the div is hidden by
[jQuery] Cycle - per slide settings
Hello, Is there a way in the jquery.cycle plugin to set settings for individual slides? For example - set a different transition or timeout for each slide. Thanks in advanced
.css() problem
Hi, I'm looking for a way to attach also the word !important into the .css() attribute, when applying new inline styles. The problem has to do with the written CSS code as here other developers often used the attribute !important. If I can't attach it via .css() nothing will change. Any idea if this is possible? thx T.C.
[jQuery] What point i should take care while upgrading to jQuery 1.2.6
hello, What point i should take care while upgrading to jQuery 1.2.6? Can anyone suggest me?
[jQuery] AJAX data inserted into DOM does not trigger click-event
Hoi guys! I define a event trigger $('#id div a).click(). The url in the href attribute of the a tag is called via $.ajax and the returned data is inserted into the #id element. So, the actual HTML in the #id event is replaced by the data AJAX response data. After the data was inserted into the #id element, the click event is not working anymore for HTML code which was inserted in the #id element. What can be the reason for this? Thanks so much for your help!
[jQuery] [HELP] Problem in IE (6&7). Can't use two eventhandlers of change in one *.js file
The code in my drupal module is more like below: //--------------- start code -----------------// $('div#select_cat select').change(function(){ var check_cat = this.value; }); $('div#select_subcat').change(function(){ var sub_cat_id = $('#select_subcat select').val(); alert(sub_cat_id); }); //--------------- end code -----------------// With the code above, I can make the alert box come out in FF, OP, and Safari. But it doesn't works at all in IE (6&7). Is this a bug in JQuery?
[jQuery] New JQuery Plugin - Menu Toggle Adder
Here's a new JQuery Plugin: Menu Toggle Adder http://code.google.com/p/js-menu-toggle-adder/ It automatically adds "toggle" triangles to unordered list menus for each list item that contains an unordered list. ....It does a bunch of other "stuff", like expanding the nested ul that matches the current url and adds a class to links that match the current url. It's designed to help long, vertical menus on ecommerce websites be more usable. This is my first JQuery plugin. Any feedback is greatly appreciated.
[jQuery] reusing events on freshly ajax updated content
Hello, I am just starting out with jQuery – I used to use prototype. I must say jQuery really makes reusing functionality very simple. However I am having a little trouble reusing events on freshly ajax updated content. ... <div id="myDivBtn"></div> <div id="myDiv"> Old Content <div class="myClass"></div> </div> ... in the $(document).ready() event-function I have the following events: $('#myDivBtn').click(function() { $('#myDiv').load('script.php'); }); $('.myClass').click(function() { /* do something
[jQuery] Offset from a given node
Hello there, I need some help here in finding out how many characters the first character of a given node is offset from a parent node. In the simplest case, for the following: <div id="root">Hello<span>world!</span></div> I want a way to figure out that the "w" in the span is offset from the div by 5 characters. I attempted at DOM traversal and finding the .text() property of each node leading upto the target node and then summing up the length of all the texts...but it was sort of beyond me to
[jQuery] Clicking an image and changing a div's html content.
Hello, I'm new to jQuery and i'm trying to solve a rather simple problem. I'd like to create an image that when clicked changes the html of a div. I'd like to have many different images that change the content of many different divs with different html. I've currently figured out how to do it using: $(document).ready(function(){ $("img.div1").click(function(){ $("#div1").html("<strong>cool this is bold</strong>"); return false; }); }); However I'd like to be able to use the same function and pass
[jQuery] Form Plugin - Feature Request
The Form Plugin is pretty rad... however I tried to patch some functionality in it, and failed. All I'm trying to do is make the options persist into the success callback - just like they do in the beforeSubmit callback. This way some information can be stashed on dynamically generated javascript. I wasn't sure about the way it all works I'm hoping someone in here can help me patch and submit. There's a few random calls and hooks that I can't seem to make sense of.
[jQuery] .load and asp.net postback
I am having a problem with the .load and a asp.net postback. I load a div with a page called myquickcart.aspx on the page and it works great. But when I click a button on the parent page that causes the postback it goes directly to myquickcart.aspx intead of posting back. My server isnt being hit at all so I have no clue why its posting back to myquickcart.aspx and not the parent page? Any ideas?
[jQuery] [jQuery.TreeView] in Castle MonoRail
I'm trying to use jQuery and the jQuery plug-in. Now when I also have installed the Scriptaculous scripts (of MonoRail) I encounter a problem which I cannot explain... When trying to display (a basic) tree I encounter the following java script error: a.parentNode has no properties (jQuery.js line 1390) "last-child": function(a){return jQuery.nth(a.parentNode.lastChild, 1,"previou... Note that I - use jQuery 1.2.6 - tried to consider what is told in the chapter "Using jQuery with Other Libraries"...
[jQuery] jQuery tabs and cookies
Dear list,<br clear="all"> I am trying to remember the last selected tab using cookies but it doesn't seem to work no matter what I do. My code is the following: <font face="courier new,monospace">$(function() { $('#tabCont > ul').tabs({fx: {opacity: 'toggle', duration: 500, cookie: {expires: 7, path: '/'}}}); });</font> Should this be enough to gain the wanted result or do I need to add custom code which handles the automated selecting on page reload? Many thanks -- Isaak Malik Web Developer
[jQuery] Working with text
path variable store the following: /themes/mytheme/images/logo.gif: var path = $('img').attr('src'); is possible to obtain the image name without path ? I need logo.gif I need a Javascript or jQuery function to solve this? Thanks!
[jQuery] Autocomplete
Just a quickie - does anyone know of a jQuery plugin for creating an autocomplete that acts like a <SELECT> i.e. I need people to search by name, and have them choose one from the list - but whilst displaying the name, the form needs to return an associated ID (as well as the name which will be ignored). TIA R
[jQuery] [Validate] Validation Demo does't work in Opera 9.5 with jQuery 1.2.6
Hello, i just discoverd a Problem in my App an this can be perfectly reproduced by using the Demos provided with the bassistance Validation Plugin Download. Just open demo/index.html (you have to use jQuery 1.2.6, it's still working with 1.2.4) and check the first form (it's the "green" one). The form is getting submitted without entering any value. Any idea on how to get around this ?? Thanks, Finchi
[jQuery] Getting the correct Selector code
I have a list like: <li> <h3><span class="add">ADD</span></h3> <div class="dialog">Content 1</div> </li> <li> <h3><span class="add">ADD</span></h3> <div class="dialog">Text 2</div> </li> I want to open a dialog, which are the divs, when the ADD is clicked. But I only want the dialog that is in the same li tag as the Add button being clicked. I though the following might work, but it's not right: $(".add").click(function () { $(this).parent().parent().$(".dialog").dialog("open"); }); Shouldn't that
[jQuery] Server Side jQuery
Currently I have only tested 2 way to do server side jquery 1. env.js + rhino 2. jaxer Both 2 methods are following John's blog Anyone know other ways such as other JavaScript server implementations? Thanks.
[jQuery] [validate] addWrapper bug
Hi, I'm currently using the validation plugin. However I ran into some problems. When I use "div" (or even "ul") as a wrapper, if there is a validation error and I correct it, the whole form disappear, in fact the whole "body" element is marked as "display: none". I did a search on Google and found out that this has been briefly discussed at : http://bassistance.de/jquery-plugins/jquery-plugin-validation/#comment-50074 (read the comment of Michiel Thalen) , and Jorn also said that the fix will be
[jQuery] I love JQuery but why is it slower than Dojo and ExtJS Core
Hey guys, To start, I really love JQuery and how it works and how you can extend it, I wouldn't replace that with something else anytime soon. Especially the community is great! But I was running http://www.domassistant.com/slickspeed/ and notices that: - DOMAssistant 2.7.1: 148 - jQuery 1.2.6: 161 - Prototype 1.6.0.2: 310 - Mootools 1.2b: 157 - ExtJS Core 2.0.2: 113 - Dojo 1.0.2: 106 - YUI 2.5.1: 378 I was just wondering, why is JQuery so much slower compared to Dojo or ExtJS? is it because of the
[jQuery] how to get jquery working inside XUL extension ?
Hi, I've so far developed an extension. Now it's time to start using jquery in it. How do I include it inside the extension so that I can use it ? I've seen here an example http://www.learningjquery.com/2006/12/jquerify-bookmarklet . From there I see that I should do something like this in my code var s=document.createElement('script'); s.setAttribute('src','http://jquery.com/src/jquery-latest.js'); document.getElementsByTagName('body')[0].appendChild(s); Altough I'm not quite sure what this would
gallery question
Hi. I have built a photo gallery for a site using jquery. http://synthsoundz.com/impwood/ When i click on one of the thumbnails the main image fades in. This is fine until the browser caches the images. The when you click on the thumb the image quickly displays before fading in. The way i have done it is that when you click on the thumb the main image fades out quickly, the image src gets swapped with the new image src and then fades back in. So the problem is obviously that the intial fade out responds
Next Page