2,530 Topics

Member Avatar for
Member Avatar for blivori

Hi, Can anyone tell me why no 'products' are being displayed from the JSON file? This is my code: products.html: <!DOCTYPE html> <html> <head> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> <style>img{ height: 100px; float: left; }</style> <link rel="stylesheet" type="text/css" href="style.css"> <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> <script> $.getJSON('products.json', function(data) { $.each(data.products, function(i, item) { …

Member Avatar for pritaeas
0
359
Member Avatar for rexmatthew

Can anyone help me? I'm trying to gat my reservation calendar working with jquery tabs. Everything else works exept for this reservation calendar. When I remove the javascript from the header, the calendar works just fine but the tabs disappears... Can anyone please help...? <div class="reservationbox"> <div class="reservation_calendar" id="reservation_calendars"></div> <div …

Member Avatar for annaharris
0
245
Member Avatar for allifields

Hi, so I have developed a top fixed navigation bar at the top of a webpage. How do I incorporate a fading navigation bar so that when I scroll down, the fixed bar turns from black to a certain opacity level? Is that something incorporating jquery? And if possible, if …

Member Avatar for Dani
0
974
Member Avatar for chr.s

In order to make my AJAX functionality a little more efficient I've added a cache component; but this has given me a huge new headache. The AJAX related code is below. It listens for a click and checks if the user has already clicked that link. If not, it'll fetch …

Member Avatar for chr.s
0
296
Member Avatar for Violet_82

Hi there, on one of my pages I am working on [url]http://www.antobbo.webspace.virginmedia.com/photography/category_1.htm[/url] I have a script which works in firefox, opera but it doesn't in chrome and IE. Now, let me explain first what the script is supposed to do. On the above page if you click on the second …

Member Avatar for 1@3RaJa
0
2K
Member Avatar for elbeato

I'm having trouble with cross-browser compatibilty with a jQuery click function. I want it to return the width of #bbox and have it play the animations based on what it returns. I have set the width of #bbox to 0px in my CSS as the starting state. THE PROBLEM: w …

Member Avatar for pixelsoul
0
786
Member Avatar for garyjohnson

I have a website that has 2 jquery sliders. This webisite works perfectly fine with both of them. I then created another site with the same exact code for 2 jquery sliders and this site will only run one slider and I can't find the problem! This is the html …

Member Avatar for garyjohnson
0
299
Member Avatar for milkman93

Hey Everyone, I am trying to create login page where if the user doesn't enter a value into the username and password textfields a box fades in (JQuery function) telling the user to enter info. I know I can just add the `required = "required"` to the input tag, but …

Member Avatar for milkman93
0
8K
Member Avatar for Amit_15

I have created a elevator functionality [there are 2 floors and corresponding to each one , there is a checkbox. Depending upon which checkbox is checked, the elevator shud move to that floor. Only thing which i am not able to implement here is: Make the checkbox check automatically and …

Member Avatar for theHop
0
264
Member Avatar for McLaren

//$('tr[id^=system_type_] input').live('change', function() { $('tr[id^=system_type_] input').on('change', function() { alert('a'); console.log($(this).val()); }); its not the first time, but I read that live is deprecated so I want to use on. But why it does not work in this code?

Member Avatar for paulkd
0
149
Member Avatar for singularity~

I have declared a local variable inside of getAddress. When I try to access that variable inside a local function it falls outside its scope. What am I doing wrong? function getAddress(latlon, map) { var data = ""; $("#map-canvas").gmap3({ marker: { latLng: latlon, options:{ draggable:false, }, }, getaddress:{ latLng: latlon, …

Member Avatar for singularity~
0
276
Member Avatar for samith.dilhara

how to keep same tab highlighting after refreshing the page(page is refreshed after the paging link clicked.) <script type="text/javascript"> /**this is for tab highliting*/ $(document).ready(function(){ var str=location.href.toLowerCase(); $(".navigation li a").each(function() { if (str.indexOf(this.href.toLowerCase()) > -1 ) { $("li.highlight").removeClass("highlight"); $(this).parent().addClass("highlight"); } }); }) /**this is for paging highliting*/ $(document).ready(function(){ var str=location.href.toLowerCase(); …

Member Avatar for LastMitch
0
135
Member Avatar for Amit_15

I have created a elevator functionality [there are 2 floors and corresponding to each one , there is a checkbox. Depending upon which checkbox is checked, the elevator shud move to that floor. Couple of things which i'm not sure how to implement are: wherever i have added class "unchecked" …

Member Avatar for Amit_15
0
229
Member Avatar for vingan

Hi, I have a input text field and a submit button. On placing a value in the input file and clicking on submit button, should take me to a url that verifies the value and if correct redirects to a different page and if wrong, responses back with an error …

Member Avatar for IIM
0
112
Member Avatar for azapovjednik

Hello, I have a question and I thank everyone for helping me in advance. I am using Visual Studio 2010, ASP.NET and C#. I have a table in SQL server DB. Server page (news.aspx.cs) is collecting all the data from the table (`select * from news`). Using `container.Controls.Add(new LiteralControl(news.ToString()));` I …

Member Avatar for LastMitch
0
218
Member Avatar for logicaweb

I have a problem with jquery loading because prototype. This is script that I use: <script type="text/javascript" src="prototype.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script> ... .. .. <script language="javascript"> function show(obj,msg){ messageBox.style.top=obj.offsetTop messageBox.style.left=obj.offsetLeft+obj.offsetWidth+5 contents.innerHTML=msg+"<p>"+obj.href messageBox.style.display="block" } </script> Between "..." I have a few more jquery scripts that working without conflict with prototype.js because I …

Member Avatar for LastMitch
0
236
Member Avatar for Jollyyy100

Is it possible to merge both the 2 element below so that they work on a single page. What i mean is this should be the background of the page: http://tympanus.net/Development/AnimatedResponsiveImageGrid/index3.html and a slideout contact form can appear at the corner over the background: http://www.building58.com/examples/tabSlideOut.html Is it possible, how?

Member Avatar for Jollyyy100
0
313
Member Avatar for Kert

I have an HTML page that makes a query to SQL database when clicking on button "OTSI". My problem is that after populating the table with the data, I cant sort it anymore. I am using a standard tablesorter library ([TableSorter](http://tablesorter.com/docs/)). Here is the page making the query: [page with …

Member Avatar for radhakrishna.p
0
300
Member Avatar for ahmedhamdy

javascript code : $("input#input_field[name=brithday]").datepicker({ dateFormat: 'dd-M-yy', showAnim: 'slide', changeMonth: true, changeYear: true, yearRange: '1990:2020' }); jsp code : <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Profile</title> <link rel="stylesheet" href="css/style.css" type="text/css"> <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" /> <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script> <script type="text/javascript" src="JS/javascript.js"></script> </head> <body> <% %> <div> <div class="blackDiv"> </div> <div class="whiteDiv"> …

Member Avatar for ahmedhamdy
0
458
Member Avatar for chr.s

I'm trying to extract an element's children from an AJAX call, but am having difficulty isolating it. My code is as follows: function AJAXcomplete(data){ var result = $(data).find('#productDetails > *'); jQ('#productDetails').append(result); }; function getDetails(e){ e.preventDefault(); var addy = jQ(this).attr("href"); jQ('body').append('<div id="productDetails"></div>'); jQ('#productDetails').show(); $.get(addy, AJAXcomplete); }; jQ('#slides').on('click', '.slideLink', getDetails); The above …

Member Avatar for chr.s
0
243
Member Avatar for shyleshs

hi friends, I have a problem Requirement * Weekends should be disabled. * Disable past days * specific date should be disabled So I used jqueery datepicker **Registerdate is ID of the textbox** <tr> <td> <asp:Label ID="Label7" runat="server" Text="Register date : " Font-Bold="True"> </asp:Label> </td> <td> <asp:TextBox ID="Registerdate" runat="server" Width="150px"></asp:TextBox> …

Member Avatar for LastMitch
0
248
Member Avatar for nstrazimiri

Hello. i load data from a data.json file. each div named content shows contetn[i] from the json file. but i dont want all of this to be shown. i want only the the hovered div to be shown.but this code doesnt work.any help ? $.getJSON('data.json', function(data) { for (var i=0;i<18;i++) …

Member Avatar for minitauros
0
153
Member Avatar for Vingklippt

I am trying to automatically resize the iframe to fit the content. Works great in chrome, firefox and opera. Fails in Internet Explorer. Ideas? <html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Leontinas</title> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript"> var framefenster = document.getElementsByTagName("iFrame"); var auto_resize_timer = window.setInterval("autoresize_frames()", 20); function autoresize_frames() { for …

Member Avatar for Squidge
0
256
Member Avatar for tAALz

I'm looking for something like this [Click Here](http://screencast.com/t/gTJFzquJ) Lets say I have bucket A of items: * Name * Email * Phone * City * Country * Sex I have another bucket B in which I can put the items of my choice: * Name * Email * Sex I …

Member Avatar for LastMitch
0
109
Member Avatar for Violet_82

Hi there, I am not entirely sure how to target checkboxes with jquery. I had a look around but the methods indicated don't seem to work for me for whatever reason. Given the following html fragment: ... <form> <input type="checkbox" value="red" name="the_color" checked="checked" id="red"><label for="red">This is red</label><br> <input type="checkbox" value="blue" …

Member Avatar for LastMitch
0
146
Member Avatar for jspence29

I can't figure out why my nivo slider is not showing, the link to the jsbin is here http://jsbin.com/opucok/4/edit. I followed the directions in the nivo website exactly, and the slider works when it isn't with the rest of my html and css code.

Member Avatar for pixelsoul
0
212
Member Avatar for cgull

I am using codeigniter 2.1.2 and Bootstrap. I am opening a form in a modal window. The form is inside a div with id status. The form has a few input fields and an upload file field. I am trying to submit the form with ajaxForm. In my controller I …

Member Avatar for cgull
0
1K
Member Avatar for cgull

Hello, I am trying to create a menu that slides up when a button is clicked. I looked at a lot of tutorials of animate and slide but nothing works for me. I hope someone can help. What I need is a button that says: Click for Menu and when …

Member Avatar for cgull
0
205
Member Avatar for paulnamroud

Hello, This is my first experience with C# Web Service & AJAX ... I would like to build a page like Facebook that will load the next set of records when we scroll down ... I'm trying to use the code but it's not working at all ... Can you …

Member Avatar for paulnamroud
0
329
Member Avatar for DaveyMoyes

Hi Everyone, I am new to JQuery, Java Script & Ajax. Hope you dont mind the daft questions I may post. Here is my first Jquery, JS & Ajax question. I have the follow script inside my head section of a website I am testing with. <script type="text/javascript" src="jquery-1.9.1.js"></script> <script …

Member Avatar for pixelsoul
0
198

The End.