[jQuery] Identifying the tag
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> <font face="Arial">Hi All, Let's say we have the following set up where doSomething is a function: $("h1, h2, h3").doSomething(); How can one identify which tag is currently having something done to it? Thanks </font> </body> </html>
[jQuery] Why does img_width always return 0 (zero)?
I'm rewriting my own js library to jquery functions. A huge undertaking, but hopefully worth it in the future :) Question: why does the script always return 0 for img_width? Logo.gif exists and moving the code to the end of the page (before the closing body-tag) doesn't help either. Any help would be greatly appreciated! ---- My apologies is this message appears twice now. After 15 mins my first post still did not appear in the list, so I image something went wrong... ---- <html> <head> <script type="text/javascript"
[jQuery] Why does img_width always return 0 (zero)?
I'm rewriting my own js library to jquery functions. A huge undertaking, but hopefully worth it in the future :) Question: why does the script always return 0 for img_width? Logo.gif exists and moving the code to the end of the page (before the closing body-tag) doesn't help either. Any help would be greatly appreciated! ---- My apologies is this message appears twice now. After 15 mins my first post still did not appear in the list, so I image something went wrong... ---- <html> <head> <script type="text/javascript"
[jQuery] mooTools to jQuery conversion job
I love a particular news scoller example done in MooTools (http:// woork.bravehost.com/newsticker/index.html). Not knowing jQuery enough, I don't have time to convert it over (and using both frameworks is not an option). I would think this could be done quickly by one that knows jQuery well (with very little compromises). Anyone up for the job ($)? Or at least recommend a better place to post this request?
[jQuery] My cycle plugin code
Hello folks, I am not here to ask a question or to publish a plugin. I guess I cannot do either right now. ;) Instead I wish to express my heartfelt gratitude to the genius called Mike Alsup. He has changed my life with the fabulous cycle plugin. http://malsup.com/jquery/cycle/more.html?v2.23 I recently created a slideshow with 4 images shown on a single page replete with image preloading. Image preloading is very important for me since bandwidth is not widely available in my country and moreover
[jQuery] jCarousel with links
Hello everybody I like to know if is it possible to make anchor tags instead of img via changing the xml file created by the asp page. http://2244.gr/scripts/jcarousel/examples/dynamic_ajax_asp.html http://2244.gr/scripts/jcarousel/examples/dynamic_ajax.asp function mycarousel_getItemHTML(url) { return '<img src="' + url + '" width="75" height="75" alt="" />'; }; To behave like function mycarousel_getItemHTML(url) { return '<a href="details.asp?cid=The XML field CID of image"><img src="' + url +
[jQuery] Please Help me regarding Webservice method call via saop client
System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://tempuri.org/GetSessionParts. at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest () at System.Web.Services.Protocols.SoapServerProtocol.RouteRequest (SoapServerMessage message) at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse
n00b: effect callbacks on two divs
Hello hello... I'm JS child and JQuery newborn so please help me: I have two divs: <div id="carret"> <div id="carret_content">It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English.</div> </div> <div id="handle">h</div> carret div has background image,
[jQuery] jQuery on cell phones that aren't iPhones -- wishful thinking?
I'm working on a web-app optimized for mobile devices. I have it working fine on iPhone, but it tends to blow up the browser on my Nokia E51, and apparently doesn't work at all on Blackberries. It's very small--basically just core jQuery, and throws no errors on Safari, Firefox or even IE. But on non-iPhone cell phones, it crashes badly. So my question is, have you got any suggestiosn for developing web apps for Nokia, Windows Mobile, and Blackberry? It would be really nice to have a desktop runtime
[jQuery] Animating table rows
I'm creating an admin section for a site where I need to dynamically add a new row to a table - which I know how to do just fine, but the problem is that when you do an animation like .slideDown() jQuery sets it to display:block; and for a table row this is incorrect, as it should be display:table-row; The result is it basically screws up the table formatting. Here's a demo: http://jsbin.com/alemi Sure I can just do a plain .show() with no animation to show it, but then why both even using jQuery.
help selecting the new inserted row
My table inserts dynamic rows after the row that has been clicked. The code var newRow1 = $('<tr><td> </td><td> </td><td> </td><td> </td></tr>'); $('#table1 .trclick').after(newRow1); The new row is inserted between existing rows. i want to select this row and insert some text in its column. The problem is that I dont know how to select the new row to perform any operations.
getting the value from the previous row column
I want to get the value of the column in the row. I tred .val function but wasnt successful. How can we get the value from the column of a row?
Ajax and conditional DOM scripting
Hi, I'm a bit stuck here. I'm using jQuery together with php and would like to do the following. Situation: I have a list with tasks in a table each task has a checkbox when a user clicks a checkbox, the task is set to 'done' (this is done by an ajax callback) Now I would like to execute some conditional javascript. This is my php in pseudo code: sql_query(SET TASK TO DONE); if(usersettings[showtasks] == true) javascript: table row background-color=green; else javascript: table row delete;
[jQuery] Trouble with Selectors, Syntax, and more... Small Amount of Code
HTML: <ul id='list'> <li id='name1-link'> link </li> <li id='name2-link'> link </li> <li id='name3-link'> link </li> <li id='name4-link'> link </li> </ul> <div id='wrap'> <div id='name1'> text here </div> <div id='name2'> text here </div> <div id='name3'> text here </div> <div id='name4'> text here </div> </div> CSS: #wrap li {display:none;} Javascript Goal: When a link is clicked, it's corresponding div is shown. All divs are hidden by default via CSS. Something like this: $('#wrap li').click(function
[jQuery] jQuery Cycle and Background Color
I'm trying to use the jQuery Cycle plugin to cycle some images in my web site design but the background color of the containing div keeps appearing as the images fade out. I have been unable to force the background color of the div containing my images to be white. I even tried an additional containing div with its background set to white and I still get the background color of the header div (see HTML below): <div id="header"> <span id="pic-container"> <div class="pics"> <img
[jQuery] JQuery on Safari 3.1.2 Windows
Hello all, I'm having an issue with JQuery and Safari (Windows Version). The code works on FF/IE7/Chrome but not Safari. I have a simple <li> that has a <div> embedded in to - clicking the <li> should expose the hidden div, but not in Safari. The HTML: <ul> <li>something</li> <li>something2</li> <li class="more"> <a class="moreFacetsLink">Click to see more options<a> <div class="moreFacets>bunch of text</div> </li> </ul> Here is the JQuery code: $('.moreFacetsLink').click(function () { $(this).siblings('div').toggle();
[jQuery] Combining jQuery and jQuery UI
I'd like to combine and compress my jQuery and jQuery UI files into a single minified file, but I've noticed that every time I do this It just breaks and gives me "$ is not defined". If I do a copy/paste of the two uncompressed files together, it works fine but it's a 100kb file! When I got to minify or pack this file, that's when it always breaks. I've tried Dean Edwards packer, JSmin, and YUI all with the same results. The same goes for any jQuery plugins I've downloaded. I'm using a several that
[jQuery] Tabs: get selected tab?
<div>Hello,</div><div> </div><div>I am using Tabs from jQueryUI. I have a callback function for when the selected tab is shown:</div><div> </div><div>$('ul.tabs').tabs({</div><div> show: function(event, ui) {</div> <div> // do stuff</div><div> }</div><div>});</div><div> </div><div>When the tab is shown, I need to pre-populate its form with values based on cookie data. How can I tell which tab is shown? Or, more specifically, how can I get the shown tab container? Do I have to query for
[jQuery] JQuery Auto Complete?
hello! I'm using the JQuery auto complete ( jquery.autocomplete.js ). and I'm wondering how can I submit a form once an item has been selected? currently when an item is select you have to hit enter twice, once to get the item into the search field, and once to submit the search. I'd like to submit the search on the first enter. I see the option for : onItemSelect how can I use this to submit the form? thanks inadvance for your time! -Ken
[jQuery] Question about $.data()
Hi all, Quick question about the $.data() function... Is there a way to see everything that's currently stored in one of these data objects? Since the function (and its compliment, $.data.removeData()) allow for setting/retrieving/deleting key/value pairs, it seems natural that one would want to do something like this: for (var x in $jQueryObject.data) { do something with x; } Is it possible to iterate through the data cache? If not, why not? Thanks in advance and regards, --Bill
[jQuery] ANN: screenshots.debian.net (jQuery-based website)
Hi, all... I use and love jQuery for pimping our intranet applications at work. This time the application is public and open-sourced so I thought I'd drop a note here and also say thanks to the jQuery and plugin developers. The site is http://screenshots.debian.net It features jQuery, Jörn's Autocomplete plugin (when uploading packages), the jGrowl plugin (for status messages after uploading or for moderation) and the infamous but amazing Flyout plugin (for the image zoom effect). I already received
[jQuery] Cluetip caching with option set to false
Hey all, I'm trying to use the Cluetip plug in and I'm having what I hope is a simple to fix problem. The plug in seems to be caching even though i have it set not to. Every time i hover over my link it pulls the same data. I'm in ASP.NET so i set a breakpoint on the server side code and it only gets executed the first time after i clear browser history. This tool tip is associated with another element that will impact the value of the pop up so i need it to get the latest data every time. Here is
[jQuery] [Autocomplete] Reducing remote calls
Hi list, I'm using the excellent autocomplete plugin from <a href="http://bassistance.de">bassistance.de</a>. The cache and subset matching features are very useful. I would like to take the subset matching a bit further. I want to prevent the script from querying the server if the query string does not match anything from a previous result set in which the current query is a potential subset of. I apologize for being unclear, I know I'm misusing the terms here. I hope I could explain it better with
[jQuery] How to set a group of elements bold if it's related element has something in it
Hi, I'm really not even sure where to start with this one so am really hoping someone can help shed some light on it... I've got a a bunch of input fields called inputTime1, inputTime2, inputTime3, inputTime4 and I've got a 'parallel' bunch of hidden fields called inputNotes1, inputNotes2, inputNotes3, inputNotes4 I need to set the inputTime1.css to bold if inputNotes1 is NOT empty and the same for inputTime2 and inputNotes2, etc. Can this be done in a simple jQuery statement? Cheers and thanks in
[jQuery] PrettyCheckboxes not working with radio array names
With this script, I cant get it to work with radio buttons when their names are used as arrays (ie. group[1], group[2], etc). Each radio button in each group gets treated as a stand-alone radio button (on the UI side only) - as if they were checkboxes. In other words, each RB in each group can be checked/unchecked independent of the other RBs in the same name group. If I use non-array names for the radio button groups (ie group1, group2, etc) it works fine. But, I need the array names because the
[jQuery] fade in effects
Good Morning! I'm redesigning a site and I wanted to incorporate a super fish nav bar. I've got it placed on this page under the video, just for testing, but the fade in effects aren't working. http://jessworks.com/reddans2/ The menus should fade in and fade out. Now they are just appearing. I'm sure I'm missing something very simple, could someone please take a look at it for me! I'm styling it, so if it's missing for a minute, or looks crazy, I'm just back there tinkering. Thanks!
[jQuery] Jquery rounded corners
Is anyone using the rounded corners script ? If so, I am having some alias trouble. I have a background image set for my page ... it appears that the script gets the BG color of the Body tag and uses that for its aliasing ... is there anyway to set it to transparent ?
can slideToggle effect be configured to slide up from bottom
I am building a panel that will slide open and closed as the user clicks the expand or collapse button - similar to http://www.webdesignerwall.com/demo/jquery/simple-slide-panel.html For my implementation, I need for the panel to slide open from the bottom up. I am not seeing any arguments or options in the documentation for jquery's slideToggle method that can be used to specify the direction of the slide. Does anyone know of a way this can be done?
[jQuery] Stumped with a each() / height() problem
Hello All - I am stumped with the following problem - within an each() loop it seems that this.height() is not working - or - more likely - I am doing something so obviously wrong I cannot see it :) Here is the code: function adjustRowHeights() { var maxH = 0; console.log('Array Size=' + masterEngLangArray.length); // this is OK - reports "15" for (id in masterEngLangArray) { console.log(id+'='+$(".formRow-"+id).height()); //this is OK reports height "17" maxH = 0; $(".formRow-"+id).each(function()
[jQuery] Superfish arrows and drop shadow
Hi, I've recently put the superfish dropdown menu onto an application and everything works well. I've linked it to hover intent and I'm using the vertical display method. However, for some reason I am not getting the arrows or the drop shadow, is there something I'm missing? My ul is created dynamically and gives out the following: <div id="tabs"> <ul id="menu" class="sf-menu sf-vertical"> <li><a class="sf-with-ul" href="#">General</a> <ul> <li><a href="default.aspx">Home</a></li>
[jQuery] Destroy Interval at DOM Object removal
I'm currently creating a project where we need out users to be able to browser thru different media types. Currently Images, Video and "360- images". Since we are really concearned about the highest availability we decided to create the 360-viewer with JavaScript, in the form of a jQuery plugin. The plugin, after some tweaking, turned out to work perfect. However, I have trouble releasing the window.setInterval when the div that has been applied the image rotator is removed from the DOM. Here's the
[jQuery] Issue with FF back button
Hi, We have a form at www.floresdodia.com/checkout.php which uses very simple ajax validation with jquery. We only validate if the field is empty or not. Problem is when someone fills all fields and proceeds to the next page and want to edit something by pressing the back button, Firefox does not allow to resubmit the page. Its something like submit button has been disabled. Would anyone please help me here. I am a jquery novice. Regards
[jQuery] Adjusting the position and offset of the text
I didn't notice this right away. I thought it would be in the css but that's not the case. I've created my own images for the background and I need to adjust where the text starts and an offset for the right side (padding) as well. next, In order to use this multiple times on one page you must create new instances each time. I'm using this all over my site, so the first line is getting long. Is there a better, more efficient way to do this? $("#fancy, #fancy2, #fancy3, #green, #registration, #list,
[jQuery] mcDropDown: How to reload?
Anyone know how to force a mcdropdown element to reload? I am trying to update the mcdropdown via another action. McDropDown returns the element if its already been defined. Christian
[jQuery] Tab divs disappear
I'm using jQuery UI tabs and I'm rotating them automatically. The problem is, for half a second, the div disappears till the next one loads. This modifies the size of the page and the page jumps around while this is going on. The divs only contain static content, and I've tried AJAX cache options, but they don't work. I just want them to fade out and fade in. What initialization code should I be using? -- View this message in context: http://www.nabble.com/Tab-divs-disappear-tp20369279s27240p20369279.html
[jQuery] jquery.ajax POST is getting a 400 error intermittently
I am using jQuery ajax, served up on AIX, IBM HTTP Server and Websphere Application server When making a jQuery.ajax type:'POST', sometimes the reponse is: HTTP/ 1.1 400. This is not happening consistently. I see the 400 status code in the web server logs. Has anybody else run into this issue before? Here is the jquery ajax call code $.ajax({ url: url, type: 'POST', data: { client: $('#txt1').val(), trigger: 'reload', product:product }, dataType: 'xml', async: false, timeout: 10000, success: function(responseXML){
[jQuery] jquery.ajax POST is getting a 400 error intermittently
I am using jQuery ajax, served up on AIX, IBM HTTP Server and Websphere Application server When making a jQuery.ajax type:'POST', sometimes the reponse is: HTTP/ 1.1 400. This is not happening consistently. I see the 400 status code in the web server logs. Has anybody else run into this issue before? Here is the jquery ajax call code $.ajax({ url: url, type: 'POST', data: { client: $('#txt1').val(), trigger: 'reload', product:product }, dataType: 'xml', async: false, timeout: 10000, success: function(responseXML){
[jQuery] Problem ClueTip Plug-In and local parameter
Hello, I'm using the ClueTip Plug-In to display a Form, when the mouse is over a Link. This works fine, but there is a big problem: In local Mode ClueTip seams to make a copy of my Form and displays it. :-( Why ClueTip works this way? I use a simple JavaScript Function to send all my form using a Ajax Request. But this is not working, because my Form exists two times... Hope somebody can help me. Greetings, Stefan Sturm
[jQuery] Cluetip and xml
Hello all, I start with ajax (jquery) and xml. I need to use cluetip in a table like this example: http://beckelman.net/Demos/jQueryTruncateAndClueTip/default.aspx As against that I do must be in Cluetip information from several different fields. Would you like a piece of code explaining the procedure to do with php? Do you have examples to this need ? Thank you in advance Benoit
[jQuery] a probable bug with keyboard events
hello friends, i ran into a corner case with jquery autocomplete which i'd like to seek a solution for: my system is bilingual (en-he) gnome debian linux, with firefox 3.0.3. with focus on an autocomplete field, i'm switching the keymap to hebrew, using alt-shift. logging the event keyCode to the firebug console, i get one 18 value, followed sometimes by a 0 additional event. the next character i'm typing into the field is being shown, but does not trigger a keycode event, hence the autocompletion
Next Page