[jQuery] Drag Drop (sortable) questions
Hi, I'm trying to use the Jquery sortable (drag/drop) Everything works well but I need help on 2 topics. First, when I dynamically add portlets, I recall this function : $('div.portletHolder').Sortable(.....); Otherwise, the portlet is not draggable. Is there a more elegant way to accomplish this? To add a new portlet I use this function portlet="htmlcontent"; $(portlet).prependTo("#column1"); Is it possible to add some code to add the drag/drop functionnality to the newest portlet? Knowing that
[jQuery] Form Plugin: access xhr object
Hi all, I'm quite new to JQuery and started using the Form Plugin found here: http://malsup.com/jquery/form/ In my success callback I am trying to get hold of the XmlHttpRequest instance that was used to make the Ajax request. However xhr does not seem available from the arguments passed into the success callback? Looking at JQuery docs the ajax function does return xhr instance, but how to get access when using the form plugin? The reason for this is server side returns certain response headers
[jQuery] Can't save jEditable value
Hi all! I'm using jEditable. I can modify my textarea, but the changes aren't saved in my database. It only appears on the page, but after some reload, it's the "old" version. Here is my code: <script type="text/javascript"> //<![CDATA[ $(document).ready(function() { $('div.demo-show:eq(0)> div').hide(); $('div.demo-show:eq(0)> h3').click(function() { $(this).next().slideToggle('fast');
[jQuery] jQuery XML to JSON Plugin v1.0 and file size problem
Hi Gang, Im using the xmltoJSON plugin. It works fine for an xml file of 300kb or so. Im loading the file from an ajax call to a local file. Im going to have some big xml files, so I tried making some big file tests. I tried to load a 7.5MB xml file and it 404s on me. Is there a file size limit setting somewhere or a way to know what the max file size I can use is? Thanks for the help. DE
[jQuery] IE7 Hover problem
Hi, I've got a simple page here with a mouse-over effect using .hover to change the background position of the image:- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Untitled Document</title> <style type="text/css"> #iconsmenu { position:relative; background:#ccc; width:600px; height:110px; left:92px;
Cycle Plugin & JQuery.Preload
HELP ME PLEASE!!!! The following (JQuery.Preload coupled with the cycle plugin)does exactly what I wanted in Firefox (preload images with a fancy-schmancy loading .gif before showing the cycle), but in IE it's pure crap. Please help me sort this out. <script type="text/javascript"> jQuery(function( $ ) { $('#loading').fadeIn('fast'); $.preload( '#gal img', {//the first argument is a selector to the images onRequest:request, onComplete:complete, onFinish:finish,
[jQuery] Link anchors with divs
Hi, I've got what I think is probably a simple jquery question. I have a series of anchors, and a series of divs later in the HTML. I want to bind the show event to a div when the corresponding anchor is clicked. I have applied a class to all anchors and all divs, but what is the best way to relate the 1st anchor to the 1st div etc Many thanks! -- View this message in context: http://www.nabble.com/Link-anchors-with-divs-tp18618511s27240p18618511.html Sent from the jQuery General Discussion mailing
[jQuery] Problems with two .ajax calls on the same page
Hi, I'm seeing a strange problem(?) 1. <a href="javascript:settings('foobar');">foobar</a> 2. The js-function settings(page) loads a page and puts the content in a #div with .ajax 3. The content loaded contains a form with id="blahform" 4. $('#blahform').submit(function() { alert("foo"); }); doesn't work, why? Regards, jonas
[jQuery] Autocomplete: different name for "q"? is this possible?
Hello, Thanks for the cool plugin, it's very useful! I plugged in Autocomplete in my application. I'm using a query variable "q" throughout my application. Now i seem to be having a conflict with the Autocomplete query variable being named "q" too. Can i change this somewhere? For instance to "ac"... Best, Toon Severijns
[jQuery] How to created named nested boxes using dialogs?
Would it be practical to have a user-created structure of nested boxes using a combination of - dialogs - in-place editing of the name of each box - drag-and-drop to change the structure Any pointers on where to start appreciated, the more detailed the better. Thanks - Sophie
[jQuery] Error with custom method
Hi, I try to make a custom method which indicates if the field "room Number" is available. And I have this error : jQuery.validator.methods[method] is undefined with this code : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/ TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <link href="style/cmxformTemplate.css" type="text/css" rel="stylesheet" /> <script
[jQuery] add eventHandler on <tr> element with existing action()
Hi... I'm trying to add an onClick eventHandler to a Menu Item using javascript. The problem is that the elemen allready has an action: <TR action="onActionMenuClick('applyrule', 10001)" id="_MIonActionMenuClickapplyrule10001"> I need to set a checkbox BEFORE the call to onActionMenuClick... I have tried setting onClick, attachEvent and so on... nothing works... onActionMenuClick is allways called, not the eventHandler I'm trying to add... Please help... Thanks
[jQuery] Cycle Plugin + Jquery.Preload Plugin
Could one of the javascript gurus please assist me with this? This works in firefox, but does nothing at all in IE. I have no clue as to how to make this right:( <script type="text/javascript"> jQuery(function( $ ){ $('#loading').fadeIn('fast'); $.preload( '#gal img', {//the first argument is a selector to the images onRequest:request, onComplete:complete, onFinish:finish, placeholder:'http://farm4.static.flickr.com/
[jQuery] onLoad Confirm and Redirect
I'm new to the JQuery world and was trying make a Confirm message popup to enter a website. The user has to agree before entering and ifthey do not agree it sends them somewhere else. My start code is below, can somebody help me with how to add this as a onload when somebody enters the site and a re-direct if they choose NO in the confirm? Much appreciated in advance.. [code] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Untitled</title> <script src="jquery-1.2.6.min.js"
[jQuery] Superfish: menu hidden by adjacent image; menu positioning
Hi, I'm working on this design w/Superfish. http://expdesign.net/clients/el Notice that on IE6, some of the menus, like "Hot Topics" are hidden by the menu image adjacent. Is there any way to correct this? Also, in order to get my first level drop-downs to be positioned properly, I had to style each <ul> with width and margin. Is this OK to do? Thanks, Ben
[jQuery] Remove plugin method from element?
I am working on a plugin for the chyrp blog engine where the core javascript has already applied the autogrow jquery plugin to all the textareas on a page. I am trying to unobtrusively disable this plugin on a specific textarea (since the tinyMCE WYSIWYG code conflicts somehow with the autogrow script). autogrow is applied like so: $(document).ready(function(){ $("textarea").each(function(){ $(this).autogrow() }) }); I have read this thread (http://groups.google.com/group/jquery-en/
[jQuery] Need a little assistance mapping event source to AJAX callbacks
I have a decent amount of JQuery success under my belt at this point but I am in need of some page / request architecture help. I have a table of user data, one row per user. Each row has a 'change role' button wired up with a click handler that makes an ajax ($.ajax) post to a webservice. Response times are 3-5 seconds, but the general goal is to let the user move onto other rows in the table and trigger the same event for a different record. Assume that the responses from the webservice are generic
[jQuery] Pass custom data through to $.ajax success callback
I am looking for a way to pass a custom data object through to the $.ajax success function. Specifically, I want to pass a <tr> DOM reference so that when a specific request completes I know which table row from which to remove my activity indicator. I've scoured the docs but can't see the way to do this with JQuery. Thank-you
[jQuery] Getting previous value from the drop down
Just starting to explore JQuery.... What I am trying to achieve is to compare previous value & selected value of a drop down and then display a message. I am stuck as to how I can retrieve previous value before the made the selection. Here is what I got so far: jQuery(document).ready( jQuery("#status").change(function(){ alert(" You are changing status to :" + this.value); }); })
[jQuery] jQuery and charset encoding
Hey everyone! I'm startint to work with jQuery and trying to learn from it but I am stuck with a little problem. I use jQuery's ajax to query a server which returns a page encoded in iso-8859-1, but when I display those pages, of course all the special caracters can't be displayed (french accents). From what I have read, jQuery converts to UTF-8. The problem here is that I cannot acces the server's page to change the page to utf-8. Is there any ways for jQuery not to change the encoding it received?
[jQuery] autocomplete: Hide from an event handler
I'm using jquery autocomplete (the version from Jörn Zaefferer) in conjunction with superfish jquery and I would like to hide the auto- complete UI from my superfish onBeforeShow event handler but I'm having a hard time figuring how to get a grip on autocomplete's hideResultsNow() method.
[jQuery] Tablesorter 2 and jFrame
When Iuse Tablesorter with Pager and jFrame, the hidden table rows won't open a new form in the jFrame defined div but in a new window. This happens only when I click on the hidden table rows after using pager or sort the table so the hidden rows are visibel, not with the first visible rows. Anyone knows a solution or has teh same problem?
[jQuery] please test my drag events :P
hi... would you terribly mind wasting 20 seconds of your day cruising over to http://internalmedia.com/jq/ and letting me know if clicking the drag handle drags the box as expected? Mouse release of course should be stopping the drag. I'm somehow suspicious that my code actually holds up on some of the lesser-used browsers - especially IE6. And if this works on Safari I should be amazed+happy. THANK YOU!
[jQuery] Help for Prototype / PHP -> jQuery
Hello! I am translating Prototype/Scriptaculous code to jQuery. The Prototype code is partly implemented in PHP functions. Can anybody give me a hint how to translate the "onclick" (example attached) into an according jQuery command which I can place into the head section? THANK YOU! <td class="subject"><a href="#" onclick="Element.toggle(\''. $row['id'].'\'); document.getElementById(\''."replies_".$row['id'].'\').innerHTML = \'\'; document.getElementById(\'reply_form_'.$row['id'].'\').style= \'display:none\';return
[jQuery] build condition properly problem
Hi Gang, I have a noob question. I have a table and some of the td cells in it with an attribute: value="1". I need to build a statement that will find them, add a class to that cell, and 'check' the checkbox that resides in the cell. I tried combining some jquery selectors and attribute methods, but I cant get it right. Please can someone point me in the right direction? Thanks in advance for any help you can offer. DE
[jQuery] click() behaves weird
I have multiple search forms in my application each of them have the same structure with input text fields and a search button. The submit button has an onclick event attached which submits form values with AJAX. For submit-on-ENTER support i added a keylistener to each input text field and bound it to the search button click method for submitting the form. -- jQuery(".search input:text").keypress(function(e) { if (e.which == 13 || e.keyCode == 13) { // ENTER-Key jQuery(".btnSearch").click();
[jQuery] How do I run an ajax request on form submit?
Im new with jQuery and I have quite quickly turned a 54 line script into a 5 line jQuery script :) However all I want to do now is run an ajax request on the form submit but the problem I am finding is that it seems the form gets submitted before the ajax query returns its data - thoughts? <script type="text/javascript"> $(document).ready(function() { $("form#RegForm").submit(function() { $.get("gencode.php",function(response) { response=response.split("\n"); $("#serialnumber").val(response[0]);
[jQuery] jquploader: How to invoke a function after the call completes
Hi, I just downloaded jqUploader. I would like to display what is output by the server side script that I submit my form to by a JS alert message. However, I don't know how to do this and I can't seem to find any such call back functions in the documentation: http://www.pixeline.be/experiments/jqUploader/doc.php Any insight you can provide is much appreciated, - Dave
[jQuery] treeview
I've set up a the treeview js (http://bassistance.de). It works great except everytime you click on one of the main nav buttons the whole page is refreshed. Does anyone know how to fix this? It's driving me crazy!
Using inline javascript and css & load()
Hey guys, I'm trying to use the load() function to load content from a specific div on another page and insert it in to a div on the current page. $("#new").load("/Main_Page #source") It works fine apart from not running any inline javascript that is pulled through. I have use prototype before and the evalScript parameter takes care of this. Am I missing something? Thanks Paul
[jQuery] Autocomplete PlugIn: Some Questions
Hello, I'm testing the Autocomplete PlugIn, and now I have some questions. 1.) Autofill seams not to work for me. When I select an entry, wirde text is display in the textbox. 2.) Is it possible to display icons in the result List? 3.) What is the parse function for? I take my code from the json demo. 4.) How can I send an Ajax Request on select? I mean, when I select an entry using tab, return or the mouse... 5.) Is it possible to send an ID on select, and not the selected Text? Here is my test
[jQuery] .ajax
Is it possible to give an ajax request inside the success method of the .ajax ?
[jQuery] Dynamic jcarousel reload or reset but how?
Hi to all, We are trying to use Jquery based Jcarousel downloaded from http://sorgalla.com/projects/jcarousel/ Our Problem is the following: We have a search form, to filter the result of the pictures to show on a carousel, and it works... but when we try to reload making a new search.. the jcarousel is getting crazy we don't know exactly why? and even in a documentation of jcarousel we saw about reset, and reload status but there is not any example of this even there isn't any solution about it.
[jQuery] Newbie - trying to find and remove specific text but leave the html alone!
I have the following mark up that I want to remove just the text "This is text I want to remove" but I want to leave the <td> in place and expand its size. Actually I want to increase the size of the row containing the text I want to remove. BTW I have no control over the markup and there are tables embedded within tables. I have been semi-sucessful with the following syntax: $(".sub-section-row").filter(":contains( This is text I want to remove)").text(""); However it removes the entire row and
[jQuery] [autocomplete] Submit form on result?
Is it possible to make the autocomplete-plugin submit my form "onResult", as in: If the user chooses one row from the matching result: submit form. Much similar to the way Google Suggest works. Thank you in advance! Carl-Fredrik Herö
[jQuery] mcDropdown plugin Public Methods problems
Hello Dan G. Switzer... or some else... I am using that amazing plugin http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm but a have a problem. I tried using public methods and that don't work. dd3023047132.setValue(56); Firebug said: TypeError: dd3023047132.setValue is not a function dd3023047132 are jQuery object defined at line: var dd3023047132; jQuery(document).ready(function(){ dd3023047132 = jQuery('#id_categoria').mcDropdown("#categorymenu", {select:function(e,t){jQuery('#pgclass').val(t.replace(/[:]/
[jQuery] No isNaN function
Learning Javascript. Windows XP Pro jdk1.6.0_05 jre1.6.0_05 MyEclipse 6.0.1 Firefox 3 IE 7 I was testing an example out of a book, at it appears as though there is no isNaN function. I tested it outside of Eclipse in both browsers by putting javascript:a1ert(isNaN("4")); in the address bar and I get no response. Am I missing something? Thanks, littleccguy
[jQuery] [validate] Allow empty field
Hi all, I'm getting an issue with the jquery.validate plugin. When I add a validation rule to an input field like this : $.validator.addMethod("custom_alphanumeric", $.validator.methods.alphanumeric, "Please provide an alphanumeric value"); $("#ValidationSampleObjectAlphanumeric").rules ("add", {'custom_alphanumeric':true}); The validator check the field correctly ! but when I delete the content of the field, the message still appears. I would like to allow the user to either let empty the field
[jQuery] need help (newbie)
Hi, I am really new with JQuery. I need your expert help. I was trying to show input text titles as value. but couldn't done. here is so far I've reached. $(function(){ $('input:text').each(function(n){ $('input:text').val($('input:text').attr('title')); }) ; }) thanks for the help.
[jQuery] Superfish dropShadows, not disabling
I'm attempting to disable the dropShadows option on Superfish but it isn't doing so. It doesn't appear at first glance in the superfish.js that it actually looks at whether you want to disable or not, but just adds the CSS for the shadows anyway. Any ideas?
Next Page