retreiving data from ajax
$(document).ready(function(){ var htm=null; $("#search").keyup(function(){ $("#sugg").html(""); var suggestion=$("#search").val(); if(htm!=null){ htm.abort(); htm=null; } var searchurl="http://www.nse-india.com/live_market/dynaContent/live_watch/get_quote/ajaxCompanySearch.jsp?search="+suggestion; htm=$.ajax({ type:'GET', url:searchurl, crossDomain:'true', sucess:function(data){ alert("Here's lots of data, just a string: " +data); }
jQuery GET part of URL and php session
Hi, How to get: 1. Part of URL with jquery for example: ..index.php?program_id=1&option=add i wont to get valuer program_id = ? and option= ? 2. How to get value of php session? Thanks
Pass variable from one html to another to change video source on page 2 from image selected on page 1
I have 2 html pages. On the first page, there are several images, when the user clicks on an image, the second html page opens and shows a video. Page 1: <a href="video.html"><img src="img/scene1.jpg" alt="" title="" /></a> Page 2: <embed src="vid/scene1.avi"autostart="true" height="600" width="900" /> My images are named scene1, scene2, scene3... what I need to do is change the code on page 2 to show the video that goes with the image, so the video name "scene1" needs to be dynamically changed
Progress Bar not work in repeat region
Hi I have a repeat region that call a list of data from mysql database. on each line I want to display a progress bar. The issue I'm having is the the progress bar only shows for the first line?? See image below I very new to jquery so any help would be great Cheers Chris <?php do { ?> <div id="report"> <table width="100%" border="0" cellspacing="5" cellpadding="0"> <tr> <td align="left" width="60"><?php echo $row_rsProgress['worksorder']; ?></td>
Passing variable dates into a set of variable declorations
I'm not sure if this is the right section to post this, but I am pretty new to jQuery, but have a background in C & assembly, so maybe my thought process is a little different. I am trying to modify existing bit of code so that I can pass a variable to another variable. Here is what I mean. I have the following functions that calls data from a database: var num_per_page = '10'; //results to display var page_num = '1'; var year = '2013'; var month = '1'; var day = '2'; var hour = '14'; var minute
jQuery change background on hover
Okay so the title says it all :P Here is my code: CSS: #item1,#item2,#item3,#item4,#item5{ font-family:"Trebuchet MS", Helvetica, sans-serif; height:100px; text-shadow: 0px 1px 1px #4d4d4d; width:300px; vertical-align: middle; border:0; text-align: center; } #item2,#item4{ background-image: url('eee50.png'); } #item1,#item3,#item5{ background-image: url('white50.png'); }+ .itemhover{ background-image:url('lightblue50.png'); font-family:"Trebuchet MS", Helvetica, sans-serif; height:100px; text-shadow:
screenheight
Hello All, I am working on a page with a panel that moves down to become the footer when a tab or any of the menu tabs are clicked and returns to the 'header' when the same tab or the portfolio tab is clicked. My problem is: I don't know how to make this jquery function dynamic based on the size of the users screen. I currently have static values for testing purposes. Any help would be appreciated. Thank you for your time. I have included the code below. $(function() { var open = false;
JQUERY OVERLAY WINDOW NOT OPENING FOR THE FIRST TIME
Hello all, In my application I am opening a jquery overlay window through the onclick event of a g link tag.What happens is,for the very first time I click the link only the background changes but no other actions take place .If I press Escape and click the link again the window opens. I want the window to be opened for the first click event. The code I am using to open the window is: $(function() { $("a[rel]").overlay({ mask: 'black', effect:'apple',
loaded element changing the content of a div
I have a page, containing 2 boxes. A the start of the page 1 of the boxes is loaded with a page, the page has a button. What a would like: pressing the button the second box loads an file. the page: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <meta name="author" content="janbe"
including jquery file
How we include a jquery file in .js file that can work in .html file also what is the code in <head> element
including jQuery file in .js file
How we include a jquery file in .js file that can work in .html file also what is the code in <head> element
Scroll to same place on page
www.madebymatt.com is my site. this is the main code for the tabs at the top. using google bootstrap tabs, I have all the various pages on my site as tabs within one actual page. I wanted to keep track of where the user was last on each tab. it is working, but isn't working. it keeps track of where the user was on the tab, but when it goes to scroll to that location, it doesn't scroll all the way if the page before it was shorter in length. so if you're transitioning from a long page to a shorter
Code not working as expected plz help
I am following a book on jquery mobile, the code does not work as expected, for instance I have following code, the book is perhaps following some iPhone emulator that displays the Logout and Settings properly inside the title bar, but when I try this in my browser on my PC, it shows the Logout on top, then the page title, then the setting link, I have tried to preview on my mobile device as well, same issue. Please help me. I have also attached the image where my files are located, this file is:
How to use load API ?
Hello, I'm using a site in that a link has a big amount of query mysql. In this case, I thought in to use a .load API. For instance, if the user to click in a link, that link going redirect for a page that will call the query mysql. So, that's will delay very for that. I would like tell the user that the page this load with JQuery. Thanks you!
Passing JavaScript variable to PHP
In my program, radio button pressed will open its corresponding dropdown list (for example: the button ‘Asia’ will open China, Japan and India). The variable ‘x’ below detects the selected radio button and I need to pass its value inside my JavaScript to a PHP (to open the corresponding list): <script> var x = 123; <?php $what_is_myVar = x ; ?> </script> The following code is successfully passing the variable ‘x’ to PHP, but this is done outside JavaScript: <head> <script type="text/javascript">
Microsoft JScript runtime error: '$' is undefined
I created a branch in TFS for my web site project which is part of a solution with two web sites and a library of VB.NET functions. If I set the branched web site as my start up project I get this error: Microsoft JScript runtime error: '$' is undefined And nothing runs. If I use the original web site then I can everything fine. Obviously something is missing but I can't find any files that are missing in my branch. Can anyone help?
mark menu(li)
I want to mark selected menu(li)? How can I do that? kode: menu <ul id="tabs"> <li><a href="#" rel="div1"><span>Personal information</span></a></li> <li><a href="#" rel="div5"><span>About</span></a></li> <li><a href="#" rel="div6"><span>Contact me</span></a></li> </ul>jquery $("#tabs a").click(function (e) { e.preventDefault(); $("#panel_wrapper>div").hide(500); var idx = $(this).closest('li').index(); $("#panel_wrapper>div:eq("+idx+")").toggle(1000); $(this).toggleClass('active');
Div has disappear
below is the coding of my div's...... but the Div_2 is not visible... where has this gone???? .css coding ___________________________________________________________ div.container { background-image: url('../Images/hemkund-sahib-yatra-itinerary-and-places-to-stay.jpg'); width: 985px; height: 150px; margin: 0px auto 0px auto; overflow: hidden; z-index: 1; } div.Div_1 { margin: 60px auto auto 700px; color: #FFFFFF; line-height: 150%; text-align: left; z-index:
How to trigger jquery after postback in ASP.NET
Hi, I made a form in ASP.NET & created login div inside it (initially login div is hidden). Once I click on "Sign In" button, I manage to toggle the sign in div visibility. Now my question is when it is successful login, I am redirecting the user to a new page & this is running fine. But when login is failed, I want to keep sign in box open (however it is not straight forward as it executes server side code & page reloads, hence the box is hidden). Can you please suggest me best approach considering
Find next div with a certain class and scroll to.
Hi all, im trying to detect the next div with the class .content then scroll to it. Im now strugeling with $(".pagnering_number").click(function() { var next; next = $(this).nextAll('.post').first() $('html,body').scrollTop(next); }); The set up looks like this <div class="container> <div class="content"> <div class="pagnering_number"></div> </div> <div class="content"> <div class="pagnering_number"></div> </div> <div class="content">
how to stop cycle slideshow
having probs with the stop in $('#slideshow').cycle('stop'); my slideshow will not start if I use that code. what I am looking for is my whole slideshow to run one time only and finish on the last slide. here is the code i have so far. <script type="text/javascript"> $(document).ready (function() {$('.s1').cycle({fx:'fade',speed: 2500});}); </script> can anyone help please
Everytime I open Dreamweaver I get the following error msg.: Unable to open script file "https:\\ajax.googlepis.com\ajax\libs\jquery\1.7.0\jquery.min.js" (error3).
ISSUE #1 I was on the phone with Adobe for Like 5 hrs. and even let them into my computer and this issue is still unresolved. Everytime I open Dreamweaver CS6 I get the following error msg.: Unable to open script file "https:ajax.googlepis.comajaxlibsjquery1.7.0jquery.min.js" (error3). I do not know anything about .jquery nor do I know anything about ajax so I'm looking for a novice answer sort of say. But if someone knows a more advanced answer I can relay it to Adobe or an advanced professional
Capture webpage in a Jquery variable
Is there a way to reach out and and capture a webpage in a variable then manipulate it with Jquery? Thanks
Total Newbey Question
Could someone please help. I am trying to learn jQuery and have come upon some start up issues. Here is where I'm at. 1. I visited the jquery.com website homepage. I checked the "Development" checkbox and clicked "Download(jQuery)". Next I was presented with a what appears to be the text of the jQuery Library v1.8.3. I clicked File| Save As, andsaved it to a directory named "C:\jQuery" with the name jquery-1.8.3.js 2. I created a test html page in Visual Studio 2010 as follows. This page
on ............removeclass addclass
I want to change class slow speed, I want values i.e. 1000 or something else not slow or fast where can i write this code <script type="text/javascript" src="js/jquery-1.8.3.js"></script> <style type="text/css"> div.d1_1 { background-color: #9F0; height: 100px; width: 100px; border: 1px thin #000; } div.d1_2{ background-color: #639; height: 200px; width: 200px; border: 1px thin #000; } </style> <script type="text/javascript"> $(document).ready(function() { $('.d1_1').mouseenter( function()
Need help to change jquery function click on hover
Hi everyone, I'm a newbie or a noob :) I'm doing a website with a simple menu. In this menu when I click on the link "collections" appear a submenu above with other link. Now my client want this effect with a hover: when I mouseover on the link "collections" appear the submenu, when i mouseout the submenu will disappear. I try different functions but I havent resolve this problem. This is the jQuery code: $(document).ready(function(){ $("div#toggle a.button").click(function () { $("div#toggle div.box").toggle("slow");
using toggleClass ............... slow, fast properties
how can i change classes slow or fast or very slow using toggle class
How to do this
I have this code here <script> $(document).ready(function(){ $("button").click(function(){ $("select").hide(); }); }); </script> So I understand basics of jquery but bigger problem is with how to go beyond basics. So On my page i have <button>button name</button> when i click it, all elements "select" will hide. How to unhide them? I tried this, but it does not work. <script> $(document).ready(function(){ $("button").click(function(){ if $("select").hide()== true {
Is it posible to make this.
Hi there ! I'm new to jquery and i have a question, Im an intern at a 3d-company and i mostly have been working with max and adobe(ill,Ps,Dw) Now, ive been chosen to make a website based on jquery, im new to this and this is why i am asking for the communities help !. The goal is to develop something like this : www.lore.com/story And i have no idea where to start as in witch part of jquery is the most usefull to learn concerning this project, and this is exacly what this asignment is : im getting
Why my jquerry code not working in any browers
<!DOCTYPE html> <html> <head> <script type="text/javascript" src="jquery.js"></script> <style type="text/css"> .main { font-size:120%; color:red; } $(document).ready(function(){ $("button").click(function(){ $("p").toggleClass("main"); }); }); </style> </head> <body> <button>Toggle class "main" for p elements</button> <p>This is a paragraph.</p> <p>This is another paragraph.</p> <p><b>Note:</b> Click the button more than once to see the toggle effect.</p> </body> </html>
How to load function if an ID exists on page
Hello, I have a basic question as a newbie. I have a function function myFunction() { // function goes here } I can call this every time in document.ready() or pageload(), however, the page i'm using it on has a number of panels which are shown in sequence, panel 1, then panel 2 etc. so I only want to call the function on panel 2. This panel contains a unique Id that I can reference, but how do I call this function when this selector exists?
Help with my jQuery
Hallo Guys I am new here and hope to get some help :) I am using jQuery to validate a form, where the name/phone/location and email is required! Now, one of the criteria is : - the name must contain a space " " and a hyphen - - the space " " and hyphen - cannot be at the beginning of the name or a the end of the name The code works but with small issues: * it validates if the name begins with the hyphen but does not quite validate if it is ended with the hyphen or space Example: it works if u type
SCROLLING TRANSACTIONS WHILE EMAILING FROM A DATABASE
I wish to put an email module in my PHP/ASP Web Program to Email Account Statements to Royalty Account Holders ( Distributor, Producer, Writer, Artist, Musician ) at a Music Ecommerce Website directly from a Database (MYSQL, Access , SQL Server ) . I However want Account Transactions to be Scrolling vertically Through use of JQuery AJAX API while Email is taking place. The problem that I see is that the Scrolling is Transaction By Transaction while the email is sending all the transactions
kindly help... ui tabs working weired in ie7 / 8
Hi... I have this site samdhi.com.... my developer left my work in middle for some bigger assignment. My site is not opening properly in IE7 / IE8....It sworking fine in IE 9 and Chrome. I have come to know that he was using tabs ... borrowed from your site. Can any one pl help me fix this problem
how to read returned data format
Like on the following code: $('#<%= txtSearch.ClientID %>').autocomplete({ source: function (request, response) { $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "WebService.asmx/GetAutoCompleteData", data: "{'kwrds':'" + $("#txtSearch").val() + "'}", dataType: "json", success: function (data) {
Updating content in two divs at the same time with pagination.
Hello everyone. I am new to the forum. I have read a few books on javascript and jQuery but sadly, putting into practice what I have read is a lot harder than I thought :( I am familiar with most of the terms and concepts so if you could guide me in the right direction, I would appreciate it. Here's what I am looking to accomplish: I have a music page. On that page I have two divs next to each other. The div on the left (Div1) is where a song title with a Soundcloud widget/embed code goes/displays.
Jquery how to use ajax?
Hi, I am using ajax via jquery. I have a huge problem. I need to send some text to my php file. My php file will return a response in json. I have set datatype to be json. However, my text doesn't get to my php file. It will only send my text data to the php file only if I don't include the datatype of json. The problem is that I need to send text data to my php file but receive json data. Since I will receive arrays. How can I do this? can is there a return datatype option? So I can only
Do you guys know why?
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title></title> <link rel="stylesheet" type="text/css" href="" media="" /> </head> <body> <script> var suit = ["Diamonds", "Clubs", "Hearts", "Spades"]; var name = ["Diamonds", "Clubs", "Hearts", "Spades"]; document.write("Length of suit: " + suit.length + "<br />"); document.write("Length of name: " + name.length + "<br />"); </script> </body> </html> The output in the
Problem getting jQuery to work
Hey guys I tried searching for this but to no avail. I have been learning jQuery on lynda and codecademy for a few weeks now and I wanted to start messing around with the code to see what I've learned. Here is the problem, I try and create a simple box with HTML/CSS but when I add in jQuery code, the page doesn't register any of it. Here is what I'm working with. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Untitled</title> <style type="text/css"> div { height:40px;
how can i fix it, Simple JavaScript Inheritance problem
see this first plz: http://ejohn.org/blog/simple-javascript-inheritance/ I am studying the "Simple JavaScript Inheritance" : look this sample below: var Person = Class.extend({ name:['a','b','c'] }); var Ninja = Person.extend({ dance: function(){ return this.name; } }); var c = new Ninja(); var d = new Ninja(); d.name[0]="z"; //result document.write(c.dance());// z,b,c document.write(d.dance());// z,b,c //what i want document.write(c.dance());// a,b,c document.write(d.dance());// z,b,c
Next Page