[jQuery] why does $('.myDiv', top.frames[0]).hide() not work?
I'm totally not getting it... but you might, I hope :) I appended an iframe: $('body').append('<iframe>...etc</iframe>'); The iframe source has jquery in the header and it works. now I want to do something in that iframe, like hide a div. I want to do this from the top.frame... $('.myDiv', top.frames[0]).hide(); but, it doesn't work!??!? I'm lost. Been googling, all I find is stuff about getting stuff to work in the parent frame - why wouldnt the same work for a child frame? THanks for pointers!
[jQuery] problem with jqmodal and ui datepicker
Hello. Some body can help me? I heave a problem with datepicker inside a modal window with this plugins (jqModal and ui datepicker). when datepicker show this appear in a back layer. How can i do for fixit? My javascript code: var x = $("document") x.ready(function(){ $("#wmContent").jqm() .jqDrag('.jqDrag'); $("#boton").click(windowMod); $("#date").datepicker(); $("#btnCancel").click(function(){ $("#wmContent").jqmHide(); });// #btnCancel });//#x.Ready function
Urgently required a solution on this
Hi All, I am facing some issues with respect to validation of a username for unique name characteristic. I am using jQuery validation plugins to valid this using rules for "remote" by called a file on server where in a python file i put my logic for unique name. I defined a multi value dictionary on the python file. Its basically returns false or true according to existance of that username on the dictinary. All rest configuration is as per the procedure like setting of templates,etc.. This is my
[jQuery] datepicker not showing up
I've been having this problem trying to get my CSS to show up for the datepicker widget using JQuery UI. As far as functionality goes the datpicker works yet I can't get the CSS to show up. I'm using themeroller to style the the datepicker and using the following style sheets. uicore.css uitheme.css uidatepicker.css My initial thoughts were I had the wrong path two the style sheets yet I managed to get new selectors in those style sheets to show up. Am I missing something? I'm using jquery 1.3 and
[jQuery] datepicker css
For some reason I am dying trying to get a datepicker setup with some decent CSS. Functionally, my datepicker is fine...it's just lacking the presentation the demonstrations always seem to have. I use the theme roller to download any of the gallery ones and then include the ui.datepicker.css in my page and my calendar is always transparent. I had this problem once before but then I just used another datepicker... How many css files do you need to get your datepicker to end up like the ones on the
[jQuery] New 1.3 feature, native event delegation??
John Resig said of 1.3: "I only posted last week about how event delegation can help you to optimize your code and it looks like jQuery will do it for you now, which means that any event handlers you add to a group of elements will automatically be added to matching elements when you create them." Yet I'm not seeing this functionality. Within my $(document).ready() func, I do this: $('.do_it').click(function() { ...stuff... }); Yet if I dynamically create new items using class="do_it", the above
Dropdown-Menu
Hi, I want to build my own dropdown menu with divs. To show and hide the layer is no problem. Also closing it when one value has been selected is working properly. What I want to realize is the hiding of the layer, when clicking somewhere else on the page, exept the button which shows the layer. Working with $(document.body).click(function() { do something }); is not working Any idea how I can realize this function? thx TC
[jQuery] bug in id selector?
Hi everyone, the attached example-code shows a problem I encountered today (firebug needed). If an id-attribute contains dots, like <p id="test2.3"> jQuery isn't able to find it. If the dots are replaced by underscores everything works fine. Afaik there is no limitation for the id which prohibit dots as a used symbol, so I guess this is a bug or for some reason not wanted? Cheers
[jQuery] .append with a var
Hello, I am trying to figure out how to .append a php session $var to a given div. I'm not sure what the correct syntax is. I was trying something along the lines of how I'd display the var in HTML: $("#someDiv").append("Some value is:<b>'.$var.'</b>"); I'm not sure the best way to go about this. Any input is appreciated. Thanks much.
[jQuery] Popup going under flash object
I have a web page I have been working on and everything looks good in IE. However, in Firefox I am having a problem with the datepicker popup window going under a flash object that is below the input field on the page. The datepicker.css file (this is the only css file I am using in this application) sets the z-index to 9999 (which is much higher than anything else on the page, and I have set it to as high as 10000000 just to check). I have tried to set the input field to an extremely high z-index,
[jQuery] Unable To Traverse From an XML Ajax Response
Hi, I need to know where I am doing wrong. The ALERT message in my jquery code doesn't seem to get hit when I put a breakpoint in firebug. The plan is to loop through all the <TABLE> Elements in the XML response and create a 3-column HTML table from its child nodes. Thanks in advance. This is my jQuery Code >> Where CategoriesList is a .NET dropdown control: ----------------------------- $(function(){ var selectid = "#" + '<%= CategoriesList.ClientID %>' $(selectid).change(function(){ $.ajax({ url:
[jQuery] redmond theme accordion IE6 bug
I am using the accordion and everything is working great in FF3/IE7. In IE 6 the images used for the headers are about 50 pixels below where the accordion is. Does anyone know why this would be happening?
[jQuery] Split data grid
I've been using flexigrid and tablesorter for my data grid needs. However, i need a split datagrid function that these two do not have. You can check out what I mean by following this URL. http://dhtmlx.com/docs/products/dhtmlxGrid/samples/frozen_columns/pro_grid_split.html# Basically I just need to pause the first few columns from moving while being able to sort the data. Anyone has any ideas? Thanks
[jQuery] Jquery tree menu Ul Li Ul
Hi everybody Just looking for a couple of words of advice really as I haven't seen anything on the web that seems to fit what I am looking for. Basically...I have built a two tier menu system using Jquery to show and hide the second level when certain parts are clicked. I was wondering if it was possible to have it's state stay the same between pages on the site. I.e. have a second level stay open after a link is clicked and the page changes. At the moment, as soon as the page changes, the menu closes
jquery .text .fade workability?
Hi there, I have a JSON array which stores data related to my music, e.g. (artist, album, song title, etc) I then have a div on an XHTML page, which i populate, with my music data via the jquery statement .text: $("#artist").text(music[indexPos].artist); I want to add in a fade in effect, but I haven't been able to do this yet. I originally thought to do this: $("#artist").text(music[indexPos].artist).show("slow"); as well as $("#artist").text(music[indexPos].artist).fadeIn(200); but neither worked.
[jQuery] jQuery.support & IE6 or later
I fully understand why support detection is considered much better than browser sniffing. But I have yet to see a way to detect the flash/ selectbox bleed-through issue that exists in IE version 6 or earlier. For that reason, I think that jQuery.browser should be maintained in future releases of jQuery.
[jQuery] Add Checkboxes in a table.
I need to be able to dynamically add a new rows to a table and add elements such as check boxes, plain text and hyperlinks. I cannot find any examples of this. Would anyone have any samples or a good url? Thanks!
[jQuery] New tags in Opera
Since I just upgraded to jQuery 1.3.1, I just discovered the following: in Opera 9.63, when you add new html via jQuery, Opera adds the new tags in capitals. For instance, if you have: $("div").html("<img src='foo.png' alt='foo'/>"); Then in Opera, this will be added as <IMG src='foo.png' alt='foo'/>. I just discovered that jQuery 1.3.x is now case sensitive in some areas that jQuery 1.2.x was not, so if you use a selector like "img", you might not match IMG in Opera. Hope this will help others.
JQuery Ajax load request when page is loaded
Hi Would just like some help on this one. Trying to load a portion of a page using Ajax with JQuery immediately after the page has loaded (no user intervention required). I'm use the following but nothing happens: <script type="text/javascript">$(document).ready(function(){ $("#loading").bind("ajaxSend", function(){ $(this).show(); }).bind("ajaxComplete", function(){ $(this).hide(); }); $('#mainView').load('page.php'); }); </script> Would someone be as kind as to tell me what I'm doing
Unconventional problem with jQuery engine
Yesterday I started programing in jQery. Everything was all right until i start load to tags another tags from file and then want processing them. I don't know why jQuery don't want process loaded tags... Below, I'll use shorter examles than in my web site to show what is exacly going on. Let's say we have two files one name d.html and another z.html Code of d.html : <html> <head> <title>Przykład 1-1</title> <script type="text/javascript" src="./JQ.js"></script> <script type="text/javascript">
[jQuery] select next n "somethings"
I have a page with alternating sets of one or more and <pre> paragraphs. Given that $(this) is a block, I want to select the next <pre> block, plus the additional <pre> blocks, if any, that follow the first one. How?
[jQuery] Callback problem
Hello! i have a code var handler = "editElementName"; function showModalBox(width, height, handler, id) { ... $(".btnSave").click(handler + "Save"); ... } function editElementNameSave(e) { alert(1); } Why dont work event click? PS sorry for my English - i am from Russia
[jQuery] Programatically enabling ''submit' button in ASP.NET
I have the following aspx page <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!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 runat="server"> <title></title> <script src="Scripts/jquery-1.2.6.js" type="text/javascript"></ script> </head> <body> <form id="form1" runat="server"> <div> <script language="javascript" type="text/javascript">
[jQuery] vsdoc for new jquery 1.3.1
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher"
[jQuery] jQuery Form Plugin - "success" callback function isn't called
Hey guys, I'm working with the "jQuery Form Plugin" and I'm having some trouble with it. In my HTML I have a button, which, when clicked, inserts a form via jQuery. To then register the form's submit event, I use the "livequery" plugin in my "(document).ready" function: (document).ready(function($) { var options = { target: '#editable_content', // target element(s) to be updated with server response success: function(responseText, statusText) { alert(responseText); }, // post-submit callback }; $('.edit_contact').livequery('submit',
[jQuery] JQuery error with java applet running
Hi, I have a web page that initializes an applet and I get a Javascript error: Java class LobbyClientApp has no public field or method named "jQuery1232546999783" In jquery-1.2.6.js Line 667 The JQuery code in that file is: id = elem[ expando ] = ++uuid; I can’t understand why this bit of JQuery would be trying to interact with the applet. Does anyone have any ideas on why this is happening or suggestions how to best troubleshoot it? Thanks for the help.
[jQuery] XML Sorting using jQuery - is it possible?
It seems jQuery is really great at traversing an XML object. It is quite easy to gather and filter node data. However I can't seem to find any information regarding sorting XML using jQuery. Is it possible? Or is there a plug-in? I have a project which requires me to read an XML file, then filter and sort the data. Filtering I can do, but I have no idea how to sort XML. Since arrays are easily sortable in JS, my idea is to convert the XML into an array first, then filter the array (which is not as
[jQuery] [validate] Problem with trigger submit in validation plugin update 1.5.1
Thanks for a great plugin! Unfortunately I got a problem with the latest version (and jquery 1.3). I need to submit forms through links instead of input buttons. I’ve used the following code to do this: $(”form a.form_submit”).click(function() { $(this).parents().filter(”form”).trigger(”submit”); return false; }); This used to work perfectly together with the validation plugin, but is broken since the update (the form isn’t submitted). Any ideas for a workaround, or will I need to downgrade jquery?
[jQuery] Download a file from server...
Hi, I have situation like this: I post certain data with $.post to PHP- script which is supposed to handle the data, create a file from it and then trigger browser to open a Save As-dialog. Everything works just fine except the Save As-dialog, I just can't make it pop-up. For the Save As dialog the PHP-script ha s following statements: header('Content-disposition: attachment; filename=stats.txt'); header('Content-type: text/plain'); readfile('stats.txt'); And this just doesn't work through $.post,
[jQuery] not updating images after ajax request
hi all, I'm having problems updating images dynamically. The thing is that the src attribute is allways the same (that's not an error but I need it this way) but the file the src points to is dynamically created via php (an xml that is used to create the new image). The new image is not updated (well, sometimes work, sometimes not, that's the worse); if I take from the HTML, the src of the image and open in a new window, the correct image appears. That is: $.get('function.php', function() { //function.php
[jQuery] Syntax similar to IN in SQL
Hi All, I am sure this is an easy question for someone in here. Is there a better, cleaner, shorter way to write this: if ( ($('#price_group_lesson').attr("value") == 'B') || ($ ('#price_group_lesson').attr("value") == 'C') || ($ ('#price_group_lesson').attr("value") == 'D') ){ $('#price_group_lesson_yes').slideDown('fast');} else{$('#price_group_lesson_yes').slideUp('fast');} I am creating a pretty custom questionnaire, and it has a lot of logic in it. I wish I didn't
[jQuery] multiple submit sends with CSS Button
Hi, i have a Problem with a CSS-Button. Evertime when I click the Button, the formular will be send three times. A normal input submit button does the same task exactly one time. Here is my Code for this Button (only the first button is important, Abort Button works fine at it is). jqeury 1.2.6 is included <div class="buttonleiste"> <a style="float: left; margin-right: 10px;" onclick="trigger_form_submit(this, 'ok')" id="" class="button_ok button_all" href="javascript:;"><span class="button">Login</span></a><input
[jQuery] help with jQuery and updating multiple div ids at same time
Hi, I've made a website with a shoutbox and a login form for admins, the thing is.. I want the login div to update when i type in a nickname in the shoutbox and vise verca, which it acturally does when nick is typed in on shoutbox but not the other way around. When the logout button and the welcome message apear in the login div it doesn't respond. I also want the content of the shoutbox to update on an interval but unsure how to do this. just to make things even harder I've made an restriction on
[jQuery] Catching ajax request errors
Is this possible? I do not want to use the $.ajaxError event but catching the error directly like this: try { $.getJSON(.....); } catch (x) { alert("failed"); }
[jQuery] [Tablesorter] Looping through headers object
Hi everybody. I have an html table with a fixed number columns (or headers) and a variable number of columns, that may vary in numbers depending on data in the DB. I want to make sortable one or two columns of the fixed ones, so I would like to know how to loop through the headers object in order to set to "sorter:false" all the headers that I want to be UN-sortable. In other words, something like: for(i=0;i<colNum;i++) { if(i != x) { headers: { i: {sorter: false} } } } where x is the index I want
[jQuery] jQuery 1.3 incompatible plugins
Is there a list of plugins that aren't compatible with jQuery 1.3 or that have been updated in order to do so? I'd like to be able to check my plugins against a list if there is one before upgrading so I don't get any nasty surprises.
[jQuery] Cluetip: Close on clicking another tip
Hi - I'm completely stuck with a Cluetip issue. Ive set activation to 'click' and sticky to 'true'. However, I wish to make it so that if another cluetip link is clicked whilst one is already open, it will close the current one and open the new one that the user has clicked. I hope that made sense. Essentially, can I close open Cluetips when the user clicks to open another one? My set up is as follows: $(document).ready(function() { $('a.tip').cluetip({activation: 'click', sticky: true}); }); Cheers
[jQuery] form standart submit event doesn't handle by jquery submit event
Example from documentation $("form").submit(function() { if ($("input:first").val() == "correct") { $("span").text("Validated...").show(); return true; } $("span").text("Not valid!").show().fadeOut(1000); return false; }); html: Type 'correct' to validate. <form action="javascript:alert('success!');" id="smth_id"> <div> <input type="text" /> <input type="submit" /> </div> </form> <span></span> BUT! When you get form throw document.getElementById and submit it by javascript: var form = document.getElementById('smth_id');
[jQuery] Newsgroup Quote Etiquette
Hello, I've noticed this more and more lately and I think it is due to people using web based readers like Google Groups and Nabble. When replying to a thread please leave the quotes intact, it can be quite frustrating to come across an answer or question and have no idea in relation to what without having to dig through all the posts and find the conversation. Thanks, Liam
[jQuery] Calling my JQuery function after adding new list items
Hi, I have the following list structure on my site: <UL id=topnav> <LI> <A id=11386_Tab onclick="" href="#">Home</A> <UL style="TOP: 1.7em"> <LI> <A id=m11387 title="Complaint Search" onclick="" href="#">Complaint Search</A> <UL style="LEFT: 11.1em"> <LI> <A id=m11388 title=Open onclick="" href="#">Open</ A> </LI> <LI> <A id=m11389 title=Pending onclick="" href="t#">Pending</A> </LI> <LI> <A id=m11390 title=Closed onclick="" href="#">Closed</A> </LI> <LI> <A id=m15012 title=fdgdfgdg onclick="" href="#">fdgdfgdg</A>
Next Page