[jQuery] treeview
I have a xml file which has the data to be loaded in the treeview. First of all, I would be really glad if treeview can read any xml. Then I can convert my xml to that sort. Secondly, if I have to provide an unordered list, which I can generate from the xml; what will be the way of dynamically adding a node ? Lastly, my tree view will reside in a tab of jquery ui. And it will not be populated when the document becomes ready. Rather it will grow with the activities the user perform. Here I am lost
Form Validation- Display Error in Validate() Error Handler?
Hi guy, I currently validate successfully a login form that validate each single input. Email And Password The validator verify that each input are filled correctly. The problem is that when the form is submitted, and my .php validating the email & password in the DATABASE and detect an error, I just don't know how to display the error inside the validator div's with the returned value? This is my Error TableCell / DIV <td id="AcommentMESSAGE"> <div id="AcommentMESSAGE2"> <label style="font-weight:
refresh a div the the div content
i want to refresh a div with the contents of the same div is this possible <div id="time"> <table> <tr> <td><?=date('g:i:s a')?></td> </tr> </table> </div>
[jQuery] jeditable - setting a different url
Hi! I'm trying to use the jeditable plugin to update a lot of different strings coming from various part of the database. I would like to set it like this: $("span.editInPlace").editable($(this).attr('rel'), { indicator : 'Un instant, sauvegarde en cours...', tooltip : 'Cliquez sur le nom pour le modifier.' }); But Firebug throws me an error : Erreur : uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open]" nsresult: "0x80070057
[jQuery] Jquery for show / hide item in list
Dear friends, I'm looking for jquery scripts to show/hide element in unordered list like <a href="http://bbc.co.uk">http://bbc.co.uk</a> with +, - button. I've got some script from here : <a href="http://paste.pocoo.org/show/86584/">http://paste.pocoo.org/show/86584/</a> and <a href="http://www.killersites.com/forums/topic/780/jquery-add-remove-list-item/">http://www.killersites.com/forums/topic/780/jquery-add-remove-list-item/</a>. But I little confused to use them. They just can be used if I have
[jQuery] Validation: Server side generated errorLabelContainer
Hi, to double check the user input I also do a server side validation. The result of that validation is represented as an errorLabelContainer that is generated by the validation plugin: an ul-container with li- label children. My problem is that when the inputs are updated by the user the errorLabelContainer disappears, it gets a display:none rule. Is there a possibility that when the errorLabelContainer is already shown it does not get hidden when inputs are updated? Best regards, Bjorn
[jQuery] Vlidation
How to validate the form fields written in php file(for this file i applied php templet)
[jQuery] calculating value based on two sliders
HI, I am new to jquery and I am trying to calculate a value based on two sliders. Can somebody help me or point me into the right direction. Thanks, DekiR This is the code that I am using: var value1; var value2; $(function() { $("#slider").slider({ value:0, min: -100, max: 100, step: 1, slide: function(event, ui) { $("#amount_t").val(ui.value); var sl1 = parseFloat(ui.value / 100) * parseFloat($("#rate").attr
lightbox and Jquery slider conflict
I have a basic slider to reveal certain parts on my page . $('ul.spec').hide(); $('div#trucks> h2').click(function() { $(this).next('ul.spec').toggle('slow') $('div.trucks').siblings('ul:visible').slideUp('fast'); }); }); Inside the ul items are images I am trying to use lightbox2 with http://www.huddletogether.com/projects/lightbox2/ The lightbox is not working, it is on other pages with out the slider script, so I guess that’s the problem some sort of conflict between libraries?.
[jQuery] slideUp(), XHTML & IE8 - margin-top breaking, known issue?
Apologies for the awful title. I've googled around a bit and although there are issues with IE and the various slide functions, i couldn't find anything that fixed the issue or offered any advice beyond "lol IE". The easiest way to illustrate the problem is with the code snippet below; click 'section one' and mouseout before the transition completes, and IE will ignore !important and break the following h2's margin-top taking the doctype out fixes the problem, but defeats the point. anybody run into
[jQuery] Show images with delay...
All - How would i get the following effect. load the page and and image appears, then after 1 second, another image appears next to the previous one, then after one second, another image apears next to the previous one, etc... so each second a new image is placed in the line of images, eventually filling the screen with a bunch of images... I assume it is a for loop and something. or do i have to do it in php. in php this is the equivalent: for ($i = 0; $i < 5; $i++) { print '<img src="image.png"
problems with many img to animate
hello, i use the jquery_tooltip.js to fade in preview images on onmouseover over thumbnail images. the function for this: jQuery(document).ready(function($){ $('a.preview').imgPreview({ srcAttr: 'rel', preloadImages: false, containerLoadingClass: 'loading-preview-tip', containerID: 'preview-tip', distanceFromCursor: {top:-480,left:15}, onShow: function(link){ $('img', this).css({'opacity': 0}); }, onLoad: function(){ $('img', this).css({'opacity': 0}); $(this).animate({'opacity': 1},500); }, onHide:
Looping through elements for drop down menu
I am trying to make my own jquery drop down menu. As usual, HTML is like this: <ul class="menu"> <li class="parent item79"><a href="#"><span>Top Item 1</span></a> <ul> <li class="item101"><a href="#"><span>Sample sub-menu 1</span></a></li> <li class="item102"><a href="#"><span>Sample sub-menu 2</span></a></li> <li class="item103"><a href="#"><span>Sample sub-menu 3</span></a></li> </ul> </li> <li class="parent item80"><a href="#"><span>Top
Multiple Popup's
Hi please help me trying to show multiple popup's using jquery two or more popup's will centered the window radomly... among that if user click's on any one popup, that popup should come to the front and other should goes back please check these images user clicked on Popup one user clicked on Popup Two like this i want to show thanks in advance
[jQuery] Validating Australian ABN numbers
ABN - Australian Business Numbers I knew they had to be numeric and 11 digits. Then i found this: http://www.ato.gov.au/businesses/content.asp?doc=/content/13187.htm&pc=001/003/021/002/001&mnu=610&mfp=001/003&st=&cy=1 Which explains quite nicely how to validate a number. So I thought I would share this: function abnValidate(value, element){ if (value.length != 11 || isNaN(parseInt(value))) return false; var weighting = [10,1,3,5,7,9,11,13,15,17,19]; var tally = (parseInt(value[0]) - 1) * weighting[0];
observing the after effects of a default action?
Hi all, I was just wondering is there any better way of letting an event's default action happen, and then immediately observe what has changed with perhaps another event. The current way i am doing this is to have a timer, which will fire in 0.5s, hoping that the event has happened. Thanks a lot!
[jQuery] A quick note about CFJS
I just wanted to let everyone know that CFJS 1.1.11 is now available. There was a small bug in two of the list functions (ListContains and ListContainsNoCase). You can read about the changes <a href="http://cjordan.us/index.cfm/2009/10/15/CFJS-1111--Bug-Fix-Release">here</a>. You can download the latest version of CFJS <a href="http://cfjs.riaforge.org">here</a>. <br clear="all">Thanks, Chris
Another Question: this one on combining php and jquery
So, I have another question about my form. I'm pretty good with PHP but very new with jquery. Can I combine the two? In the following code you'll see I populate a select field with data from a database. When the user clicks the Add another course link it puts new fields below the first two (I think this is kinda neat) - but I'm not sure how to combine the php with the jquery so that the value of the select field array is +1 (for processing on the php script) and also so it shows the values from the
Auto populating form fields
Ok, i'm pulling in course data from mysql using php - there are many fields in the database. in the form, i allow a user to select a course from a drop down menu that is filled with the $course_title variable from the database. My question is, when a user selects a course, i would like the other fields (such as department, section number, price and so forth) to be automatically filled out based on the values in the database that belong to the selected record, and i'm wondering if anyone can help
[jQuery] Jquery site navigtion
What is the best way to find plugins on the jQuery site? Yesterday I saw a plugin mentioned and wanted to learn more about it. I went to the jQuery site and entered its name in the search box thinking I would be taken to the download page for it, but instead got what looked like portions of discussions threads about it. Maybe it has something to do with the fact that when I clicked on plugins->browse by name I ended up at a blank page. Regards, Jim
[jQuery] Superfish, Main Menu & Submenus
Hi all Would like to know how to make the main menu button unlinked, i.e. not linking to any article etc in Joomla, instead visitors have to navigate to the submenu and select a section / page there. Is this controlled under superfish or Joomla (if Joomla, where do I look?) See www.africantravelsolutions.info, see the Your Destination menu, which shows the country name and then the submenus. I do not want the country name to link to anything, rather that visitors use the submenus. Thanks Hans
[jQuery] [jquery][validate] Locking submit button interferes with validation plugin
This is a question about the jquery Validation plugin. I need to lock the submit button on some forms to prevent multiple submissions, but I don't want to permanently lock it, in case there's a validation problem that the user needs to resolve. I did come up with a way to temporarily lock it and change the text to "Saving, Please Wait..." for a few seconds, then revert it to an unlocked submit button. The problem I'm having is that this conflicts somehow with the jquery validation plugin. Some fields
[jQuery] Superfish
How do you change the height between the 2 rows when using superfish nav-bar example? Is there a CSS property that will change the height?
Selection problems
Hey, I'm trying to create a div that contains an image that will hide when hovered. So far, so good, that bit is working. However I want to be able to display more than 1 image per page. I currently have: $(document).ready(function(){ $("div.screenshot").hover( function() { $(".screenshot #hideme").slideUp(); }, function() { $(".screenshot #hideme").slideDown(); }); }); Which hides an image with id of 'hideme' when the screenshot div is hovered. When I have more than one 'hideme'
[jQuery] Listmenu - tips for making it faster in IE
I am using listmenu and it works fantastically well... except only on firefox. On IE 7 it is quite slow, the lag is very noticeable - the menu appears after about 6-7 seconds and the counts come much later after about 8-10 seconds. Since this is an intranet app, I need to ensure that IE 7 works very well. I have about 2000 elements and they are not at all balanced across the alphabets... Are there any tips that I could follow such that the menu displays quicker in IE? Or at the very least is there
loading external html in a DIV question
Hi everybody, I´m loading a div of an external html (#right_in) into a div (#right) in my main movie this way: var toLoad = divobj.id+'.html #right_in'; function loadContent() { $('#right').load(toLoad); showNewContent(); } function showNewContent() { $('#right').fadeIn(800); } Is it possible to specify that the DIV has to load always at y=0, ie from the top? Because when I load another external div into my main div firefox keeps the latest position (if I scrolled before it loads the new page at
[jQuery] Validation plugin: textarea to allow only digits, but allowing linebreaks?
I'm using the Jquery Validation Plugin on my site, and I have a textfield that validates to only allow numbers. However, that also doesn't allow linebreaks - which I need to have! Is there a way around this? Here's the working code: <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript" src="http://dev.jquery.com/view/trunk/ plugins/validate/jquery.validate.js"></script> <script> $(document).ready(function() { // Doc Ready Functions $("#quicksend_form").validate({
[jQuery] 1.3.2, live(event), and trigger(event, [value1, value2])
Hello all, I cannot for the life of me figure out the syntax given in the subject line. Through all of the following, I am referring to the examples tab of the following page: http://docs.jquery.com/Events/trigger I've got a 'live' event, waiting for a custom trigger. I pull the trigger, fire the event, and all goes well. However, using the following trigger syntax, data pass-through does not perform at all as expected: myJQueryObject.trigger('myEvent', [value1, value2]); My event gets triggered,
[jQuery] Adding a "close" link button button at the end of Autocomplete dropdown
Hi, I am using Jquery autocomplete dropdown, could you please help to add a "close" link button at the end of the dropdown like the google suggest ? I am new to jquery, Thanks in advance Thomas
[jQuery] [Newbie question]: What knowledge is required for Jquery
Hi, Im a completely new to Jquery. Can I start it instantly or I need to first attain certain level of expertise in Html/CSS/JS Below is my current expirience with above 3: . HTML/CSS: Basic knowledge . Javascript/DOM: No knowledge at all Hence, let me know the roadmap to learn Jquery efficiently ASAP. 10x Nitesh
[jQuery] Switch image source during toggle
I have some divs I am toggling and there is a little + sign image I want to change to a - sign image when the toggle event occurs, but can't quite figure it out. Here is the toggle code I have (taken from a helpful post on here): $j(document).ready(function() { $j('#answerbox').hide(); $j('a.faq').click(function() { var faq_id = $j(this).attr('id'); $j('#faq' + faq_id).slideToggle("fast"); return false; }); }); The image is not contained within the <a> tag, so I guess I need a separate function to
[jQuery] jQuery Flash Stacking Order
I am working on a project now where I am cleaning up the code on a certain page. I am upgrading to using the jQuery Flash plugin as part of it. The only problem is that, once I made that upgrade, a small PNG image that needs to be placed over the Flash now goes behind the SWF object in the stacking order, whereas before it appropriately sat on top of the Flash. I can give the URL if somebody asks for it but the project is mildly proprietary at the moment and I think I have probably described the
[jQuery] [superfish] How to focus on clicked menu item after menu item is clicked with jQuery ?
Hi, I am new to jQuery and using superfish popup menu widget to create a menubar. I have only four menus and 3 of them are not drop downs. So I want to focus on the clicked menu item. How could I use jquery or some other technique to do this. Kindly help me to solve this. Thank you, Tharindu Madushanka tharindufit.wordpress.com
[jQuery] superfish
Hallo, I would like to have two vertical superfish-menu-modules in one template on the left hand side.. I tried it, the first menu with superfish-menu works. But when I prepare the second menu, deactivate, and go to "Extensions - modules - new - superfish", choose the parameter of the menu and save, I loose my website and only the menu is shown in the left corner and: Fatal error: Cannot redeclare hasvalue() (previously declared in /www/ htdocs/w00baa07/joomla/modules/mod_superfishmenu/helper.php:214)
[jQuery] superfish
If I refresh my page in IE6 or IE7 I get a javascript error: Error: '_gat' is undifined. The line and the amount of chars differs at times.
[jQuery] jQuery UI widgets leaks memory for dynamic content manipulation
jQuery UI widgets leaks memory for dynamic content manipulation jQuery UI widgets are causing memory leaks in browsers during dynamic content manipulation. This would be a problem if the goal is develop applications that want to behave like Gmail or Facebook where content is updated in-page. I have tested this using both Datepicker and Tabs widget and the results are the same - leakage. After hours of simulation, I am able to reproduce this memory leak effect in the exact sequence required. To reproduce
[jQuery] Autocomplete and enter key event
Hi, I have some problem with autocomplete plugin. When selecting option into autocomplete drop down list, focus stays on input field. So when Enter key is hit to select option, event is catched by the input field. In my case that's a problem because I submit form on enter key event and a selection into autocomplete options list submits immediatly the form :) Because of the focus staying on input field while navigating into autocomplete drop down list, stopPropagation() can't help me. Any idea ? I'm
[jQuery] Case sensitive XML tags
Is it possible to create case sensitive XML tags? jQuery('<xml/>').append(jQuery('<Login/>').attr({userName: 'u', passWord: 'p'})).html() should produce: <Login passWord="p" userName="u"></Login> but not: <login password="p" username="u"></login> Cheers, Dalibor Nasevic http://dalibornasevic.com/
[jQuery] Superfish - Drop Down not displaying
Hello, I am using the Superfish Module and have been able to successfully install and use it. The problem I am having is that the sub menus are being drawn behind the banner / header area and therefore you are not able to see them or click on them. Please let me know whether to change the index.php or .css file to see the drop down menus properly. Following are details you might need: Joomla Version: 1.5.12 Template: Fashion Look (http://joomla15.siteground.com/? template=siteground-j15-93) Website:
[jQuery] HoverIntent JQuery not working
Hey, I just created a nav bar and it looks and works as wanted when I am just previewing it in a browser, but as soon as I upload it to my godaddy hosting account the hover Intent no longer works and it is just a normal CSS drop down menu. Anyone know how to fix that I have been trying new things for days now...
Next Page