[jQuery] Help with selecting great grandchildren
Below is my html/EE code: <pre> <div class="less-info"> <!-- Standard configuration --> <!-- Show more button --> <span class="show-more">{lang_showmoreinfo}</span> <!-- Standard configuration tab --> <span class="tab">{lang_standardconfigurations}</span> <!-- Parts list --> <ul class="part-detail-box"> {related_entries id="cf_products_parts"} <!-- loop --> <li class="line-item"> <!-- Part number - floated right --> <span class="part-number">{cf_parts_partnumber}</span>
[jQuery] Get System Error with "jCarousel and Thickbox 3 "
Hi , I was trying to use "jCarousel and Thickbox 3 " plugin . From the jCarousel, examples folder - used the special_thickbox.html and replaced the URI to point at REST webservice call image output as shown below instead of static .jpg image links. http://re3.yt-thm-a01.yimg.com/image/25/m4/3024464321 http://re3.yt-thm-a01.yimg.com/image/25/m4/3022951145 The initial thumbnail display works fine but on click of the image , get a System Error at Line 0. IE error window. Browser is IE 6. Has anyone
[jQuery] didactic question: collapsing div's
Hi everybody, could you help please with the right js-code (jquery is welcome) code here: http://screenlabor.de/ronny/test2.html I have 3 divs with id's like: food, stills, interieur. Each div is representing a category and contains some thumbnails and a bigger picture. Only one div/category is visible at the same time, the others are hidden with display:none. I want to set up a simple function that allows me toggle only one div at the same time, the others should stay hidden (-->swapping): <div
[jQuery] IE Issues with onChange on form select and radio
Hello. I'm having a few issues, and I was hoping someone might be able to give me some perspective. I've been searching for an answer for a couple of weeks now, and I'm at the end of my rope. I have a form with a two select boxes (one for a country selection, the other for a language selection), and a set of radio buttons that define a filter. If a user selects a country, two events fire: 1) The first gets an HTML list of relevant state/provs and load()s them into an empty div right below the countries.
[jQuery] [PLUGIN] Excellent File Tree
Thanks to Karl Swedberg for pointing this jQuery-based File Tree out. http://abeautifulsite.net/notebook.php?article=58 Rey
[jQuery] adding a callback function?
Hello everyone. I am trying to modify the SpinButton code (from here http://www.softwareunity.com/sandbox/jqueryspinbtn/) to include a callback when the value is changed. I'm very new to callback functions and have tried searching the web for how to add them but so far have had no luck. My desired goal is to be able to pass a function or not and if the function is included have it executed when the spinner button is clicked. Here is what I have tried (along with the original code): $.fn.SpinButton
[jQuery] Ajax .click function after .get
Hello guys I am just starting to play with and learn jquery. I have come to some problems and were able to solve them. I think that its something obvious that i am missing in the .get() I am trying to create a page that will never refresh so for the navigation bar i decided to use the ajax .get function to change the innerhtml of a special div tag. But when i do that the new content that is in the html does not seem to work with my jquery rules that i have $("a[href^=#]").not(".point").click(function(){
[jQuery] IE 6 double submit
I'm using jQuery with form and validate plugins. I have several forms on the same page. The following code submit the proper form: $(document).ready(function() { var loader = jQuery('<div id="loader">loader</div>'); $.validator.setDefaults({ debug: true, focusInvalidElement: true, submitHandler: function(form) { $(form).ajaxStart(function() { $(this).prepend(loader); }); $(form).ajaxForm(); var options = { target: $(form).parent(), clearForm: true, resetForm: true } $(form).ajaxSubmit(options); }
[jQuery] Cluetip showing content below fold
Greetings; I am using Cluetip to fetch content via AJAX. I have tried setting the position option to bottomTop, mouse, and auto. The content fetches fine, and the tooltip displays. However, if the tip opens close to the bottom of the browser window (FF2 and IE7), the tip is not shifted up to the top of the element being tipped to allow the full tip content to be visible. Instead, the tip displays below the fold; some content is below the visible portion of the browser window. Due to our development
[jQuery] event binding on dynamically created elements? stumped
Hello... I'm creating an input element like this: $(this).after('<input type="text" name="symptom" value="Enter Symptom" class="focusClear"/
[jQuery] JSON generated by php not parsed in IE
Hi I am going crazy on this. This is first time I tried to use JSON for the data I need and I have a php function that generates the data. While FF etc are showing the output the IE fails to go beyond the $.each to iterate over the JSON array. this is the data generated by PHP function {"items":[{"col": "col1","id": 1,"mod_title" : "yahoo_latest","mod_ct" : "0","mod_code": "http://rss .news.yahoo.com/rss/topstories"},{"col": "col1","id": 2,"mod_title" : "yahoo_business","mod_ct" : "0" ,"mod_code":
[jQuery] Problem with logging form using the 'jQuery Form Plugin'
Good evening, I'm trying to code a logging form, but I have a problem redirecting the user to another page. The problem is that the page I want to redirect to is being loaded in the background, like it was an Ajax call (I've seen it thanks to the Firefox plugin Tamper Data). That's the code I'm using: $(document).ready(function() { var options = { beforeSubmit: ValidateForm, success: Logging, dataType: 'json' }; $('#login').submit(function() { $(this).ajaxSubmit(options); return false; }); });
[jQuery] jQuery Corner no longer works in Safari 3.1
In previous versions this could be fixed by setting a background-color on a parent node, but in recent versions (WebKit nightly too) it no longer works.
[jQuery] How to stop other elements on the page from dimming
Hi All - Is there a way to stop the other elements on the page from dimming when a fade occurs?
[jQuery] tablesorter
I'm working with tablesorter and I have multiple tables. I made it so when a button is pushed all the data from one table is put into one main table, basically doing this: $(SourceTable).find("tbody > tr").appendTo($ (TargetTable).find("tbody")); $(TargetTable).trigger("update"); This kind of works, all the rows get placed into the target table but when I trigger the update I get an error: table.config has no properties jquery.tablesorter.js line 136 I suspect the rows might have something bound
[jQuery] dimensiosn plugin
i am a little unclear on how exactly to get the position of an element using jquery dimensions plugin. documentation says it returns "An object with top and left properties that are numbers representing the offset in pixels." and it says the object looks like this: { top: 10, left: 10 } so how do i access it? like a string? do i have to use string functions to pull out the height and width individually? -- View this message in context: http://www.nabble.com/dimensiosn-plugin-tp16995030s27240p16995030.html
[jQuery] $.ajaxStart bind on a unique element
Hi! I have this: --------------------------------------------- $(".submit_textarea").livequery("click", function(e){ e.preventDefault(); if($(this).attr("href") == "#save") { var savencancel = $(this).parent(); var textarea = $ (this).parents(".imagencap").children("textarea"); var caption = textarea.val(); var idimage = textarea.attr("id"); idimage_array = idimage.split("-"); var maindiv = $(this).parents(".imagencap"); $.ajax({
[jQuery] async treeview - Can we have a callback method that is invoked when the return status is not 200?
Another request for the Async Treeview - in our application, we have an automatic session time out after a set period of idle time. After that timeout, the server will return a "302 Redirect" status. We then popup a dialog or redirect to the login page. We need to have a callback method that is invoked when the return status is not "200 OK" Is there an easy way to get that? Thanks, rolf
[jQuery] Selector Madness! How to Select all the Text on a Page?
Okay I have read and reread http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1 and http://www.learningjquery.com/2006/12/how-to-get-anything-you-want-part-2 and still cannot figure out how to grab all the text (not the markup) on a page. I am toying with the Google Translation API and am attempting to parse all text, translate, and put it back. I have the looping logic (and the 500 char limit issue with Google) sorted out, but I can't get the fundamental part down...GRABBING
[jQuery] $("<script>") : Why isn't it reliable?
Hi. I am reading "jQuery in action" book. On that book, I got a serious question. The book says, "$("<div>") ... we won't be able to use this technique to reliably create <script> elements" There's no reason why $("<script>") is not reliable. Does anyone can explain the reason? Thanks.
[jQuery] Horirzonal Accordion
I need a Horizonal Accordion code for Download .. if there is a link for Download Please let me know !!! Regards Pedram
[jQuery] count lis within a ul.
<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">right now i am using this: it seems to return the total width of the li's or something. why isnt there some kind of countFirstGenerationChldren prototype? :P<div> </div><div>code: <span class="Apple-style-span" style="font-family: Monaco; font-size: 11px; "><span style="color: #ab1579"></span></span></div><div><font class="Apple-style-span" color="#AB1579" face="Monaco" size="3"><span class="Apple-style-span"
[jQuery] [validate] RFC: buttons and cancel class
Hi, I have button (type: submit) with the class 'cancel' but this still results in the form being validated. It works if I change the button to an input. After // allow suppresing validation by adding a cancel class to the submit button this.find("input.cancel:submit").click(function() { validator.cancelSubmit = true; }); To fix this on line 42 I added, // allow suppresing validation by adding a cancel class to the submit button this.find("button.cancel:submit").click(function() { validator.cancelSubmit
[jQuery] jQuery Effect Problem In Firefox 2
Recently I faced A little Problem with my jQuery at my FireFox Browser I check My codes with 2 browsers which are Standard and Suitable for testing 1-IE7 2- Firefox 2 I used some jQUery Effects such as toggle ,slideDown, slideUp and etc… There was no problem in my IE7 but in one situation there was a problem in my firefox … If we scroll the page down at thebottom of the page there is button which is Clickable and it will do some toggle and slide effects , in Firefox We will face some Flashes in the
[jQuery] jcarousel in ie 5.5
Anybody knows how to make work jcarousel in ie 5.5?. Now i see a white space in the place of the jcarousel. Perfect in ie6, ie7 and Firefox. Thanks!
[jQuery] jQuery and JSON - newbie!
Hi, I'll start off with throwing a warning out there: I'm a newbie :) Okay, so my problem is this: I have a div with id=”tooltip”, several divs with unique ids and lastly a js file with JSON content. (Part of) my JSON looks like this ({ "class": "Priest Of Mitra", "items": [ { "name": "Lance Of Mitra", "tree": "divinity", "tier": 0, "column": 3, "maxRank": 5, "description": { "base": "New
[jQuery] how to unbind the glid function in featurecontactglider.js
Dear All. I'm facing a problem in glider plug-in. Actually I want to disable the next link of "toc" class but in vain I unbind the glid function in my code but its throwing error of undefined glide. On the other hand If I unbind that function then no action perform in other condition like that: let suppose there's 3 tabs in my case, tab1Link, tab2Link, tab3Link I've a checkbox in my tab1Link. I want if user check that checkbox then browser let me go to next tab named: tab2Link otherwise it stop gliding
[jQuery] Finding the size of an image
<html> <body> Hello folks, I am wanting to find the width of an image loaded via an ajax call so that I can alter the width of a div holding the caption for that image. The image that is loaded is always tagged with an id of 'theImage'. Each image loaded with each ajax call has a slightly different width. The fitCaption function below doesn't work and I don't understand why - can someone help me please? <tt>function getNextPage(ej) { $.get("scripts/ajax_ramosus_client_second.asp?brm="+ej +"&q="
[jQuery] Using @ on Selector
<html 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> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;}
[jQuery] [SITE SUBMISSION] discovercard.com
I just noticed <a href="http://discovercard.com">discovercard.com</a> is using jQuery. When you're logged in, it also uses Klaus Hartl's excellent Tabs plugin. Cool. - Richard
[jQuery] Need to create a really simple slide animation that slides a div left and right when the corresponding left and right arrows are clicked
I basically have a div of a fixed width and height with overflow:hidden in place to hide the content. Within that div (outerdiv) is another div (innerdiv) with a fixed width and move divs (contentdivs) floated left inside it to make them sit alongside each other. I have 2 arrows, one pointing left and the other pointing right. I need to attach code to the left and right arrows that will slide the innerdiv left and right a fixed amount of pixels (e.g. 280px) at a time. Anyone have any ideas? I would
[jQuery] random tab and simple content switching
I'm having trouble with a content switcher and I think my issue is understanding how to targeting utilizing 'this' Here's my HTML and script: [code] <div id="mainArticle"> <div id="latestArticle" class="article"> <h1><span>tab 1</span></h1> <div class="teaser">content</div> </div> <div id="inTheMag" class="article"> <h1><span>tab 1</span></h1> <div class="teaser">content</div> </div> </div> $(document).ready(function() { $('#mainArticle .latestArticle
[jQuery] How to extend a function
Hi, I'm using thickbox to show content around a site, but the core thickbox.js is shared by multiple sites. For one particular site, I need to add some custom javascript when certain thickbox functions are called, such as TB_show and TB_remove. I've tried the code below, but this doesn't work. TB_show.extend({ $(".mpu").css("visibility","hidden"); }) Any idea how I can extend an existing function?
[jQuery] How to extend a function
Hi guys, I'm using thickbox to pop up content, but the thickbox.js is shared between multiple projects which means I cannot edit the core functions in that file. Instead, I want to run some "extra" javascript on one particular project and I wondered if there was a way to extend an existing function? I've written some code below that I thought might work but it doesn't :( Any ideas? TB_show.extend({ $(".mpu").css("visibility","hidden"); })
[jQuery] Problem wih jQery Effect i FireFox
Hi everyone , currently I am using jQUery in my Projectwhich is a CMS and some kind of Portal , Recently I faced A little Problem with my jQuery at my FireFox Browser I check My codes with 2 browsers which are Standard and Suitable for testing 1-IE7 2- Firefox 2 I used some jQUery Effects such as toggle ,slideDown, slideUp and etc… There was no problem in my IE7 but in one situation there was a problem in my firefox … If we scroll the page down at thebottom of the page there is button which is Clickable
[jQuery] Manipulating Select Options Doesn't work in IE7
Hi folks, I'm brand new to jQuery and am quite pleased with the product so far, however I've come across a difference in behaviour between Firefox 2 and IE7 when changing the styles of select element options that I can't think of a workaround for. I have the following bit of script that hides options in the select#field-subcomponent element depending on what is selected in the select#field-component element: <script type="text/javascript" src="/trac/trunk/chrome/common/js/ wikitoolbar.js"></script><script
[jQuery] Omission in the documentatoin?
Hey all, I think that I found an error in the documentation, and if not an error then an omission. The documentation for jQuery.extend (http://docs.jquery.com/Core/ jQuery.extend) says that it is used to extend the jQuery object. However if you look at the instructions on authoring plugins (http:// docs.jquery.com/Plugins/Authoring) or the jQuery UI source code you see its also (when you pass in multiple objects) to add the members of the first to the second. I can guess the behaviour but it would
[jQuery] ready firing twice on the page
Hi all, I am trying to load some partials on page load and they are not necessarily aware of each other (different people will be developing them and they're pulled together on a page before sending to the client). Since it's designed this way there is a $(document).ready block on each partial with some code to initialize each partial. The strange thing is that when the page loads, the ready block is triggered twice for each partial. It has the same behavior in IE and FireFox. There is a ready block
[jQuery] UI Sortables conflict?
Hi, I've been tasked with adding some components to an existing, large site that is using jQuery 1.2.2 and jQuery UI 1.0 and jQuery dimensions, amongst other things. When testing locally using the latest versions of jQuery and ui, everything worked fine, but when I uploaded it to the test server everything but sortables worked. The .sortable() call would cause this error in Firefox: uncaught exception: [Exception... "Could not convert JavaScript argument" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)"
[jQuery] Looking for plugin: Cookie parser? (one cookie, multiple values?)
Hi all, Long story short, I would like to avoid setting multiple cookies for my site... One cookie that holds multiple values, for different objects and/or items, would be perfect! :) Before I go reinventing the wheel on this one, I was just wondering if anyone has wrote some code (or a plugin) that handles this? Many thanks in advance! Cheers, Micky
Next Page