[jQuery] jqModal inserting links with live clicks doesn't work
I read a bit on the new jqModal version that has live events on the a.jqModal (Actually reading this didn't tell me whether live events were enabled on .jqModal by default, or if you had to make the call shown in the code, but that's neither here nor there) So, I have a control panel list users of a system. The user name is an a.jqModal link to their href /users/xx/edit which is loaded through an ajax call using this code: $(function(){ $("#modal").jqm({ajax:'@href'}) }) and <a class="jqModal"
[jQuery] find multiple values
<pre><code><font size="4"><span>Hi there, Is there a way to find multiple values? This script checks <u>name = ben</u>, what about I want to check if <u>name = ben</u> and <u>name = joe</u>? Is this possible? Thanks ------------------------------------------------------- var</span><span> items </span><span>=</span><span> </span><span>[{</span><span>id</span><span>:</span><span>1</span><span>,</span><span> name</span><span>:</span><span>'bob'</span><span>},</span><span> </span><span>{</span><span>id</span><span>:</span><span>2</span><span>,</span><span>
Replace div text with content of tag
Tried searching but couldn't seem to come up with the language to yield any relevant results. My problem is as follows: I have a block of links inside of which are < smaller > tags which hold a generated piece of text. When a user clicks on one of these links (a.clip) I need the text within #fade to be replaced with the text inside of the < smaller > tags within that link. This is the code I have which only partially works... $(".clip").click(function(){ var title = $('smaller').html();
[jQuery] Hide function problem in IE8
Hi all, I have this jQuery snippet to hide a "DIV" block when the user select one value of a radio button: <script type="text/javascript"> $(document).ready(function() { $("input[name='persona']").change(function() { if ($("input[name='persona']:checked").val() == '0') { alert('PersonaFisica'); $('#ragioneSocialeLine').hide(); $('#partitaIvaLine').hide(); $('#sedeLegale').hide();
[jQuery] Change button text with ajax
Hi, I would like to change the text of an asp button from client-side code without posting back to the server. Is this possible to achieve with ajax? Can someone give me a code example please? Thanks! -- View this message in context: http://www.nabble.com/Change-button-text-with-ajax-tp23483982s27240p23483982.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] jqmodal/canvas z-index issue in IE7
Hi group,<div>I am using JQmodal and the canvas-plugin in a new project. The combination works fine in Safari/Firefox but i have a z-index issue in IE7 whre modal is behind the canvas elements.</div><div> </div><div>You can see this in action in the navigation menu when clicking "peuterspeelzaal" on the demo at <a href="http://www.kittiwake.nl/cluetip/demo/modal.html">www.kittiwake.nl/cluetip/demo/modal.html</a> </div> <div>I tried tinkering with the z-index of the jqmwindow class in the css
[jQuery] Any jquery plugin to help in displaying popups (divs above everything)?
I am having to display some popup divs (some divs which appear when user clicks something) in my project. Now, I am facing numerous issues relating to positioning of the divs, making the div appear over everything etc. etc. in different browsers. This has become a serious problem. I badly need a plugin if available. I have seen the thickbox plugin but that is not ecaxtly what I want. I want the plugin to be positioned wherever I want and the background should not deactivate. Please help me with anything
Hiding empty form option fields - Working but inelegant!
Hi all, First post here - I am trying to hide options in a form select field if they are empty. The code below works...but even I know it must be a horrid way of doing it! Anyone care to tidy it up for me? I would learn much from the experience, thanks very much: $(document).ready(function() { var size1 = $(".Size1").val(); if(size1==' ') { $('.Size1').remove(); } var size2 = $(".Size2").val(); if(size2==' ') { $('.Size2').remove(); } var size3 = $(".Size3").val(); if(size3==' ') { $('.Size3').remove();
[jQuery] Confirm password equalTo function of Validate plugin are not working properly in Firefox3.0.10 and Firefox2.0
Is there any body known about this problem? My code: //js code “data[User][password]“: { required: true, minlength: 6, maxlength: 15 }, “data[User][confirmPassword]“: { required: true, minlength: 6, maxlength: 15, equalTo: “#UserPassword” }, //code end The error happened at line 1040 of jquery.validate.js //code equalTo: function(value, element, param) { return value == $(param).val(); } //end The ‘$(param).val()’ here is always empty. I test this on Chrome, it works fine there.
[jQuery] slideToggle problem in IE
Hi everyone, Are there any known problems with slideToggle() and IE 7? The following code behaves strangely when run on IE 7, the input control that should receive focus dissappears for around 2secs after it gains focus. $("#myCheckbox").click(function() { $("#detailData").slideToggle("normal", function() { $("#nameInput").focus(); }); }); Regards Beyers Cronje
[jQuery] IE7 not finding elements in appended html fragment
Hi, I have a function which inserts a html fragment containing a form into a page - however when I go to send that form I get an error from IE7 and in the example below if doesn't get the value of any of the inserted form fields - works fine in FF. Any thoughts? Thanks! Code below: $('.s2f').live("click",function(){ id = $(this).attr('data'); $('#form_'+id).append('<table><tr><td><label class="shrt">Your Email:</label></td><td><input type="text" id="yemail" name="yemail" class="shrt"
[jQuery] Any jquery plugin to help in displaying popups (divs above everything)?
I am having to display some popup divs (some divs which appear when user clicks something) in my project. Now, I am facing numerous issues relating to positioning of the divs, making the div appear over everything etc. etc. in different browsers. This has become a serious problem. I badly need a plugin if available. I have seen the thickbox plugin but that is not ecaxtly what I want. I want the plugin to be positioned wherever I want and the background should not deactivate. Please help me with anything
[jQuery] qooxdoo with Jquery?
Has anyone used Qooxdoo with jquery? I already use jquery has my core js library and I use some components from Jquery UI. I want to continue doing that but enhance the number of rich ui components I have at my disposal. I see qooxdoo and extjs as choice Has any one successfully used qooxdoo or extjs components with jquery in same web application?
How can I link to a specific section of my 'accordion'?
Hi there, I have written the following code, which is kind of like an accordion, except that you can open more than one section at once. jquery code <script type="text/javascript"> jQuery(document).ready(function(){ $(".question").click(function() { $(this).next().toggle("medium");return false; }).next().hide(); $(".expand_all").click(function() { $(".question").next().show("medium");return false; }); $(".collapse_all").click(function() { $(".question").next().hide("medium");return
[jQuery] Autofocus on a newly created item
I want to write a function that: (1) automatically create textfield within an HTML element (2) autofocus on the new created textfield The HTML looks like this: <span id="dummy" onClick="createAndFocus(this)">some content</span> Here is my code. This can create the textfield. But it cannot autofocus on the textfield: function createAndFocus(item) { id = $(item).attr('id'); value = $(item).text(); $(item).html('<input class="todo-textfield" value="'+value+'" '+ ' onBlur="javascript:textfieldToSpan(\''+id+'\',
[jQuery] [validate] Help - Validation by Remote: stuck
I've got an combobox that is required, but the data typed by the user must be validated against records from a database. So I've tried to use remote:"checkStore.php" external file but am getting nothing. What can I do to output what goes INTO checkStore.php and what comes out of checkStore.php to help me debug it. I'm not even sure my input name is being passed into the remote. Is there more scripting I need than what I show here? Here's my form: <input type="text" name="storename_name" class="required"
[jQuery] jCarousel with Multiple Rows
Hi Guys, I am attempting to get 2 horizontal rows with jcarousel, something like Item Item Item < Item Item Item > But there is just no code to do this anywhere ? Can someone assist with a solution that works for both HTML and JS ? I'm sure that I, and the other 1000 people trying to do this, would really really appreciate it ? Cheers
[jQuery] IE6/IE7 Error (Object doesn't support this property or method)
Hi all, Problem that i'm facing is that i'm loading external ASPX pages in AJAX tabs..its working great in FF3.0,Safari,Chorme & IE8 but it gives "Object doesn't support this property or method" error in IE6/IE7 when ever a new page is about to load in tab & it also doesn't load... Please Fix this bug or tell me the solution if you've any solution regarding this bug..please keep in mind i'm new to JQuery Regards;
[jQuery] JQuery Implementation
Hi all, I'm relatively new to programming with JQuery, so please forgive me if this question comes off as uninformed - I couldn't find the answer to it anywhere. My website had been calling the JQuery library available on Google to use for implementation. I realized this was quite the bad practice and moved the library over to my own server to increase load time. However, a friend told me that the JQuery library actually makes a call to the JQuery website even if you were to call an instance of the
[jQuery] [autocomplete] triggering a function when an item is selected
Hi, Is it possible to trigger a function that fires when an item is selected from the autocomplete box? Thanks a lot in advance, David
[jQuery] UI component libraries?
Are there any good web UI component libraries -open source or commercial - that you can recomment? They need to be cross browser compatible and have good documentation. Jquery UI is very good but limited in number of controls it offers. YUI is very verbose and very hard to use. extJs only other one I can think of. Any others you use and like?
[jQuery] $ajax does not send all data
The following function is used as the onsubmit handler for a form: // ------------------------------------------------------------------------------------------- function checkCPForm1(theform) { if(ValidateCPForm(theform)){ var data = $(theform).serialize(); alert("data: " + data); // DEBUG GLOBAL $.ajax({ type: theform.method, url: theform.action, data: $(theform).serialize(), datatype: 'html', success: function(html){$('#dynamic_content').html(html)},
JQuery Splitter IE7 issue
Hi Guys I have just put the JQuery splitter plugin into a simple page and am having some issues with IE7 and the default div sizes. The setup i want is to have two panels (divs) that will fill the browser window and have the splitter between the two. This works perfectly in FF but when loading in IE7 the two panels are sized to have the content completely visible rather than only sized to 50% of the browser window. this problem is removed though when the splitter bar is dragged up. The code i have
[jQuery] Removing and Adding DOM Elements which hold flash movies. Rut Roh
Hello All, I've run into a problem on a particular project, and it seems to be browser specific. The HTML: <html> <head></head> <body> <span id="video1" class="video"></span> <span id="video2" class="video"></span> <div id="controls"> <img id="prev" src="previous.jpg" /> <img id="next" src="next.jpg" /> </div> <!-- Now below is the flash cs3 produced html stuff to embed the video on the window load. Copy/pasted from Adobe --> <script type="text/javascript"> ... </script> </body> <html> Basically,
[jQuery] Problem with jQuery in Firefox
Hi, I'm in a development phase of a file sharing portal and I have a problem with jQuery on the following page: http://share.home.hive-net.net/pricing. In Firefox I get an error "too many recursion" when changing the plans. Can you please help me get rid of it? Thanks in advance, Martin
No preset slider value
Hi! First of all jquery is great! My question: Is there a possibility to avoid a preset value for the slider. So that you see only the bar und the actual slider appears on click. If not. Is there a way to do a hack or something? Thanks a lot!
remove all other classes on click and add to this?
Hi, I've used the following code: mAjQ(document).ready(function(){pplr();}); function pplr(){mAjQ("a[href$='mp3']").live("click",function(){ if(!mAjQ(this).hasClass("mAa")){ mAjQ(this).addClass("mAa").after("SOMETHING"); } else{ mAjQ(this).next().remove();mAjQ(this).removeClass("mAa").next().remove(); } return false; });} This code add a class on click on element and remove the same class if this element already has class. How to remove class if I click on another element and at the same time add
Slide single image horizontally onload
hi, i am relatively new to jquery and have found lots of cool ways to have images slide in on toggle. what i am trying to do is create a single banner or image and have it slide in horizontally from left to right when the page loads. not looking to do a slide show or anything else, just slide in one image. any help in the right direction would be much appreciated. andrew
Getting JQuery to do the equivalent of a GET form submit
Hello all I have a couple of simple forms: <form action="insert.php"> <input type="hidden" name="action" value="vote_up"> <input type="hidden" name="id" value="' . $name_row[mpid] . '"> <input type="submit" value="Up"> </form> <form action="insert.php"> <input type="hidden" name="action" value="vote_down"> <input type="hidden" name="id" value="' . $name_row[mpid] . '"> <input type="submit" value="Down"> </form> which work great, but I'm trying to replace the form buttons with jQuery
[jQuery] [validate] Any solution to "jQuery validation error in IE6"
hi, I have the same problem as discussed in: http://dev.jquery.com/ticket/4185 in fact everything works ok in firefox but when it comes to IE6 this problem occures, and I couldn't handle it. I am using jQuery.validation v1.5.2 and jQuery1.3.2... I am wondering anybody knows any solution for... Thanks a lot for all your help! Sami
Read css property
I have a mouseover function on a certain element. is it possible to read a css property onMouseOver and write it again onMouse out? Here is the function: $(".hov").bind("mouseover",function(){ $(this).find("a").css("color","#ffffff"); }); $(".hovdiv").bind("mouseout",function(e){ $(this).find("a").css("color","#555555"); }); So in the first function i want to store the current color of the "a" element in a var. Then make it white. Afterwards i want to give the same element its original color
[jQuery] How to combine after, slideDown and fadeIn
Can anyone help me combine two jquery functions: after and slideDown. My code looks like this but it doesn't work :( var data = "New text"; $('#newvrisk').after(data, function(){ $(this).slideDown('fast', function(){ $(this).fadeIn('slow'); }); });
[jQuery] animating div when the mouse is over
Hi guys, I have a couple of images with width = 280px and I would like to display, when the page is loaded, only a piece of them (the left 240px) and all the image once the mouse goes over the image. This is the html (for 1 image) <div class="badge" style="width: 240px; height:78px; overflow: hidden;"><img src="badge_1.gif" /></div> And here my script $(document).ready(function(){ $('badge').hover(function() { $(this).animate({ width: "280px"}); }, function() { $(this).animate({
A good jQuery plugin site suggest to you
i surf the plugin in jquery and find that there is a great plugin site It seems that they create usful plugin so fast It has color picker and rich text editor jquery plugin now! http://jqframework.com
[jQuery] AJAX issue
Hi, I've been experimenting with jQuery's AJAX capabilities. I was trying to create an effect that pulls data from an XML RSS feed and displays it. Long story short, I got everything to work, but I couldn't figure out how to pull data from a CDATA section like the following: <item> <content:encoded><![CDATA[ Some text ]]></content:encoded> </item> I wanted to put the "Some Text" in a variable. But I have no clue how. This is what my jquery looks like so far: $.ajax({ type: "GET", url: "vid.xml",
[jQuery] ext grid + lightbox
Have any of you been successful with invoking lightbox from images in a grid? I display images in my ext grid and I am trying to use lightbox. Lightbox requires requires this tag <a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>. I tried this just using the cfgridcolumn href=" " but it produces errors when I add rel="lightbox". Do you have any experience invoking lightbox from an image displayed in a gridrow? thanks, Bud
[jQuery] .load(function() not working
I have a piece of code which has worked great in the past on this very site, but for some reason now, has stopped working. I put in the .ready function to try and fix it bc I understand that is a crucial peice of syntax for jquery. Still the code does not work. Everything in this code is not being executed, its like the code is being ignored. [CODE] <script type="text/javascript"> <!-- we run in the footer so no need to use onload --> $(document).ready(function(){ $('#zoe img').load(function() {
[jQuery] Elements to inherit UI theme colors
I want to use UI theme colors on other elements of my pages and for them to switch automatically when UI theme is changed. I was going through css files generated by theme-rollerand didn't find any classes just for defining colors or borders used in a theme. For starters I wanted my form fields to have borders similar to UI theme. I used "ui-widget-content" and it worked fairly well, but I was wondering if there is a better way to do this.
[jQuery] Get attribute of the parent element into a variable
Hi, All. Kind of new to jQuery, but having fun with it. Would like to learn how to do the following... 1) Target the active <a>. 2) Find the parent <li>. 3) Grab the value of the attribute "jcarouselindex" and put it in a variable to be used elsewhere. Sample code below... <ul id="carousel"> <li class="carousel-item" jcarouselindex="1"> <a href="/someurl"><img src="someimage.jpg" alt="" /> </li> <li class="carousel-item" jcarouselindex="1"> <a class="active" href="/someurl"><img src="someimage.jpg"
[jQuery] jcarousel Sort problem
Hi, I am using jcarousel on my webpage and i love it but a little problem came to my attention lately. I am using it like this: "<li><a rel="lightbox-2" href="galerie/250409rockok_01.jpg" title="1 Berlin, 25.04.2009"><img src="galerie/thumbs/250409rockok_01.jpg" alt="1 Berlin, 25.04.2009" style="border: 2px solid #d8ba80;"/></a></ li> <li><a rel="lightbox-2" href="galerie/250409rockok_02.jpg" title="2 Berlin, 25.04.2009"><img src="galerie/thumbs/250409rockok_02.jpg" alt="2 Berlin, 25.04.2009" style="border:
Next Page