[jQuery] Form functionaltiy - scroll to top of page on submission
Below is a block of code from a Wordpress plugin called "MM Forms", which handles form creation. The part of the code below deals with what happens when a form is submitted, which I believe is around this part: if (1 == data.mailSent) { jQuery(data.into).find('form').resetForm().clearForm(); mmfResponseOutput.addClass('mmf-mail-sent-ok'); } else { mmfResponseOutput.addClass('mmf-mail-sent-ng'); } mmfResponseOutput.append(data.message).fadeIn('fast'); if
[jQuery] Form functionaltiy - scroll to top of page on submission
Below is a block of code from a Wordpress plugin called "MM Forms", which handles form creation. The part of the code below deals with what happens when a form is submitted, which I believe is around this part: if (1 == data.mailSent) { jQuery(data.into).find('form').resetForm().clearForm(); mmfResponseOutput.addClass('mmf-mail-sent-ok'); } else { mmfResponseOutput.addClass('mmf-mail-sent-ng'); } mmfResponseOutput.append(data.message).fadeIn('fast'); if
[jQuery] claering feilds in div
how can i clear the feilds in using jquery just like reset form in html.if anybody had any idea of that plz tel me
[jQuery] about dragging and get new parent()
Hi I am trying to do something but I did not do this. I am using draggable function. When I stop my dragged element, I want to learn new parent element, if it is true, drop element but if it is not, reverse droping and turn back. <script type="text/javascript"> $(document).ready(function(){ $('#mydiv').draggable({ stop: function(event, ui) { var parent = document.getElementById('mydiv').parentNode.id; alert(parent); } }); }); </script>
[jQuery] problem to implement a page onload inside a ajax function
Hello, i got a JS package that must be call during onload page, like following html page content ---------------------------- <body onload="initTab();"> bababababa babababababa </body> so now i implemented a ajax to load that html page, but it seems initTab() on onload body didnt take any effect after loaded of this page. ajax ----- if (xmlHttp.readyState == 4){ loader_msg.innerHTML = xmlHttp.responseText; } then i made a bit change of that ajax as following ( i take onload body tag out of the
[jQuery] jqModal problem
Dear, I'm using jqModal like code below : <script> $(document).ready(function(){ $("#example").treeview(); $('#dialog').jqm(); $('a.jqModal').click(function(){ var e = $(this).text(); $.get("tab_rule.php", { keygroup : e }, function(data){ //$("#test1").html(data); }); }); }); </script> ... <a id='#' href="?<?=$rli['idseq'];?>" class='jqModal'><?=$rli['key'];?></a></td> ... <div id="dialog" class="jqmWindow" style='display:none'>
slide slideup slidedown the other way
Hi, first of all I find it quite hard to find the right words for what I'm trying to achieve. I want the slidedown/slideup to do exactly the same but flipped 180°. A collapsed container should inflate up and not down. How can I do that?
[jQuery] Dashboard - Drag & Drop Widgets
Hi everyone, I am going to be working on a dashboard for an application that contains 2 columns and several widgets in these columns. (a "widget" will be a block element of various width/heights that will contain text inside) What I am looking for is something similar to Wordpress 2.8 Dashboard where you can drag and drop boxes and your preferences are stored so that you will see your preferred layout any time you come back to the site. Before reinventing the wheel, I was just wondering if any one
[jQuery] Clarify queries
Information regarding ur expectation www.123maza.com
[jQuery] Query information
Try this.... www.123maza.com
[jQuery] Bassistance Tooltip and z-index issue in IE7
Hi, My Tooltip is getting covered by my Flash image gallery. A total bummer. I've tried playing with z-index settings, making the Flash background transparent and the bgiframe fix, all to no avail. The Flash background fix makes the tooltip visible, but renders the flash gallery unclickable. Here's that situation: tinyurl$com/mwlfq6 Bgiframe may be the solution if it's implemented properly, however, I'm not a coder so I'm not sure if I'm implementing it correctly. I'm specifically focused on finding
I can't access to getElementById via jquery!!!
Hi I use this code in basic: document.getElementById("someID").innerHTML = 'someHTML'; But i want to use jQuery to detect the ID. like this: $('#someID').innerHTML = 'someHTML'; But this is not working Any idea?
[jQuery] Autocomplete giving error in Firefox but works in IE 6
Autocomplete not working in Firefox but works in IE 6. Getting an "val is undefined error" in Firefox Error Console which points to the parse() function in the autocomplete.js. Any suggestions? Mind you I'm a newbie at jQuery but advancing decently.
[jQuery] The Truth About Manifesting Money
The Truth About Manifesting Money <a href="http://technology4life.50webs.com/The-Truth-About-Manifesting-Money.html">http://technology4life.50webs.com/The-Truth-About-Manifesting-Money.html</a>
[jQuery] listmenu
hi all, i'm trying to implement the listmenu in my website. I'm able to populate the listmenu with items from my database. Now my question is how to i get the text when a link is clicked. for example, in the letter C there are 2 things for example Coffee and Cafe. how do i get the value Coffee when i click Coffee or Cafe when i click Cafe? if i do: var text = $('.lm-selected').text(); alert(text); and i click on the word Coffee or Cafe all i get is "C" i get the letter C. thanks in advance. Robin30
[jQuery] jQuery Conference for 2009?
Any word on the much-anticipated jQuery conference 2009?
Get variable value and pass it to textfield
Hi, I am new to jQuery. The idea is to use jQuery to create a 30 seconds sample from a mp3 song. What I need from the mp3 file is 2 timestamps, a begin and an end of the sample. These 2 values go in 2 textfields of the current form. I use jPlayer to play a mp3 file. There is a variable called myPlayedTime. This variable changes all the time when the mp3 is playing. I would like to save this value on a certain point when a submit button is pressed. So this is happening: 1. mp3 file is playing 2. myPlayedTime
Re[jQuery] sizing the container in lightbox.js please help
Hello guys I'm pretty new with this and I was able to resize the images in the css with a width-max; 600px; but the container stay big. How can I resize it in lightbox.js? Here is the code // once image is preloaded, resize image container imgPreloader.onload = (function(){ this.lightboxImage.src = this.imageArray[this.activeImage][0]; this.resizeImageContainer(imgPreloader.width, imgPreloader.height); }).bind(this); imgPreloader.src = this.imageArray[this.activeImage][0]; }, // // resizeImageContainer()
[jQuery] Form Traversal Best Practices
So I've always had a couple questions about forms and jQuery, so I thought I'd finally ask and see if I can get a straight answer (they're all pretty simple). First question: When selecting a form element by it's attribute(s), what's the proper format? Do I need the @ or not basically: input [@type="text"] or input[type="text"] I know that both formats work, but I don't know which is preferred. Second question: In regards to performance, is there a "best" order to put attributes in? input[@name^="line_id"][@type="checkbox"]
[jQuery] getJSON items
It is possible to have getJSON() grab all of the data pairs and put them into a js array? Rather than having to know the names of the data?
[jQuery] How to use getResponseHeader using .ajax request with xhr option
The .ajax() request has an option called 'xhr'. I am trying to grab the filesize of a file (html) being requested with ajax. I think that the method used with XHR is getResponseHeader. How would I implement this into the 'xhr' option? I have tried several ways, but all gave me errors on Firebug, such as that getResponseHeader was not defined. $.ajax({ ... ... xhr: function(){ alert( this.getResponseHeader('Content-Length')); }, ... ect I have tried this.getResponseHeader('Content-Length'), xhr.getResponseHeader('Content-Length'),
[jQuery] parseerror on GET from window.location
I'm trying to do an AJAX GET. var q_url = window.location.toString(); $.ajax({ type: 'GET', url: q_url, cache: false, dataType: 'json', success: function(response, textStatus) { ... }, error: function (xhr, textStatus, errorThrown) { alert(textStatus); } }); This triggers the error callback with textStatus == "parseerror". If I hardcode q_url, everything works. Stepping through with Firebug
[jQuery] Outline html elements on hover and click
Hi Am a jquery novice and are trying to make code that adds a hover event to all html elements within a certain container. On hover the element should be outlined by adding/removiing a css class. Thats the first thing and I can't get that to work with the code below. The second part is to keep the element outlined when its clicked, and also when selecting multiple elements by (ctrl+click). Have searched for a outline plugin, but came up with nothing. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
JscrollPane - Using scrollBy function in javascript
Hi all, Thanks for any help anyone could give. I am using Jscrollpane to customize my scroll bars. I have the plugin working but what I am wondering is how to implement scrollBy function to scroll by paragraphs. This is what I currently have: <script type="text/javascript"> $(function(){ // this initialises the demo scollpanes on the page. $('.scroll-pane').jScrollPane(); $('.scroll-by-demo').bind('click',function(){ $('.scroll-pane')[0].scrollBy(parseInt($(this).attr('rel')));
[jQuery] Image resize
Hello Friends , How to resize the image using jquery , Thanks B.S..Bharanikumar
[jQuery] Superfish Nav-bar Style solution for WordPress ?
Hi. Hopefully this request is not off topic. I`m to make a working css solution to use nav-bar style jQuery Superfish menu for WordPress. If someone wants to collaborate on this please mail me. If someone know any tutorials, working solutions or examples I`d be happy to be informed. John Myrstad
[jQuery] Superfish IE question
I'm using Superfish for the first time on this page: http://www.redkitecreative.com/projects/rickett/ In IE7 I'm getting an error with superfish.js, Line: 12 Error: 'jQuery' is undefined Not sure what to do about this, can someone advise?
[jQuery] H1N1 Swine Flu Virus Treatment
H1N1 Swine Flu Virus Treatment <a href="http://www.yourhealthy.we.bs/H1N1-Swine-Flu-Virus-Treatment.html">http://www.yourhealthy.we.bs/H1N1-Swine-Flu-Virus-Treatment.html</a>
[jQuery] WiTricity - The End of Electrical Cables?
WiTricity - The End of Electrical Cables? <a href="http://tech-guide.we.bs/WiTricity-The-End-of-Electrical-Cables.html">http://tech-guide.we.bs/WiTricity-The-End-of-Electrical-Cables.html</a>
[jQuery] KITES ACTRESS BARBARA MORI IN BIKINI
KITES ACTRESS BARBARA MORI IN BIKINI <a href="http://www.topsexymodel.info/KITES-ACTRESS-BARBARA-MORI-IN-BIKINI.html">http://www.topsexymodel.info/KITES-ACTRESS-BARBARA-MORI-IN-BIKINI.html</a>
[jQuery] Bollywoods perfectly curved actress Shilpa Shettys not-so-perfect secret
Bollywoods perfectly curved actress Shilpa Shettys not-so-perfect secret <a href="http://www.onlygirlsvideo.info/Bollywoods-perfectly-curved-actress-Shilpa-Shettys.html">http://www.onlygirlsvideo.info/Bollywoods-perfectly-curved-actress-Shilpa-Shettys.html</a>
[jQuery] priyanka perfect women in bollywood
priyanka perfect women in bollywood <a href="http://bollywoodgirls.we.bs/bollywood-071.html">http://bollywoodgirls.we.bs/bollywood-071.html</a>
[jQuery] Add items to list, is this a proper approach?
I'm trying to create a list, to which you can: 1. add and remove items. 2. according to what's in this list, there should be dynamic content loaded on to the page. I've accomplished 1 with the code below. I'm not sure about how to accomplish 2. If anyone could point me in the right direction (and give comments on my approach on 1 - I'm new to jQuery) it would be greatly appreciated <script language="javascript"> var listItems = new Array(); var currentList = new String(); function listManager(task,
[jQuery] Loop through XML to find children
I have an XML structure like the following: <item> <attr1>1</attr1> <attr2>2</attr2> <attr3>3</attr3> </item> This XML gets returned to me after an ajax post, so I can get the tags using: $(xml).find('item').each(function() { var 1 = $(this).children('attr1').text(); var 2 = $(this).children('attr2').text(); } But, what if I don't want to set those into vars, but push each attribute into an array, even if I don't know the name? Also, could I push them into an associative array so that I the name/value
[jQuery] test post
test post
[jQuery] JSONP & REST webservice
Hi, I want to use JSONP to call a REST webservice. Therefore I need the jsonp_callback parameter added to the URL for GET, POST, DELETE and PUT requests. Regrettably the jQuery library adds this parameter only to the URL if I do a GET request, otherwise the lib tries to add it to the data stream (which a DELETE request doesn't have). Therefore I had to modify the JSONP part in the ajax function and can't use the compressed lib. Is there a small chance this behaviour will be changed in the future
[jQuery] [autocomplete] Drop down doesn't show
Hi, I'm using http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/, but having some problems. When the page im using it on loads there is javascript tracking code loaded at the end of the page. If i click on the text box and start typing before the tracking code has completed loading, the autocomplete makes the ajax request but does not show the drop down. To get the drop down to show I have to click outside of the text box then click it again then all works as normal. If i wait for the
cycle through div's? very elementary but... '*?§$%
It's my first steps with jQuery and I can't get my head around it yet completely... here's what I did: I'm trying to make div's fade In & out. They have all the same class (.info), but depending on which link I clicked I want a specific div to fade in, and all others to fade out. 1. Link activates 1. DIV, 2. Link 2.DIV etc. the activating links also share a class (<a class="showDiv">); It works fine, if I fade all the <div class="info"> at once, but I can't seem to get it work with the index-variable
[jQuery] jQuery hierarchical menu for nondevelopers
Hi, There are dozens of libraries which creates drop down menus: accordion, vertical, horizontal, from JSON, XML data, etc. What I found is missing there is one that will be easy to under, adjust and design to our fella colleges designers and other nondevelopers. So, if you think it is worth make their life easier take a look and let me what you think: http://devbox.computec.de/2009/06/super-sexy-jquery-hierarchical-menu-for-nondevelopers Best Regards, Marko Simic
[jQuery] Debugging tips
Where is a good article or site to find tips on how to use firebug to debug jQuery. I know all about how to debug css and html, so firebug is not new to me at all. However, I'm unfamiliar with its javascript debugging capabilities. Can anyone help? Thanks!
Next Page