[jQuery] Roller - jQuery based game
Hey, This is a small game inspired by this article http://www.emanueleferonato.com/2007/06/14/create-a-flash-ball-game-with-visual-from-above-tutorial/ I hope enjoy it even if I did not had the inspiration to develop more levels yet: http://www.eyecon.ro/roller/ (use arrow keys to move the ball )
[jQuery] jQuery problem with setTimeout()
var showDiv= $('#myDiv').html(message); setTimeout(showDiv,5000); get error: missing ] after element list I googled this error, it seems the problem is the jQuery code.. although not sure.. would appreciate some suggestions... thank you..
[jQuery] Jquery BlockUI plugin doesn't work with IE8
None of the BlockUI plug-in demos (available at http://malsup.com/jquery/block/#demos) work with IE8. Does any one notice this? I am currently testing this with korean version of IE8 on Windows XP platform. answers would greatly be appreciated.
[jQuery] how to get onload listeners to work for dynamically loaded content
i am going to reword this question since no one seemed to be able to answer it last itme i asked. thanks in advance for any feedback. the problem i am having is with my event listeners that are initiated after document load, using jQuery(function() {}); the behviours do not work for dynamic html (loaded with post()) and added to the DOM using append() how do i make those listeners available to all html? thanks j
[jQuery] Swittching between innerfade slide shows
I have a page with links to a couple of slide shows implemented using the innerfade plugin. I prefer this plugin because it gives smoother transitions between images than I have been able to achieve using the cycle plugin. I would like to disable the innerfade when switching between slide shows. (I do not want to hide the div and have innerfade running burning up cpu cycles) The plugin does not provide a removeInnerfade function. Is there a way to remove innerfade from a div. Thanks, -john
[jQuery] The jQuery Prototype Object and Working with Others' jQuery Plug-Ins
QUESTION ONE: When is use of the jQuery prototype object appropriate, and when is it not? BACKGROUND: I am still trying very hard to identify the error that is prohibiting me from incorporating a jQuery plug-in into my site in a manner similar to the way that the author of the plug-in has incorporated it into his. Although I have sought consultation with the author, he appears uninterested in working with me. My still fledgling knowledge of jQuery tells me that the author of the plug-in and my implementation
[jQuery] [TreeView] - How to collapse a menu item that is a link?
Hi, I'm looking at the "JQuery TreeView - Sample 0" from http://jquery.bassistance.de/treeview/demo/?1 Great work! I have a question. How can I make the menu collapse upon clicking? When I click, the menu expands, but if I click again the menu doesn't collapse. Any help is appreciated. Thanks in advance....
[jQuery] Hover elements in wrong state once page finishes loading
Sorry if this has been addressed before -- it's a hard issue to describe. The page in question: http://testing.ericprice.cc The code in question: $(document).ready(function() { $(".teaser").hover(function() { $(this).addClass("hovered").find(".thumbnail").stop(true, true).slideDown(100); }, function() { $(this).removeClass("hovered").find(".thumbnail").stop(true, true).slideUp(200); }); }); The problem: http://testing.ericprice.cc/problem.png What I'm seeing is that if
[jQuery] [TreeView] - How to collapse a menu item that is a link?
Hello, I'm looking at the Sample 0 from http://jquery.bassistance.de/treeview/demo/?1 Great work! I have a question. How can I make the menu collapse upon clicking? When I click, the menu expands, but if I click again the menu doesn't collapse. Any help is appreciated. Thanks in advance....
[jQuery] Superfish - only hide one level - how to?
i am looking for a way to have superfish only hide the secondary navigation but not other levels - for example i have a horizontal nav bar with my primary navigation on it - i would like for the secondary AND tertiary navigation to show when i mouseover a main nav element. is there any way to show the 3rd level nav inline? level one a | level one b | level one c level 2 a level 2 b level 3a level 3 b level 2 c level 2 d etc...
[jQuery] JQuery TreeView Plugin Problem: Text Alignment in IE
Hello, I am currently using the treeview plug in at http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ Is is a nice work, and I am really pleased with it. I, however, have a problem of text alignment with the tree lines when I combined the treeview with the tabview in the jquery-ui library. There is no problem with other browsers (tested with Chrome, Firefox, Opera). The output is worst than what you will see in this online sample http://www.devshed.com/c/a/JavaScript/Opened-and-Closed-Branches-on-a-TreeView-jQuery-Hierarchical-Navigation-System/3/
Replacing text with a url using JQUERY + PHP
Hi i have a database (dictionary) with 2 variables (txtfield, txturl) each txtfield- is a word each txtfield- is url i want to create a script that replaces the matching words with urls using jquery function created with php. My code so far is this: ---------------code---------------------- <head> <script src="jquery.js"></script> <script> $(document).ready(function(){ <?php // This connects to database and retreives txtfield and txturl $db="mydatabase"; $link = mysql_connect("localhost"); mysql_select_db($db
[jQuery] jQuery Form FileUpload issue
Hi all, I am using the latest version of the jQuery Form plugin, tested with both FF and Safari and here is my problem: I've got a form with a text area and an optional file field, the problem occurs when I leave the file field blank: - when I use normal form submit everything is working as expected - but when I hook the form plugin I got a 500 server error complaining about the file field (which is empty) it actually seem that the server receives the file field with no data and chokes when using
[jQuery] jQuery.form bug in FF with action='#anchor'
Hi, after upgrading jQuery.form plugin from version 2.12 (06/07/2008) to version 2.25 (08-APR-2009) i encounter failure in Firefox 3.0.10 with ajax forms that had only an anchor in action attribute of form, such as : <form method="post" action="#formulaire_forum"> This was perfectly working with version 2.12 of jQuery.form plugin but does not work any more with version 2.25. The folowing patch seems to solve the trouble http://trac.rezo.net/trac/spip/changeset/13968 Cédric
[jQuery] Clone div, it's child elements and increment name values.
Hi everybody, this task is very complicated to me, I hope to be as clear as possible so apologize for confusion. I've got this piece of code which is part of a form <div id="OptionDetails"> <label for="option_number">N.</label><br /> <select name="option_number[0]"> <option value="">Select Number</option> <option name="1" value="1">1</option> <option name="2" value="2">2</option> <option name="3" value="3">3</option> </select> <label for="option_type">Option Type</label><br /> <select name="option_type[0]"><option
[jQuery] Problem creating own parser and setting a column to use it via metadata
Hi, I've created a parser and i know that it works properly, because if i set a column to it in the tablesorter initialization works fine. Next is the code: $.tablesorter.addParser({ id: 'price', is: function(s) { return false }, format: function(s) { var number = Number(s.toLowerCase().replace(/^([0-9]+\. [0-9]{2}).*/, "$1")); if (isNaN(number)) { number = Infinity; } return number; }, type: 'numeric' }); The problem is that i need to set it using metadata, but if i write <th class="{sorter: 'price'}">
[jQuery] Tabs Custom HTML
Hi everyone, With the latest UI release custom html structure for tabs plugin seems to be unsupported, can you confirm this? Thanks.
[jQuery] [Validation] Email
I noticed that if you do the email: true in the validation and then try and type an email such as: email@example.com.com it will mark it as valid. Is this intended? Even says its valid on your test page at: http://docs.jquery.com/Plugins/Validation/Methods/email
need help with my transferring code from mootools to jquery
Hi there, i'm in to port my old mootools script into the newer and faster jquery. In the past, i use a oop notation and classes. Now, jquery use another notation, and here is my problem: I have a class that i called and instantiate ...: var fValidate = new formValidate('.check'); $('btnSubmit').addEvent('click',function() { fValidate.checkFormFields('.check'); return false; }); The same in jquery: $('.check').formValidate(); $('btnSubmit').click(function() { checkFormFields('.check'); return
Need help with a form script - textreplace/checkall
Hi there! I got this form where I want to make this "update"-link to check all checkboxes with the name<INT>. It should also send the value from bALL to text inputs where name is b<INT>v (b = box, v = value). <input type="checkbox" name="bALL" /> <input type="text" name="bALLv" value="" /> <a href="javscript: do('update');">Update</a><br /> 1: <input type="checkbox" name="b1" /> <input type="text" name="b1v" value="abc" /><br /> 2: <input type="checkbox" name="b2" /> <input type="text" name="b2v"
Change the value of an text box onlick
Hi, I cant figure out how to realise a script, which captures the "rel" attribut of a span you click on and put the content of this attribut into a text box. This is my script so far: $('.seite').click(function() { var test = $(this).attr('rel'); $('#startlimit').val(test); }); I need this script for a pager function... .
[jQuery] Selction Error
Hi folks, I want to select each row in a table. I am using a each iterator. I want to differentiate the rows containing <block> tag and others. How can i do that Note: i want to select each rows. Appreciate each help
Selecting a parent div gives an error coming from jquery
Hey there. I am trying to write a piece of javascript that will find the parent ".message" div (not any other ".message" divs - just the parent one to the clicked link). and append the result of an AJAX POST request. This is the code I have, which (to me) looks like it should work. $('a.delete_message').click( function() { var value = $(this).attr('rel'); var rel = value; console.log( value ); value = value.split("/"); var quoteID = value[0]; var developerID
Tabs - text links to other Tabs within tabs
Hi, I am using the Tabs UI, and am trying to have text links, within one tab, link to one of the other tabs on the page. These links are in addition to the default tab links in the UI. I was wondering the exact code I would use where on the page to do this because simply linking to the tab like an anchor will not work. Thanks
Have a selector require 2 classes instead of just 1.
So I understand you can do: $(".className").xxx. Is there an easy way with jquery to have it match 2 classes. So maybe I only want the action to take place it the element has class1 and class2. $(".class1" , ".class2").xxx The above is close to what I would like, but thats if any of the 2 classes match, go. I need it to be both. I can probably do this with some basic javascript logic.. just figure there may be a function for this already.
nearest ancestor <p> tag
i have problems with selecting the text from nearest p tag, i think this code suppose to return 'some text:' but instead i returns 'some text: DoneImportant' <p id="2009-05-02 11:35:03"> some text: <span id="buttons"> <button class="imgreplacement done">Done</button> <button class="imgreplacement important">Important</button> </span></p> $('button.done').click(function(){ alert( $(this).parents('p:first').text() ); }); msg in alert box: some text: DoneImportant what i'm doing wrong? have can i
funny behavior with loading multiple elements using ajax
so i have an ajax script which connects to the server and retrieves a list of items. each item is converted into a draggable with a div id and a span within the draggable. the title tag of the span contains the text of the item. i am trying to print out the text for each item as it is retrieved from the database in the ajax call by retrieving the title tag of the span element within the div element. the funny behavior is that only the text of the first item is retrieved properly and the text for
Get A tag to toggle between Text
I'm trying to get an A tag to toggle between hide and show when It is clicked, you can check the latest version of my trying here: psdesignzone dot com / jquery / d6tftoggle.html I'm trying to change the innerHTML I guess of the A tag to hide or show each time that specific element is clicked (i'll need this to work with other a tags as well)
SimpleModal issues... too many scripts? Experts!
Hi Everyone, I am new to the jquery world, but have found it quite useful... maybe a little too useful. It seems like I have too many scripts running. Is there a way to simplify what I have been doing in the markup to run them? Please take a look and let me know if I can narrow things down: http://woodlandswoundcare.com/test/index.html On to the bigger issue: I am attempting to use the Simplemodal jQuery script(http://www.ericmmartin.com/projects/simplemodal/) on this site as well. I have done (what
How to Select a Div by its name?
var tabToShow = "$_GET['TABHREFPOINTSTO']; var tabContainers = $('div.tabs > div:not(tabToShow)'); ::The above line isn't working, I want tabContainers to contain all child divs of the div tabs, except for the div identified in var tabToShow tabContainers2.hide().filter(tablink.hash).show(); I then need to show the div identified by tabToShow.. Any help would be really appreciated. Any good jquery documentation around, I find the stuff at jquery.com a bit short.
editing existing links
How to I edit an existing link in the content. Users create content and save it. They edit the content and I do not know how to make the existing links editable instead of making the users recreate them Thanks Corinne
How to return out of a $.post function?
If I have this: $.post('/admin/duration', $str, function(data){ var jsonData = eval('(' + data + ')'); return jsonData.TIME; }); How do I get the return value from the function to use afterwards? I know this must be simple. I'm just not seeing it. Thanks in advance!
Slide effect jumps
Hey everyone! I've a small problem with my jQuery code. I have a div box with some content. After clicking in the menu this box slides up, change the content and slides down again. Everything works fine, except the sliding. For some content the div is sliding down about 90%, and then jumps to 100%. And I cannot find the mistake at all. I'm talking about this page: http://www.dasweb.net Following code is been launched: function loadText(data, lang_loc, query) { if (lang_loc == undefined) { if (lang)
Deleting the last x rows
Hi, I have the following html and I'm trying to figure out how to delete the last rows the are children of div feed. I only want to leave a max of the first x rows. First I count them using $numdivs = $("#feed > div").size() - 1; Then, I'm a bit lost on what to do next and have looked at the docs for children and thought of trying to traverse but can't seem to get it to work. <body> <div id="search"> </div> <div id="feed"> <h2>Feed</h2> <div id="firstrow" class="row"/> <div id="1741946459" class="row">Test
Get <LI> parent of <A>
I want to change the background color of a <LI> that contains an <A>. I tried using $('a').parent().css('background-color','red'); But it did not work. Suggestions?
Getting a variable from $.get() [solved]
Is it possible to get the value of a variable using $.get without having to echo it? Here's the sample PHP file, and the next one is the jquery: //This is the php file "loadme.php" $i = "Hello"; $j = "world"; echo j; jQuery here: $(function(){ $.get('loadme.php', function(data){ $('body').append(data); //displays the word "world" }); }); Is there a way to get the variable $i in the php file which contains the string "Hello" without having to echo it?
[jQuery] Problem with float:left; on i in multiple sortable lists
Hi. I'm working on an article module and have stumbled upon a problem. I'm having several connected lists and need to float the li elements in two of the three connected lists. I'm able to reoder the lists internally, and to move elements from the lists with floated li's to a list where the elements are not floated, but not into a list with floating li's. Hope that som of the more experienced jQueriers can help me out! I've attached a picture of how it looks and here is the code of my mockup: <!doctype
Vertical and horizontal Tab menu in a single page...
Hi, I am using both horizontal and vertical tab menu's in a single page. And on click of horizontal tab should select the corresponding vertical tab and along with the data linked to vertical data will be displayed in different div on the page. I am stuck with how to poputale these using jquery. I am new to Jquery. Any help is appreciated. I can send you my code and also the screen shot if you wanted. Thanks
content of <![CDATA[...]]> after ajax call empty in Sa
Hi all, I do a ajax call and get an xml file in the respons. When I use $(xml).find(tagname).text() I should get the content of all the tags with that tagname. From both the tags that have plain content and tags that have its content wrapped in a <![CDATA[...]]> block It works fine in IE6, IE7 and FF, but in Safari the result of the text() call always returns an empty string if the content is inside a <![CDATA[...]]> block. Here is my ajax call: jQuery.ajax({ url: 'test.xml' ,dataType:
[jQuery] Complete frustration
Ok, all Im trying to do is a simple jquery post. Here is the code. <script type="text/javascript"> function SubmitForm(method) { var login = document.form.login.value; var password = document.form.password.value; try { $.post("../../content/jaxrep.php", { login: login,password: password,method: method}); } catch(e) { alert(e); } return false } </script> But it always fails at a line in jquery with the following code... // Send the data try { xhr.send(s.data); } catch(e)
Next Page