[jQuery] Best practices for using anchors (<a>) for jQuery tabs?
Hello, I was wondering what the most efficient ways of using anchor links when they are just being used for simple jQuery tabbed browsing. For example, say I have two tabs, and on the page load only the first content box is shown, with the html like so: <div id="tabs"> <ul> <li><a id="tab_1">Stop</a></li> <li><a id="tab_2">Look</a></li> </ul> <div id="content_1"> Lorem ipsum dolor </div> <div id="content_2"> <!-- not shown on page load --> Lorem
[jQuery] Tablesorter 2.0.3 - Sorting af column of checkboxes (resorting)
I have been using this excellent plugin for a few days, but now I have hit a problem which I can't seem to solve. I have a table where a couple of columns are checkboxes. The initial sorting on the columns works correct, but when I un-check some of them and try to sort again i looks like it is still sorting the columns as if nothing has changed. I have tried using $("#myTable").trigger("update"); but it doesn't seem to help in this case. Am I missing some configuration, or is this working as designed?
[jQuery] Jquery Problem in IE 6
Dear friends, i am working in a site, in which i have used jquery scripts. In Jquery the .html() is not working. I used .html() to print the output to one div from one file. If i use .html() in ie6 means the site in keep on loading..... Please help me to fix the error. It is very Urgent
[jQuery] Image enable or disable
hi, i need ur help. if anyone of u know how to indicate if the browser are enabled to show the image or not. as well as if the browser are enable showing images from type png. i need to do it with javascript or with php if it possible. im waitting for ur help. thanks a lot :) best wishes, sarmad
[jQuery] WYSIWYG input for Jeditable
This has been sitting in my SVN for a while. Now I had time to fix last issues with FireFox. WYSIWYG input type for Jeditable. It uses Juan M Martínez's jWYSIWYG plugin. Demo, download and instructions: http://www.appelsiini.net/projects/jeditable/wysiwyg/wysiwyg.html http://www.appelsiini.net/2008/9/wysiwyg-for-jeditable You might remember that there was also MarkItUp! input: http://www.appelsiini.net/projects/jeditable/markitup/markitup.html http://www.appelsiini.net/2008/4/markitup-for-jeditable
[jQuery] Float:left/right elements and smooth animation... possible?
I have a simple accordian-style menu working well. Taking care to enclose inner, padded elements in divs ensures that everything animates smoothly. However, I've run into a problem that I've read about here, but apparently without a solution ( http://groups.google.com/group/jquery-en/browse_thread/thread/144a0442d5e5fa1c/4021595523934962?lnk=gst&q=float+animation+jumps#4021595523934962 ). Simply put, if you include an element in a list element with a float:right... Then when that parent list element
[jQuery] [Validation plugin] Checkbox array problem
Hi, I'm using Validation plugin (http://docs.jquery.com/Plugins/ Validation) and I want to use it to check whether at least one checkbox is checked. Validating for one checkbox is working fine, but not for group. HTML code: <input type="checkbox" name="category[]"> <input type="checkbox" name="category[]"> <input type="checkbox" name="category[]"> I tried to add "category[]: required" to rules but no success. Could somebody show me a working example? Thanks in advance, nonsense
[jQuery] get the tutorials offline
Hi, I have a very slow internet connection and more or less 10 people who will have to browse the jquery tutorials. I would like to have them locally so that people will have the ability to quickly browse them. Is my only solution using a mirroring tool such as wget and so on?
[jQuery] JSON, PHP and JQuery
Hello, I would like some my frustration gone. I would like to know the following: so when you json_encode with php, how do you get it from that page onto the $.getJSON I know that $_GET will retrieve information from the URL and if its ajax no information gets put into the URL but do I need to use a $_GET to retrieve the information from JSON. so my code this is my code //main.php searchAndPrintVideosByKeywords($computersarr); //functions.php //in this file is the function searchAndPrintVideosByKeywords
JScrollPane not working in some pages
I have used JScrollPane from www.kelvinluck.com/assets/jquery/jScrol ... lPane.html In this link(http://7thsense.co.in/dbs/services.html) I have used JScrollPane but somehow its not working though its working on other pages like http://7thsense.co.in/dbs/abt--milestone.html Thanks in advance CSJakharia
[jQuery] MaskedInput
Hello, I am applying a masked input to an input as follows: jQuery(function($) { $("#UpdatedAt").mask("9999-99-99 99:99:99"); }); How can I apply the same mask to various inputs without needing to rewrite the code? I tried the following but it did not work: // Form mask jQuery(function($) { $("#UpdatedAt", "#CreatedAt").mask("9999-99-99 99:99:99"); }); Thanks, Miguel
[jQuery] using blockui, unblock when clicking the ui
I have an html login form I want to present through blockui How can i unblock the ui, when a user clicks the ui? In otherwords, if the user decides they don't want to login after-all, instead of having to click a cancel button, i want the option of being able to unlock it by clicking anywhere outside the login form. I tried variations of this but no success: $("body").not("#form1").click(function() { $.unblockUI(); });
[jQuery] very simple addClass question for Accordion
Hi, I am doing an Accordion using the screencast tutorial by John Resig. I already have the menu working but need to add flavor to it, first let me explain that I have added a span class in the dt like so: <dt><a href="/"> <span>My Menu</span></a> </dt> The reason for it is because I have a background image for 'dt a', and I want to add another arrow up or down image in 'dt' so when the menu is visible, it shows 'arrow-up', otherwise 'arrow-down'. I have this for 'arrow-down' for hidden menu: dt
[jQuery] .ajax POST Request - Very Slow, Performance / Syntax Check
Hello, This is week two of learning javascript / jQuery so please forgive me if you find simple mistakes ;) ++ You will notice below my functions behind with \$. This is running in a perl script, and perl uses $ as variable deleration, so it needs to be escaped first. (No big deal) Anyway. I have a nice click routine that I've made with jQuery: \$(".button").livequery('click', function() { var color = \$("input#color_code").val(); \$(this).css({ backgroundColor:color }); color
[jQuery] Question about :contains filter
I am trying to select a list element that contains the text "ladies’ short-sleeve tee". I have tried $("li:contains(ladies' short-sleeve tee)").addClass("selected"); $("li:contains('ladies\' short-sleeve tee')").addClass("selected"); $("li:contains(ladies’ short-sleeve tee)").addClass("selected"); and $("li:contains(ladies%27 short-sleeve tee)").addClass("selected"); with no luck. Does anyone know how I might accomplish this? I don't know if jquery sees the html entity, or the apostrophe,
[jQuery] Using jQuery for a DIV which is created on the fly.
How can I simply use jQuery commands to i.e. toggle a DIV which is created on the fly? For some strange reason livequery doesn't work ---
[jQuery] Browser Object
Hi, i hope u can help me. i need to indicate with javascript or php, which objects in the browser "IE, Mozilla etc" are deactivate. example: Popups Blocked, please activate the popups! the object what i need to indicate if they are deactivate are: Session Cache, Browser Name, Full Version, Cookies Enabled, Popups Blocked, Image Enabled, PNG Supported, Frames Supported, Iframes Supported, Adobe Acrobat Installed, Adobe Acrobat Version, Proxy Used, JavaScript Supported, JavaScript Enabled, JavaScript
[jQuery] seeking thoughts on jquery and flickr integration
Greetings all, I see there are several plugins out there for integrating with flickr. I'm looking to set up a small demo of this functionality, and before I play with the various plugins I'm wondering: for those of you who've tried them, which do you like and why? Also, how reliable is the flickr service, in your experience? thanks for opinions! marc
[jQuery] [validate] check box array submit using remote method
I'm running into an issue using remote method and a name array <tr id="11" class="orgRow"> <td align="center"><input name="org[]" value="11" checked="checked" type="checkbox"></td> </tr> <tr id="12" class="orgRow"> <td align="center"><input name="org[]" value="12" checked="checked" type="checkbox"></td> </tr> .... [multiple of these rows above only with different values] I have the script referencing the name array, but can not get it to submit all of the objects. $("#formsubmit").validate({
[jQuery] [autocomplete] Scrolling: FF3 vs IE7
IE7 ignores scrollHeight and adds a horizontal scrollbar. How can I get the same display in IE7 as I get in FF3?
[jQuery] Using AJAX for computation (JS too slow)
So I am porting a variation of the board game Hex from java to javascript, as I am putting it on the web. One of the functions I need to write for the computer AI to get his next move is to fill in the rest of the board (a filled hex is red or blue, an unfilled is white) 300,000 times, randomly, and check the winner of the game, and then make some quick calculations, and returns the position of the best move. This worked fine in Java, but it seems to be hanging up in JS. I have decreased the number
[jQuery] I must be missing something simple...
I've got some jQuery code that seems to work fine in Safari and Firefox both under OSX and Windows. But I've been beating my head against the wall trying to get the same code running under IE7. I must be missing something :-( I'm a novice at javascript and jQuery. The following is a much abbreviated and simplified version. Under IE, the alert function in the loop below comes up with "Color: " each time as if the "find" seems to be returning null. Does anyone have a suggestion? The same code can be
[jQuery] superfish - item height question
Hello; I'm working at integrating the superfish menu into a site I'm redesigning. It's fabulous (the menu, not the site!). Here's my issue though. I am employing it as a horizontal drop down menu. I have the menu ul contained in an absolutely positioned <div>. This <div> element has been given a width of 100% and a height of 28px. The menu itself is not wide enough to span the width of the page, so I assigned a background color to the containing <div> element that matches the color of the inactive
[jQuery] Prevent IE Cross Page Leak
<div dir="ltr"><div>Hi all, </div><div> </div><div>I have some question about IE memory leakage.</div><div> </div>There are four type of leakage in IE as stated in <a href="http://msdn.microsoft.com/en-us/library/bb250448(VS.85).aspx">http://msdn.microsoft.com/en-us/library/bb250448(VS.85).aspx</a><div> One of them is called 'Cross Page Leak', which is caused by DOM insertion order. (should have no intermediate object)</div><div>The result is that the memory will not be released even if page is changed.</div><div>
[jQuery] Meta tag Keyword Upgrade with jQuery
Dear Folk, I've developed a website with ajax capabilities and bookmarkable supports history, I would like to give a specefic Meta tag to each page ... what is the solution ? there is two thing in my mind 1- upgrade the meta tag with jQuery when each pages loads ... for example $("meta[name=keywords]").attr("content","a,b,c,d"); but as you all know when the page loads meta tag is something else after that with ajax will be upgrade so I think this may cause some problem in search engins .... 2- load
[jQuery] How do I access the function handlers of an event.
$('#myid').click() will trigger the click event; and $('myid').click(function(){alert('clicked');}); will bind that function to the click event but how do I return the function that would be called when $('#myid') is clicked? (note: return, not call) Thank you,
[jQuery] Calculating the size of a string to make it fit into the whole window
Hi, I have a div into which I want to load a string. The div has height and width 100% - the whole window - and I want the string to fill the whole div/window. (And when the window size changes the string's size changes, too.) Can someone tell me if jQuery can help me here to calculate the height of the string in pixel and how?
[jQuery] return on error - how to handle an error when an address is not returned in jmaps
I've been using the jmaps plugin for a bit, and I added a bit of code to it so that when an address is not found, it writes a message to the user. I now have a situation where there are two different locations on the page where the message might be written to, depending on what the user has done (did they select an address? or did they search for an address?). I've been trying to launch a function from the plugin, but I keep getting 'function not found errors', and I've tried returning a null value,
[jQuery] How to do something using JQuery
Hello, I am fairly new to JQuery but it's so nice and simple to use that as soon as I have some direction I can take it from there. So, my question is, can anyone direct me regarding this project: I have a list of names (maybe a few hundred). Each name will have a checkbox next to it. After clicking on a little circle press down (forget what there called...) a box should slide open or come up right next to the name that let's a user enter in some information (it's about the name that they selected).
[jQuery] jeditable lazy load?
Hello, Is it possible to lazy load jeditable on an element? I have a grid which uses several edit in place fields. The load time on this is very high and I'm desperately trying to reduce it. Is there a way that the edit in place is not set untill the field is clicked for the first time?
[jQuery] Finding next/prev node
I need to have a way to find the next/prev node, be it a sibling, child, or text node. For example: <code> (1) Some simple text <span class='nextTextNode'>that</span>'s special. (2) And find next Sibling <span class='nextSibling'>sib1</ span><span>sib2</span> (3) Finally a child node <span class='nextChildNode'>Parent<span class='childNode'>Child</span></ span> </code> It isn't hard to get these options if you knew what you were selecting, but in my case users will be selecting the html and it could
[jQuery] Docs down...really no mirror?
The docs seem to be down again (and last night as far as I can remember). Is there really no mirror?
[jQuery] selectors
for this form <form name="f1" method="get" action="/search" id="searchform" > <input type="text" name="q" value="Search...." size="70" /> <input type="submit" value="Search" /> </form> why $("#searchform input")[0] is different than $("#searchform input:first") I can get values for $("#searchform input")[0].defaultValue or .value but not with .fadeIn() or val() while the reverse for the $ ("#searchform input:first")
[jQuery] Random behavior of Safari 3 with setInterval()
Hi, I'm trying to build a small and simple chat using MySQL, PHP and jQuery. What I'm doing is that every two seconds (--> setInterval) I call (--> $.ajax) a php code that will echo the 20 most recent posts (stored in the db) to the "success" option of the $.ajax function. This happens even if there was no new message added to the db within the 2 seconds. It works perfectly using FF on macs and PCs and with Chrome!. Safari however seems to stop calling the $.ajax function after a finite number of
[jQuery] .unbind hover doesn't work
To unbind the above example use: $("#nav1").unbind('mouseenter mouseleave'); This is what the documentation says, but it doesn't remove the hover event. Do I have to do something else? Thanks.
[jQuery] jQuery (English)
================================= http://www.freewebs.com/scientistt/ http://friendfinder.com/go/g982154-pmem http://gayfriendfinder.com/go/g982154-pmem =================================
Expanding form, plugin for this?
Just getting started with jQuery, there seems to be an overwhelming list of plugins available. I'm looking to create a form that shows 10 dropdowns (selects), upon reaching the tenth, an eleventh will appear and so forth, up to 50. Based on the documentation I already have some ideas on how to implement this, but is someone familiar with an already existing plugin that would provide that functionality?
[jQuery] Ajax and array
Hello, I am posting successfully an array, but for some reason, the first element of the array is always missing. in the text box I get: topic[]=2&topic[]=1&topic[]=3&topic[]=4&topic[]=5&topic[]=6&topic[]=7 the response box displays 1,3,4,5,6,7 (missing '2'). If I change the order, then the new one in first position will not post! but the response code shows function register(){ $.ajax({ type: "POST", url: "post.php", data:"data=" + document.getElementById("topicarray").value,
[jQuery] Ajax and array
Hello, I am posting successfully an array, but for some reason, the first element of the array is always missing. in the text box I get: topic[]=2&topic[]=1&topic[]=3&topic[]=4&topic[]=5&topic[]=6&topic[]=7 the response box displays 1,3,4,5,6,7 (missing '2'). If I change the order, then the new one in first position will not post! but the response code shows function register(){ $.ajax({ type: "POST", url: "post.php", data:"data=" + document.getElementById("topicarray").value,
[jQuery] Anyone know where to ask jQuery questions?
I must be in the wrong group. This morning, I posted a question ("I must be missing something simple...") on a pared-down jQuery code segment and a URL showing the problem. Out of the 10,000+ members of the mailing list, my Apache log shows a grand total of 1 hit on the example and I got no response on the mailing list. I must be in the wrong list. Is there somewhere to ask jQuery questions? Once again, the code in question can be found at: http://batbox.org/bh.html It works under firefox/safari,
Next Page