[jQuery] change video width while playing
is there anyway to change width of a embeded video with javascript so that user can click a button and the video will be bigger but it won't start from beginning. it is like veoh website where you can click a large button and the video will enlarge. Please help me out here. thank you
[jQuery] jQuery right before </body> tag?
I am working on optimizing my page for speed. And, in doing this, I am wondering if I should put jQuery, as well as my other .js files right before the </body> tag, similar to google analytics files. Is this a good idea? Or will this not work?
[jQuery] Toggling radiobutton selection
I'm wondering how to toggle radiobutton on selected vs. not. If selected show a div via ID. -- View this message in context: http://www.nabble.com/Toggling-radiobutton-selection-tp22672135s27240p22672135.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Cannot get height in Opera
Hello, I posted this in the UI group but I'm thinking the question may belong here. I can't seem to get the height of Dialog titlebars in Opera. I've tried numerous approaches. You can run the below code in Opera with any page that contains a Dialog. It always returns 0. Thanks http://paste.pocoo.org/show/109098/
[jQuery] Click event is not captured by jQuery after the link to click is rendered by AJAX through jQuery
Hi, I wrote a jQuery code to display a link in the side bar (like the ones such as "About this group" shown in the right pane of this page) through AJAX. Then I want the click event on the link to be taken care of by jQuery. But that event is not captured by jQuery. How can I capture the event? The code looks something like this (class name etc. has been changed for the purpose of posting here): jQuery(document).ready( function($) { jQuery( ".class-name-for-element-for-ajax" ).click( function() {
[jQuery] Stop propagation (I think) on nested lists
Hi everyone, I am trying to do a multi level UL /LI with the sortable component of jquery-ui. The sortable behaviour its only available while moving on the same level (vertical). It works OK while dragging between first level elements, but everything starts to fall apart when dragging between elements from other levels. Its like the dragging event is propagating to the parent level, and so on. It works, but it looks awful. The code is here: http://pastie.org/private/xh5hvjirpigcpee7rska Any idea
[jQuery] Testing if a .data('key') is defined?
I'm using .data to store some information and occasionally hit a case where I'll try to do something with the stored data and will get an error e.g., $("#foo").data("bar") is undefined. I need to fix my code so that doesn't happen, but would like to know the best way to test if "bar" has been defined for $("#foo") so that I can catch these errors before they happen.
[jQuery] Forced bubbling
I have 2 containers i disabled event bubbling for first container. This is must have $ ('#first').click(function() { return false; }); Now i need to detect if user clicked outside #second container $ (document).click(function () { alert('clicked somewhere'); }); Clicking on #first doesn't show me alert. Is there any way to force bubbling??. I cant add this alert to #first click, because there can be 1000 that kind of elements.
[jQuery] [validate] -
Hi all, I want to use the "remote" method to validate a captcha. No big problem, it works. But, it doesn't seem optimized... When I analyze all the Ajax calls with Firebug, it seems that an Ajax validation call is sent each time I focus another field on my form - after the captcha field (with remote validation) was focused -. In other words, the remote validation is called whether the captcha text is modified or not when we focus another field of the form. If the captcha text is not modified, why
jquery.load() only working once
Hi there, I am a relative newbie to jquery/javascript and have what I hope is a simple problem. I am using. I have an input text field with an add/submit button - it's purpose is to add tags to an article created in a CMS. Whenever a tag is entered 1) I am using a click listener on the submit button 2) and am calling Jquery.load() to perform some checks/validation and 4) add the tag to the database 5) then retrieve the new set of tags for that article and inject them into the DOM. Therefore there
Ajax - Request and Html + Javascript
Hello ! I would like to replace the contents of one <div></div> with Ajax. Into that div the following contents are to be inserted --------------------------------------- <javascript type='text/javascript'> alert (' Hello! '); </script> <h3>Newsletter</h3> ---------------------------------------------- Is there to bring a possibility Javascript to the execution ? Yours sincerely Stefan Krauß
[jQuery] Cycle breaks in IE7 when using list box
I have an instance of Cycle 2.63 (jquery.cycle.all.min.js) that works great except for one thing. By using a list box for selection, it breaks under IE7 (content doesn't change upon user selection). I'm still pretty new to JS development. Haven't tried IE8 out just yet, but I'd like to get this working in IE7 anyway. Here's a sample of my code: -------------------------------------------------------------------- <?php jq_add('cycle'); ?> <script type="text/javascript"> $(function() { $('#s1').cycle({
Append variables to Jquey.post
I'm using post for sending data to a PHP page. My problem is that sometimes I need to append some more variables to the POST statement and I wanna use the same function. The basic is: $.post( 'mypage.php', { var1: 'data', var2: 'data' }, function() { $('#obj').html(data); }); But sometimes I need: $.post( 'mypage.php', { var1: 'data', var2: 'data', var3: 'data', var4: 'data' }, function() { $('#obj').html(data); }) Is there a way to use the same function
[jQuery] Malsup/Cycle errors
I am using the cycle jquery plug-in on a site. I discovered that the code that I was using (jquery.cycle.lite.js) won't support what I need to do but either the jquery.cycle.js or jquery.cycle.min.js plug-ins will. When I try to use them, I get javascript errors inside the cycle plug- ins. After a few trips to the cycle web page, I now get the Safari warning that the site may be infected with Malware... I wonder if my sudden bugs have anything to do with this!?!?!? In any case, I got around the problem
[jQuery] Hide/Show content in a div based on selected radiobutton
I'm very new to using jQuery ouside of basic form validation. I've got a radiobutton on my page (it's in an .aspx and is a .net control that will most likely have a class I can grab from jQuery is probably the route I'll go with this). When the radiobuttonlist is selected, I need to show content in another div that has an ID. The content inside that will be a bunch of other things (another radiobuttonlist, textbox, and so on). I'm really not sure how to get started on this, especially with the action.
[jQuery] having some trouble, Safari, Ajax, iframe
So after a lot of debugging Im still having trouble with something that seems rather easy. And it works in all browsers but Safari. http://pastie.org/423822 is the code. This code is actually being pulled in from an iframe. Once you hit the upload button, it makes calls to get the upload progress and then returns that to the progressbar. If i put my own number on line 25 like 30, it works and the progress bar jumps to 30, I dont believe it is a progress bar issue. Since i never actually submit the
[jQuery] Error on prepend in IE7
Hey all. I'm using jQuery with flexigrid and when the table displayes in IE7, I get a JS error. Here is the JS error and block of code it references. unexpected call to method or property access prepend: function() { return this.domManip(arguments, true, function(elem){ if (this.nodeType == 1) this.insertBefore( elem, this.firstChild ); }); }, At first I thought it might be having additional tags inside the table cell data but I removed all the tags
How can i do something like Splush.
Hi everyone. I use JQuery for a long time, but today, i don't know how i can realise something like the Splush effet. For whose who don't know what is it, you can find an exemple here. http://www.feedasplush.com/feeds/widget/view/key/9890e4545bf9cf3b50fe02fb5923c9f8/page/1/format/1/date/1/image/1/bcolor/FFFFFF/lcolor/ff9900/tcolor/000000/icolor/4f4f4f/width/300/wtheme/light I tried some things, with toggle effect, but never find a such great effet. It would be for my blog, I do not want to compete
[jQuery] Regex Help for CSS Selector type deal
I need to come up with a regex, or find some way to leverage Sizzle (which I'm not familiar with) to do a pretty simple task. Given strings like: div#some-complex-id.myClass.ui-state-disabled or p.myClass#someId.otherClass or p .myClass .otherClass .ui-state-disabled #myId I'd like, through one or two regex arguments (ideally, one which return me classes, one which will return an ID), arrays containing the classes/id in the string. I hope I'm that was clear. It seems like it'd be simple for someone
Fade lost in shuffle with cycle plugin
The problem can be found here: http://www12.lilt.ilstu.edu/galleries/ The second image on this page does not fade in like it is supposed to. It works for all the other images. The effect I am going for is a polaroid type effect. Anyone have any idea why it's not working right?
[jQuery] remote validation
Hello: I'm using the validation plugin on my site to make remote validations, and it is working graet! But, I note that the ajax call is made allways. I think that that call only has to be done when the input value has changed. Has no sense to validate a value which has not changed. It is posible to specify into the rule's options that only validate if the value has changed? My code: $('#number').rules('add',{ remote: { url: "/api/validate/number/", data: { val: $('#number').val()}
My First Plugin
Hi, I'm Mikey, I'm new to jquery and I'm looking to creating my first plugin. I'm doing a quick textarea limit, however im not sure how to do it. index.htm: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html lang="en" xml:lang="en"> <head> <title>Textarea Limit</title> <meta http-equiv="Content-Type" content="txt/html; charset=utf-8" /> <script language="javascript" src="../jquery.js"></script> <script language="javascript" src="limit.js"></script>
[jQuery] Problem concerning form with jquery
Hi, I have a problem i can't find a solution to, and as you can guess it's annoying me :) Here is my code : #################### index.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Formulaire de commande dynamique</title> <link rel="stylesheet" type="text/css" href="style.css" />
[jQuery] Validate plugin not working
I have been trying all day to get the latest validate plugin to work with the latest jquery. It works when I specify the keywords in the class name, but when I try writing the code only in javascript {rules: {}} nothing happens, no error no nothing just nothing. This is doing my nut. The example below I made, should work according to the docs,but it doesn't. <html> <head> <title>jQuery Validation test</title> <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script> <script type="text/javascript"
[jQuery] IE6 how can I parse custom XML?
It's works on FF, but not in IE6. Final task - it's just full parse of XML. But this example already don;t work in IE6. $('#tt').val('') p = $('<nn><c1 ><h /><h /></c1><c1 /><c1 /></nn>') trace(p.children().length) in archive of this group i can't find answers. How I can fix this? Or maybe JQuery have some plugin for this?
[jQuery] Cycle plugin Issue in Safari and Chrome browser
i'm working on this site http://mojoe.net/ContractService/cleaning.html and cycle works fine in everything except safari. safari doesn't recognize my cycle div's height (on this page the div is .photo) the same thing happens on the home page, too. chrome has the same problems when you first visit the page, but fixes itself when you leave the page and come back. anyone know what's going on?!?!
[jQuery] Can't resolve Superfish issue.
Hello, I want to add a dropdown navigation bar in my site: http://strategicventurefund.com I added the module superfish and select the menu style as nav-bar. But I can't find any menu item nor there is any drop down occurs. Can anyone help me by giving me step-by-step instruction to use Superfish menu? Thanks in advance. Prasun
[jQuery] How Easy To Implement RPC Between jQuery And PHP
Hi, I'm really new to JS, but really like how AJAX simplifies the user interface experience. Some friends have recommended a variety of JS Lib/Frameworks, and I eventually decided to pick jQuery after glancing through its documentation. Now I want to try it out together with PHP to implement remote procedures calls in order to interact with a database (namely, MySQL) for an application. So how easy is it to achieve this, are there any good built-in methods that simplifies this work? Thank you :)
jqGrid + DWR
Hi, I'm using DWR to obtain the data. In the callback function I have all the results and I need to reload the grid. I have something like this. DWR Callback: var data = new Array(result.length); for (var i=0; i<result.length; i++) { // In result I have all the data var row = new Array() row[0] = result[i].xx; row[1] = result[i].yy; row[N] = result[i].zz; data[i] = row; } reloadGrid(data); And in the reload function I need something like this: function reloadGrid(data) { for(var i=0;i<=data.length;i++)
[jQuery] $("#id").attr("ondblclick", "New Value"); is not work in all browser.
Hello, After load this page, double click is not work in IE 7.0, Firefox 3.0.7. But in Opera 9.64 is work. What wrong? Please advice. <html> <head> <script src="jquery-1.3.2.js"></script> </head> <body> <div id="a1" ondblclick="alert('1');" style="width: 100px; height: 100px; background-color: #000;"> </div> <script> $(document).ready( function() { $("#a1").attr("ondblclick", "alert('2')"); }); </script> <body>
[jQuery] [autocomplete] How to activate autocomplete only after a certain character/string?
I have a domain textbox. I want to have an autocomplete only in the tld (top level domain/extension) part. Like: jquery [no autocomplete yet] jquery. [optional autocomplete] jquery.c .com .co.uk .cc .ac .... I want autocomplete only after the first dot. I know, it's easy just to separate the domain name and the tld into two, but this is not I want.
[jQuery] Tooltip: jQuery Tooltip affects doc height in IE7
I'm using the jQery Tooltip plugin with the "bodyHandler" function enabled, so that I write a bunch of DIVs to the page and then based on ID pull the content from those DIVs into the tooltip. Everything works fine in Firefox, but for some strange reason in IE7, whenever I mouseover a table cell to show the tooltip, the vertical scrollbar decreases in size, as if the height of the document changed. Since the tooltip is an absolutely positioned, z-indexed floating layer, I can't imagine how this would
[jQuery] unbind('focus')
Scenario: My form have 3 controls filled with placeholders named *, * and Comente. If user give focus to controls the placeholders vanishes and background color changes. Suppose user make a mistake in filling a control and submit the form. AJAX return an error message and preserve the data filled by the user, for relevants corrections. When the user enter the control containing the data for correction the data vanishes. I want to preserve the erroneus data in place allowing the user make changes
[jQuery] [validate] Suggested new feature for validation.
I have a case where I'm setting up an ASP.NET MVC View that partially renders several Partial View Controls. Each of these controls will be wrapped by a <div></div> element within the Form. This View will be used as a Wizard and we will be utilizing JavaScript to show and hide each various div element as they navigate the wizard. My issue is that there can be only 1 form tag which contains all of the Partial View Controls to be displayed. We cannot commit a partial registration to the database only
[jQuery] submit form into shadowbox (or lightbox)
Hi, I need to call a shadowbox page doing a post form. My form would be something like this: <form id="form1" name="form1" method="post" action=""> <input type="text" name="textfield" id="textfield" /> <input type="hidden" name="hiddenField" id="hiddenField" /> </form> What I need is that the destination page of the form is opened "inside" page of the caller page (using shadowbox for this) and it receive the correct parameters passed by post. Someone can help me, please? Thank you! Federico Ushuaia,
[jQuery] fadeOut Callback woes
Good morning all, Apologies again if this is a really basic question, but I've searched though the jQuery Docs and am struggling to find a solution. function lovelyFunction() { $("#lovelyDiv").fadeOut(5000,function(){ alert("Why now?"); }); }; Everything I'm reading in the jQuery Docs, to my understanding, tells me that the alert "Why now" should appear after my lovelyDiv has compleatly faded out. But, for a reason I'm struggling with, the alert "Why now?" appears before my lovelyDiv
[jQuery] drag & drop & resize doesn't work in jquery 1.3.2
this is my code it worked in jquery 1.2.6 but doesn't work in jquery 1.3.2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script src="js/jquery-1.3.2.js"></script> <script src="js/ui.core.js"></script> <script src="js/ui.draggable.js"></script> <script src="js/ui.droppable.js"></script> <script src="js/ui.resizable.js"></script>
[jQuery] JS Toolbox - Sortable Table
I was looking for a simple way to have a sortable table and found this at jstoolbox - http://www.javascripttoolbox.com/lib/table/documentation.php But in all honesty I seem to not be able to get it to work. Does anyone have any clue what I am doing wrong? http://43photo.com/store/files.php
[solved] Adding an onclick to a menu list
Hi everyone, Just wondered if someone can help or point me in the right direction. I have a menu generated by a cms and I want to add an onclick event. ie. current menu: <ul> <li><a href="/">Home</a></li> <li><a href="about">About</a></li> </ul> want to end up with: <ul> <li onclick="location.href='/'"><a href="/">Home</a></li> <li onclick="location.href='about'"><a href="about">About</a></li> </ul> ie. I need some code to go through each menu item taking the href value and adding it to the onlclick
[jQuery] Playstation 3
jQuery fails on the Playstation 3 browser. Yeah I know the PS3's NetFront browser really sucks at JS but it would be good if the plugin ran so even basic effects would work.
Next Page