[jQuery] [validate] Why isn't this validator catching bad usernames?
Hi guys, I'm trying to set up a validator to check that usernames consist letters, numbers and underscores here, and I can't work out why the validator isn't listing this field as one with a problem. The regexp tests okay, and I've added the jQuery validator the way you would expect, by following this demo, but bad usernames are sailing through validation when they shouldn't. I've put together an example here on jsbin: http://jsbin.com/ahazu/ What am I doing wrong here?
[jQuery] Feature Request - Customized/Bundled Downloads
I've been thinking about this for a while. What level of effort would be required to be able to specify all of the plugins that you want "bundled" then it pull the latest versions and automatically create a set of customized downloads (full,min,gzipped,etc)? It would allow you to have your one optimized js file instead of multiple files, or at least reduce the hassled of either putting them in the same file or including them only when needed. I understand that there are some technical issues like
[jQuery] jquery help
can anyone in the jquery community help me with an issue. the group for fancybox is not very active my problem is the following i am trying to use a callback in the fancybox plugin 'callbackOnStart':function(){ $(".target").css({'visibility': 'hidden'}); this example hides all the classes marked target but i need to only target the actual item being clicked. i tried to use callbackOnStart':function(){ $(this).css ({'visibility': 'hidden'}); but does not seem to work can anyone help me out with this
[jQuery] Multiple image requests in IE 6 when using the html() function
Hi, I am using jQuery.ajax to make an ajax request and my response contains an IMG tag. I use html(val) to update the contents of my DIV, but there are 3 requests for each image referenced in my IMG tag when i monitor this request using HTTP watch. If i use a regular DOM innerHTML property there are no issues. Any ideas? Thanks, Gowtham
[jQuery] Mouseleave event
Hello Is it possible to mouseleave event have some kind of delay inserted into it? I have this small script, which is working just fine : <script type="text/javascript"> $(document).ready(function () { $("ul.LvlOne li:has(ul)").bind("mouseenter",function(event){ $("ul.LvlTwo").slideToggle('medium'); }); $("ul.LvlOne li:has(ul)").bind("mouseleave",function(event){ $("ul.LvlTwo").slideToggle('medium'); }); });
[jQuery] CSS attributes as a variable.
Hello, I am trying to get the color of an element and change the color of another element with that color. Does this make sense? What is wrong with this? I would like all of the H1 tags to inherent the color of ".ui-state-error". Thank you in advance! $(function(){ var color = $('.ui-state-error').css('color'); $("H1").css({'color', ' + color + '}); });
Help with Jeditable
I need some help with the Jeditable plugin for jQuery, I downloaded the files and uploaded them onto http://edit.flamewars.co.cc/default.html for a test but they dont work, they are exactly the same as the ones found http://www.appelsiini.net/projects/jedi ... fault.html but on my website it does not work. Help please?
[jQuery] Ann: jqPlot 0.6.2 released
jqPlot is an open source plotting plugin for jQuery. The 0.6.2 release adds many new features including: Rotated axis text. Vertical and horizontal bar charts. Automatic trend line computation. Data point highlighting. Cursor tooltips showing data and grid position. And many other features. The jqPlot homepage is at http://www.jqplot.com/ The downloads page is at http://bitbucket.org/cleonello/jqplot/downloads/ The mailing list/Google group is at http://groups.google.com/group/jqplot-users jqPlot
[jQuery] fadeIn() on elements with alpha filter not working properly in IE
I am running into an effect issue with IE only. I have a <UL> with about 4 <LI> and I apply the fadeIn() on individual <LI> based on user actions. Inside of each <LI> I have a div that is styled with: -moz-opacity:.8; opacity:0.80; filter:alpha(opacity=80); The problem is that when I fadeIn() the <LI> all of its children elements' opacity is taken from 0 to 100%, AND THEN the div that is styled with the opacity is taken back to 80%. This causes sort of a flicker because it goes from 0% to 100% and
[jQuery] accessing dom from different domain ?
Hello I'm trying to make Twitter OAuth and getting "Permission denied to get property" here is the code jq13("#open-oauth-button").click(function(event){ TwitterService.getAuthUrl(function(url){ var myRef = window.open(url,'mywin', 'left=20,top=20,width=1000,height=400,toolbar=0,resizable=0'); jq13(myRef.document).ready(function(){ myRef.jq13("div.buttons#deny").click(function(event){ alert("lala"); });
[jQuery] Create Ajax Request & and edit html request
[b]Hay guys![/b], I worked with now in jQuery. Property however at present the following problem: [i]I provide a AJAX Request. the side is loaded, the parameters all conveyed and back receives I a complete HTML side. Now I would like to have only certain elements however from this side, like DIV, SPAN etc. How can I make with the AJAX Request return in such a way best, which I can select these elements thereby? Simply it would be unfortunately not functioned over the function $ (“element”), it… even
[jQuery] accessing value in ajax form without submitting the form
I have a form. Upon submit, the data is sent to the server. Under certain conditions, the form is replaced via ajax with a set of radio buttons that offer the user a a choice. I need to access the radio buttons before I submit the form again. Normally I could just access the buttons with getelementbyid but it is not available, presumably because they were generated via ajax. I could submit the form just to access the radio buttons and then submit it again, but I'd like to avoid that. How do I do
[jQuery] Stop .blur() on tabbing out.
Hi everyone, I'll post the code first and then ask my question... $('input, select, textarea').change().focus(function(){glow (self)}).blur(function(){stopGlow()}) function glow(){ var myCols = [{param:'background-color', fromColor: '#222', toColor: 'random', random: true}] $('#front').colorBlend(myCols); } function stopGlow(){ var myCols = [{action: 'stop'}] var myCols2 = [{param: 'background-color', toColor: '#222', isFade: false, cycles: 1}] $("#front").colorBlend(myCols).colorBlend(myCols2);
Create Ajax Request & and edit html request
Hay guys!, I worked with now in jQuery. Property however at present the following problem: [i]I provide a AJAX Request. the side is loaded, the parameters all conveyed and back receives I a complete HTML side. Now I would like to have only certain elements however from this side, like DIV, SPAN etc. How can I make with the AJAX Request return in such a way best, which I can select these elements thereby? Simply it would be unfortunately not functioned over the function $ (“elementâ€
JQuery and Scriptaculous
Does anyone know why jQuery and Scriptaculous don't behave with one another?
[jQuery] Superfish menu - I want my current active tab and corresponding sub nav to display on certain pages -- a newbie begging for help.
I'm a novice and relied on freelancer to build my superfish menu. Everything is working correctly here -- http://www.cmpl.org/ but I want to take it to the next level. When a user clicks on a major sub tab (such as "About Us") I want the horizontal sub navigation to stay visible (not hover and disappear on mouseout). Is there a way to do this? I see in my CSS (also built by the freelancer) that I have elements that relate to the current <li> but that seems to affect only the background color. CSS
[jQuery] Ajax forms
Can someone give me a hand getting this right. Using the jQuery Form Plugin on http://malsup.com/jquery/form/ I am trying to submit a form but the script I am having problems with. I know its wrong...but cant figure out how to remove the duplicate post and url parts. $(document).ready(function() { $('#UpdateForm').bind('submit', function() { var queryString = $('#UpdateForm').formSerialize(); $.post('/update', queryString); $(this).ajaxSubmit({ type: 'post', url:
[jQuery] jqPlot - New charting plugin
Hi, I'd like to announce jqPlot, a new charting plugin for jQuery. jqPlot was inspired by Flot, but has a more extensible plugin like architecture. For example, logarithmic axes are supported through a logAxes plugin renderer. There is a loose coupling between user inputs, data handling, and drawing of the chart objects. All graph elements are created through "renderers". This means that, independent of the jqPlot core code, a new renderer to e.g. draw spider graphs can be written and plugged in.
[jQuery] How to prevent a particular field being submitted in form submission
I have email, password and some other fields, and I'm using $.post to send data for Ajax submission. $("#MyForm").submit(function(){ $.post('/register.php', $(this).serializeArray(), callback, "json" ); return false; }); The problem is that I don't want to submit a particular field. The serializeArray() returns all the fields in the form. So, I tried something like this to prevent the password field being serialized. var serialized = []; $(this).serializeArray().filter(function
[jQuery] LI:last of submenu's
I don't want background-image's on all the last list-items of a submenu. I use this code but it only apply the edit to the last submenu. $('ul#sidebarmenu1 ul li:last a').css('background-image', 'none'); How can i apply this to all submenu's? My HTML (generated by CMS): <ul class="menu" id="sidebarmenu1"> <li class="parent item65"><a href="#"><span>Link 1</span></a> <ul> <li class="item73"><a href="/link/"><span>Sublink 1</ span></a></li> <li class="item77"><a href="/link/"><span>Sublink 2(*****)</
[jQuery] Hover image under flash element.....
I am trying to place several hover/tool tips using jQuery in a page that contains a flash elemnt to the right. When viewed in a browser the hover/tool tip appears partially below the adjacent flash element. Any one have any ideas??? Thanks
alert (load('echo.php')) ?
Hi, guys. I need to alert text made by php script echo.php alert (load('echo.php')); does not working. What is the best way of doing it?
datetime picker
Hi everyone can someone tell me how to use this date picker. http://jqueryui.com/demos/datepicker/dr ... -year.html I have took a look at this source code of page above view-source:http://jqueryui.com/demos/datepicker/dropdown-month-year.html and try to copy everything into my page and it does not work, can someone give me some tip or guide. thanks a lot to everyone.
[jQuery] Unable to Formulate a Proper Title
How does one assign the return value of a jQuery method/plug-in to a reference variable? Roddy An IT idiot with apparent zero ability to communicate among Geeks who systematically eschew reading but readily recommend the writing of others.
Cycle navigation links in Simple Controls gallery
I am trying to customize the navigation on [url="http://www.dynamicdrive.com/dynamicindex4/simplegallery_suppliment.htm"]The Simple Controls Gallery[/url] so that instead of the play buttons being displayed the anchor links are the ones that are being cycled through. Moreover I am trying to make this gallery look like this [url="http://www.officedepot.com/"]page.[/url] I tried to target the anchor links on this [url="http://capnhud.googlepages.com/simple_galleryt.html"]page[/url] by using this code
[jQuery] jQuery ajax 404 error
Hi, all. I have extremely annoying issue for my project, which made me keeping 3 days on it. I used jQuery.ajax, but it gets all time 404 error, although target url is still available. When I have checked with firebug console, yes, it shows target url with red color, which might mean that no file on this url. But when I expand this request, I can see the response which I wanna get. I really do not understand what s going on there. Any tips on this situation? dataType is set as text and what I wanna
[jQuery] Jquery Superfish navbar question
Hi! I have a problem, that i think is mostly css related, but I am not sure. What I would like to do, is have the second tier of the navbar centered under the first tier menu item. A little example: Menu Menu Menu Menu Menu Menu ---------------------|------------------------------- ---------Menu Menu Menu------------------ What would I have to do to accomplish this? Thanks!
[jQuery] [treeview] location persistance + ajax load problem
[SORRY!, this is a proper message, the first one i forgot to add a topic] hey all, having a problem with treeview by Jörn Zaefferer. I load the content from json, but i lose persistance of location. i get the tree folded and i don't know what branch i'm on to. i managed to fix this by pasting the location code in .async.js, var sm = current.find("a").filter(function() { return this.href.toLowerCase() == location.href.toLowerCase(); }); if ( sm.length ) { sm.addClass("selected").parents ("ul, li").add(
IE7 not completing jQuery FadeTo whilst 'keydown'
I currently have 3 jQuery events assigned to the document keydown, keyup and click. Here is my code: var logkeydown = false; $(function(){ $(document).keydown(function(e){ var key; e?key=e.keyCode:key=event.keyCode; if(key==69) logkeydown=true }); $(document).keyup(function(e){ var key; e?key=e.keyCode:key=event.keyCode; if(key==69) logkeydown=false }); $(document).click(function(e){ if(logkeydown) tb_show(null,'#TB_inline?height=200&width=250&inlineId=hiddenModalContent',false)
Problem with Form and Validate plugins
Ok, this is my last resort, as I've been working on this for a while and am completely stumped. I'm probably just doing something stupid that I haven't noticed, so maybe a fresh pair of eyes would help. Essentially my problem is this: on this website I'm developing, users can submit photos for a monthly contest. I'm using the Lightbox plugin with prototype and script.aculo.us to display winners from the past few months, and the Validate and Form plugins for jQuery to display a form where users upload
[jQuery] FCKeditor clone issue
Hi Guys, I am into serious FCKeditor issue while cloning, it works fine in IE 6/7 but it's not getting instantiated in FF 2/3. Test URL: http://www.mohammedarif.com/test/clone_fckeditor.html This piece of functionality is really important for our project. Also want instance name keeps increase in var oFCKeditor = new FCKeditor('FCKeditor1') Should be FCKeditor2 when we clone first time so on and so forth. Is there a way to re-instantiate FCKEditor object with jQuery clone method? Looking for quick
How to check a radio button when clicking on text input
Hi, This seems like such an easy thing to do but I can't figure it out. I've got a form with inputs like these: <label for="productA_0"><input type="radio" name="productA" value="1" id="productA_0" checked="checked">1</label> <label for="productA_1"><input type="radio" name="productA" value="2" id="productA_1">2</label><input name="priceA" type="text" value="" class="textinput"> <label for="productA_2"><input type="radio" name="productA" value="3" id="productA_2">3</label> So three radio buttons
Not detecting element after adding new object
Hey, I hope anyone here can help me out. Basically what i am trying to do is that i have a unordered list and basically destroys the new list and creates a new one. The problem is that each element of that list has a hover event method. After the new list is created, the hover event is not detected. Any help is appreciated. Here's the sample code: // clear list function $("#clear").click(function(){ $(".tlist ul").html(""); var list = ""; var data = [0, 1, 2, 3]; $(data).each(function(){
[jQuery] Superfish - Hide Submenu For Home Button
Can someone possibly help me here? I need to hide the superfish submenu when a user hovers over my home button, since there are no sub categories for that button. Someone else asked the question earlier but it was never answered. This seems to be a common request. Thanks for any help, I love the plugin! Here is the other poster's comment for reference and because it's more elequent: Superfish is great. The mouseout delay makes drop down menus more usable. But submenus should disappear immediately
[jQuery] Slider Values Not Accurate at Ends
<html> <head> <style> .hmmessage P { margin:0px; padding:0px } body.hmmessage { font-size: 10pt; font-family:Verdana } </style> </head> <body class='hmmessage'> Hi all! No matter if I set min/max, step, etc....when sliding all the way left or right, the values are incorrect at the end. For example, with default values, sliding all the way left results in a value of 10....but moving back to the right slightly causes it to drop to 0 and then count up from there. The reverse is true for the right/high
[jQuery] What is the best way to pass variable data from Python to jQuery?
In my code I have some python code that retrieves some data from a db - and I need to pass some variables from the python code to my jQuery scripts in order to perform an action. The problem is - what is the best way to pass this data? So far in the office we've discussed adding the variable data into the generated HTML via classes or some other standard HTML attribute or use a custom attribute to store the data. What is the best way to accomplish this? Are there other solutions we haven't considered?
[jQuery] Scale "&" symbol in line of text
Hello, I am creating a wedding website for a friend. I have their names at the top of the page in a large font with an "&" in between like "Mike Smith & Suzy Jones". I would like to have it so that when you first visit the page the "&" grows bigger and then shrinks back to normal size. I saw this done with Flash once and thought it looked really neat. I tried using the animate feature and that pushed the names down with it because it was increasing the font size and everything was in the same line
[jQuery] Weird Problem with Default Web Page in Some Browsers
Hi all, I've got a frustrating problem I can't figure out, and thought someone here might be able to help. Seems so simple that I must be doing something wrong, but not sure what to do about it... When I load my site with just the URL and depend on the default page getting loaded (i.e. www.mysite.com), the page shows fine but my events don't seem to get registered. When I specify the default page explicitly (i.e. www.mysite.com/index.html), all is good. Here's how I'm registering the events: $(document).ready(
[jQuery] general jquery help
can anyone in the jquery community help me with an issue. the group for fancybox is not very active my problem is the following i am trying to use a callback in the fancybox plugin 'callbackOnStart':function(){ $(".target").css({'visibility': 'hidden'}); this example hides all the classes market target but i need to only target the actual item being clicked. i tried to use callbackOnStart':function(){ $(this).css({'visibility': 'hidden'}); but does not seem to work can anyone help me out with this
[jQuery] how to change colours?
sorry for my ignorance. I don't mind about fancy stuff with the Superfishmenu. I just want to be able to change the colour of the text and the background. The default is light cyan and blue. How can I do this? Many thanks! Andreas.
Next Page