[jQuery] problem with Query String Object
I have a problem with use jquery plugin http://plugins.jquery.com/project/query-object this is my URL www.site.ru/search.php?shosse[]=20&shosse[]=22&shosse[]=23&shosse[]=24&price=0 this is my code: $.query.get('shosse[]') => empty string (don`t work) $.query.get('price') => 0 (work fine) why it doesn`t work ? Thanks!
[jQuery] Superfish - strange behavior when including images in items
Really liking the Superfish menu plugin...but sure wish I could figure this one out: I am using Superfish to build a dropdown toolbar that has image icons next to text for the menu items. When I use the images, the dropshadow on the sfHover ul gets covered up on the right side. Also the ul's right side jumps wider after it is initially displayed (using IE7) See a demo of the problem here: http://www.dcarroll.com/toolbar.htm
[jQuery] Thickbox reopens with another close button
I have an as3 flash microsite that uses thickbox 3.1 to open image galleries. The site has several flash 'pages' and each page opens a thickbox window. My problem is that if you open up one thickbox window, close it, go to a new flash 'page' open another thickbox window, close it, then go back to the first thickbox window, two close bars appear, one above the other. The lower one serves no function to close the window. And if you keep repeating this 'open/close' pattern, more and more close bars
[jQuery] [tooltip]
Hello 1) How do I display tooltip at a fix position. 2) I want to display a tooltip when mouseover occures on text & also when it has focus. Thanx in advance
[jQuery] jqmodal close on javascript event
Hi, I want to close a modal window from a javascript event. In my case I have a grid, and when the user double clicks in one row I would like to close the modal window and fill some inputs in the page where it was opened. Is this possible?
click event execute only part of function
I'm newbie in using jQuery so maybe I do something wrong. I have part of code like this: $('div#menu').click(function() { $('#list').SlideOutLeft(500); setTimeout ("$('#turn').show();", 400); setTimeout ("$('#turn').hide();", 600); setTimeout ("$('#listct').SlideInRight(500);", 500); return false; }); It working properly in all older versions of jQuery but from 1.2 when I click it doesn't execute all as it should - just part of commands, one or two from beginning. How can I solve this problem?
[jQuery] UI Dialog help with show dialog
Hi, i have this function: function showSendMessage(id){ $('#sendMessage').dialog({modal: true,overlay:{opacity: 0.5,background: "black"},title: 'Kontaktovat uživatele'}); //$('#sendMessage').dialog('open'); $('#sendMessage').css({ display:"block"}); $('#ClientsRecipientId').attr({ value: id}); } this function is use when i click on some buttons (onclick). If I click on buttone once dialog will be show i close dialog, after second click on button will be not show. So i try correct
[jQuery] dynamically change size of select box
How do I dynamically change size of select box depending on the number of responses retreived froma getJSON [code] $.getJSON("select.php", {project:"%" }, function(json){ var dropsize=json.length +2; var options = ""; options += '<option value="%">All Projects</option>'; for (var i = 0; i < json.length; i++) { options += '<option value="'+json[i]['project']+'">'+json[i] ['project']+'</option>'; } $("#select_project").html(options); [/code] now I want to set the select box to have a size=dropsize
[jQuery] addClass (odd and even)
I have a product listing like this : <div class="listing"> .....</div> I want to add different background color for the odd and even listing like so: <div class="listing odd"> .....</div> <div class="listing even"> .....</div> <div class="listing odd"> .....</div> I know how to use the simple addClass function in jQuery, but I am unable to figure how to add the 'even' class. This is my code, can you please tell me what I did wrong? <script> var $j = jQuery.noConflict(); $j(document).ready(function()
[jQuery] livequery with hoverIntent
hello! i need to assign a behaviour triggered via the hoverIntent plugin to elements fetched via ajax. I would assume i should use the livequery plugin for that, but my attempts have failed miserably so far. Here is the non livequery code, that works for DOM elements present on document ready: $('ul.mainmenu:not(#applicationTitle)').hoverIntent({ sensitivity: 2, interval: 0, over: function(){ $('li, li a', $(this)).addClass('visible'); }, timeout: 0, out: function(){ $('li, li a', $(this)).removeClass('visible');
[jQuery] remove dynamically placed dom element
I am using this code to add a new item to a list $("#addLinks").submit(function() { $.post("addLinks.php",{ step:'addLink',title:$ ('#title').val(),url:$('#url').val(),pageID:$('#pageID').val()} , function(data) { $('#'+$('#pageID').val()). append("<li id='link_'"+data+"><a href='javascript://' id='delete' onclick='deleteitem("+data+"); return false;'><img src='img/delete.gif' /></a><h1>"+$('#title').val()+"</h1> "+$ ('#url').val()+"</li>"); $('#link_'+data).effect("pulsate",
[jQuery] Help with UI Dialog show dialog
Hi, i have this function: function showSendMessage(id){ $('#sendMessage').dialog({modal: true,overlay:{opacity: 0.5,background: "black"},title: 'Kontaktovat uživatele'}); //$('#sendMessage').dialog('open'); $('#sendMessage').css({ display:"block"}); $('#ClientsRecipientId').attr({ value: id}); } this function is use when i click on some buttons (onclick). If I click on buttone once dialog will be show i close dialog, after second click on button will be not show. So i try correct function: function
[jQuery] Star rating plugin + rails
Hi - I'm trying to use the excellent star rating plugin from fyneworks (http://www.fyneworks.com/jquery/star-rating) with a rails project I'm working on. I'm running into a bit of an issue that I wonder if anyone else has seen. Typical names of form fields in a rails app look something like this: mymodel[myfield] which I suspect is causing an issue with this plugin. If I leave the form as generated by rails, with names like above, then the mouseout and click events don't behave properly. mouseout
[jQuery] about redirect
Hello, first of all, thanks for jQuery it is fantastic. I have a question: I want to sue $.ajax but, if the server responds http 303, I do not want to follow the new location within the ajax request, I want instead to redirect the current page/document to the new location. Is there a way to do so? Massimo
[jQuery] jQuery Tabs - Sync rotation with a 'loader' animation?
I'm using tabs to facilitate a carousel to rotate content on my site, and I wanted to add an animated GIF 'loader' graphic that is timed with the loader. On Firefox 3 this works perfectly - it seems to be smart enough to not start the GIF animation until the script shows each frame. With other browsers...not as much :-) The animation starts when the GIF loads and isn't tied to the script at all. Is there a way to fix this? Maybe set the GIF load on each tab to be dynamic so it loads/starts only when
[jQuery] Listbox plugin that uses upper and lower arrow for ordering
Hi All, I'm looking for a jQuery listbox plugin that could do ordering inside a listbox with two buttons that control the selected listbox item to manipulate the ordering. Thank you very much. I haven't been able to find one >_<. thx, George
[jQuery] slideToggle flickering in Firefox (jQuery version 1.2.6)
I put together a slideToggle example for myself at http://www.richardsimoes.com/slidetoggle.html . One thing I noticed is that if one expands a question, scrolls all the way day, and then collapses the same question (use the Minimize Section link at the bottom), the top of the browser Window will flicker while the collapse animation is running. Any ideas on what could be causing this? -- View this message in context: http://www.nabble.com/slideToggle-flickering-in-Firefox-%28jQuery-version-1.2.6%29-tp18206748s27240p18206748.html
[jQuery] Internet Explorer 6 Not Running Code
Hi, I'm not sure whether this is where to post this, but I have some jquery code that runs in FF but is not executing in IE6. function LoadFields() { if(this.id) { //some code } else // first load { // build the HTML options for the select fields and set $ ('ddlType').html(options) and $('ddlUserGroups').html(options) _LoadFields('ddlType', 'ddlUserGroups'); _LoadFields('ddlTypeS', 'ddlUserGroupsS'); //if I uncomment the line below the bug does not occur and the setDefaults code runs in IE //alert($.browser.msie);
[jQuery] FF2/Mac Text Dimming issue => a solution!
Hey There I recently starting working on a Mac using FF2 as my browser of choice. After a short period I noticed the infuriating text dimming FF2/Mac opacity bug. Thanks to the support from this group, I found that by by adding -moz-opacity:.999 to the body would fix this issue, but recently Joel Birsh pointed out this fix causes issues with FF3. He found an elegant solution to this: if ($.browser.mozilla && parseFloat($.browser.version) < 1.9 && navigator.appVersion.indexOf('Mac') !== -1) $('body').css('-moz-
[jQuery] Firefox caching form data on soft refresh
Hi everyone, First I would like to say this is my second day playing with jQuery and I can tell I am going to be hooked on it. Very cool stuff, and not to mention how well it helps downgrade for non-js browser. Very Cool! Now, on to my question: Right now I have a form where a few div's are open or closed based on the selections of checkboxes. One thing I noticed in firefox during a soft refresh, it still retains the checkboxed values so what this means that is on a soft refresh, checkboxes which
[jQuery] [tooltip] positioning
I am using the excellent Tooltip plugin from http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ and had a quick question on the settings. The top-left corner of the tooltip tracks the mouse pointer, and positioning is according to the top-left corner. I'd like to use the top-right corner instead, so the right edge of the tooltip is adjacent to the pointer, not the left edge. Any ideas on how to do this? Thanks!
[jQuery] load contents of body tag from a remote html file...
How would I go about loading only the contents between the body tag of a remote html file? I have tried adding a css ID to the body tag like so: $("#header").load("templates/index.html #tempBody"); and get nothing in return, it's only when I apply this to a wrapper div that it seems to work. Unfortunately I am trying to avoid using any wrapper tag. It would be ideal if I could just grab the contents of the body without adding anymore mark up. And I am not able to strip out all the head and body tags
Please help Slight change for jquery popup
Hi! i just want that the link inside the popup should also close the popup, (not only when clicked elswhere) what code and here do i put the code for the id#cls, that should also close the popup. Thanks so much <script type="text/javascript" src="jquery-1.js"></script> </head><body> <p>Some text</p> <p>some text</p> <a href="#" id="button">Show popup</a> <div id="bubble" style="padding: 20px; background:#666666; height: 27px; position: absolute; display: none;"> <a href="#" id="cls">also close from
[jQuery] [validate]
Jörn, Just an FYI, in looking thru the documentation I see that between the jQuery format and the original format that there are missing elements that need to be added. For example, on here : http://docs.jquery.com/Plugins/Validation You do not have a section for errorClass, errorPlacement, errorLabelContainer or errorElement. I only came across these in the BRIEF description under Error message Display. There are no examples. Can you please make sure that ALL of them are listed? I am a novice with
[jQuery] UI Dialog help with show dialog
Hi, i have this function: function showSendMessage(id){ $('#sendMessage').dialog({modal: true,overlay:{opacity: 0.5,background: "black"},title: 'Kontaktovat uživatele'}); //$('#sendMessage').dialog('open'); $('#sendMessage').css({ display:"block"}); $('#ClientsRecipientId').attr({ value: id}); } this function is use when i click on some buttons (onclick). If I click on buttone once dialog will be show i close dialog, after second click on button will be not show. So i try correct
[jQuery] fgCharting
Is fgCharting the plugin to use to make Additive Charts? There plugin only supports jQuery version 1.2.1. Is there a better charting script that can do additive charts? or how would one go about updating their code so it can run with 1.2.6?
[jQuery] Taconite + clueTip plugin
Hello Everyone Because of my cluetip plugin i make something like this <div id="item1"> <a href="page.php" title="Title|now comes a image <img src="pic.jpg" />" /> </div> With taconite i want know rebuild this div but the problem is that taconite gives an undefined error because of the img-tag(and all other html tags) inside uf the title attribute. For those how don't know the clueTip Plugin: It's a Plugin which shows the text(or HTML) in the Title tag as a Tooltip. Someone got a workaround for my
[jQuery] jQuery Validation Error
Hello all, I'm using jQuery 1.2.6 and Validation 1.3, and I'm getting an error message in my firebug console when I click (for the first time) any field in my form. Error: validator is undefined /js/jq/jquery.validate.js Line 291 My jQuery code is as follows: $(document).ready(function(){ // There is a bunch of other code here that inits animations on the page and stuff. $("#errorDiv").hide(); $("#submitGame").validate({ rules: { "submitGame[creator]": {required: true}, "submitGame[gameTitle]": {required:
[jQuery] Validate Plugin
Hi All, I just started working with the validate plug in and I am having a interesting problem. I am validating input text tag that is the second column in a four column table. The error message is being displayed in the third column. The txtCC2 is the problem at this point. Here is my code. Thanks. var validator = $("#form2").validate( { rules: { txtCC2:{ required:true, minlength:3 }, chkTerms: "required", }, messages: { txtCC2: { required: "CC Validation Code Must Be Entered", minlength: "CC Validation
[jQuery] Browser Refresh - content being cached
Hi everyone, First I would like to say this is my second day playing with jQuery and I can tell I am going to be hooked on it. Very cool stuff, and not to mention how well it helps downgrade for non-js browser. Very Cool! Now, on to my question: Right now I have a form where a few div's are open or closed based on the selections of checkboxes. One thing I noticed in firefox during a soft refresh, it still retains the checkboxed values so what this means that is on a soft refresh, checkboxes which
[jQuery] jqGrid problem
I want to create a grid, whose cells show a pop-up window when clicked. I'm using jqGrid, and using jQuery to attach an onClick object to each cell (all the windows are different) after the grid has loaded. My question(s): 1: Is there an event or other way to tell when the grid has loaded? 2: Is there a better way to do this?
[jQuery] jQuery and RIA design
I hope this post is appropriate for the group and if not, I apologize. I would enjoy a dialog concerning the architecture/design of web applications in general and using jQuery, in particular. I am posting to this group because after lurking for the past few weeks I appreciate the skill, knowledge and enthusiasm of the members of this group. So thank you for all the great info I have already received and thanks in advance for any ideas/thoughts you care to share. Short background...I have been doing
jQuery splitter plugin - handling the splitter
Hi, I wonder if any of You were using the splitter.js given here: http://methvin.com/jquery/splitter/ Mostly I've got what I needed, but I cant' block the splitter or, what's more important for me, force hiding/showing one pane. I would like to have a button which hides e.g. the left panel. ( ofcourse using this plugin ) Could somebody post an example javascript showing how it can be done? I would appreciate
[jQuery] if serialize(s) returns empty, show: 0
Hi, I have the following function: function serialize(s) { serial = $.SortSerialize(s); document.getElementById('serial').value=serial.hash.replace(/sort3\ [\]=/gi, '').replace(/&/g, ','); }; This returns a string like: 1,2,4,6,8 It is possible that there is nothing to sortserialze, so it returns nothing. When this is the case, I want it to return a "0" instead of " ", but how to do this? So if there is nothing to serialze return: 0 Thanks
[jQuery] Simulating mouseOver 'Rotating' Thumbnails
Hi, I am trying to simulate this website http://www.dp-photo.com/index.php#a=0&at=0&mi=2&pt=1&pi=10000&s=0&p=1 using jQuery - check the thumbnails on the right. Showing the the thumbnails on mouse over is not a problem but the continuous 'rotating' depending on the mouse position is where I am stuck. This is the concept at the moment: 1. Create a jCarousel with thumbnails as items 2. use the mouseOver event for moving the jCarousel These are the problems I am experiencing: The jCarousel cannot continuous
[jQuery] jquery form multiple php variables
Hi, I am trying to use the jquery form plugin and i have 3 form fields i need to go to php and come back and be inserted into a list. I am having trouble getting more than 1 php variable to return. here is the code example i am using $('#addLinks').ajaxForm({ // dataType identifies the expected content type of the server response dataType: 'json', // success identifies the function to invoke when the server response // has been received success: processJson }); function processJson(data) { // 'data'
[jQuery] BlockUI and ajaxForm
Hi, I have been using blockUI with ajaxForm for quite a while and I normally use the block() function from within the beforeSubmit callback and it works really well. I now want to extend this a little by producing a quick blockUI confirm message which if yes is clicked will return true and submit the form and if no is click it returns false and doesn't submit the form. I have used the Modal Dialog demo on the blockUI site as a starting point but I can't get it to work. It either pops up the confirm
[jQuery] IE7 can't accept marginRight property
Hi all, I was just wondering if anyone's come across this issue or maybe if it's been brought up before. I'm currently working on some small animations and it's seems that Internet Explorer 7 doesn't accept the marginRight. Unfortunately, IE 7 doesn't really have any good built in debugger so this took me a while to narrow down but I'm pretty sure it's because of marginRight. I tried marginLeft and it seems to work just fine. $(this).animate({ color: "#FFFFFF", marginRight: "15px" }, 300);
[jQuery] [autocomplete] Scrolling: FF3 vs IE7
IE7 ignores scrollHeight and adds a horizontal scrollbar. How can I get the same display in IE7 as I get in FF3?
[jQuery] jQuery validate error
Hello all, I'm using jQuery 1.2.6 and Validation 1.3, and I'm getting an error message in my firebug console when I click (for the first time) any field in my form. Error: validator is undefined /js/jq/jquery.validate.js Line 291 My jQuery code is as follows: $(document).ready(function(){ // There is a bunch of other code here that inits animations on the page and stuff. $("#errorDiv").hide(); $("#submitGame").validate({ rules: { "submitGame[creator]": {required: true}, "submitGame[gameTitle]": {required:
Next Page