[jQuery] How can I extract the index of an item based within a table?
Hi, I'm trying to write some jquery code so when i click on the relevent item price, it alerts me with the quantity of that item and also displays the content of the h2 header just before the relevant table, is there a way somehow of finding out the index of the 'td' which is clicked, and then extracting the quantity in the row above with the same index. also be able to grab the text from the h2 header before the table, so in effect, when i click on the '40p each' box within the first item table,
[jQuery] Having problems getting index() and closest() to work
Hi, I have a page with multiple tables, and need to get the index value of a cell with a price which i click on, so i can extract the relevent quantity within the row above, i've tried using the index() function but to no avail! also, I wish to extract the content of the previous h2 header, i'm not sure if closest('h2') is the best way to do it, but it also doesn't work, could someone please tell me how to do this? Please see below for the code (note that there is roughly about ten tables to which
[jQuery] converting my codes to JQuery
I use ajax suggest at my website with the following codes. I tried converting them to JQuery after reading few tutorials. I get showHint () is not defned error. What is wrong where? Basically, I submit to test.asp?Process=CheckCustomer then I get results as xxx, xxx2, xxx3... function showHint() { $.get("text.asp?Process=CheckCustomer", { QUERY: "TUNCEL" }, function(txtHint) { document.getElementById("txtHint").innerHTML=xmlHttp.responseText; } ); -------------- var xmlHttp function
[jQuery] Writing Ajax to table cells.
FYI: I am an experienced web programmer (server-side mostly) with some exposure to javascript and have used ajax calls and dhtml methods a little. Furthermore - I do not _yet_ use jquery. This question is to - some extent - being asked of behalf of a web designer who himself is not on this ML. The designer wants his design to accomodate ajax calls which would retrieve data via my server-side tools and write the data to his pages. The web designer is accustomed to working with tables. It has been
[jQuery] ajax style form, how to pass the php $_FILE variable?
Disclaimer: I know there are plugins for this but I'm trying to learn to do things myself before using other people solutions! I have a nice form that send data like this: var nome = $("#nome").attr("value"); var hyperlink = $("#hyperlink").attr("value"); var gruppi = $("#gruppi").attr("value"); var data_f = $("#data_f").attr("value"); var stato = $("#stato").attr("value"); var uploadedfile = $("#uploadedfile").attr("value"); . then goes the ajax: $.ajax({ type: "POST", url: "func/ajax.uploader.php",
[jQuery] AJAX returning Facebook Connect Markup
It seems that when I do an ajax call (or post) to pull in my comments section my Facebook Connect code doesn't work absolutely correct. I'm not sure if this has to do with the fact that scripting doesn't work when you do this or not. Anyone have any ideas? -- View this message in context: http://www.nabble.com/AJAX-returning-Facebook-Connect-Markup-tp21859054s27240p21859054.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Turning JSON-formatted AJAX data into data usable by ColdFusion
Ok, so I'm at the point in using jQuery AJAX where I'm now returning complicated data of queries (multiple) and bits of data for use back on the calling page. In my CFC's, I use the returnFormat="json" to send data back properly json-formatted. However, now, I need to know how to get that json data back into a form that I can use with my CF knowledge. Such as looping queries, referring to data by "myQuery.name", etc. In other words, I want to get that json data back into my comfort zone. I need to
[jQuery] Referencing AJAX Loaded Content
Hello world, I've managed to load a simple HTML file using the .load function. I'm trying to traverse between the multiple pages using forward and back buttons. Right now, I have the click function of the AJAX loaded page inside of the load function, but that is messy and runs into problems. Is there a better way using the find function? Thanks!
[jQuery] Cycle Help, please - can't get working
[sorry if this is a re-post - msg doesn't seem to have made it through...] I have looked through everything I can find, and copied and pasted examples, and still can't get this to function. I don't care what the function is at this point - if someone can point out what I am missing, I would be very grateful. page example: http://www.horseink.com/chdrsg/jQuery-test.html in head: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/ libs/jquery/1.3.1/jquery.min.js"></script> <script
[jQuery] BlockUI: multiple blocks
Hi all, I'm using the BlockUI plugin with great success on my data table that's asynchronously loading data via AJAX, when new data is being loaded I'm visually overlaying the table (wrapped in a div) to let the user know that data is being loaded and prevent manipulation of the data in the table. What I'd really like to do is block user input on the entire page but only draw the overlay and message on the table portion. What's the best way to do this? Can I block the div as I am now and still call
[jQuery] Cycle Plugin - content is blank in Internet Explorer
Hi, I am encountering an error where all of the content is blank using the cycle plugin on this page: http://testing.kuranda.com/catalog/poly_resin_bed2.php?breed=7-1 in IE 6 and 7. It works fine in FF, Safari, etc. When I remove 3 of the 4 scrolling content divs, the content appears in IE. But as soon as more than one is there, nothing appears. Oddly, I am able to use the cycle plugin in other areas of the site in IE6 and 7 w/o issue, such as clicking the logo to return to the homepage. Can anyone
[jQuery] CLick event for Select Box not supported by IE
Dear folk , I have a select box with Multiple Options Such as below <Select class="actions"> <option value="NEW">New/Edit</option> <option value="a">1</option> <option value="b">2</option> <option value="c">3</option> </select> I wanted to bind a Click event to the select box , so when ever we Click on the Option with the NEW value alert box appears this is my code $("select.actions option[value=NEW]").click(function(){ alert("worked"); }); this works in Firefox no problem I have problem in IE it
[jQuery] $('#xxx').html() changing xhtml to html
I am trying to parse the html out of a specific div to save it with php into a SQL-database. Working good so far. The html is valid xhtml, but html() makes instead of <br /> and <img......> instead of <img...../> Is there a workaround to get the xhtml?
[jQuery] Dealing with Date Comparison
Can any one point me in the right direction for my issue. I have a div with a text value pulled in from a database 01/01/2009 Im trying to write a javascript that can take that value and compare it against new Date(); $(document).ready(function() { now = new Date(); lastActivityDivs = $('td.yui-dt0-col-LastActivity div'); lastActivityDivs.each(function() { if ($(this).val() == (now < 14)) { $(this).addClass('.highlight'); } }); }); i know this isnt correct, but it gives you an idea of what im trying
[jQuery] Chain Select + Add form elements dynamically
Hello, I'm using this simple chained combobox http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/ but I want to use it with this : http://mohdshaiful.wordpress.com/2007/05/31/form-elements-generation-using-jquery/ so, when the user click add more, it appears a new changed combobox !! how can this be done ?? Thanks, Mahmoud
[jQuery] How to synchronize callback events
Hi All, This is my workflow logic: 1. I submit $.post AJAX request and get the callback data 2. This data is a raw html code, which is used to append some div 3. I have to scroll through all the new appended elements and make them draggable The problem is that the drag activation function starts BEFORE all the new elements are appended, i.e. create a new DOM, therefore, usually first 1-2 elements are not draggable. All the rest of them are OK. This is a fragment of the code: $j.post("canvas_save.php",
[jQuery] How to access a field in a form
Hi, What is the best way to access a field in a form when I already have an jQuery object referencing form. function myFunction(formName, fieldName){ var formjQueryObject = jQuery('#'+formName); var formField = jQuery("#"+formName+" [name='" + fieldName + "']"); or can I somehow utilize "formjQueryObject" and make field selection faster? } <form name="myForm_1" id="myForm_1" > <input type="text" name="login" /> <form name="myForm_2" id="myForm_2" > <input type="text" name="login" /> myFunction("myForm1",
[jQuery] Superfish - side-by-side menu items
Good afternoon, I am trying to get Superfish to display menu items side-by-side, similar to the new http://www.whitehouse.gov site. However, whenever I attempt to put more than one unordered list into a single list item, Superfish only displays the second UL and it's contents. Is this possible using superfish? Thank you.
[jQuery] Hover in a loaded page stopped working??
Hi all, I am stuck with this in a page showContent.php i have <code>$(document).ready(function() { $("table#test tr.edit").hover(function(){$(this).addClass ("hover");},function(){$(this).removeClass("hover");}); });</code> and this works in showContent.php. Just a simple grey background color on rollover But when i load showContent.php like so <code> $(document).ready(function() { $("#content").css("overflow-y", "hidden"); $("#show").click(function() { $("#content").css("overflow-y",
[jQuery] Cycle Help, please - can't get working
I've gone through everything I can find with no success in getting this to run (and tried many functions, and copied/pasted code from working examples) so I'm sure it's something dumb on my part, but I sure could use someone pointing it out to me! Example page: http://www.horseink.com/chdrsg/jQuery-test.html CSS: http://www.horseink.com/chdrsg/css/content.css using: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/ libs/jquery/1.3.1/jquery.min.js"></script> <script type="text/javascript"
[jQuery] Attr(name)
I have created a form that has multiple input tags (6 to 8) and I am using the "alt" attribute of the of the input tag to to retrieve information with this method "var current = $("input").attr("alt");". While this works on the first index of the input tag it does not help if the input fields are chosen at random. I have also tried using selectors and filters, but have been unable to determine how to retrieve the Attr("alt") on the element that has focus. Any help is appreciated. Bob
[jQuery] batch operations
i want to do batch operations. and run a callback function. for example: run three jquery method after then run a callback function jQuery('#staff').load('add_1.php', {group: 'staff', dept:'all', typ:'A'}); jQuery('#staff').load('add_2.php', {group: 'staff', dept:'all', typ:'I'}); jQuery('#staff').load('add_2.php', {group: 'staff', dept:'all', typ:'all'}); is there any method?
[jQuery] clueTip - can you parse out heading when reading from external file?
Hi, folks -- Using the clueTip plugin, it's clear how to display a heading in your popup help window when the text is contained within the title attribute of the a tag selected: $('#popup1').cluetip({ splitTitle: '|', showTitle: true }); <a id="popup1" class="noHilite" title="Heading in the Popup Window| This is the body. This is the body. This is the body. "> Any way to do this when the text comes from an external file, as below? <a id="popup2" href="/text.htm" rel="/text.htm"> I can get the text
[jQuery] stilted animation in all browsers except Chrome & Opera
Hi all! Having a great adventure of my first jQuery website — for ages I'd been telling myself "I should just get better at javascript", but I'd been following the development of Sizzle and thought, right, this is great! http://antoniocaniparoli.co.uk/wip1 I am having a bit of a headache with cross-browser compatibilities though. My script has two purposes: positioning and sizing the various elements that constitute a photo gallery, and animating transitions between images. As far as the positioning
[jQuery] timescales - autocomplete and datepicker
Hi everyone, I understand that autocomplete has been pulled out of the latest release, and that the datepicker no longer has the range functionality it used to have (ie you can no longer select the start and finish date on the same datepicker) I have an app that uses both these functions - so I'm keen to know: When might we get autocomplete back? Are there plans to fix the datepicker range functionality, or is it deprecated? (yes, I know it's open source and an acceptable answer is 'when you make
[jQuery] XML .text() ?
Hey people, I'm parsing XML from ajax in JQuery and it works for find()ing nodes and getting attributes values with attr(). But when I try to get the text content of a node it returns empty string. For example: var xml = "<slicers> <d atr='ddddd'> <a></a> <b></b> </d> </slicers>" $(xml).find('d').attr('atr') - returns 'ddddd' $(xml).find('d').text() - returns empty string Is it supposed to work? Thanks Michael
[jQuery] Total newbie to jcarousel, where do I begin?
Hi, I need some help setting up a simple jcarousel query. I've downloaded the files from sorgalla.com. I've looked at the "installation" files but can't the carousel to load. I've created the following scripts before </head> <script type="text/javascript" src="/carousel/jquery-1.2.3.pack.js"></ script> <script type="text/javascript" src="/carousel/ jquery.jcarousel.pack.js"></script> <script type="text/javascript" src="/carousel/jquery.jcarousel.js"></ script> this is what I've placed in my html
[jQuery] Metadata and firefox 3.1beta2
Firefox 3.1b2 has a problem with \n. Test OK <div id="test1" class="metadata {type : 'p',colors : ['5131C9'],size : '300x200'}"></div> Test KO <div id="test2" class="metadata { type : 'p', colors : ['5131C9'], size : '300x200' }"></div> you can use this solution to fix this bug: cre.exec( string.replace("\n","") );
[jQuery] VideoJug slider
How do I replicate the mouseover effect for the video gallery on VideoJug (http://www.videojug.com)? Thank you.
Multiple popups
I'm trying to open multiple popups from multiple links: <a href="#" class="popup">Link 1</a> <a href="#" class="popup">Link 2</a> <div id="popupContact"> Content 1 </div> <div id="popupContact"> Content 2 </div> So link 1 should open content 1, link2-> content2 and so on (they are php-generated). This is the code so far; it works with a single popup: $("#schedasx a.popup").click(function(){ //load popup loadPopup(); }); function loadPopup(){ $("#backgroundPopup").css({
[jQuery] reinitiating SuperFish
Hi, I am looking for a way to change the state of a superfish dynamically. The thing is I am reloading some content by ajax and want to update the menu to fit the contents. Is there an API for this, or can I change some classes and reload the superfish menu? I've tried different approaches, but so far without luck. Thanks a bunch -Christian
If a span doesn't have text remove it or don't show it
Dear all, <span class="myclass" style="color: red;">I can have text or I can be empty</span> I want to show this span if it contains text, otherwhise I want to show nothing .. How can I do it? I was trying this: $(".myclass:contains('')").each( function () { $(".myclass").remove(); }); but it does not work, it removes the span always. Thanks in advance!!
[jQuery] selector finds element but changing css has no effect?
Hi, I have a div that is inside a td. My code is the following fragment: var currentelement = jQuery("#" + activecolid); var selectedcontent = jQuery("#" + activecolid).find ("div.contentdisplay"); alert(currentelement.html()); alert(selectedcontent.html()); selectedcontent.css({border: "10px solid #699000"}); currentActiveEl = activecolid; both of the alerts show up: alert 1: <td class="activatingcell"><span class="activation" id="activator5toplevel" onclick="activation('5toplevel');return false;">☐</span></td><td
[jQuery] [jquery ui tabs]
I have two sets of tabs in my page and I want them to look entirely different. Is this possible?
[jQuery] Need help with validation plugin!
Hello, I'm referring to this problem as I also got the same too, the form seem to submit although there is invalid field http://groups.google.com/group/jquery-en/browse_thread/thread/548c5ef899a93e5c/9c1ac52dc85a0955?lnk=gst&q=invalidhandler#9c1ac52dc85a0955 Need help! thanks a lot.
[autocomplete] changing value of hidden input
I'm using Jörn's autocomplete plugin and I'm having trouble changing the value of my hidden input. The first part works fine - it searches the array and I can select select any of the results. However, I'm trying to grab the "id" key value from the array and use it as the value of my hidden input. Here's my test page. (I'm using a "GET" form, so submit the form and you'll see that the "account" value submits as empty) Here's my array: var accounts = [ { name: "Account One", id: "0001" },
Lasso with JQuery
Dear Friends, you know that lasso-paradigm on the desktop: You drag the mouse button on a free place and hold it while spanning a "lasso-band". Is there a JQuery-Class for this? Thank you for your help! With best regards Innocentus
[jQuery] Jquery adds its own tags to divs???
Hi All, I cannot understabd why jquery adds these tags to my divs - something like: jquery1233798431484="2" jquery1233798241359="null" what is this?
[jQuery] Get trained in QTP 9.2 only from a Software Testing Company
Get trained in QTP 9.2 only from a Software Testing Company Softsmith Infotech is an independent third party testing services organisation having operations in Bangalore, Chennai & USA. The company's clientele include some of the best names such as Accenture, HCL, Infosys, Hexaware, Wipro, Satyam, etc. For further details please visit www.softsmith.com Softsmith is arranging a regular Quick Test Professional 9.2(Fast Track) training programme for the testing professionals with work experience at
[jQuery] jquery + firefox + css("border", "1px solid black") = bug?
Hi all, I'm not sure if this is the correct place to post this. Anyway, I had question regarding the css function. When I use the css function to set the border of a table (border- collapsed) row in firefox from no border to any border, nothing happens. However, it works fine in Safari and Webkit. The weird part is that if I toggle the row off and on using the toggle() function, then the border will be shown. The other thing that happens is that if the border is already set beforehand and then I
Next Page