[jQuery] question re: .live() and .empty()
Hi All, Wondering if someone knows the answer to this: Using jQuery 1.3.2, if some items inside a div have events bound to them via .live() and then .empty() is called on the div will the events that were bound via .live() get removed? The .empty() doc says: http://docs.jquery.com/Manipulation/empty Note that this function starting with 1.2.2 will also remove all event handlers and internally cached data. But something I'm working on makes me think that the .live() events are not removed. I haven't
making one element overlap another element
hi, is it possible to programmatically make one div element overlap another div element. right now, i am stuck with having two elements on my page which overlap and one of those elements is "behind" the other when i want it the other way around. thanks,
using css to change position of a table
hi, i have this table on my html page: <table id="t_menu_options" width="125" border="1" cellspacing="0" bordercolor="#F9F9F9"> <tr> <td colspan="2"><font size="-2" face="Verdana"><strong>Options...</strong></font></td> </tr> <tr> <td width="15%">></td> <span id="edit"><td><font size="-2" face="Verdana"><span id="et">Edit</span></font></td></span> </tr> <tr> <td width="15%">></td> <span id="delete"><td><font size="-2" face="Verdana"><span id="dt">Delete</span></font></td></span>
[jQuery] Help with simple function
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.6001.18226" name=GENERATOR></HEAD> <BODY> <DIV><FONT face="Trebuchet MS" size=2><SPAN class=270473821-30052009>Trying to click hide contents of div, show loading, hide loading and fade new contents in when loaded.</SPAN></FONT></DIV> <DIV><FONT face="Trebuchet MS" size=2><SPAN class=270473821-30052009></SPAN></FONT> </DIV> <DIV><FONT
[jQuery] [ANN] 2 Ajax plugins for jQuery +1.3
Hi All I never actually announced these 2 small plugins I made right before jQuery 1.3 was released. They're meant to provide users with a nicer way of using certain new ajax features that could be conflicting otherwise. Here's the link: http://flesler.blogspot.com/2009/05/2-ajax-plugins-for-jquery-13.html Cheers -- Ariel Flesler
[jQuery] Browser autocomplete & posting forms.
Hello I kinda typed this text in already, but thread did not appear so im writing it again. Hopefully somebody clears up duplicate threads. $(function(){ $('input').keydown(function(e){ if (e.keyCode == 13) { $(this).parents('form').submit(); return false; } }); }); This script handles it very well, but it has some problems. Specially with browsers autocomplete. When i use this script and
[jQuery] Posting form when pressing enter.
Hello $(function(){ $('input').keydown(function(e){ if (e.keyCode == 13) { $(this).parents('form').submit(); return false; } }); }); This script handles it very well, but it has some problems. Specially with browsers autocomplete. When i use this script and start typing in a value into form, then it offers complete word. When i press key down to choose it and press enter to select it, the
[jQuery] How to delete unneeded function out of Jquery?
Hello , I'm wondering how to delete unneeded functions out of jquery. (this could strongly reduce the file size!) Can somebody tell me more? For exemple: I don't use the "text( )" function and want to delete it.
[jQuery] Autocomplete Question
I am using jquery.autocomplete in a search for schools. I have optional fields (referenced as extraParams) which allow the user to narrow the search to a specific state and city. This part works fine. If the user selects a state and city and then initiates the search be entering a value into the autocomplete field, then everything works well. My issue is that I need to execute the search and return results to the autocomplete field when the user selects a state (and nothing has been entered into
[jQuery] problem displaying ajax data in Firefox (not IE, chrome)
Hi all. I'm pretty new to jquery and javascipt in general. I've had fun so far and I'm really enjoying using jquery. So far most compatability problems I've experienced have been down to IE (trailing commas in arrays, etc). This latest problem stops a page which works great in IE and chrome working at all in FF. The code below basically loads a table of data by post request. Then applies various functinalities to the elements contained within the loaded data. In FF the table which should be loaded
jQuery with PHP - dead as a dodo
I have a (client) PHP page which makes a jQuery call to a server PHP page. The elements of the jQuery code designed to work on the client page are working fine (select enable/disable) but I am getting no response from the server PHP page whatsoever. On the client page I have a couple of menu selects, the second (selectAdminGroup) being populated as a result of the selection on the first (selectDocZone)... <form action="testClient.php" method="get" name="form1"> <table> <tr> <td>
Weird problem with global variables
Hi, am new to JS and I thought to start with jquery since it really make things much easier. So, i made a little script as following function JoinNewsletter() { var dbTransaction = 0; $.ajax({ 'url': 'newsletter.php', 'data': { 'name' : $('#name').val(), 'email' : $('#email').val() }, 'dataType': 'text', 'type': 'GET', 'success': function(data) {
Problem while using Ajax Event i.e ajaxError
HI i have just used Jquery Ajax events i.e. ajaxStart, ajaxError, ajaxSuccess The ajaxStart and ajaxSuccess works fine, but my program cannot trigger ajaxError if any mysql error occurs. On my registration form i have included mysql connection file, but for testing purposes i have entered the wrong password for DB. In that same, when i click on submit button, it cannot trigger ajaxError event. Do tell me how can i use it. here is my code submitHandler: function() { // When Ajax
[jQuery] Tree View
Is there any treeview component or plugin which gives services like "keyboard navigation"? I found one "jstree" which is great. But is there any such plugins available? Please let me know if you have such bookmarks :)
[jQuery] maximize window
Hi, Does anyone know if there is a possibility of maximizing a popup window opened with window.open()? (Like when clicking the maximize button of the window, not by resizing the window to fit the whole screen) Thank you. Octavian
[jQuery] .length value different in IE vs FF
I have a pretty simple character counter to count the number of character typed by a user.. broadcastSubmit = $('#broadcastSubmitButton'); broadCastMessageDiv = $('#broadcastMessage'); availableChars = 140; charCount = $('.char_count'); boilerPlateKeyword = $('#boiler_plate_keyword'); boilerPlateKeyword.text(keyword.toUpperCase()); broadCastMessageDiv.bind('keyup', function() { broadCastDiv = $(this).val(); previewContentWindowTextLength = broadCastDiv.length; boilerPlateText = $('#boiler_plate').val();
[jQuery] The Assignment of Functions to Tags that Are Not jQuery Methods
QUESTION: I once read in this forum that it is a good idea to limit the number of "new" jQuery methods and write as much script as possible outside of the jQuery framework. If this is true, then how does one go about assigning functions to tags, if they are not themselves jQuery methods that one creates. BACKGROUND: In my eagerness to get up to speed quickly I began turning every function into a jQuery method. This may be contributing to some of my difficulty. Roddy
[jQuery] Clarification of the Basics
QUESTION: Do $.prompt(temp) and $().prompt(temp) mean the same thing? If they do not mean the same, how are they different. Roddy
[jQuery] tablesorter bug: th with colspan
Hi all, I sent an email to the jquery-plugins list before noticing that it seems to be defunct. I'll quickly try to recreate from memory here... I tried to get tablesorter to sort a table looking something like this: <table> <thead> <th>One</th> <th colspan="2">Two</th> <th>Four</th> </thead> <tbody> <tr> <td>1</td> <td>2</td> <td>3</td> <td>4</td> </tr> ...etc... </tbody> </table> But if I try to sort by 'Four', it will sort by the third column instead. So, here is a
[jQuery] treeview - way to ignore a list from treeview
I am displaying some lists, and some of the list li's display user generated content. Some of that conetnt seems to have lists in them. Is there a way to specifically say that treeview should only process certain uls or lis and ignore others? e.g. <ul class="filetree"> <li> <!-- begin user content --> <ul> <li>my user list</li> <li>my user list</li> </ul> a paragraph <!-- end user content --> </li> </ul> I'd like treeview to ignore the ul in the user content. TIA
[jQuery] Superfish
hi..I know this may seem like a gay question, but I am a lowly newbie to your navigation and I am in desperate need of some help..you the code gods I call upon to impart some knowledge to me.. please see here: http://soulandsportventures.com/_allother/_admin/_helpme/index.html I am using the very basic of your menu and I just want to know how I get this freaking thing to auto expand to the width of the container it is in..or if that isn't possible..where and to what do I add padding to to make this
Works inline, but not in external file??
heya guys, this is probably really simple, but can anyone tell me why the following code [code] $j("div.set2 #cross-slide").livequery(function(){ $j('div.set2 #cross-slide').crossSlide({ sleep: 2, fade: 1 }, [ { src: 'set2/picture1.png' }, { src: 'set2/picture2.png' }, { src: 'set2/picture3.png' }, { src: 'set2/picture4.png' }, { src: 'set2/picture5.png' } ]); });[/code] Would work fine inline inside script tags, but would instantly stop working when I move it to its own external .js file I have
[jQuery] superfish horizontal nav-bar css help needed
Hi there, I've spent a lot of time trying to tweak the superfish horizontal nav-bar to fit my specifications. Hopefully someone can help me out. I keep breaking the menu! Here's what I am trying to do, I would like to center the main and sub nav buttons, they are currently all aligned to the left. The other thing I want to do is change the height of the main nav to 57px and directly underneath that, I want the height of the subnav to be 27px with the text still aligned in the center of the buttons.
[jQuery] Click Tracking - Works In IE Only
Need to know why this code below records the click in IE but does not record the click in FF or Safari. a.adBanner is an internal link within the same domain. Thank you in advance. $('a.adBanner').live('click',function(){ var provider_id = $(this).attr('id'); var providerid = provider_id.match(/[0-9]+/g); $.get('../lib/bannerTracking.php', { pid : providerid }, function() { }); });
Help, simple Problem...
Hi, I have a problem with a small jquery code: $(function() { $(".nav").click(function(event){ var url = $(this).attr('href'); alert(url); $("#content > *").slideUp(); $.post(url,{ ajax: "1" },function(data){ $("#content").hide().append(data).slideDown(); }); return false; }); }); Everytime I click on one of the buttons alert(url); shows undefined. I can't find the mistake... can you help me please??? I have a 2nd Problem: also with the Code above: The link klicked on is removed an a new one
[jQuery] Jquery Sending of message
Hi everyone, I am developing a mass mailer website and I would want the mailer to have a dim effect while sending email messages to lots of emails. Its something like the thickbox. The background is dimmed and only an image is in the center and that image can be the loading gif image. and when the process of sending is over the dimmed background should be closed. Can you guru's help me out on this? Ive been searching also and I cant seem to find similar aps on the net. Thanks
[SOLVED] toggle layer, click to show one and the rest hides
I use toggle in a menu to show submenus, but if I click on one and then click on some other link to toggle another submenu, the first submenu is still visible. Is there someway to change my code so if I click to show one submenu, all the other submenus hides at the same time? Now my code looks like this: <script type="text/javascript"> $(function() { $('a#m1toggle').click(function() { $('#m1').toggle(); }); $('a#m2toggle').click(function() { $('#m2').toggle();
[jQuery] Superfish: How do I force the menu to close
I am using the Superfish extension with HoverIntent and it works great, but the biggest complaint I'm getting is that the menu tree isn't closing when a user clicks on a terminal branch of the tree until the mouse is moved off the menu. I've coded an OnClick event to launch the page in a frame and call doClearMenu(), but that's where I'm stuck. I'm think I just need to clear the timer, but my JavaScript skills are fairly basic and I'm not sure how to do that. Any help would be great. Here's basically
JQuery: Image slider panels issue
Hello everyone, Thanks for taking a look at my question. I am using a theme from themeforest (http://themeforest.net/item/business-pr ... view/30008) When I setup the theme locally on my computer using MAMP the image slider worked great. After I moved the site to a live server the 3 images in the slider stacked on top of each other, and the slider effect was broken. I have taken a look at the source code between my live site (http://ignightbuildingservices.com/blog/) and the theme link above and
[jQuery] modal and bgiframe
Hello, I have these problem. I have a modal dialog, it was with bgiframe=true, and it was working. Then I put the tag : <script type="text/javascript" src="../jquery-ui-1.7.1.custom/js/ jquery.bgiframe.min.js"></script> and it stopped working. I thought it was that , but I've removed the tag and it still doesn't work. It opens the dialog but instead of the mask , appears a "false" (the string) and no mask. Another issue that I have, is with a z-order of one combobox, that when the masked worked,
[jQuery] Check/Uncheck boxes help...
I have a form where I have 'checkbox sections'. So, basically, what I'm trying to do is to determine if one of the checkboxes that belongs to the parent checkbox has been changed and based on whether or not something is checked, it will check the parent checkbox...if none are checked, it will uncheck the parent checkbox. I have the following, which of course, doesn't work. I can't seem to get the siblings line to work, which I need to determine if any other checkboxes are selected... Any ideas? As
[jQuery] Setting TreeView placeholder
I am currently loading the TreeView asynchronously and I'm trying to set it up so an animated gif displays while a node is being expanded and its child nodes are being created. Currently it just says placeholder until the child nodes are done loading. Can anyone offer some suggestions as to how I can set that? Thanks in advance.
[jQuery] dynamically-generated images
this has to be simple, I'm just brain-cramping on a Friday... I have a link that generates an image dynamically. What I want to do is have the image show up in another place on the same page. So something like this: <a href="generate_my_image">generate</a> <img id="document-image" /> And then my JS looks like: $(document).ready( function () { $("a").click(function(event) { $('#document-image').attr('src', this.href) event.preventDefault(); }); }); But when i do this, I get a message from my app server
[jQuery] change parent div height after child
Hi. I have the following layout. .panel { position:relative; width:580px; height: auto; /*overflow: auto;*/ padding: 4px; } .panelContent { position:absolute; top:18px; left:0px; width:580px; background-color:GrayText; } .rptViewer { clear: both; text-align:center; /*height: 95%;*/ width: 95%; margin: auto; } <div class="panel"> <div class="panelHdr"> Expense Categories </div> <div class="panelContent"> <div class="rptViewer"> <br /> <rsweb:ReportViewer ID="ReportViewer1" >... </div> </div>
[jQuery] Select box// onchange in niceform doesn't work !!
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#993399"> <font size="-1"><font face="Calibri">Hi Guys , I am using the niceforms.js to change the look of the fields. but came to know that the onchange event for select boxes in such a form doesn't work, as the niceforms.js replaces the select box with divs Any one have any solution, how to implement the onchange event in such a situation, or any work around. Any kind of help is appreciable
[jQuery] Issues with my Dynamically Placed Table
Hey Everybody! I'm having an issue that I really hope some nice person can give me a hand with. I am pretty new to Jquery and I'm really getting confused. I am currently working on this page: http://www.empirepatiocovers.com/MetroBlack-Patio-Covers1.aspx (FYI: a lot of the page functionality does not work. We will be adding proper functionality eventually) There is a dynamically placed table that is pulling data from our XML sheet. This works beautifully. However the page needs to ultimately look
[jQuery] Validate
I've been working with JQuery for a few months now, and I wrote a register form validation script and everything works perfectly in FireFox, but I just recently checked it in Internet Explorer (Version 7) and nothing works. I've tried taking it apart and examining different parts of the code, but haven't been able to crack it. The error I am getting is: Line: 86 Character: 9 Code: 0 Error Message: Expected identifier, string or number The link to the site is: http://mercury.hamilton.edu/devmpstone/iFriends/
jQuery broken in IE and Chrome but not Firefox
I have an issue in which any and all jQuery function calls are broken in Internet Explorer and Google Chrome but it functions properly in Firefox and even Firefox doesn't give me any Javascript errors. I can't see why it isn't working. http://www.darkscribes.org/site/index.php That's the site I'm using jQuery on and it is totally broken on it.
[jQuery] Treeview: persist lost on anchor links
I'm encountering a problem with the Treeview plug-in in that when a page link navigates to a different page with an anchor link, the Treeview's persist:location fails since it can't understand the URL (pagename.aspx#anchor). How do get Treeview to understand that pagename.aspx and pagename.aspx#anchor are the same?
Jquery Sending of message
Hi everyone, I am developing a mass mailer website and I would want the mailer to have a dim effect while sending email messages to lots of emails. Its something like the thickbox. The background is dimmed and only an image is in the center and that image can be the loading gif image. and when the process of sending is over the dimmed background should be closed. Can you guru's help me out on this? Ive been searching also and I cant seem to find similar aps on the net. Thanks
Next Page