[jQuery] Find nearest parent with an ID
Hi all, I'm wanted to traverse up the DOM to find the nearest/closest ((+great)grand)parent which has an ID. For example <table id="table1"> <tr> <td id="td1"> <div> <span> <a class="meh" ... ... so from $(".meh") I want to find "td1" I thought I could use $(".meh").parents("@[id]").attr("id") but apparently not. I may have misunderstood one or more bits of the code there... -- View this message in context: http://www.nabble.com/Find-nearest-parent-with-an-ID-tf3356637.html#a9335652 Sent from the
[jQuery] context menu example
Can you please share working context menu example? _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] context menu example
Thanks for explanation! This what I need too ;-). But I really need context menu(I hope I write it correct), I mean menu which we see on right mouse click.
[jQuery] loading animation for imagebox
Hi The loading animation for imagebox doesn't display properly. The animation has a white box behind the loading.gif animation and I would like to know how to change that white box to black or transparent? Also if anyone is interested there is a website that will generate loading animations for you. the link is http://www.ajaxload.info/ . Janet _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] finding an image by src attribute
<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="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=Content-Type content="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style>
[jQuery] rewriting generic ajax jQuery style
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=513514620-06032007><FONT face=Arial color=#0000ff size=2>thank you immensely for all your help. I'll start rewriting the accordion code in a day or so.</FONT></SPAN></DIV> <DIV><SPAN class=513514620-06032007><FONT face=Arial color=#0000ff size=2>-Jim</FONT></SPAN></DIV> <BLOCKQUOTE
[jQuery] Auto Vertical Scroller newsBlock div
Hi All, Anyone have any tips for me to do a sort of news scroll vertical scrolling div? Mine is here: http://70.133.226.219/v2/07index.aspx It's beneath the jquery buttons in the left column. It is scrolling up or sort of ticking up, if you give it a few seconds you will see the headlines tick up. I know the Css styling isn't quite right yet to tell the headlines apart from each other, but that's a cinch to fix. I tried implementing JD Sharp's code from here: http://jdsharp.us/code/jQuery/plugins/jdNewsScroll/
[jQuery] rewriting generic ajax jQuery style
Ok, here's another question.... I've got this code working: $(document).ready(function() { $('#resultcontainer').accordion(); $("dt").click(function(){ idsource = $(this).attr("id"); $.ajax({ type: "GET", url: "getItems.php", data: {cat_id: idsource}, dataType: "xml", success: function(xml){ //build a table from xml results.
[jQuery] ie submiting ajax forum in thick box
Currently I have a login form being displayed in a thickbox(v 2.1), the actual form submission is handeled by the form plugin, from malsup.com(v 0.9). In Firefox when a user enters there username/password the form submits how it should, and data is returned. In IE the form submits and goes to the actual page. my JS looks like this. this is in gloabl.js which is included after jquery.js that is included in the header. $(document).ready(function() { //login $("#jq_login").submit(function(){
[jQuery] compare between display and visibility when hide an element?
<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="http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face {font-family:"\@宋体"; panose-1:2 1 6 0 3 1 1 1 1 1;} /* Style Definitions
[jQuery] Testing... testing... ignore
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <META NAME="Generator" CONTENT="MS Exchange Server version 08.00.0681.000"> <TITLE>Testing... testing... ignore</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">Testing</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">…</FONT></SPAN><SPAN LANG="en-us"></SPAN></P> </BODY> </HTML>_______________________________________________
[jQuery] treeview problem
Hi, here http://jquery.bassistance.de/treeview/ i found tree example, but it didn't work when I wrap this example with my DIV's, any ideas how to prevent it ? _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Screencast: how to easily use AJAX to submit a form using jQuery
A screencast for beginners to jQuery and/or AJAX showing how easy it is to add an AJAX layer to submit a form. http://remysharp.com/2007/03/05/jquery-ajaxed-forms/ I wasn't sure whether just to add it to the tutorials wiki on jquery.com or not... -- View this message in context: http://www.nabble.com/Screencast%3A-how-to-easily-use-AJAX-to-submit-a-form-using-jQuery-tf3356310.html#a9334547 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery
[jQuery] JQuery scope
Guys, Does someone know why my function doesn't work ? How does work the scope on JQuery with ajax? The commented alert is working fine. function LerXML(ordem) { var diretorio; $.get("../modulos.xml", function(xmldataset){ diretorio = $("diretorio:eq(" + ordem + ")" , xmldataset); //alert(diretorio.text()); }); return diretorio.text(); } alert(LerXML(0));<br clear="all"><span class="sg"> -- []'s Harlley R. Oliveira <a href="http://www.syssolution.com.br"
[jQuery] Form validator 0.2 - onblur instad of onsubmit
hey.. i got this code http://pastebin.ca/383367 now its validate on submit, i want to modify it to onblur... how do i do that? -- View this message in context: http://www.nabble.com/Form-validator-0.2---onblur-instad-of-onsubmit-tf3354347.html#a9328706 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] rewriting generic ajax jQuery style
that actually works quite well. I'll also need to parse the item_name from the xml. It may benifit me more to yank the parent element and then spit back out both childNodes... only thing is the second childNode "item_name" will have to be a link. I suppose I could add an "href" attribute using DOM methods or simply just screw around with the html that is output. How do I reference more than one tag in the xml? Here is my current working code: $(document).ready(function() { $('#resultcontainer').accordion();
[jQuery] [*Possible SPAM*] rewriting generic ajax jQuery style
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=101421816-06032007><FONT face=Arial color=#0000ff size=2>You are a mind reader... a json result will be the next thing I do. There is another section on this site (in the user admin portion) that I use PHP 5.2 with json_encode to get a directory listing and send the data
[jQuery] rewriting generic ajax jQuery style
that actually works quite well. I'll also need to parse the item_name from the xml. It may benifit me more to yank the parent element and then spit back out both childNodes... only thing is the second childNode "item_name" will have to be a link. I suppose I could add an "href" attribute using DOM methods or simply just screw around with the html that is output. How do I reference more than one tag in the xml? Here is my current working code: $(document).ready(function() { $('#resultcontainer').accordion();
[jQuery] dynamic put post data Jquery Forms plugin
hey i got this script: http://pastebin.ca/383636 what im trying to achive is that i got a form that user go to page and fill it, while its loading its generate him id in hidden field, and i need to pass the id in the hidden field to the next page... how can i do that? my demo isnt working now.... also, how can i echo the output of the page instad of everytime write {staus:0, msg:'21'} please help thanks -- View this message in context: http://www.nabble.com/dynamic-put-post-data-Jquery-Forms-plugin-tf3356323.html#a9334586
[jQuery] rewriting generic ajax jQuery style
Hi, I'm trying to change a bunch of handwritten Ajax stuff to use jQuery's methods. (I figure, if I'm already including the jquery.js file, I may as well use the heck out of it.) My current code sends a request to a php page and gets back an xml result I do the standard way of creating a request object(try/catch for MSXML vs XHR) here is the code to create my request and callback: var http = createRequestObject(); //this just references that object I just created. function ajax ( url, callback )
[jQuery] [*Possible SPAM*] rewriting generic ajax jQuery style
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=617181013-06032007><FONT face=Arial color=#0000ff size=2>certainly:</FONT></SPAN></DIV> <DIV><SPAN class=617181013-06032007><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV><SPAN class=617181013-06032007> <DIV class="netInfoResponseText netInfoText" selected="true"><PRE><?xml
[jQuery] My basic navigation plugin
Hi jQuerivites, I'd like to offer up my humble plugin (humble is the key word here) to get a sense of if something this basic is of any worth to the community. I discussed an earlier version of the plugin briefly on a previous thread (Sites Powered by jQuery) and there is an implementation of it on my Preshil site (I don't want to post a link here as I don't want to seem like I'm spamming it around) which is in the Sites Using jQuery list at jquery.com To summarise, it takes your jQuery object and
[jQuery] Ajax - maintain the History
Hi, it's possible maintain the History of Navigation using back/forward buttons?? I'm using Ajax to load Contents into a DIV: --------- function open_url(url, target) { document.getElementById(target).innerHTML = 'please wait'; $('#'+target).load(url); $('#'+target).fadeIn('fast'); } Calling... javascript:void(0) plans --------- Maybe a Plugin? Thanks a LOT. -- View this message in context: http://www.nabble.com/Ajax---maintain-the-History-tf3355044.html#a9330708 Sent from the JQuery mailing
[jQuery] carousel example with dynamic content via ajax
Hi there again. I am willing to help you but only posting a small bit of code from the plugin example is not going to help me see what you are doing wrong. You say you have verified the image paths, yet they don't show up? I would like to see *exactly* what you have in your txt file. It is highly likely that what you have in your text file is what is breaking that function. The function: getItemHTML(data) takes the data from the text file and among other things, builds the link to load the larger
[jQuery] What is the difference in functionality between bind() and click/blur/keyup/etc()?
-- View this message in context: http://www.nabble.com/What-is-the-difference-in-functionality-between-bind%28%29-and-click-blur-keyup-etc%28%29--tf3352982.html#a9324408 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] carousel example with dynamic content via ajax
Folks; I am trying to implement the carousel example with dynsmic content loading via ajax. The images I'm specifying in my version of the *.txt file are located in a directory in the root of my server. The problem is when the page loads, the images are not shown in the carousel: only the names specified at the end of each line in the *.txt file are shown. I've verified that the path names for the images are good in the carousel js code. So I do not think that the problem is with path names. I do
[jQuery] How to get the response text of an .ajax call?
Hi, Simple question. How do I get the response text of an ajax call? Right now, my call is returning an XMLHttpRequest object, but I don't know how to extract the plain text that I'm expecting. here's the code var responseData = $.ajax({ type: "POST", url: url, data: paramStr, dataType: "text", async: false, error: function(request, msg){ alert( "Error upon saving request: " + msg ); }, success: function(request) { // alert( "Saved" ); } }); alert(responseData); var responseText = responseData.html();
[jQuery] does jQuery have any plugins for plotting chart and graph ?
I find a char graph plotting library plotkit(http://www.liquidx.net/plotkit/) which is based on Mochikit. I wonder if jQuery has any similar plugins? _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] prependTo element's own parent
I want to take an element, and prepend it to its own parent element. How would I do this? Seb _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] get class name
Hi, What is the jQuery syntax to ge the class name of an item with a known id? Thanks, - Dave _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jqModal r7 release!
Ladies and Gentleman of the jQuery, ...errr, more so the Gentleman... I am happy to bring you jqModal r7, codenamed "listen". R7 is a major feature enhancer, and brings about some API changes and parameter reduction. I recommend upgrading & porting your existing code to the new version... well worth the added flexibility // maintaining support. Plugin Page; http://dev.iceburg.net/jquery/jqModal/ I've updated the examples, and included a demonstration on overriding alert() + confirm() dialogs. Here's
[jQuery] jqModal and AJAX
<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt">I have a problem with rebinding jqModal when i load main content via ajax i really run out of ideas jqModal is last version jquery the same i whant to use the jqModal to load product description and the produtas are loaded with ajax. $(document).ready( function() { var addClickHandlers = function() { $('#ex1a').jqm({
[jQuery] Finding an element based on a partial string
Hi guys, Say I have 3 form elements (type input/text) with a DIV called "cart": qty_1 qty_2 qty_3 If I wanted to find all form elements within the div "cart" that started with the string "qty_", how would I do that? Rey... _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Charting or plotting coming?
<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:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face
[jQuery] How to block a function while another finishes? (and pause!)
Hi Karl, Indeed, I caught that when I was copying the line over :) Unfortunately, though, it doesn't seem to work. The div slides up correctly, but never slides back down. I attempted to tweak it by not chaining, combinations of the animate and pause function, just the pause function, just the animate function, smaller/larger values, etc... with no luck. If I remember correctly, one or two of the combinations would correctly slide up and down, but normal speed, never what I would specify. Any ideas
[jQuery] How to find a div with a class ending with a string?
Hi, This mailing list has been great and helped me figure out how to find elements starting with a pattern ... $(this).find("div[@class^=title]"); My question now is how to find elements ending with a pattern. Specifically, I'm trying to find all DIVs that are within "$(this)" whose class ends with "-1". Thanks, - Dave _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jcarousel issue
Can you post some sample code? It sounds like the paths to your images is wrong. -Marshall -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Indigo Sent: Monday, March 05, 2007 12:23 PM To: discuss@jquery.com Subject: [jQuery] jcarousel issue I am trying to implement a jcarousel element on a page that is not yet public. The example I'm using is the one with dynamic content loading via ajax - http://sorgalla.com/projects/jcarousel/example_dynamic_ajax.html
[jQuery] Help with ".each"
I'm trying to insert a div after all < a > elements that don't link to my site. My script is currently working like this: var getLinks = $("a").not($("a[@href*=mysite]")); for(i=0;i<getLinks.length;i++){$("<div> Lorem Ipsum</div>").insertAfter(getLinks[i]);} but I'm having trouble converting it all to jQuery using ".each": $("a").not($("a[@href*=mysite]")).each(function() {$(this).html("<div> Lorem Ipsum</div>").insertAfter();}); The function only gives the raw DOM right? Not the jQuery object. So
[jQuery] New Plugin: clickMenu
Hey there, I've created a plugin to make a clickable, application-like dropdown menu out of an unordered list. Information about it can be found at: http://p.sohei.org There is still some work to do, to make it really usable (I'm new to this) but nonetheless please let me know what you think about it, any feedback will be appreciated. /rw _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Safari Crashing
Are there any known issues where jQuery would crash Safari? I'm testing using jQuery 1.1.2. With Safari 2.0.4, the browser window disappears as soon as I make an AJAX call. I've observed this on two different Macs? I also note that a recent WebKit build on the same machine doesn't crash. Firefox and Camino work fine too. Any suggestions appreciated. Thanks, Brad Perkins _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Next Page