Getting ListView items into an array.
Hi all! I have a problem getting my label values into an array. I am filling a ListView with entities from a database. I want to get the name, type, address, city, etc... from each entity and put the location(which is a label with Latitude and Longitude coordinates) into an array. I am trying the function below, it is getting the CenterName, but it is setting all of my vars as the CenterName, instead of the city, state, zip, for all of my entities. My HTML is here too. I just need a little direction
body loading many times
Hi, Jquery architecture to make the header and footer one time loading. But body loading many times. How to design the page regards, kathir
first jquery call first api
Hi I am trying for the first time to use JSON and I am trying to use the world weather online api(another first!). I am not sure how to tackle this when I create breakpoints and step through firebug, it seems to drop out inside the Jquery library, I am unsure what is wrong let alone how to rectify this, the tutorials made it look simple, I have included a fiddle below. many thanks Jasemilly my fiddle
Show/Hide div with radio button
Hi guys, I've looked through the fourms and tried some of the other "Show/Hide div with radio button" responses and I'm not sure if mine is the same and cannot to get it to work. I basically have a table and when "Other" equals "Yes" it should show "myDiv", if they then select "No" it'll hide it. By default I have it hidden. The other part I'm stuck with is - if they select "Yes" and type something into my div (which is an open text box) I'm thinking there must be a way to reset the fileld
confuse with GIF animations AND jQuery
Is jQuery useful for creating animations for <a href="http://www.techhubsoftsolutions.com">web sites</a> or we have to use GIF files for that
help build multilevel menus
Hello, anyone can pls provide me with a step-by-step tutorial if possible on building a multilevel menu for use in a website, but instead of having the usual drop-down, my menus need to be separated in different divs, like for example the primary menu (level 0) will be shown in a div (menu-0), while clicking on one of the primary menus will then display the children menus in a div (menu-1), and yet again, clicking on one of the children menu, will then load a sub-child/sub-children menus if they
[jQuery] explain this please
So for school i had to make an imagemap with jQuery, but now we have to explain it to the teacher and i dont really know how it works. So if somebody could explain it to me that would be great <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>GIP 6e IB</title> <link rel="shortcut icon" href="../afbeeldingen/favicon.ico"
How to control window traits only at URL target document?
My job involves digital publishing for print/paper magazines. For the Web, I convert pages into SWF (Flash) files for display in a proprietary player. The mobile device app version uses PNGs. Neither the player or app can be modified except by Development, which doesn't want to mess with this: customers are asking for a way to click a hyperlink and get a pop-up that shows video or an image. The challenge here is that I need to center or otherwise position the pop-ups, as well as control their size.
table sort default by desc
Hi, records are displayed within table and currently default by asc. How can i make it default by desc ? Thanks <script type="text/javascript"> $(document).ready(function() { $("#jobtable").tablesorter({ // sort on the first column and third column, order asc sortList: [[0,0]] }); }); </script>
jQuery fortune teller not talking
After taking some jQuery lessons, I have attempted to write my first program - a simple fortune teller program. You ask a question (right now for love, happiness or money) and the program takes the question, splits it into an array and then loops through the words for a keyword. Depending on the keyword, one of ten random answers is returned. The problem I am having is that sometimes it gives the answer but only for a split second and then resets itself, or sometimes the h1 text where the answers
Need help in jQuery Prev & Next nutton
Hi, I am very new in jQuery. My client wants to update the slider he is using in his site http://www.hambastegimeli.com. I've added the Next & Previous buttons. But can't make those workable. Can anyone tell me how can I make it workable? Thanks Prasun
jquery form validation
Hi to all In my page i want to do form validation and the following are the part of my code but its not working <html><head> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script> <style>#docs { display: block; position:
onchange load not working!
Hi Is there something wrong with my code? It doesn;t do anything! I put alert there and alert works! I checked the ids and they exist there too! Can't find out why its not working! I appreciate any help. Thanks <script> $(document).ready(function() { $(function() { $("#category").change(function(e) { $("#subcategories_box").load("index.php",
how to convert jquery object to string
Hi to all,I am a begginer in jquery and may be this question look silly to you genious guys. Well i have two forms in my jsp page.While submiting the 2nd form ,it takes value of one input fields of 1st form and submits. So for this i did like this <html> <head> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
How can I accomplish this
I have JQuery-UI dialog and in this dialog I have several element of type=text. I want to accomplish the following. Here is what you get back from db when you want to validate data. When you validate data for example you enter 10 in shipNumner field you get back from db if this ship nr exist and the ship name corresponding to this ship nr 10 for example Eken. 1. When I tab out of a field for example shipNr the field data is validated agains db and if the db report invalid data the focus should be
Fade In Fade Out for Multiple Image controls
Hello, I had 4 Columns (div), each having 2 images. I want animation for Each column will fade in and out randomly! But, Not at the same time. For e.g: First Column Fade another Img; else Column remains as it is; then 2 secs time interval; Second Column Fade another Img; else column remains as it is; then 2 sec time interval; Thrid.. Fourth.. if you are still confused then email me : kaushalprkh@gmail.com. i had tried by many ways but logic a proper logic is not coming in my head.
Toggle on and off with collaspable div
i have been trying to program the div to expand and close 1 by 1 or all at one time. I can get the open and close all and open on click but not close on click. Here is the Jfiddle ...Im stuck and need to figure this out...thanks all http://jsfiddle.net/4SVXt/23/ Thanks again
ajax xml not parsing
I'm sorry if this is repetitive. I am trying to GET and parse an XML document that has been validated by W3C validator. After trying $.parseXML as seen in examples on this site $xml.length returns 0. Examining the data directly shows the text of the doc. This is extremely frustrating. Please help. CODE: function loadContract() { $(function(){ $.ajax({ url:'http://www.ctunet.com/Contract.xml', type:'GET', dataType: 'xml', success:function(data){
Getting started, new to JQuery. Need help downloading, referencing, and implementing for Tabs
This is my first attempt at JQuery. I'm interested in using Tabs and I've downloaded and followed some examples but the tabs show up as links rather than tabs. I suspect I don't have the right references. I downloaded jquery-ui-1.9.2.custom.zip and jquery-ui-1.10.1.custom.zip I followed some examples on how to implement a slider but it didn't work, then I copied the example code for the Tab from this site and it displayed the tabs as links rather than tabs. It's evident that I'm doing something
How can i do this?....as shown in image.I dont want only simple meta description
Rohit Shukla
close jquery ui dialog box with form button
my parent page launches a jquery ui whose conntent is loaded from a html page. the html page has a form button named 'btnsave' 'btnsave' onclick performs some db update and then the user clicks on jquery 'close' button to close the modal form. is there a way that when btnsave onlcik is called, the db fn are called and then it can close the jquery ui modal form?
mouse over
Hi, mouse over to Link text will show level 1 for About Us and Contact Us and then mouse over About Us sub link show under about us. Instead of sub link shows under About Us, how can i make it shows on the right side? Can you pls help?- thx <script type="text/javascript"> $(document).ready(function() { $("#show_div").mouseover(function() { $("#level1").css('visibility','visible'); }); $("#level1").mouseover(function() { $("#level1").css('visibility','visible'); }); $("#level1").mouseout(function()
Review of some JQuery - I know something can be changed...
I think my if/else is rather clumpsy as it has some repetitive elements. if (country.Name == location) { $('#Countries').append($('<option>', { value: country.Iso, text: country.Name, selected: true })); } else { $('#Countries').append($('<option>', { value: country.Iso,
Making functions in JQuery
I feel like using too much classic javascript, and really like to encapsulate my functionality in JQuery. For example I have the following JS function: function DoStuff(param) { // Do stuff with param return foo; } from a JQuery button click I do like this. $("#btnMyButton").click(function () { //Do stuff DoStuff(myParam); // Do some other stuff }); What is the best way to define
Hide the text of the paragraph when it is outside the div
Hey guys! I am quite new to jQuery and I would like to make a simple slider where the images would fade in while the text would slide in from the left in the same time, over the image. This is how my HTML code is structured: <div id="container"> <div id="cine-suntem"> <div class="slide" id="slide1"> <img src="images/yumm-pizza1.jpg" alt="Image Slide Pizza" width="581" height="342"> <p class="normal"
date validate
Hi, i have form with several fields, but her is one of an example that would like to do. if i click on name field, the text box for completed_date is enable but it's not really required or check for validate date. How can only validate this field is defined and invalid entered? <script type="text/javascript"> $(document).ready(function() { $("#form").validate(); }); </script> <input type="text" name="name" id="name" class="required" title="Name is
jquery click event with variable doesnt work...
hey there everyone, im really new at this stuff, so pls dont be to hard with me. i want to get the last input (file) of a div and fire a click on it. so here is my code $(document).ready(function () { $(upload).click(function () { var largestID = $("#MainContent_FileUpload_wrap input:last").attr("id"); alert(largestID); $(largestID).click(); }); }); and here the html <span href="#" id="upload" class="button middle" class="icon icon87" class="label">Dateien
Converting Seconds To dd:hh:mm:ss Format
Here is a simple function to write seconds in dd:hh:mm:ss: function sformat( s ) { var fm = [ Math.floor(Math.floor(Math.floor(s/60)/60)/24)%24, //DAYS Math.floor(Math.floor(s/60)/60)%60, //HOURS Math.floor(s/60)%60, //MINUTES s%60 //SECONDS
How do I add a file name to the Malsup jquery addSlide image slider
Hi folks, Am a total newbie to the jQuery world and have stumbled at something that I'm trying to achieve. I have successfully implemented the dynamic image loading image slider from Malsup - URL with the code: http://jquery.malsup.com/cycle/add.html?v2 Now that I am able to load the images automatically, what I would now like to achieve is to add the file name of the image programatically to each image as it is shown. I don't mind if this is under the image such as would be created if I added "Alt"
Looping through JSON
I get a list of countries and in a country there is a list of city. I am trying to loop through countries and cities. I am trying to do following: $.each(d, function (i, country) { $.each(country.Cities, function (z, city) { alert(city.Name); }); }); but it is not working. What is wrong in my double loop please? It is only giving me the first city name, and not
Is there an onload on a div tag?
I have a div tag called 'MyDiv' is there a way to trigger a JQuery function when the div loads / renders? Something like: $("#MyDiv").load(function () { // do stuff });
Removing a div from a variable
Hello all, I've been researching the web and fiddling around for hours now. All I want to do in pseudo-code terms is the above. Suppose $page holds a variable that holds a cached page, and divid holds the textual ID of a div within $page. I've tried lot's of variants including the straight-forward one: $page.find(divid).remove(); Nothing works. Any ideas? Thanks in advance and kind regards
min-width for a html page, absolute in pixels. For ie9+ and other browsers
I want a given html page not to be shrunk (by the user, manually, with the mouse, for instance) under a certain width in pixels, so two floating divs (for instance) never end being one below the other,..... or a picture partially seen. I haven't found my way using css, so I suppose js will have the answer. Might I get any hints on this, please?. I am only interested in FF, Chrome and IE9+, nothing older.. thanks
Getting 2 different jQuery plugins to work on 1 HTML page
Hi, I'm currently building a site for a client and for the homepage I need to be able to run 2 jQuery plugins simultaneously and I do not have any knowledge on jQuery. The 2 plugins that I am using are Nivo Gallery and prettyPhoto Here are the codes for Nivo Gallery Head: <link rel="stylesheet" href="path/to/nivo-gallery.css" type="text/css" media="screen" /> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script> <script src="path/to/jquery.nivo.gallery.min.js"
For forum's admin
Dear admin would you please active my thread here and delete this post? I know it says spam because it believes one of the links is spam!!!!!! But it is not those sites are both reliable. Thank you and sorry for posting this I cant find a support ticket here. Ben
problems with Jquery
for the love of God help me, where did I go wrong? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title> </title> <script type="text/javascript" src="file:///C:/Users/Corinthians/Documents/Excercios/jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("a").click(function(){ $("#titulo").css("color", "#0000FF"); $("#titulo").text("curso e Jquery") }) }); </script> </head> <body> <h1 id="titulo">Hello
Creating a document.ready like function for my own object
If I have an object created by me named "connectionClient", how do I have it fire an event of some sort when its ready attribute equals true? I want it to be the same format as the jquery document.ready() function, something like this: var connectionClient = { ready: false, if (this.ready == true ) { connectionClient.ready(); } ready: function() { //Defined By user } } //Run Code When Ready connectionClient.ready( function(){ });
opacity animate problem
Hello, I am new to jquery and excited to be new as well!! Thanks for reading my first post. I have a set of thumbnails that when you click, a bigger image will get the src path to a larger image, so the bigger image will change when you click the thumbnails. My problem is when I use animate, it shows great but if I click a thumbnail and I click another one fast, the animate effect stops working when I click the other thumbnails, here is my code: $(function(){ //look for teh images that
How could I take only the contents of a specific DIV while using AJAX?
Hi everyone! , It's my first post here in jQuery forums. I have something to ask about using AJAX to fetch specific DIV tag contents from the target page. Let say I call it on the referring page: $.ajax({ type: "POST", url: "the_target_page.php", success: function(data) { // Some data here } }); and the target page: <html> <head> </head> <body> <div id="formWrapper"> <div id="maincontents">
return-value from function always false?
Hi, i try to get a return-value (1 or 0) from a php-file via ajax-get. The data from the ajax-call is ok, alert(data) shows 1 in data. But i can not return this data to the calling function. function validUser() { $.get("backend.php", {task: "check_User"}, function(data) { alert(data); if(data == 1) { return true; } }); } $(document).on("pageshow", "#sitzung", function () { if(validUser()) { $("#sitzung-txt").html("Sie haben eine gültige Sitzung!"); } else {
Next Page