[jQuery] [FIX] Google maps and jQuery tabs... My solution.
Hey guys/gals, For some reason, I only have the option to "Reply to author" on this thread: <http://groups.google.com/group/jquery-en/browse_thread/thread/ 484d6cd5fd2a64cd> So I am starting a new thread here... For me, the technique Klaus proposed worked when I added "display:block": .tabs .ui-tabs-hide { display: none; } /* Fixes google maps: */ .tabs #story-map-tab.ui-tabs-hide { display: block; position: absolute; top: -999em; left: -999em; } For my particular setup, I only wanted
[jQuery] ajax loading image and fadeIn content
Hi, i'm just starting in jquery and i need help on this code. I just need to display a message (or image)before the content is loaded and fade that content. Here is the code, and you can see it in action on realferias.com and click the OK button on the left.Thanks. $(document).ready(function() { $('#foo').click(function() { $('#centro').empty(); $('#centro').fadeIn("slow").load('results_casa_mes.asp',{ nm_mes: document.getElementById('teste4').value, pessoas: document.getElementById('pessoas').value,
[jQuery] help with jquery add/remove class
Hello. I am new to JQuery, and I thought I'd try creating a small app to learn more. I've hit a problem that I cannot seem to fix. I have a right navigation bar with 8 floor plan links. When you click one, the accordian menu drops and shows some details (this works great), the other thing that is suppose to happen on click is a large image is to appear in the left area. You'll see that it works fine at first, BUT when you start clicking down the list AND then try and return to an earlier click, is
[jQuery] Why is the behavior only attached to the first select?
I'm trying to attach a function to all selects that have the custom goto-attribute. It works for the first one, but the behavior isn't being attached to the second <select>. Any ideas how to fix it? $(document).ready(function() { $('select[goto]').each(function () { $(this).change(function () { var selected = $("select option:selected").val(); if (selected != 'ignore') { document.location = $(this).attr("goto") + '/' + selected; } }); }); }); // with html: <select goto="www.cnn.com"> <option value="ignore">Choose...
Inserting the row after all rows are deleted
I have been inserting and deleting rows. The problem is that when I delete all the rows than I cant seem to insert rows anymore. Any idea how i can insert rows when all the rows are deleted.
[jQuery] jeditable and XHTML?
Is there a known problem with jQuery/jeditable and XHTML? I keep running into this 'invalid string' message with JS and XHTML. First Dojo, now here.. it's getting discouraging. What am I doing wrong? Anyway, is there anything obviously wrong with the fragment at http://apache.pastebin.ca/1254469 ? When I click in an appropriately-classed element, the current text disappears, but then the error crops up. I want to use jeditable to edit fields in a table, but right now I'm trying to get it to work
[jQuery] Help in using JQUERY BLOCKUI
Hello, I am trying to use the Jquery BLOCKUI plugin....but with no success... As per the examples on that page,I tried passing my custom message,etc....it doesn't work. No matter what I try,it only displays the default "Please Wait..." message :-( What could possibly be the cause of this symptom?? Thanks so much
[jQuery] non-programmer
I've been a graphic designer for the past 25 years. Only "programming" I know is HTML and a little CSS. I'm about to try my hand at learning JavaScript and AJAX . . . . should I learn JavaScript first - and then learn JQuery, or will I be okay just diving into JQuery? Just to let you know - being a designer and working off that side of my brain - I have to tell you - even the most simple programming concepts come hard to me. The books, "For Dummies" are over my head. . . I tried learning PHP/MySQL
[jQuery] Cycle plugin and .swf files
I insert .swf files in my cycle powered slides. The problem is that in IE6+7 the .swf plays even when its not its turn to show up. If the .swf has sound you hear it playing all the time. Can anyone tell me how can i fix this? Thanks in advance. -- View this message in context: http://www.nabble.com/Cycle-plugin-and-.swf-files-tp20526405s27240p20526405.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Cycle plugin and .swf files
I insert .swf files in my cycle powered slides. The problem is that in IE6+7 the .swf plays even when its not its turn to show up. If the .swf has sound you hear it playing all the time. Can anyone tell me how can i fix this? Thanks in advance. -- View this message in context: http://www.nabble.com/Cycle-plugin-and-.swf-files-tp20526405s27240p20526405.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] iterate array and create callback
Is it possible to iterate over the array and create functions as follows? It did not seem to work for me. var menu = ['home','news','sport','music']; for(var i=0; i<menu.length;i++) { $('#'+menu[i]+'_header').click(function(){ alert(i); alert(menu[i]+'_header clicked'); var $img = $(this).find('img'); var src = $img.attr('src'); var newsrc = /up\.gif$/.test(src) ? src.replace ('up','down') : src.replace('down','up'); $img.attr('src',newsrc); }); }
[jQuery] how to switch event on single function
Hi friends, I am capturing the button & link click on the same function , like follow... code:- $("a, #view").click(function(){ ------ code for links (a)... ------- code for button (#view) -------- common for both link & button -------- }); To do like the above , how can i capture the link & button event ? Thanks in advance, Balavignesh
[jQuery] Jquery how to get attribute from a HttpServletRequest
Hallo all: I got this piece of code: $("#faq").click(function () { var url = $.get("faq", { pagina: "page" }); alert(url); }); On "faq" responds a Servlet tha set an attribute on the request .... request.setAttribute("pageFAQ", pageFAQ); .... After the get jqeury print me [object XmlHttpRequest I would like to access to the attribute setted in the Servlet but I dunno how to do. Any idea? Kind regards Massimo UGues
[jQuery] jqRevolve - new, simplistic carousel-like plugin released!
Ladies and Gentlemen, I'm writing to inform you all of a new addition to the jQuery plugin family... Please welcome jqRevolve! jqRevolve is a carousel-like plugin for jQuery. It provides a component that scrolls arbitrary content (Images, Markup, Text, Iframes, You Name it) in a defined 'clip region'. Yes, there are many out there. I needed a lightweight component that features automatic clip region sizing as well as pressure based scrolling. It is easy to use and customize. Checkout the plugin page
[jQuery] delayed tooltip hiding
I'm trying to implement my own tooltip plugin with an optional delayed hiding on mouseout event. This wouldn't be a problem if the tooltip wasn't displaying so frequently a need it to. I want to use it in a chat room where messages are starting with users' nicks which are links and on mouseover event the tooltip should display. It looks like this: nick: some message othernick: some other message nicknick: some nicknick's message ... on `mouseovering` the 'nick' link, the tooltip displays and on mouseout
Get height and width of element, apply it to tooltip
Hi, I have some code for creating a tooltip on two different elements on a page. $(document).ready(function() { $('.h1_a').hover(function() { $('.h1_a #tooltip').fadeIn('fast'); }, function() { $('.h1_a #tooltip').fadeOut('fast'); }); $('.p1').hover(function() { $('.p1 #tooltip').fadeIn('fast'); }, function() { $('.p1 #tooltip').fadeOut('fast'); }); }); I want it so on hover, #tooltip masks the entire
help with jquery add/remove class
Hello. I am new to JQuery, and I thought I'd try creating a small app to learn more. I've hit a problem that I cannot seem to fix. I have a right navigation bar with 8 floor plan links. When you click one, the accordian menu drops and shows some details (this works great), the other thing that is suppose to happen on click is a large image is to appear in the left area. You'll see that it works fine at first, BUT when you start clicking down the list AND then try and return to an earlier click, is
[jQuery] Do DOM generated links treat their containers differently then hard coded?
I have this test page up: http://btk.name/misc/links.html Basically, I am using Jquery and a Cycle plugin to allow the user to paginate via links through content. Simple enough. However, as you can see (at least in Firefox 3), the DOM generated links (via the plugin) keep going in 1 line outside the container. The links hardcoded into the actual HTML adhere to their container. Why would JavaScript generated links be treated different? I just want them to wrap appropriately. Thanks
php array to jquery array
hi; I'm new to jqurey. I have php array like $arr = array("one", "two", "three"); I would like to convert this array ( or copy its values) to jquery array and use .each can someone show me this . thanks
JqGrid Editing
I am Newbie, and new use Jquery... can master-master Jquery guide me how to make editing JqGrid... I Am so confused
[jQuery] Ajax / XmlHttpRequest Problems with some routers / providers ( MTU) ( No jQuery problem!)
Hi, we're running a recently launched website ( http://www.smashdown.net). We're using AJAX requests (in JSON) to communicate with our servers. A couple of customers complained about that some functionalities on our website are not working. We've found out that some AJAX requests does simply timeout (because they're not send to our servers). We further found out that this only occurs to a couple of customers. Now we've been able to track down the problem. There is a customer using Alice DSL (a german
[jQuery] How to pass arguments from link to ajax function
Hai Friedns, i have following three links on my page , <a href="javascript:submit_data(2008-10-05,2008-11-04)" >2008-10-05 - 2008-11-04</a> <a href="javascript:submit_data(2008-09-05,2008-10-04)" >2008-09-05 - 2008-10-04</a> <a href="javascript:submit_data(2008-08-05,2008-09-04)" >2008-08-05 - 2008-09-04</a> Whenever i click these links it should be posted with corresponding values (start_date & end_date) to the ajax function using jquery. My questions is, how can i send the values as the arguments
[jQuery] SerialScroll won't scroll
Hi I've this markup: http://dpaste.com/91124/ and this js (from init.js): http://dpaste.com/91126/ with firebug i get no errors but when I click on the <a> the div won't scroll :( can you help me?
[jQuery] Nesting toddle div's
Hi, Im new to jQuery and looking for a bit of help. Im trying to have toggleable content within toggleable content. http://pastie.org/314861 Code It's just not working for me, when I click the first toggle all is revealed? Am I way off? Something to do with propagation? Thanks Brian -- View this message in context: http://www.nabble.com/Nesting-toddle-div%27s-tp20502521s27240p20502521.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Destroying parent tag when restoring original value.
Having a heck of a time figuring this out, I have made a few fields (<td>'s>editable, so when you click on them it puts in a form with a text box and a button to submit, and a button to undo it. Well when I undo it, everything looks fine but the data is trapped in another set of <td> tags. Is their anyway to kill off these extra <td>'s, because this can keep happening every time someone clicks on it and undoes it. Code: function setClickableTitle(obj, i) { $(obj).click(function() { var account
[jQuery] Modernized Portlets?
I found the jQuery Portlets at http://sonspring.com/journal/jquery-portlets. This appears to be outdated (makes use of the interface library for the sortables rather than ui.jquery...). Does anyone know if there is a more current version of this? And one that doesn't necessarily depend on tables would be nice too... If there isn't one, I guess I'll have to update it... A customer wants this sort of functionality.... Thanks for any tips... Shawn
[jQuery] I am trying to fire functions for ui tabs before the show callback
Right now in this code it fires the hide(); after it has shown. So it flickers. And I do not seem to find a hide callback. Should I use a different system of tabs in the case that it can not do this? If so do you have any suggestions? http://www.pastie.org/315865 $("#gallery2").tabs({ fx: { opacity: "toggle", duration: 300 }, show: function() { var seeThis = $(this).parent().find("p.title-text") $(seeThis).hide(); $(seeThis).slideDown(); //alert('onShow'); } }).tabs('rotate', 3000);
[jQuery] select a div with a specific value
I've a html page like this: <div class="chess-board"> <div id="casa" style="position: absolute; top: 172px; left: 43px;" value="b4"/> <div id="casa" style="position: absolute; top: 172px; left: 86px;" value="c4"/> <div id="casa" style="position: absolute; top: 172px; left: 129px;" value="d4"/> <div id="casa" style="position: absolute; top: 172px; left: 172px;" value="e4"/> </div> Can I select a div by the value?? $(".chess-board value='b4'") Thanks, Alfredo
[jQuery] [HOWTO] Update IMG SRC after AJAX call?
Using the following code in my CMS, I can grant or deny certain user groups access to a certain page. In this example, usergroup #1 has access to page #2. By clicking the image, the server will respond with "role-1-2|icons/user-0.gif" (0 meaning "no access"). In the admin of the site, I have many of these links underneath each other: <a href="javascript:sendRequest('admin/page/ajax/1/2')"> <img src="icons/user-1.gif" id="role-1-2"> </a> The code that I'm using to update the image src (from icons/user-1.gif
[jQuery] add property name via a variable
Hi, Is there any way to add a property named via a variable to a javascript object? this is what I would like to do: -------------------------------- foo(bar); function foo(x) { window.x = 1; } ---------------------------------- so that the object window will end up with a property called bar. i.e. window.bar==1 Any ideas? John.
[jQuery] "this" and z-index changes
I recently have been playing around with a "Desktop" module that was on nettuts and made a modification for it that doesn't fully work. There are many draggable windows, and in order for them to function like a real desktop they need to have z-index changes such that if you close one on top the last one you had on top is right below it. I believe my error comes in with "this" or possibly something else, but when you pull one to the front it causes some or all of the others to end up in the same z-index
[jQuery] [HOWTO] Rewrite my own library functions to jQuery?
I have a lot of little functions I use on my website, like these. Is there a standard way how I should rewrite them to jQuery? Could somebody give me an example with one of these functions to go by, using best practices? Your help would be greatly appreciated! function select_goto(obj, base_url) { var selected = obj.options[obj.selectedIndex].value, url = ''; url = (selected == 'ignore') ? base_url : base_url + '?type=' + selected; document.location.href = BASE_HREF + url; } function limitChars(obj)
[jQuery] safari & chrome form plugin problem
My question is if someone report prroblems with form plugin and the ajaxsubmit? Don't work on both.
[jQuery] Double label issue in IE
Hello, I was investigating show/hide features with form elements and found this one by Scott Jehl the ever impressive Filament Group folks: http://www.alistapart.com/d/testprogressiveenhancement/demos/demo3.html At the bottom of the sample is an example of what I am looking for....the Dog/Cat item. Does anyone know why, or how to stop what appears to be a doubling of the label that is revealed when it's parent is selected? It only happens in IE 6/7 on a Windows machine. Thanks
[jQuery] newbie jquery.load help wanted!
HI. I'm really new to jquery, and PHP for that matter. I'm trying to complete a school assignment, and I'm soooo stuck. What I'm trying to do is submit form data through jquery to a php page. The php works as intended when called outside of jquery. It basically takes some POST values, and writes them to a database. It's then supposed to return a string which lets a user know the result of the attempt. All I want to do is load the resulting string into a div on my form page. However, in the way I'm
[jQuery] jeditable, tablesorter work slow with livequery
Hello, I have some problems, with these 3 plugins, jeditable and tablesorter works very good when I use it without livequery but when I want these 3 plugin to work, they work very slowly and sometimes crash the browser, I have to use livequery because data is loaded from this function: function loadContent(id) { $("#content").load("controller.php?module="+id+""); } and each page loaded by this function contains scripts witch uses tablesorter and jeditable $.livequery.registerPlugin("Tablesorter");
[jQuery] A "real" modal window... is it possible?
Is it possible to make a window like jqModal, etc, etc, BUT WITH A REAL MODAL way of work? I mean.... the flow of code must STOP until the window be closed! Does it exist?
[jQuery] Why is img_width always 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! <html> <head> <script type="text/javascript" src="jquery-1.2.6.js"></script> <script> $(document).ready(function(){ $("img.caption").each(function(i) { var img_width = $(this).width();
[jQuery] Why is "width" always zero?
I'm rewriting my own javascript library to jQuery. A huge undertaking, but hopefully it will payoff in the future :) Anyways - I'm trying to write a function that takes the title-attribute of an image and inserts is as a caption: <html> <head> <script type="text/javascript" src="jquery-1.2.6.js"></script> <script> $(document).ready(function(){ $("img.caption").each(function(i) { var img_width = $(this).width(); var img_title = $(this).attr('title'); var img_align = $(this).attr('align'); $(this).wrap("<div
[jQuery] Need JQuery guidence
<div><br clear="all">Hi Dear Friends</div> <div> </div> <div> </div> <div>I am new to jquery program, ya i already did small snipets in jquery, but am not expert , </div> <div> </div> <div>I very much intrested to learn Jquery from start point</div> <div> </div> <div>Ya i Read some tutorial like <a href="http://jquery.com">jquery.com</a>,</div> <div> </div> <div>But i am basically very much intrested in discussions,</div> <div> </div> <div>Can any one tell me and send me , sample snipet </div> <div> </div>
Next Page