[jQuery] Validate Plugin: Alpha Only
I need to validate a field to only accept A-Z,a-z I don't see a built in rule for this. How would I go about adding my own rule? Any help is much appreciated!
[jQuery] Superfish css question
how do I control the level-three, left offset. I've tried changing many things but it has no effect. Any clues are appreciated.
[jQuery] Downloading jquery
I just downloaded the jquery libraries (this stuff is awesome!!!!!). From what I've tried so far, it looks like I can do all the jquery functions and UI functions by just including two .js files. 1) jquery.1.2.6.js 2) jquery.ui.all.js I know it may be more than I need for now (e.g, if I only want to do draggable I could just use ui.draggable.js and ui.core.js), but I'd rather take up more space than worry about what libraries to include. Am I correct in that I can do all the jquery and UI functions
[jQuery] How to split this?
Hey all! I build a function that creates a string with some informations. This is the structure: 1/17/52;2/283/-2;3/475/492;4/180/625;5/272/790; looks a little bit confusion but it's really simple. The first letter/ number (1) is the ID of an Div. the second number (17) is it's Y coordinate and the third number (52) is it's X coordinate. Then it continues with the second div (ID 2) and so on. My question now is: How do I split the informations into readable pieces? After splitting it should be placed
[jQuery] unable to access desired elements.
Hi all, I am very much a stranger to jQuery using it for the first time in my application. I have a DOM from which I need to access all the form submit buttons after the page loads and need to append a div element after each submit element. <input type="submit" value="submit1"> <input type="submit" value="submit2"> <input type="submit" value="submit3"> Now I would like to add a div tag after each submit button which looks like: <input type="submit" value="submit1"> <div class="my-class"></div> ......
[jQuery] jCarousel
Is it possible to add active state to the pagination? If so I would I do this? Thank you.
[jQuery] superfish
I'm curious to know how to modify the Superfish Dropdown Menu to add a SECOND module in Joomla. I have the module installed already and it's powering my topmenu (user3), but I also want the module to control my main menu (left). How is this possible?
[jQuery] Merry Xmass
Hi everybody, I don't want you interrupt, but I don't know if you already notice that today is 24th December so at least today you shoold stop working and relax :) .... Merry Christmas to all of you :) elf from Slovakia
[jQuery] Getting JSON object out of $.getJSON function
I'm trying to do something seemingly simple, but have no idea how to go about it. I want to use $.getJSON to grab the data from an external JSON file, then interact with it outside the scope of the sub-function. I know how to do this: $.getJSON("test.js", function(json){ alert(json['key']); }); But I want do do something more like this: json = $.getJSON("test.js"); alert(json['key']); Can anyone help me with the proper syntax? Thanks in advance for any insight.
[jQuery] Handling client side generated controls using jquery
Hi, I am new to Jquery and i am very much enjoying in learning the new concepts of Jquery. Today, when i am learning i faced a situation for which i need some help. The following is the code snippet which i created : <head> <title></title> <script type="text/javascript" src="scripts/jquery.js"></script> <script type="text/javascript"> $(document).ready(function() { //Alert message to be fired for hyperlink click $("a").click(function(e) { alert('Hyperlink clicked'); }); //Alert message to be fired
[jQuery] [jQuery]how to create a Firefox Extension using jquery
i , i was trying to replace my javascript statements with jquery statements by including the jquery file in *.xul file. the xul file line is as under: <script type="application/x-javascript" src="chrome://extensionname/content/jquery-1.2.6.min.js""/> and i am trying to access the "$"/ jquery functions in the other js file of my plugin. but its not working. plz help.
[jQuery] Ajax.Form() fire onchange of elements
Hi I started with jQuery 3 days ago, was using Prototype before. My problem right now is AjaxForm() It works perfect but just if the user clicks submit. Is it also possible to fire the form to the server if one of the Values changes?? For example: I'm working on something like a shopping basket where the user can change the amount and delete products. All actions cause the final Price-Sum which should be calculated in realtime. Meaning, the user might change the amount of a product and jQuery (Ajax.Form)
[jQuery] getJSON invalid label
What am I doing wrong? Im able to submit the request and get a response, but in Firebug it says invalid label and the alert doesnt show up. here is my code: $("form").submit(function() { $.getJSON("http://api.nytimes.com/svc/movies/v2/reviews/ search.json?api- key=c82338627fba39e9bcb953728fe445a2:15:57546791&callback=?", {query : $('#query').val()}, function(data){ alert(data); }); return false; });
[jQuery] working in FF but not in IE
So I got help to create a script this far: $(document).ready(function(){ var step = 4000; (function(){ step -= 40; $("#percentage").text(Math.round((1-step/4000)*100) + '%'); if ( step > 0 ) $("#logo").fadeTo(40,1-step/4000, arguments.callee); })(); setTimeout(function () { $("#percentage").fadeTo("slow",0.01, function () { $("#percentage").text("For life - for fashion - for life").fadeTo ("slow",1); }); },6000); setTimeout(function () { window.location = 'http://uf.ekdahlproduction.com/itsvintage2/
[jQuery] Request for note added to doc for ready()
Please can a note be added to the doc for ready() wrt the bug in Safari that div widths can be reported incorrectly if external stylesheet is included after jquery.js. Please see http://dev.jquery.com/ticket/3690 Thanks, Darren
[jQuery] malformed url with getJSON
I am using the following code to access the Yahoo Music API: $.getJSON("http://us.music.yahooapis.com/artist/v1/list/ published/popular? response=main&appid=myappid&format=json&callback=?",function(json) {alert(json);}); and it generates the following url: http://us.music.yahooapis.com/artist/v1/list/published/popular?response=main&appid=PISzAQ7V34Ee2_9eTnc28ZWc6Yn1aApPCr4_8lzDyRNqTzDeZjAtjNY2k4JgSqM-&format=json&callback=jsonp1230228631768&_=1230228631798 The last parameter (_=1230228631798) is
[jQuery] problem with submit event
Hello, i would like to trigger submit event for a form when select option in select box is changed. I also would like to submit the form when the submit button is pressed. The problem is that javascript submit event is not working when there is a submit button. When I remove it everything works like it should. Heres my test code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <? if($_POST) echo 'form submited: '. $_POST['selected_type']; else echo 'form is
Help Regarding $.ajax
Hi, i wanted to know whether i could pass a json variable in the date header of the $.ajax method if so then how. For an example i am posting an implementation: function getData() { $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "http://someWebService", data: "{ ID :'123abc }", dataType: "json", success: function(res) { alert(res.d); } }); In the above example i have hard coded the data i wanted to know how i could pass a json variable because i have tried by putting
[jQuery] validate plugin with one element
I have a simple form with one select list as it's element. I am using the validate plugin to do remote ajax validation on that element. The response returns a true or false. This all works fine, but the problem is that the validation takes place when you click the submit button, since there are no other form elements to move to. You then have to click the submit button twice, once to validate, and again to actually perform the submit... Is there a way to have it automatically submit after the validation
[jQuery] jQuery help
I'm trying to change the border color of an image using it's id with jquery ( photo['id'] is passed in from a previous function ) the id's of the photos are of the form 'photo239839' $('#photo'+photo['id']+'').click(function(){ $('#photo'+photo['id']+'').css('border-color','#777'); }); When i try to use this same code using it's class it works, but i can't use this method since there are multiple images on the same page with the same class $('img.flickr_photo').click(function(){ $("this.flickr_photo").css('border-color','#777');
[jQuery] Ajax.Form() fire onchange of elements
Hi I started with jQuery 3 days ago, was using Prototype before, I really like the design of it. My problem right now is AjaxForm() It works perfect but just if the user clicks submit. Is it also possible to fire the form to the server if one of the values (field) changes?? For example: I'm working on something like a shopping basket where the user can change the amount and delete products. (the data is not stored in the database) All actions cause the final Price-Sum which should be calculated in
Problem with .css and Firefox
The .css for the checkbox in the following example (from the jQuery documentation) works fine with IE but is ignored in FF. Why? TIA, l. woods <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script> $(document).ready(function(){ var input = $(":checkbox").css({background:"blue", border:"3px red solid"}); $("div").text("For this type jQuery found " + input.length +
[jQuery] Colorcoding textarea UBB tags
Does anybody know of a jquery plugin that is able to colorcode tags in a textarea? So, if you have <textarea>this is [b]bold[/b]</textarea>, then [b] and [/b] would be colored red, for instance coloring must happen realtime. Any help would be greatly appreciated!
[jQuery] jQuery and $.post with PHP and $_POST
How do I get PHP to print JavaScript variables via $_POST? jQuery's $.post doesn't seem to be submitting any data. This is a sample of what I have... test.php: -------------- <?php echo '<pre>'; print_r($_POST); echo '</pre'; ?> <form method="post" action="test.php" id="test"> <input id="submit" name="submit" type="submit" value="Submit"> </form> -------------- jquery.js: -------------- $(document).ready(function() { $("form#test").bind('submit',(function(){ $.post("test.php",{
[jQuery] Serial Scroll, animated images look jagged
http://www.louriecutler.com.ws019.alentus.com/people/slider.php What am I doing wrong, that the images slide across looking so jagged? Thanks!
[jQuery] SimpleModal container size problem
I have a script that dynamically detects the size (using outerwidth and outerheight) of a <div> tag that I use as my modal window. It works on all pages of my site except this page: http://www.lacopts.org/dbase/register.php where it erroneously displays the container height, eventhough it is passed the correct height in containerCSS property. I've tried looking at the generated code with FF but I don't seem to spot the problem. Any thoughts? Thanks, Isaac
[jQuery] How do I make a partial textarea autocomplete?
Hello, Is there an example of partial autocomplete? By 'partial' I mean, only a part of textarea gets suggestions. Users in my project are supposed to start a message in a textarea with 'Dear <UserName>' I want to make this <UserName> part either clickable like in Office documents custom fields, and when a user is editing this part I want to show a list of options (usernames from a database). I can work out the backend, but I have no clue where to begin to make such a textarea. Please help. Thanks
[jQuery] Having trouble getting nonmodal popup to work.
Hello all, I've made a form that has its own color picker on it (I would have used a prebuilt one, but I couldn't find any with a custom set of colors). Anyway, the colors are arranged in images in table cells in a div (for the moment). When the user clicks on a button, I am calling a function that grabs the div, sets its left to $(this).left and its top to $(this).bottom and then calls animate on it to slowly display it. However, for some reason, it is still popping up where it is in the page layout,
[jQuery] Is this code legitimate?
Is this legit? $(':input[class$="required"]') I know it'll work for a div: $('div[class$="required"]') but it doesn't seem to work to designate an input with a class that has "required" on the end of it's name... Rick
R: [jQuery] Merry Xmass
<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Merry Xmas to all the <span style="background-color: rgb(0, 0, 0); color: rgb(64, 160, 255); font-weight: bold;">_jQueryans_</span> of the world from Italy :) Diego Valobra --- <b>Mer 24/12/08, Lukas Polak <i><polak.lukas90@gmail.com></i></b> ha scritto: <blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">Da: Lukas Polak <polak.lukas90@gmail.com> Oggetto: [jQuery]
[jQuery] jqgrid: Expand single/all rows when subgrid is on
Hi. First, it is a wonderful and very useful plugin that saved me lots of time! Thank you, Tony! Second, i couldn't find a way to expand a single row using a jqgrid method. Or maybe there is a undocumented feature that can expand/ collapse all the visible rows, that would be perfect! Anyway, I'm looking for a way to expand a row not just by clicking on the plus icon, but using a piece of code that can be attached to a button or any object outside the grid. Thanks in advance.
accordian, with selected item, mostly done....
hi all, Im trying to produce a menu where if the list item has a class of selected it will remain "open"... the menu im using is.... <ul class='menu'> <li class='selected'>Arsenal <ul> <li class='selected'>Books</li> <li class='selected'>Clothing & Apparel</li> <li class='selected'>DVD's</li> <li class='selected'>Music & Cds</li>
[jQuery] problem with fadein() and image sizes in IE
Hope someone can help out here, I'm new to jquery and can't figure out what I have done wrong here. The following code works ok in FF and IE, it is a function that appends an image to a div and sets the width/height of that image. function showImage(src,divid,width) { var myImage = new Image(); $(myImage).load(function() { $(divid).append(this) }); $(myImage).attr("src", src); $(myImage).attr("width", width); $(myImage).attr("height", width/0.75); } I have modified the code so that the image fades
[jQuery] CSS problem on IE6?
Yes, i know this is jQuery group! But i'm on working and i really need help from someone:(! This is an Joomla site which display in IE7,FF! But it is wrong in IE6! I don't understand why! It's so trange! This is test site <a href="http://www.bluesilverdesign.com/brown-stone/">http://www.bluesilverdesign.com/brown-stone/</a> View it with Ie6 and you will see problem right now! Does anyone have any suggestions? Thanks so much! <br clear="all"> -- /******************************************** * Người
[jQuery] excute jcarousel in thickbox
I've tried to do it and the thickbox does work but the jcarousel doesn't. I found it can't get the width of the"li". Is there any way to make this work? Thanks
[jQuery] problem with fadein() and image sizes in IE
Hope someone can help out here, I'm new to jquery and can't figure out what I have done wrong here. The following code works ok in FF and IE, it is a function that appends an image to a div and sets the width/height of that image. function showImage(src,divid,width) { var myImage = new Image(); $(myImage).load(function() { $(divid).append(this) }); $(myImage).attr("src", src); $(myImage).attr("width", width); $(myImage).attr("height", width/0.75); } I have modified the code so that the image fades
[jQuery] Can datepicker do individual linking?
For instance if someone chooses 5/5/09 in datepicker I would like them to be linked to one html page. In contrast, if someone chooses 4/2/09 I would like them linked to another html page. Each day will have it's own individual html page. Is this possible in datepicker?
[jQuery] ajaxifying the whole site
hi a lot of sites are ajaxifying the complete site for example facebook.com, orkut.com with their url structure being #new_request.php?... can i use jquery to do something like this?
[jQuery] [validate] jQuery validate but only when no "value" parameter set
I'm working on a site and using jQuery Validate on the forms. Everything works great when there is no "value" parameter set on the form input. For my CMS, I can specify variables which remembers a users information on comment forms. You can see them below where I have value="{name}" on the name input field. Also, on my "comment" input field, I need the {comment} variable (proprietary to my CMS) to make the actual comment form record the comment. With this variable in place, the validation doesn't
[jQuery] Font size in sifr plugin
I am trying to get the sifr plugin working. It seems to be working except that I cannot get the size of the font to change except by using zoom. I have the Gunmetal swf file specified and the font is changing to the Gunmetal font. I have tried setting the height using style in the tag and using a class in a seperate css file. Both times I disables the sifr plugin to make sure that the styles were "taking". If I use zoom then the text gets cut off. What is the proper way to control font size?
Next Page