Find class or id name and make it a string?
Hi, Is it possible to create a function that will find a class name or id name and then assign that name as variable string? For example, my body has a class name: <body class="Sunday"> I need to have a function (using jquery or just regular javascript) that will determine that class name and then assign it to a variable named bodyClass, so that bodyClass="Sunday". I know it's probably a pretty easy question but I'm not quite getting it. Thanks for any help!
[jQuery] (validate) equalTo with complex names
HI Wondered if someone could help. I need to run a equalTo validation check on some inputs that use complex ids, they have fullstops in. I am trying to add the rules (using quotes also as specified) as per the documentation but it still doesnt seem to work. Code is here: $(document).ready(function(){ $("#registrationDetails").validate({ rules: { "emailAddress.email": "required email", "emailAddress.emailRepeated": { equalTo: "#emailAddress.email" } } }); }); any help here would be great thanks in
[jQuery] migration to jquery 1.3.x
Hi i was using extensions such as jquery.dimensions ui.mouse ui.slider what append to these extensions. thanks for your help.
[jQuery] Urgent "&" problem in wordpress
Hi all I am new to wordpress.I am using $.ajax $.ajax({ type: "POST", url: "some.php", data: "name=John&location=Boston", success: function(msg){ alert( "Data Saved: " + msg ); } }); But it will convert "&" into "&". can any one tell me how to fixed this.
JQUERY XML random data fetch
Hi guys, I have been struggling with data output from a XML file using jquery. I would like to display the XML content randomly, so it does not print out the data in the order I entered it in the XML file. I use to jsut create a javascript table and randomize the sort, but I wanted to evolve and use XML files... not as easy as I thought! Here is the code of the XML <?xml version="1.0" encoding="utf-8"?> <questions> <question> <fr url="testFr1.html">French question 1</fr> <de url="testDe1.html">German
problem in firefox: function undefined
Hello, I get this message from firefox when the javascript function loadContent is called: An error exists inside your "ontoggle" function: ReferenceError: loadContent is not defined Aborting execution of function. I have an animated menu (#left) that expands and collapse (the text in #tavira) and loads with a fed in-out animation some content in a DIV (#right). Here the javascript code <script type="text/javascript"> animatedcollapse.ontoggle=function($, divobj, state){ //fires each time a DIV is
[jQuery] jQuery speed seems slow
Are jQuery searches slow versus using DOM? (i.e. document.getElementById("whatever") ) It seems that it takes forever to do things that when done with document.getElementById, goes much quicker. What do you think?
How to get to text inserted by jQuery into HTML
Hello, I need to get text data from a web page which are unfortenately inserted into <span> tag by jQuery so it's not actually involved in HTML source file. That means for me I can't get it by classic HTTPRequest (programmatically). For example, on this page: http://9lessons.net63.net/inserting.php When you enter some text in the textbox, this text will show up under it. But when you open HTML source or download it using HTTPRequest (I do so in C# language but it shouldn't matter), the source won't
problems with special characters
Hello, I have the following problem and I hope someone could help me. I am using jquery autocomplete plugin. The problem is that I am loading a javascript array with the data to be hinted (completed). Some words have special character (specifically Skarsterlân). When I save that word using html special character as Skarsterlân , the word is hinted into the field as it should (Skarsterlân), but when I select that word, it shows as Skarsterlân . I tried the other way around and the problem reverts
[jQuery] function not defined problem in firefox
Hello, I get this message from firefox when the javascript function loadContent is called: An error exists inside your "ontoggle" function: ReferenceError: loadContent is not defined Aborting execution of function. I have an animated menu (#left) that expands and collapse (the text in #tavira) and loads with a fed in-out animation some content in a DIV (#right). Here the javascript code Code: <script type="text/javascript"> animatedcollapse.ontoggle=function($, divobj, state){ //fires each time a
[jQuery] validation on multiple text inputs on button click
Hi All Was wondering if anyone could help me on this problem i am having. I have a form which contains a foreach loop and this loop outputs as many generated input fields as there is data in the database. My jQuery validation on submit is only seeming to validate the first input box of however many input boxes. I would like validation to check all the inputs and if requirments are met for the inputs then return true or else return false if it doesnt meet the requirments of the custom validation method.
[jQuery] Superfish:'null" is Null or not an object
Hi, I'm developing my first site with Superfish and DNN. All runs very well as expected, but I have a problem with one DNN Tab: If this tab will be clicked I receive the JS error, that 'null' is Null or not an object. May I ask to visit following site to see this error directy? http://ev-kirche-niederkassel.de.netspec.de You will see, that Superfish is running properly on every page, except following path: --> Für Kinder und Jugendliche --> Gästebuch Sorry for my bad english. It would be nice, if
[jQuery] fadeIn and Out not working on IE but working on firefox
hi, i run into a probelm when i want to use the fadein and out function for a new dynamic added inputs. you can add inputs dynamically and i want to do that with fadeIn and Out. it is working great in firefox but not in IE. i think the problem is the new added rows are not in the DOM when the page is loaded and that is why the effect is not working i tried few solutions but i did not manage to solve the problem. here is the test page i'm working on it. http://www.voorbeeldvan.uwapothekeronline.nl/pages/New_Herhaalrecepten.asp?articleid=113816
[jQuery] Join element sets?
I have two element sets: $(".contentBox") and $(".referencesImage"). How can I join the elements in this sets? I would like to join the sets, since I'm adding the exact same hover function on both element sets. $(".contentBox").hover(function(event){ ..do something },function(event){ ..do something }); $(".referencesImage").hover(function(event){ ..do something },function(event){ ..do something });
[jQuery] Template plugin. Fill your template string with JSON data
Hi, I have new JQuery plugin that I want to share. This plugin fill any special formated string with existing json data, so you can automatically do this. It's very easy to use, and amazing simple. Please, have a look http://iggant.blogspot.com/2009/09/jquery-template-plugin-fill-template.html. It's look like FlyDOM existing pluging but much more useful. It supports nested array in JSON and you can create what you want. Feel free to contact. Regards
Sidebar sliding as in example.
Hi. I'm searching for a plugin, or part of code, that allows to do the sidebar sliding effect as on example (when the page is scrolled, right sidebar stays on same position, but when footer or header is reached, it stopes moving): http://www.rockettheme.com/extensions-joomla/roknavmenu There is mootools used, but I would like to use jquery. Would be very greatful for a help.
Newbie Jquery IE Problem
Hi all, I'm just starting to dabble into the world of jquery. I've created a slideUp slideDown text list on my site which only shows one piece of information at any time, it works fine in Firefox and Safari however when I open it in IE the show/hide effect doesn't work and you can see all the text. My site is http://www.bazhodson.co.uk/about.html Can anyone help?
[jQuery] [autocomplete] Callback for selected match
Hi Is there anyway to pass a callback to the options to be called when an option is selected? Regards Eka
after() function not working perfectly with table tag.
WHAT I WANT TO DO: I am adding rows dynamically to a datalist using add button which is present in each dynamically generated row. Now, when I click on add button a new row adds next to the row in which the clicked add button is present. HOW I AM DOING: I am using after() function to perform this task. THE PROBLEM While using divs in HTML, this function is working perfectly. But unfortunately when I use table in HTML, it is adding the rows but always at the end. Can anybody give me the solution to
[jQuery] tablesorter - disabling sorting for a row
Hi folks, I'm using the awesome tablesorter plugin and I have one question: 1. is it possible to have a row not be part of the "sorting"? For example, I'd like to have a table, where the first row under the headings, is always on top, and doesn't change positions when one of the headings is sorted. Thanks for any tips! Konstantin
jQuery Twitter API plugin
I created a Twitter plugin for jQuery that lets you get any user's latest twitts and information about the user like user bio, home url, location, etc. Here is how you can use it to get latest 10 posts of "jQueryHowto" Twitter user: // I am query data for "jqueryHowto" user $.jTwitter('jqueryHowto', function(userdata){ //Callback functn with the user data and posts $('#profile input.url').val(userdata.user.url); $('#profile #avatar').html('<img src="' + userdata.user.profile_image_url
[jQuery] Announcing Concrete - a jQuery library for structured code development
Hi, I'd like to announce the 0.9 (API stable) release of the Concrete (http://github.com/hafriedlander/jquery.concrete) and Selector (http:// github.com/hafriedlander/jquery.selector) libraries for jQuery. Concrete provides a brand new model of javascript code organisation – a replacement for Object Oriented programming that is focused on adding functions to DOM elements based on their structure and content. It’s a merging of the model and view layer that initially seems weird, but can give very
[jQuery] Chubby jones interview : the wonder girls
<p class="11" style="MARGIN: 3.75pt 0cm"><span style="FONT-FAMILY: 'Verdana','sans-serif'"><a href="http://www.ziddu.com/download/6909513/interviewwondergirl.wmv.html"><span style="FONT-WEIGHT: normal; FONT-SIZE: 9pt; COLOR: #006a79">http://www.ziddu.com/download/6909513/interviewwondergirl.wmv.html</span></a></span>
[jQuery] WG Performance in NY
<p class="11" style="MARGIN: 3.75pt 0cm"><span style="FONT-FAMILY: 'Verdana','sans-serif'"><strong><font size="5"></font></strong></span> <p class="11" style="MARGIN: 3.75pt 0cm"><span style="FONT-FAMILY: 'Verdana','sans-serif'"><a href="http://www.ziddu.com/download/6909512/wonderny.wmv.html"><span style="FONT-WEIGHT: normal; FONT-SIZE: 9pt; COLOR: #006a79">http://www.ziddu.com/download/6909512/wonderny.wmv.html</span></a></span>
[jQuery] (tooltip) Markup problem
Hello, I have been using Bassistance tooltip but I think the markup is really incorrect. http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ Why forcing an H3 into the tooltip? Did you ever checked a page with it in Opera's table of contents? By imposing H3 you are breaking the semantics of a page ... At least you could allow to have an option to have the H3 or not ... What do you think? Thanks, Miguel
[jQuery] Newbie Question
I am running a function that takes a long time to run in coldfusion. I would like to display a Loading Data message when the data needs to be loaded then hide that message once the data load is complete. What jQuery functions do you recommend and what basic approach do I need to take. This is what I have (non qQuery approach), but the cfflush seems to have issues on the production server. <!--- Load all offices to create a TopOffice org tree. ---> <cfset application.EmployeeDB_Functions.Loading_Data_Message_On
[jQuery] Prevent Select from opening.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content="text/html; charset=us-ascii" http-equiv=Content-Type> <META name=GENERATOR content="MSHTML 8.00.6001.18813"></HEAD> <BODY> <DIV><FONT size=2 face="Trebuchet MS"><SPAN class=890213221-14102009>I have a select input that when clicked i want to prevent from dropping down. How can this be done?</SPAN></FONT></DIV> <DIV><FONT size=2 face="Trebuchet MS"><SPAN class=890213221-14102009></SPAN></FONT> </DIV> <DIV><FONT
[jQuery] ie6 and .val() issue
I've come across an issue where doing something along the lines of $().ready(function(){ $("#selectbox").val("value"); }); Throws the following error in IE6 Could not set the Selected Property: Unspecified Error. $("#selectbox") referrs to the following html. <select id="selectbox"> <option value="default">Default</default> <option value="value">TEST</option> </select> Anyone know a way around this?
[jQuery] Writing a plug-in that uses jQuery .live() method, but something doesn't work...
Hi, I'm trying to write a plug-in that enforces a character limit on a textarea of a form that is dynamically loaded via Ajax. If the character limit is reached, I "disable" keyboard input except for a few keys. Without writing a plug-in, this code works: (function ($) { $ (document).ready (function () { var charLength; var textfield; var charLimitReached = false; /* User cannot enter number of characters greater than character limit */ $(".your_comment").live("keydown",
[jQuery] Jquery Cycle - Combining Prev & Next with Image Count
I have worked out how to use the Next and Prev example here : http://malsup.com/jquery/cycle/int2.html and the count example here: http://www.malsup.com/jquery/cycle/count.html I can't however work out how to combine them so when you press "Next" it changes a "1 out of 5" image counter. Any help will be greatly appreciated!
[jQuery] Iterate through elements of a given class and multiply
I would like to use JQuery to iterate through a set of <div> elements that have the same class and scale each value according to a value selected from a dropdown box. For example, <select id="factor"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select> <div class="num">100</div> <div class="num">1000</div> <div class="num">10000</div> If "2" was the scaling factor chosen, then the divs would look like: <div class="num">200</div> <div class="num">2000</div>
[jQuery] jQuery updatable graph
I am looking for a pie chart that I can update by jQuery. I have used sparklines but I cant get it to update without a page refresh. Has anyone used such a graph?
[jQuery] Autocomplete not working in Firefox
I can get Jquery Autocomplete to work in all browsers but Firefox. The function correctly queries the data and creates the results div/ list, but it's not setting the style: display to show or block, it's remaining at none, the default state. Firebug is not showing me any errors, as far as its concerned it's running just fine. Any thoughts?
stuck: basic ajax fuction
Hello, i am new to jquery and i am kinda stuck here. i have a simple form and what i am trying to do is get a "confirmed message" after submission. when the form is submitted, the returned value $("#show"+Id).html("contact form submited"); does not stay in the page. it disappears. any help would be great. Thanks <html> <head><title>hello world</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function(){
Please Help me - IE 6,7,8 Out of Memory Error on drop menu
I'm new to JQuery and I receive an out of memory error when I roll over and off, over and off my menu 6 times. I'm using the latest version of JQuery. Maybe there is something I'm missing. Any help will VERY much be welcomed. /* hoverIntent Menu Config */ var menuConfig = { sensitivity: 3, // number = sensitivity threshold (must be 1 or higher) interval: 200, // number = milliseconds of polling interval over: showNav, // function = onMouseOver callback (required) timeout: 500, // number
[jQuery] How to Sort an Unordered List - TinySort
Hi, I have the following DOM structure (unordered list), that I would like to sort on the a href tag name using jQuery – specifically the TinySort plug-in http://plugins.jquery.com/project/TinySort Structure is as follows: <div id="refmenu"> <ul id="list"> <li><a title="Google" href="....">Google</a></li> <li><a title="Apple" href="....">Apple</a></li> <li><a title="IBM" href="....">IBM</a></li> <li><a title="Yahoo!" href="....">Yahoo!</a></li> <li><a title="Hotmail" href="....">Hotmail</a></li>
[jQuery] What causes a query string when requesting jQuery? e.g. /jquery-1.3.2.min.js?_=12553…
I'm troubleshooting a page display glitch involving jQuery & AJAX. When the glitch happens, Fiddler shows the following as one of the requests: GET /Scripts/jquery-1.3.2.min.js?_=1255309685187 Normally, the request has no query string and the response status code is 304: GET /Scripts/jquery-1.3.2.min.js However, every so often a query string is appended. Where does this query string come from? What does it mean? I wonder if the AJAX call fails, and then jQuery is refetched with that query string
[jQuery] How to convert prototype to jquery
My prototype script: function loginMenu() { $('mydiv').innerHTML = "Loading..."; var param = Form.serialize($('myForm')); var myAjax = new Ajax.Updater ( 'myOutputDiv', '<%=$app%>/users/login', { method: 'get', parameters: param, evalScripts: true }); return false; } ?
jQuery.noConflict(); won't work with 1.3.2
Hello, I'm using jQuery 1.2.6 and I need to upgrade to 1.3.2 I have to use jQuery.noConflict(); because we are using JSF ICEFaces and there is a confclit. noConflic works fine in 1.2.6 but did not work in 1.3.2 Has anyone had a similar issue??
[jQuery] (validate) How to get individual error messages and disable auto-showing
I'm trying to write a custom display for the error messages on my form. Ideally I'd like to use a modal pop-up window to display the errors, but I'm having trouble figuring out how to prevent the validation plugin from automatically displaying the errors on my page AND I can't quite figure out how to access the individual error messages for the elements on my form. What I want to do is to allow users to save invalid forms, but to warn them that they are invalid to make them confirm that they want
Next Page