[jQuery] How to print json data, key and value
Hi all, from my PHP script with json_encode() I print this json output: [{"name":"pippo","surname":"pluto","age":"20"}] Is possible to print the key and the value of json object without using code like this: $.each(data, function(key, value){ console.log(value.name); console.log(value.surname); console.log(value.age); }); but something like: $.each(data, function(key, value){ console.log(key . '-' . value); }); and achieve output like this: name - pippo surname - pluto age - 20 -- Massimiliano Marini
[jQuery] Validate textbox on selected value in a combobox
Hello, how can I validate several textbox basing on selected combobox? For example, having this combo: <select id="mySelect" name="mySelect"> <option value="-1">Please select</option> <option value="1">CA</option> <option value="2">PR</option> <option value="3">PROV</option> </select> I'd like to make required the first textbox if the user select the first value, and so on. <input id="myFirstInput" name="myFirstInput" type="text" /> <input id="mySecondInput" name="mySecondInput" type="text" /> <input
[jQuery] treeview asynchronous
hello? i want to use the asynchronous load tree,but the "jquery.treeview.async.js" only supply the root load tree by ajax(json),but i purpose that each node can load children asynchronous, what can i do? please help me~
[jQuery] Expand/Collapse the Jqgrid
hello Everybody I am using the Jqgrid in my project.My question is , If there is no record in a grid it should to collpased otherwise it will be expand. how is it possible . please advise me. Thanks Mohamed
[jQuery] question about getJSON, objects and/or scope - confused
Hi, I'm working on a page where graphics/content get loaded via server side stuff and decided to try to use JSON to send the data. But I'm having trouble with converting the JSON to a javascript object when I use an external file. This works: http://dev.illovich.com/storigraphi5.html ========== script type="text/javascript"> // this tests the JSON object var thisStory = { "imgURL": "storigraphs/test1.jpg", "title" : "I (verbed) you", "author" : "The Author", "imgHeight":
[jQuery] How to check if jquery is working?
Hi, I want to try incorporate jquery in my site, but I'm having some problems. The site is drawn together from various files in PHP. I have added the jquery script which I would expect to work fine regardless of the PHPness earlier because it is a client side script. Unfortunately nothing happens. If I save the page directly to my desktop then the script works fine, so I think there must be some problems with the dynamic pages. Does anyone have any idea why this might be occuring? The following is
[jQuery] flowplayer.org / scrollable plugin does not work
I can not load that web page... Anybody knows if it´s a general issue ? or is my fault? i need the scrollable plugin.. any optional plugin? thanks.
Change keyCode of triggered event...
Hi, all.. I need to change a keycode of triggered event... What I need to do, is when a user pressing right + key on the numpud, I need it to be "TAB" instead... Since I cannt know when on the screen he will do it, I cannt use itaration of elements... I cannt know what will be the next element... here is the code I tried, any help will be appriciated.: $(function() { $("form input").keydown(function (e) { if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {
problem with jQuery datepicker
Hi! Please help me with one thing. I'm using jquery UI datepicker on my page in this way: var list = {}; function getEventsDatesList() { // fill list with dates to be display in calendar ... list[new Date(date[2], date[0] - 1, date[1])] = true; } $j(document).ready(function() { getEventsDatesList(); var lblMonthName = $j("#lblMonthName"); var arrMonthNames = ['....']; //monthes names $j("#calendar").datepicker({
[jQuery] Accessing HTML form fields into jqgrid
Hi all, This is dillu. I am a new comer to jQuery , jqGrid. I am trying to get the form values ( text fields) into my jsp(which consists of jQuery , jqGrid code), and I am trying to add those into the grid. can you please tell me the way to access form values into my grid.
after form validation i want to run a javascript function
if the form valiation is showing error then it should not run the javascript funtion. if it is not showing the error then it should it should call that javascript function.
Stuck with checkbox selecting
Hi all, I have a situation where there is a matrix grid of checkboxes, and individual entire rows or columns must be able to be toggled between checked and unchecked state. I put the page up here: http://www.jontakiff.com/matrix/preferences.html# Ok. For the horizontal rows it was pretty easy. This was the code that did the trick: $(function() { $(".select-row a").toggle( function(event){ $(this).parent().parent().find("input[type=checkbox]").attr("checked",true);}, function(event) { $(this).parent().parent().find("input[type=checkbox]").attr("checked",false);
[jQuery] cluetip problem on iPhone/Mobile Safari
First off, a quick THANK YOU for making cluetip! :-) I'm using it and loving it but I have an issue with it under iPhone/ Mobile Safari. Basically, when I view a page with a desktop browser, cluetip activates on hover and does what I want. However, on the iPhone, cluetip displays whenever a link is tapped that would normally display the cluetip hover in a desktop browser. So, is there a way to fix this behavior in cluetip? If not, can I disable cluetip (or stop it from loading) when an iPhone requests
[jQuery] jQuery.Scrollable
Hi, Hoping someone who uses or knows of this plug-in, i.e: http://flowplayer.org/tools/scrollable.html knows how to change the Navigator to be actual descriptions/names of each panel - basically like a breadcrumb menu. Is this possible? If yes, would really appreciate any examples to assist me. Thanks. tfat.
[jQuery] how to get string like "http_build_query" of php
I Guess it is easy because $.post join the array as querying string but I read the jquery souce and not undestand
[jQuery] IE 'Member not found" on line 2840
Hi there Ran into this strange situation. Everything works fine in firefox and opera, but in IE, i get an error saying "Member not found", pointing to line 2840 on jquery-1.3.2.js - this is the line e.returnValue = false; any suggestions for this problem? Thanks Vru
[jQuery] jquery pause all flash player elements, allow only one to play.
I'm using the jquery.media plugin. On the page i have it has 20 or so flash elements to play each different mp3 files. Is there any way to setup a jquery call so when you click play on the flash element it pauses any other flash player running?
[jQuery] AUTO: Michael Lawson is out of the office (returning 05/26/2009)
<html><body> <font size="2">I am out of the office until 05/26/2009. </font><font size="2"> </font><font size="2">Enjoying a weekend of anime geekdom at Animazement in Raleigh NC. </font><font size="2"> </font><font size="2">www.animazement.org </font><font size="2"> </font><font size="2">If you have any questions or concerns, please contact Leena Paulose </font><font size="2"> </font><font size="2"> </font><font size="2" color="#808080">Note: This is an automated response to your message "</font><b><font
Linking directly to jQuery UI files on jqueryui.com?
I'm using the Google Libraries API to load jQuery and jQuery UI. Is it permissable to link directly to component's file on jqueryui.com? For instance I'd like to load the tabs component with: <script src="http://www.google.com/jsapi"></script> <script type="text/javascript"> google.load("jquery", "1.3.2"); google.load("jqueryui", "1.7.1"); </script> <script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.tabs.js"></script>
[jQuery] advanced toggle
I'm not sure if toggle is the best way to approach this, but it is what I am working with at the moment. I am trying to create a dropdown tree that slide toggles open and closed a div on click. An arrow image appears next to the click able anchor that changes to point down when it is clicked. I created this with the following code: jQuery: $(document).ready(function() { //hides spans on load $('div.subMenu').hide(); //toggles the menu open and closed $('a.slideToggle').click(function() { $(this).parent().next().slideToggle(400);
[jQuery] [validate] IE7 error labels showing up underneath next form element
I'm using the latest version of jquery.validate.pack.js along with jquery1.3.2. My form is in a very narrow column, so I have the labels above the form elements, and want the errors to display beneath the element. I've managed to accomplish this for FF3 and Safari - both will push the rest of the form down in order to display the error message. IE7, however, just pops the error underneath the next form element on the page instead of pushing the form down. Here's a test page: https://www.d.viedu.org/explore/index4.php
[jQuery] input type
Hi, You can return a text input for a password input? Example: $(this).attr('type','password'); Has another way that works?<br clear="all"> -- Atenciosamente, Rodrigo Matheus
[jQuery] EasySlider 1.5: Tabbing through forms
I'm developing a form using the jQuery plugin EasySlider 1.5: http://cssglobe.com/post/4004/easy-slider-15-the-easiest-jquery-plugin-for-sliding I want to add the ability to initiate the slider action when a user tabs to a field located off-screen, as in this example: http://www.fordpas.org/registration/teachers_coordinators/form_v2.asp So, when someone tabs through that first form area, and gets to "Repeat Email", when they tab to the next field, it triggers the EasySlider much like the "Next >>"
[jQuery] Cycle plugin - frame number / IE behaviour
Hi ! As implied by the subject, my question concerns jquery.cycle plugin and I have 2 questions. I tried to find answers searching the web, but didn't find any. I'm currently using cycle to built a photography website and enjoy it a lot so far. However, I'd like to display/update the image number at the same time as the legend (taken in the "alt" of the images). i.e, I'd like to be able to write something like "current frame number / total number of frames" in a div, somewhere. It looks like somebody
[jQuery] Superfish - Multi-Column Dropdown
I would like to integrate a multi-column superfish into a Joomla! 1.5.10 production site. Has anyone been able to accomplish something similar?
collecting values to update another.
hey there all This is my first post here so i will give some back ground. I am New to Java thus I am New to jQuery. There I don't htink I need to say much more than that. I have used jQuery on one site and am very pleased with the results... http://www.giveralliance.com I am now working on a site where I am using a CMS (BusinessCatalyst) that has a great shopping cart module. The challenge is however that my client wants something that can be done but is very problematic out of the proverbial box...
[jQuery] Recommendations for jQuery method to play mp3 audio
Is there a cross-browser jQuery plug-in that can preload several different mp3 audio files and provide play / stop methods?
[jQuery] jqgrid implementation in a HTML form
Hi, I am trying to implement jqGrid in my form. The form has some extra element like textbox and dropdown. While submitting the form i have to store it into some variable to keep this for next page where i want to show the summary page and then commit the changes. But once i click "Continue" and on submission of the form i get the form element but not able to send the stringData along with that. Is there any way to do that(like the way we do it for date picker by assigning it to an id of an input
[jQuery] superfish mouseover behaviour on page load
I'll restate this previously posted issue with a little more context... I'm using superfish with hoverIntent to trigger flyout submenus. Works well, but I'd like to trigger the submenu from the mouse position when a new page is loaded. So, for example, your mouse hovers over a link in the main menu, and the display of the corresponding submenu has been triggered. If you then click on the link you're hovering over, when the new page is loaded the menu (and submenu) should ideally come up in the same
[jQuery] Jquery Tabs problem with Tabs width
Hi All, I need to spread tabs evenly on one row and make the text wrap, when I am using fixed width for .ui-tabs-nav li the panel and nav are not aligned. I don't want the tabs to shift to the next line. PLEASE HELP!! Kobi
[jQuery] Cycle plugin and print styles
Hello I'm using the excellent Cycle plugin, but I have a problem in that I would like my print style to act as if the Javascript wasn't there, i.e. each frame appear on the page rather than being set to display: none. Is this possible using Cycle and if so does anyone have any pointers as to what I need to do? Many thanks Martin.
[jQuery] JQuery Form Plugin
I've been using the Form plugin for a while a just recently (within the last week) something has gummed up the works and I'm not sure what. Here is my code. $().ready( function(){ $('#productListForm').ajaxForm({ target: '#toolList', error: function(request, textStatus, errorThrown){ $("#toolList").html( request.responseText ); } }); $('.oep_search').autocomplete('consolidator/fetch_oep.asp', { width: 250, minChars: 2, cacheLength: 1 }); $(".oep_search").result(function(event, data, formatted) {
Jquery .load ajax
Hi there, Apologies if this has been dealt with before - I couldn't quite find what I was looking for when searching the forum. I am new with jQuery, and wondered if anyone could help. I successfully loaded a list of links (e.g. <a href="info2.php">More info</a> into the #submenu div using the first part of the code below, and want these links, when clicked, to load their URL into the #content div. I'm sure I'm missing something glaringly obvious, so any help would be really appreciated. Thanks in
[jQuery] should I use .txt or a database to retrieve data from it every second
Hi all, To learn some jquery, I am writing some sort of chatbox. My questions is: what can I use best to store and retrieve the chat text?? Is it good to store the chat text in the database, or is it better to save it into a txt file? Ofcourse only new added chat lines will be taken and displayed underneeth the old ones. If you don't have much chatters, a database option is ok, but when you ahve 1000 chatters (as an excample) trying to get new lines from the database every second (every second a
[jQuery] update from 1.2.6 to 1.3.2 $('select') - strange!?
Hi Guys, just started to upgrade my site jquery version to the latest, now I'm facing some strange behaviour. In 1.2.6 - $('select[name^="q_select_"]') - returns the select - object In 1.3.2 - $('select[name^="q_select_"]') - returns the options of the select !? Some1 else facing this problem? Regards
[jQuery] executing priority jquery script
on this page http://nl.pokerunlimited.eu/home-test-99/ The banner images are first loaded and only assembled into the sliding banner when the whole page is done loading. This has obvious drawbacks; being ugly and all :) Anyone know of a good solution for this? its jquery 171 and i can post the slider script if it helps... (i've currently src'd it in the <head>)
[jQuery] Portlets / Sortables (highlight get text within portlet using mouse)
So I've been experimenting with JQuery's portlets and in the example found on their site (http://jqueryui.com/demos/sortable/#portlets) you can't select the text in the portets with the mouse. Say you want to highlight some of the text and then right click and copy, you can't. Anytime you click within the portlet it immediately starts dragging. Is there a way in which the dragging can be restricted to the portlet header so users can still hightlight and copy text within the portlet?
newbie - HTML SELECT addOption does not work in firefox
jquery newbie here Been scratching my head for a couple of hours over this. I am trying to add select items via jquery to a select control. The following code works perfectly in IE, Opera. Chrome and Safari, but for the life of me I cant get it working in firefox. I really dont think its a bug but I must be missing something obvious. <html> <head> <script type="text/javascript" src="../lib/jquery/js/jquery-1.3.2.min.js"></script> <script type="text/javascript" src="../lib/jquery/js/jquery.selectboxes.pack.js"></script>
So.. a user clicks a checkbox.. now im stuck!
Im a little stuck on how to accomplish this. Basically I want to add or remove an element to a bar on the right when a checkbox is checked and unchecked. This is a shopping cart for a computer builder. So imagine adding and removing parts. What I got so far is: $('input:checkbox').click(function() { total = Number($('input#basePrice').attr('value')); upgradeCost = Number($(this).attr('upgradeCost')); partId = $(this).attr('partId'); partTitle = $(this).attr('partTitle');
[jQuery] How to use conditional tags to identify a page in Wordpress - is it necessary for jQuery?
I understand how to use conditional tags to identify a wordpress page with php: if (is_page('Home')) {run function here} Can (should?) this be done with jQuery also? For example, I would like to run the accordion widget on a F.A.Q. page only. Could I do something like this: if (is_page('F.A.Q.)) { jQuery(document).ready(function() { jQuery("#faq_accordion").accordion(); }); } Is this even necessary? Sorry in advance if this is more of a javascript question.
Next Page