accordian keeps inserting scroll bars in IE
Oh dont you just love IE NOT ok here is my problem im using the jquery accordian on two divs, the first time the page loads the first div displays as it should you then click the header and the second displays as it should. but when you click on the 1st header to display the first content again the content has scroll bars AHHHHHHHH any help really appreciated
[jQuery] Using replaceWith on a <div /> instead of a <div></div> causes text to be deleted
Not sure whether this is a bug, but is is certainly unexpected behaviour. When i try to use replaceWith on a <div /> instead of a <div></div> (which is correct HTML syntax) it causes, not only the div but all code after the div to be replaced. Please see the code here: http://nafai.org/temp/jqueryproblem/ I will make a bug report if others also think this is a bug.
[jQuery] consistently unable to get return false to work, why?
So, this isn't related to any one bit of code, but it seems to be a problem I run into almost everytime i need to stop a form or link for doing what it was originally intended to do (submit). Now, i have used return false; many times, but it never works at first. I'm never sure what I end up changing, but something changes, and then all of a sudden it works, and I am once again left stumped as to what I did. Yesterday, i renamed a class, and all of a sudden, it worked. Changed the class back, and
jQuery Menu
Hello guys! I made a menu with jQuery. I toggle my menu like this: <a href='#' onclick="$('.submenue').hide('slow').not(next); $(this).next('.submenue').show('slow'); return false;">Title</a> <ul class="submenue"> <li>point1</li> <li>point2</li> <li>point3</li> </ul> so this doesnt seems like an korrekt jQuery syntax: $('.submenue').hide('slow').not(next); With ".not(next)" i try to avoid a close and reopen the opened menu. How do I write this correctly? I got one more problem I hide all submenus
[jQuery] Slider Experts?
Anyone know how to create the slider effect, coda slider, so that it opens up with something other than the first panel/div? I know there is an option with serial scroll to do this, but for some reason its not happening for me. Thanks in advance.... Andy
Free Copies of Learning jQuery 1.3! Is it real?
Hi, i found a link offering free physical copies of jquery book, but got no response, any body have any idea? the link is below http://apnilibrary.com/programming/php/free-copies-of-learning-jquery-1-3.htm thanks
drop in a dragable conatiner
Hi! i have two div's that is drag'n'drop with http://plugins.jquery.com/node/7041 script for easy drag and drop. In div #1 i have a list of items that also is dragable and a list that is droppable in div #2 The problem is that if i move div #2 (also movable), the Jquery-code does not "know" that it moved and the droppable list is visualy in the right place but jquery thinks its in the upper left corner (where the start-place is), so i cant drop in the box. Making both divs movable $(function() {
[jQuery] Using data(name,value) to store additional information
I wanted to define additional attribute to a tag to manage information. I realized that XHTML might not like it and discovered the data(name,value) function. I was wondering how i could retrieve all tags e.g. "div" that have that data variable set.
jQuery Ajax Request
Hi, I wrote a search page for a website that I am working on located at http://www.monaghanmedicalcentre.com/Search If you type something into the search criteria then press search the results appear dynamically. If you then begin another search, enter "medical", you will see that the content flashes and returns, then after a pause the new content arrives. Here is my code: content.css({display:'none'}); var hash=Math.floor(Math.random()*1001); $('#stuff').css({display:'none'});
[jQuery] JQuery Load() with callback functionality
Hi, I have a function that uses the ajax load function to post off some parameters and fill a div with the returned content after a db query has been run to create it. This all works fine, however I would like to be able to rplace the div with a loading graphic whilst the content is generated. I assumed this was done by placing the graphic at the start of the function, then using a callback function to remove it and display the actual data once it has been fully generated... However when I trey to
[jQuery] [validate] Problem with dynamic messages
Hi, I am dynamically generating controls on my page. I want to show all the errors on the top of the page and an exclamation gif besides each erroneous element with its alt property showing the error. Please let me know if that is possible or not. If yes, then how can I acheive this. I have seen many examples but did not get this type of error display. I can user error handler, but the problem is that if I create my own elements in error handler then the messages of those elements are not updated
[jQuery] maskedinput plugin not cooperating with validate plugin?
My project uses jquery.maskedinput.js 1.2.2 and jquery.validate.js r6096. I'm looking at a date field, with a mask of 99/99/9999, which happens to also be required. If I focus and then blur on the required date field, validate fires (as it should), and does its required check, which (if I'm reading this properly) consists of a length check on the date textfield. Problem is, the 'value' of the date textfield is the format mask text itself, '__/__/____', with a length of 10, so validation passes. Is
jQuery Accordion and IE
Hi there! It's been several hours and I still fail to find a solution for my problem. I'm trying to build a very simple Accordion Menu, which happens to be working well so far on every browser except Internet Explorer. So, this is how I build my html: <div class="bloc"> <h3 class='section-title'>Processing</h3> <div> <ul> <li><a href='#'>Britney Revisited</a></li> <li><a href='#'>Dancing Circles</a></li> <li><a href='#'>Helvetica</a></li>
[jQuery] Response not working after page has been loaded by jQuery Load
Hello all, I am trying use the Load function and it looks partly succesful: the script code is: function doCallBack(action, value) { if (action == 'projlokatiemutaties') { var test = $("#ct100_Inhoud__pnlLokaties"); var params = "project.aspx?ch=1&ph=1&cb=center&content=" + value; test.load(params); } } when this code is executed 'project.aspx' is loaded and I am able to query the params. This happens in the code behind: protected void Page_Load(object sender, EventArgs e) { HandleCallBacks(); }
Submitting sortable item values, not just IDs
New to the forum, lets hope you guys can help out. Rather complicated one. I have a sortable with has nested content in each sortable item: <ul id="sortable"> <li id="item_1">item 1<div>content i want to get</div></li> <li id="item_2">item 2<div>content that i can change dynamicallyt</div></li> <li id="item_3">item 3<div>content i want to get after form submits</div></li> </ul> I have a submit button which serializes the sortable so I can save the changes of the order. I also want to save the changes
[jQuery] Draggable problem
Hi, I'm working with draggable, and basically what I'm trying to accomplish is having one item on my screen, that can be dragged anywhere, and uses "helper:'clone'", so it still sticks to its main location and can be cloned N times. It all looks good, but I just realized that although cloning is possible, it always keep the same ID. Also, when I drag it from one side to another it never stays where I dropped it, but stacks up on the left hand side. I've put up a quick example, so you can understand
[jQuery] [treeview] Menu Collapses Instantaneously with Animation
Hi, I was trying out http://jquery.bassistance.de/treeview/demo/ Sample 2 with IE 8 in IE 7 mode. The menu animates and opens. When I click to close, the menu collapsed instantaneously. However, it is working perfectly in IE8 mode i.e. the menu animates while closing up. How do I fix this for IE7? Thanks. /lim/
[jQuery] Textarea autogrow plugin: IE6, IE7, IE8 and Opera problems
Hi everybody, i am having trouble getting the autogrow.js plugin to work properly in all versions of IE (of course!) and Opera. plugin link: http://plugins.jquery.com/project/autogrow Opera just seems to make the textareas ridiculously tall for some reason, but IE actually throws up a scripting area when .autogrow(); is activated. it brings up an error in jquery.js line 12 saying "invalid argument". i am thinking this could be to do with the fact this plugin was developed for jquery 1.2 and that
Sliding images
Hi! I'm searching for a plugin that slide from right 5 images (5 horizontal buttons, like a menu) and stop the sliding in a position that i decide. How to do this? PS: the sliding must start when the page loads. Thanks, Stefano.
[jQuery] How to deterine number of words in a string?
Hi all, <div> </div><div>Any jquery plugin can check number of word in a string instead using of .length?...</div><div> </div><div>Many thanks.</div><div> </div><div>Conrad</div>
View and Edit JSON Quickly and easily with a desktop app
Check out JSON Pro Viewer. http://www.jsonpro.com It's a cross-platform desktop application written in jQuery and Ext JS that allows you to work with JSON with ease. I got tired of sifting through compressed and minified JSON and created this tool to make my life easier.
[jQuery] Multiple JDialog on the same Ids
Hi everyone, I'm running in a bit of trouble with some JDialogs. I had a form where everytime you checked a checkbox an AJAX request was sent and depending on the AJAX request result a JDialog was load and everything was working just fine. Now i was requested to add a 'Check all' checkbox. "Easy !" was what i thought, since my AJAX request is sent on the checkbox 'change' event i had the following code : $j('#selectAll').click(function(){ var bIsChecked = $j('#selectAll').attr('checked');
[jQuery] changing style attributes.
OK, been banging my head with this for a while. I have a dynamic site where we get a list of elements from the database, we identify these items with id numbers and encoded get strings. So I'm trying to get style changes to take affect with jquery and it really just doesn't work. I'm not sure what I'm doing wrong. Here is the source code: <html> <head> <script type=text/javascript src=/scripts/jquery-1.3.2.min.js></ script> <script> $(document).ready(function() { $("#this=thing&that=more&bing=bang_anchor").click(function()
Jquery Datepicker
I want to use the jquery datepicker, but I need the value to be stored in a mysql database. Can someone help me with this? Thanks in advance! BD
[jQuery] inserting new record
<div>Hi..</div> <div> i have some doubts in usage of jqgrid. I am trying to achieve fallowing functionality.</div> <div> </div> <div>I have insert and edit functionality in same form. Now i have one field called "UserName", which i don't want to edit. so for that i make it readonly as following:</div> <div> </div><font size="2"> { name: </font><font color="#a31515" size="2"><font color="#a31515" size="2">'UserName'</font></font><font size="2">, index: </font><font color="#a31515" size="2"><font color="#a31515"
[jQuery] Problem with sorting after dragging.
Hi, I'm using Jquery to both Drag (and drop) and sort a visual list or representation of VOIP phones. The problem is that after I have dragged (and dropped) a DIV. It will not sort at all anymore. After you have dropped for sorting, the DIV goes back to where I dropped it with dragging. I have tried several thing including disabling sorting just when starting to drag and enabling it back when dragging is stopped. This does not seem to help at all. Anyone can help me with this? I would appreciate
Simple but stupid
Hey Guys, I am making a jQuery keyboard shortcut to open a url. <script type="text/javascript"> var isCtrl = false;$(document).keyup(function (e) { if(e.which == 18) isCtrl=false; }).keydown(function (e) { if(e.which == 18) isCtrl=true; if(e.which == 76 && isCtrl == true) { alert('Keyboard shortcuts + JQuery are even more cool!'); return false; } }); </script> This is what i have so far, works fine with ALT+L and it opens up the Alert box with the text, however i need to change the alert code.
JQ Coda-Slider and Wordpress
Hi, I'm trying to integrate a coda-slider with Wordpress, and I'm not having much luck. Everything, but the actual sliding effect seems to be working fine. I have disabled the CSS command that hides overflow to demonstrate all this. http://s176493904.onlinehome.us/nass/, is my blog. If anyone could help me out it would be greatly appreciated.
[jQuery] [treeview] Basic documentation - but where?
Hi, I have today started to mess around with the Treeview plugin, but I have not been able to find a decent documentation. Am I just looking in the wrong places? I would have thought that by going here - http://docs.jquery.com/Plugins/Treeview/treeview#options I would see all the available options, and a description of them. I have looked in the demo.js file from the download, and can see that an option called "control" exsists. But I have no idea how to use it - from the examples I can see it can
Draggable on center of droppable zone
how to clone a draggable item into center of the droppable zone? try this...try to drag 3 images...are always append!!! http://selfsolution-test.it.net/test/lu ... index2.php
[jQuery] after together with load
Hi, I am trying to dynamically load html into a table, i.e add new rows in the table if a user clicks on an element in the table. Calling code : <TD><a href="#" onClick="javascript:AddElement('someVal', 'someOtherval');return false;">Click ME</a></TD> No problems there, I have a function : function AddElement(someval, i) { $('.mytable').load("http://www.someURL.com/?page=moretabletest"); } I have tried using the .after method (I am not sure if that is the right terminology). $('.mytableRow').after('<tr><td></td></tr>);
Can anyone duplicate this?
I found one of the best looking slideshows in jquery on this page http://btk.name/jquery/slide/ however I have copied over every html, javascript, css file and images and It just will not work like it does on that page. Can anyone else successfuly copy this over and have it work because I can not figure out what would cause this?
[jQuery] JQuery method to update one form element with value from another
I need to make a change to a web page that has lots of JQuery things in it, it appears. Not knowing anything about the actual use of JQuery, however, while I will start looking at the doc, can someone help me with what to look for in a 4000+ line file to find out where the value is being set for the hidden field. I have been unable to identify this. There appears to be no onChange or onSubmit JavaScript call. I have been given this file with the need to figure this out right away, with a very tight
[jQuery] autocomplete
Hi, I am using the autocomplete on local client array , and want know how can i allow user to key in the text if autotext could not find any results. your help is greatly appreciated. Thanks, sush
[jQuery] newbie question.
What does this do? (function($) { do some stuff } )(jQuery);
[jQuery] tablesorter, sort values in anchor as numerics
I have data that looks like that <a href='myURL/myapp?name=myname¶m1=val'>23</a> <a href='myURL/myapp?name=hisname¶m1=val1'>9</a> I need it to be sorted numericaly by values between ></a>. How do I do that?
[RESOLVED] I need help with this country dropdown list
I have this code I am trying to get to work below. What it should do is if USA or Canada are selected from the counrty dropdown, then it should populate the state list with ajax, if another country is selected, then it should hide the country dropdown list and show the "otherstate" text input box Someone helped me write this code because I am not good with javascript so any help would be great. Currently the page loads and country dropdown is shown and an empty state dropdown, when I select any country,
Refactoring question
New to jQuery, but not to programming JS. There has to be a cleaner way to do all this: $("#guest1pay").click(function () { addamounts(1); }); $("#guest2pay").click(function () { addamounts(2); }); $("#guest3pay").click(function () { addamounts(3); }); $("#guest4pay").click(function () { addamounts(4); }); function addamounts(num) { ...do_something } Is this something for .each? Thanks.
jQueryUI Dialog + MVC Login - Don't close if unsuccessful?
Hello all, I've new to both ASP.NET MVC and jQuery stuffs. I'm using the jQueryUI dialog to displays the built-in MVC login form (load the form like an iframe content.) How can I keep the dialog opened upon unsuccessful login? (wrong user/pass, etc...)? Right now when the user click the Login button, it closes the Dialog and redirect to either "success" page (if valid) or redirect to the login page again, but I would like it to not redirect and close the dialog upon unsuccessful login. Thank you,
[jQuery] Combine JQuery objects question
who knows if it is possible to join two jQuery objects to make a new object. For example... var e1 = $("#firstObject"); var e2 = $("#secondObject"); var combined = e1.add(e2); // This is the expression I'm looking for Thanks, http://www.voguemalls.com
Next Page