[jQuery] Can't get dialog box to appear twice
Hey all. I'm trying to work with a dialog box and when the page has been refreshed, the dialog box appears fine. But if I close it out and try to open it again, it won't open. Here is the code I'm using. $(function() { $("#quickAddDisplay").dialog({ bgiframe: true, resizable: false, height:140, width: 350, modal: true, overlay: { backgroundColor: '#000', opacity: 0.5 }, buttons:
[jQuery] Do events remain is memory when element is removed from DOM?
Is it necessary to unbind events from elements before removing them. As like the following: $("#list").find("li").unbind("hover").remove(); $("#list").html(<<List of New LI's>>); I'm building a plugin, and I want to know if the events listners will remain in memory, as code similar to the above will run every 5 seconds or so.
[jQuery] Using nested ui.tabs - make the most of it!
I have several 'top level tabs' and within some of these I have use a vertical tab list and assigned these a class of "vertical-tab" for css purposes. All is fine styiling wise but... now I want to add a javascript call to the onclick of each tab. for the top (horizontal, non-nested) tabs I want to, say, alert the text if the tab - ui.tab.textContent - no probs - I add the function $(document).ready(function() { $("#tabs").tabs(); var navHeight = $("div#content").height();$("div#navigation-
[jQuery] Translate script [prototype to jquery]
Hello people, I'm new in this group [and also beginner as a translation of scripts] and already i have a doubt. How to "translate" this prototype code for jQuery?: $(document).observe('dom:loaded', function(){ // Select all textboxes and assign them to an array var textboxes = $$('form.awesome input.input-text'); // Iterate through all textboxes in the form textboxes.each(function(input, index){ var label = input.previous(); // TimedObserver to check for autocomplete if (index == 0){
SOLVED: Document initializers ignored when embedded in tab
Hello! I am trying to get up to speed on using the JQuery UI, but I'm stumped by one issue. I have a page that displays a modal dialog, using the following code to initialize it. This is working just fine: // code in page1.html jQuery(document).ready( function() { jQuery("#myButton").click( showDialog ); //variable to reference window $myWindow = jQuery('#myDiv'); //instantiate the dialog $myWindow.dialog({ height: 350, width: 400, modal:
[jQuery] Do replace(), replaceWith() unbind?
Hi, Since the docs don't say - I'm wondering if the replace() and replaceWith() methods unbind events the same way that empty() and remove() do? Thanks, J
onLoad hide a few ms then fade in
Hi, here's another newbie to jQuery. I just watched some tutorials and did a search over here but could not find what I'm looking for. Here's what I want to do. I have a div (#layer1) with some content in it which I want to hide for something like 3000ms and then fade in in about 1400ms. All by itself so not triggered by button actions or anything. Now I understand that jQuery does not have a real delay command so I have to fake something with maybe the $fadeTo("3000,0") followed by the fadeIn command?
[jQuery] Error occurs in IE8
Hello, I've found an error in Line 2853: IE8 stopps with follow Error Message: 'Mitglied nicht gefunden' in Zeile 2853 Zeichen 9 'Member not found' Line 2853 Char 9 This happens with the fixClick Plugin (http://plugins.jquery.com/ project/FixClick) I think the Problem is in the function jQuery.Event.prototype. I have made some modifications on it: <code> // jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding // http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
[jQuery] run part of my jquery code after a postback
Hi I am building an asp.net web application using visual studio 2008 with .NET 3.5 on Windows XP 32 bit machine where I have the server as well. C# and javascript are used. There is contactUs.aspx, once the form is submitted successfully, I want to run the jQuery in the contactUs.js file starting from line 20 (var dataString = 'name=' + name + '&amp;email=' + emailWink to line 40 (return falseWink. How do I wire it up. contactUs.aspx.cs using System; using System.Collections.Generic; using System.Linq;
How to resize table columns
Hi, I'm looking for some super light-weight technique to take an existing table and just be able to resize the column headers. I've seen several jquery table plugins out there that seem to do everything imaginable, but I don't really need any of the fancy bells and whistles. I want to use my existing table structure and styles. Does anyone have any ideas or code snippets I could make use of? Thanks, Jason
Submitting a Tutorial to JQuery.com
Hey, I have created a tutorial using JQuery that I would like to share with the community. How do I submit it to Jquery.com? ..
[jQuery] Check value client side
I want to check a value client side in jQuery. The bool will tell me if the user is logged in or not. Is the only/best way to do this in ASP.NET specifically is with a hidden field? -- View this message in context: http://www.nabble.com/Check-value-client-side-tp25770768s27240p25770768.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Create new DOM?
I'm trying to create new DOM and append it to a div. When the div is appended, I would like it to be shown after 1sec. var e = "<div style='display:none;'>content</div>"; $("#container").append(e); setTimeout(e.show(200), 1000); This code does not work. The HTML is appended but the show-function does not work. Hope someone can help me.
[jQuery] Show: Call jQuery i callback
I have this code sample: $j(".dialogBookingError").show(200).effect("highlight",{},650); I would like the effect first to run after the show is finish. Therefore I try: $j(".dialogBookingError").show( 200, $j(this).effect("highlight",{}, 650) ); But it does not work. Hope someone can help me!
[jQuery] How to replace a normal search box with a dropdown menu search box
Could anybody help me to replace a normal search <input type="text> box & search button with a <select> dropdown menu providing only a limited selection of search items? Can anybody help me with the necessary jQuery code? Thank you!
Calling a method from within a plugin
Hi, I'm fairly new to jQuery and very new to authoring and modifying exiusting plugins, so im hoping someone here can help me solve my frustrating little problem. I basically have a small empty jQuery plugin, with a two functions, which I want to call repeatedly from within my plugin using the setInterval function: jQuery.fn.carousel = function(){ $.extend(this, { previous: function(){ }, next: function(){ alert("hi"); }
[jQuery] $.post cross domain first sends an OPTIONS verb?
I use $.post like so: $.post("http://mydomain.com/some/webservice", $.toJSON({ emailAddress: emailAddress }), callback, "json"); this works great..the response of the POST is a json string and that is used in the callback..now I added https: $.post("https://mydomain.com/some/webservice", $.toJSON ({ emailAddress: emailAddress }), callback, "json"); so it is now a cross domain post...in firebug I see that instead of POST'ing like in the http case..it first is sending an OPTIONS verb..why? The webservice
Right click Menu
Hello ! I'm jQuery newbie and now trying to build an application with jQuery Grid interface. My page is that --- http://djalmabina.orgfree.com/jQueryGri ... _Grid.html I would like to add right-click menus for each one item of XML menu on the left side. However I don't know if explain right this question, I would like know if it's possible with jqGrid library pace right-click menus to add another data to webserver. thanks. [/b]
[jQuery] Please Teach me jQuery Code!!
hello alll, Im a newbie in jquery, I just one know and angered with jquery, why and how the jquery code is: $.ready using dollar sign, anyone can explain me about this (using dollar sign in javascript) and please give me an sample example of this for clearest explanation. thanks, IBS
[jQuery] lightweight multi-select dropdown menu available?
I would like to replace a generic search box with a multi select dropdown menu from which a user can select several items. I found http://dropdown-check-list.googlecode.com/svn/trunk/demo.html . Unfortunately, but with almost 30kb it is too large for my application. Could maybe anybody direct me to a lightversion? If there is no other solution out there, I can settle with a normal drop-down menu. Do I have to work with the change event in order to submit the search item as soon as the user has selected
jQuery tabs problem in IE6
Problem now is here: http://bit.ly/1wo95W In IE6 you have to click a tab twice in order to display its contents. Code: // jquery tabbed interface $(function () { var tabContainers = $('div.tabs > div'); tabContainers.hide().filter(':first').show(); $('div.tabs ul.tabNavigation a').click(function () { tabContainers.hide(); tabContainers.filter(this.hash).show(); $('div.tabs ul.tabNavigation a').removeClass('selected'); $(this).addClass('selected');
[jQuery] autocomplete
Hi, I have this strange problem. I am using autocomplete to help autofill the form text input field width name of streets. User can choose between streets of two towns, selecting the check box. I also added autofill acceptance with pressing ENTER key. Everything works fine until user changes the city by selecting second checkbox. Then ENTER doeas not work, only click action with the submit button fires up the function. You can see this live at: http://www.mikolow.net/zasieg/27 try to type sth in
[jQuery] autocomplete scrollbar not coming in ie
hi, i am using latest version of jquery autocompletion plugin. and have populated an array(input for autocomplete) abt 800 entries. now strangely when i type a letter which triggers large results, i can see a scrollbar in mozilla but not in Internet explorer 7. i have only included jquery.autocomplete.css and jquery.autocomplete.js files in my jsp. should i need to include anything else, what might have went wrong with me? any help? thank you.
Chronic Bounce - Mouseenter Mouseleave
Symptoms: In FF and maybe other browsers, I have a weird bug. When you slowly move mouse up and then just past the top of the search tab you can get the animation into a 'BOUNCE' state. Up and down, Up and down. I want to eliminate this bug like behavior but I can't seem to figure out how. Do you have any ideas or possible work-arounds? I would appreciate it so much! Live code here: http://www.architecture2030.org/temp/re ... 90409.html JQUERY code: <script type="text/javascript"> $(document).ready(function(){
[jQuery] Jquery autocomplete source code and instructions
hi, i have used previous version of jquery autocomplete plugin. now i wanted to use the latest version of the plugin, but i am unable to find the source anywhere! i have checked the site, the link to SVN is also not working. where can i get the plugin and instructions to use it ? any help? regards
[jQuery] Access a certain Button
I'm trying to get reference to a certain button on the DOM. I tried this: $('button#btnRegister').click(function() { where button has the ID of btnRegister. is this right? -- View this message in context: http://www.nabble.com/Access-a-certain-Button-tp25771231s27240p25771231.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Script 'translation' [prototype >> jquery]
Hello people, I'm new in this group [and also beginner as a translation of scripts] and already i have a doubt. How to "translate" this prototype code for jQuery?: $(document).observe('dom:loaded', function(){ // Select all textboxes and assign them to an array var textboxes = $$('form.awesome input.input-text'); // Iterate through all textboxes in the form textboxes.each(function(input, index){ var label = input.previous(); // TimedObserver to check for autocomplete if (index == 0){ new Form.Observer(input.up('form'),
selector
For html below, <h3>header1<span class="ex">msg</span></h3> I use $(h3).click(function(){}); to bind click event for header1, but I don't want to trigger event when msg being clicked. How to write a correct selector. Thanks in advance.
[jQuery] Set property based on sibling width()
Can somebody help me out? I'm trying to set a width of a span class based on the width of the image inside of it. I've got a container that will also have a bunch of images... some of them will have captions and will be wrapped in a class "caption"... some will not be wrapped in the "caption" class. I'm trying to loop through the container... find all the "caption" classes... and then set the width of the caption class based on the width of the image inside of it. Here's what a basic image with a
[jQuery] MooTools and jQuery
I'm developing a site in Joomla CMS which use both MooTools and jQuery. I've created a small, clean page where you can see the problem: http://www.dennismadsen.com/uploads/mootools_jquery/ You can download the source-code from this URL: http://www.dennismadsen.com/uploads/mootools_jquery/mootools_jquery.zip When you run the code, you'll see an error in Firefox Error Console: jqModal.js line 40. Can you help me figuring out how to run this jQuery extension when Mootools is active?
[jQuery] After load() there are two div's with the same ID
Got most of this code from various tutorials and examples, and customized it for my needs. Everything is working great, except for the content replacement function I'm using. We have four DIV's...#menu, #content, #side, and #footer. Any link that is clicked in #menu is setup to hide the #content, load() in the new content from an external file, and then show #content. This is working great, except when the process is all done I have two #content DIV's...looks like the original one is emptied, and
[jQuery] Select by containing text
Is there a way (selector) that would allow me to select an element by exact mach of containing text. example: <div> This is some text </div> <div> This </div> Lets say i want to select only the second div $("div:contains('This')")... okay, it would select it, but...it would also select the first one. I could iterate through each div and check if the text is matching but that's kinda dirty way of doing this. Is there any selector which would allow me to do this without iteration?
[jQuery] Superfish resize issue
Hi, first thing to say is, thanks for the wonderful menu. I have a small issue in Internetexplorer 7 and below. I have allready read something about the z-index bug, but it seems to be another issue. Have a look at: www.skyrunning.at. The menu looks nicely if it's a really wide sreen resolution, but if you size the window to it's half or below, the menu gets shrunk and floats into a second line. That's all good. But i hover over the first mainmenu point "Seven Summit Speed Project" the first submenu
[jQuery] Mouse hover event problem in a div containing another div with higher z-index
Hi all, I've have been struggling a hole day around this and I can't find a proper solution :( I have a div A that when I mouse hover creates and appends in run time another div B inside with an higher z-index. This new div B is a info div that I want to show within the limits of the div A. When I mouse out div A, the div B is removed. The problem is that when I mouse hover the B div, it runs the mouse out event of the div A, and cleans the div B, and I want to maintain it while the mouse is still
[jQuery] Pick list widget
Hey, I'm looking for a widget like this one: http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html_single/#rich_pickList Do you know any? Thanks for help and time.
[jQuery] browser window close
Hello All: I'm trying to close a browser window.. using windows.close().. but its not working... so can you help me. Regards
[jQuery] ajaxsubmit a form onchange i.e. when we change the value of select box
Hi, I want to ajax submit the form when I change the value of the dropdown menu... I have been using the following code... but it's not working. I am using jQuery form plugin Please help me out... it's very urgent. Thanks a lot.. :) -Sagar Snippet of my code: -------------------------------------- <script id="demo" type="text/javascript"> $(document).ready(function() { $("select").change(function () { var options = { target: '#members', // target element (s) to be updated with server response
[jQuery] JQuery 1.2.6 vs 1.3.2
I was trying out some sample script while trying to learn JQuery and it appears that my script works fine under JQuery 1.2.6. It does NOT however work on 1.3.2. Can anyone identify what the problem is? <script type="text/javascript" language="javascript"> $(document).ready(function() { $("#ddlStates").change(function() { $("#ddlCities").html(""); var StateID = $("#ddlStates > option[selected]").attr ("value"); if (StateID != 0) { $.getJSON('/_httpHandlers/LoadCities.ashx?StateID=' + StateID, function(cities)
[jQuery] Debug says I'm missing an end paren - but parens all match!
In this line of code, I'm looking for a div whose Id is in variable b1, and which has an input button field whose value is "Show" or "Hide", and this line is to toggle those values. $(("[id$="+b1+"]") input).attr(value, attr(value) =="Hide"?"Show":"Hide"); This doesn't work, and Firebug gives me the error "missing ) after argument list"
[jQuery] (autocomplete) Extraparams and caching
Hi, I think there is a bug in autocompleter, when you use extraParams. The cache logic is just wrong because it takes extraParams not as a part of cache key for lookup, so when you issue a request for "a term" with any parameters, the second search for "a term" will return cached results regardless of extraParams. This causes problems for example when we use a checkbox state as extraParams value. The only way around this is to use cacheLength: 0, but adding extraParams to cache key should not be
Next Page