15,121 Topics

Member Avatar for
Member Avatar for tanmay.majumdar2

Hey, fellas. I have just started LEARNING AJAX. I am having prblems in the first website only. So this website is like a restaurant menu, which tells you the avaible food. With respect to the user's query. But its not displaying the end result. As i think, it is not …

Member Avatar for tanmay.majumdar2
0
206
Member Avatar for azegurb

Hi all, I have taken from net drop down menu script my web page is medistyle.az. It works perfectly but when i look up code i cannot understand one thing there below is code (js. file) var menu=function(){ var t=15,z=50,s=6,a; function dd(n){this.n=n; this.h=[]; this.c=[]} dd.prototype.init=function(p,c){ a=c; var w=document.getElementById(p), s=w.getElementsByTagName('ul'), l=s.length, …

Member Avatar for azegurb
0
162
Member Avatar for spyece

Hello, I want to click the skip ad buttom when the buttom appears, can someone please explain me how this can be done using jquery? Here is the Code <!DOCTYPE html> <html> <body style="margin:0px;padding:0px;"> <iframe src="http://bc.vc/7VsNj6" style="width:100%; height:100%; border:none;" id="frame"> <p>Your browser does not support iframes.</p> </iframe> </body> </html> Thanks …

Member Avatar for minitauros
-1
320
Member Avatar for Techie08

I'm trying to build a [quiz](http://www.fedtech.com/Cutting-Quiz) that takes the answers given and when you hit submit, it totals the number of items in each category and sends you to a specified page... It's basically perfect except one thing... it doesnt take you to a page when the totals are added …

Member Avatar for hdas2012
0
334
Member Avatar for turpentyne

For the sake of learning, I'm just curious how I can simplify these functions? Open to any suggestions... Please forgive all the over-commenting. $(document).ready(function() { // code for random backgorund image on page load $("#full-size-background").css("background-image", "url(images/backgrounds/" + Math.floor(Math.random()*3) + ".jpg)"); // starting point fade when "menu" clicked $("#starting_point_link").on("click", function(){ $('#starting_point, …

Member Avatar for Troy III
0
238
Member Avatar for vijayram

How to change the following code for javascript to php code plz help me. <form> <select onChange="updatecalendar(this.options)"> <script type="text/javascript"> var themonths=['January','February','March','April','May','June', 'July','August','September','October','November','December'] var todaydate=new Date() var curmonth=todaydate.getMonth()+1 //get current month (1-12) var curyear=todaydate.getFullYear() //get current year function updatecalendar(theselection){ var themonth=parseInt(theselection[theselection.selectedIndex].value)+1 var calendarstr=buildCal(themonth, curyear, "main", "month", "daysofweek", "days", 0) if (document.getElementById) …

Member Avatar for diafol
0
3K
Member Avatar for rouse

I am having problems accessing what for me is a complex JSON object. I successfully interrogated the Open Weather API and received a good response. What I am not accessing, and don’t know how to, is the individual items of the weather portion of the list group while in a …

Member Avatar for rouse
0
252
Member Avatar for andi.andiiimintoyouu

html <div class="example2"> <p>This is some text This is some textThis is some textThis is some textThis is some text This is some textThis is some textThis is some textThis is some textThis is some text</p> </div> Css .button{ -moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px; -moz-box-shadow:0 1px 1px rgba(0, 0, 0, 0.2);-webkit-box-shadow:0 1px 1px rgba(0, …

Member Avatar for code_rum
0
259
Member Avatar for McLaren

Hello, there is a function which saves and sends post request: save_car: function(e) { if (e.keyCode != 13) return; if (!this.brand.val()) return; Cars.create({brand: this.brand.val(), color: this.color.val(), max_speed: this.max_speed.val() }); this.brand.val(''); this.color.val(''); this.max_speed.val(''); }, Request URL:http://localhost/backbone/car_list/backend/index.php/welcome/index Request Method:POST Status Code:200 OK Request Headersview source Accept:application/json, text/javascript, */*; q=0.01 Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3 Accept-Encoding:gzip,deflate,sdch Accept-Language:en,lt;q=0.8,en-US;q=0.6,ru;q=0.4,pl;q=0.2 …

Member Avatar for McLaren
0
254
Member Avatar for turpentyne

I've gotten this far on setting up popstate() - a totally new thing for me. I have loaded content for each click of the navigation, and pushstate() changes the url. But it doesn't load anything when the back button is pressed. Only when I've pressed the back button enough, that …

Member Avatar for LastMitch
1
2K
Member Avatar for leo88

I am currently stuck with problem of set the dll file location path in my javascript object, in the classid i currently do this: "classid="http:RFID_AUCMS.dll#RFID_AUCMS.Main" This work fine if i put the dll file in same folder with the project module file( aspx). However I actually needs to put the …

Member Avatar for Troy III
0
174
Member Avatar for mith_cool

Hi, I have a scenario where in I had to sort an array, find duplicates and increment one or the other by 1. So, Eg: An array has 22, 23, 21, 21, 24 within it then, an array should be able to find 21 and increment it by 1 i.e. …

Member Avatar for Troy III
0
949
Member Avatar for turpentyne

Hi... I have a simple function for loading php pages into the index.php file. I'm wanting to incorporate pushstate() so I can start making the page crawlable. But not sure how. Here's my starting point (which just gives me "http://www.site.com/undefined" // function for navigation clicks $("#top_nav li a, #footer_info").on("click", function(e){ …

Member Avatar for turpentyne
0
91
Member Avatar for riahc3

Hello I have this similar code: var SomeVar = Class.create({ one: null, two: null, three: null, initialize: function(one, two) { this.one = one; this.two = two; }, startListeners: function() { $j('#somediv1').mousedown(function(e) { this.three=3; three="hi" }.bind(this)); $j('#somediv2').mousedown(function(e) { console.log(this.three); console.log(three); }.bind(this)); }, }); As you see there are more can one …

Member Avatar for riahc3
0
280
Member Avatar for BenWard

Hello, Whilst writing this I actually fixed the issue but I thought I'd post anyway as this technique might be useful to others... I have a javascript class I wrote (alas I can't post the whole code as the IP technically belongs to the company I work for) which presents …

Member Avatar for BenWard
0
396
Member Avatar for amkaos

Hi: i have contact form that i thought the validation (.js + php) worked fine because i received emails that were only submitted w/ all fields correctly filled in. i added submission to mysql database, then found out that empty fields were being submitted to database -- but not email.. …

Member Avatar for minitauros
0
560
Member Avatar for Bibek_NS

Can anyone pls help me with how to create a Progress Bar by using JavaScript methods like setInterval() ?

Member Avatar for radhakrishna.p
0
368
Member Avatar for BenWard

Hello you wonderful people you. I am getting most upset with a pathetically unimportant bit of code. I have an iFrame. This iFrame loads a php script, the php script is not however html, it is a pdf document generated on the fly with FPDF. I have a second iFrame, …

Member Avatar for LastMitch
0
204
Member Avatar for techyworld

Hi anyone can help, am having this error on line 10: uncaught TypeError: Cannot read property '0' of null. I have use the same code other places, same array but never got this error. I dont know why am having this error here. this.addEventListener("message",function(e){ importScripts('test.js'); var object=e.data; object=JSON.parse(object); mArray=object.array; var …

Member Avatar for techyworld
0
162
Member Avatar for amkaos

Hi: i have site contact form that validates required fields w/ .js And php. if browser has javascript turned on, the req'd info error message will show next to the field boxes .. if javascript is turned off, then user will see the same thing but coming from php instead... …

Member Avatar for paulkd
0
245
Member Avatar for turpentyne

I have a carousel that works fine on it's own, but something's killing it when I load its page into my main page. Not sure what would cause it? i'm using "Caroufredsel". Here's the main page, with script to load page based on which navigation selected. If the user selects …

Member Avatar for turpentyne
0
215
Member Avatar for asif49

For a script that needs to be run on multiple pages with different coding etiquettes, I need to be able to figure out when there is some dynamic change occuring in the DOM. MutationObservers cater for Chrome and Firefox but I'm having problems with IE so onpropertychange event is something …

Member Avatar for LastMitch
0
571
Member Avatar for riahc3

Hello This is one of those stupid questions but you gotta ask to be sure What is var h=0; h += 5; var l=0; l -= 5; Is it the same as: var h=0; h = h+ 5; var l=0; l = l- 5; Thanks and sorry for the stupidity

Member Avatar for deceptikon
0
234
Member Avatar for shilu2

I want to show popup on item selected in dropdown control. I tried popup script on this but doesn't works. my code is as below <select> <option value="1990">1990</option> <option value="1991">1991</option> <option value="1992">1992</option> <option value="1993">1993</option> <option value="1994">1994</option> </select> now if I have select option i.e 1992 popup window should display the …

Member Avatar for shilu2
0
164
Member Avatar for Djmann1013

I am having trouble animating a div on the same page as the div that is not animating. Here is my code: Page 2 <?php mysql_connect('127.0.0.1', 'root', ''); mysql_select_db('table'); $query = mysql_query("SELECT * FROM `blog`"); ?> <script> $('.post').click(function() { var value = $(this).attr('rel'); $('.load_post').html('Loading...').load('load_post.php?value='+value); $('.load_post').animate({"left": "-=1500px"}, "slow"); $(".posts").animate({"left": "-=1500px"}, "slow"); …

Member Avatar for LastMitch
0
95
Member Avatar for FutureWebDev

Not sure if I can do this but I'm reading through JavaScript: The Definitive Guide, and I'm going to be posting practice scripts that work. They may not make sense, but they work. I'd also like responses on how these simple snippets could be used and how they can be …

Member Avatar for LastMitch
0
230
Member Avatar for MargateSteve

We recently had our account suspended (without warning - thanks 1&1) due to exceeding server load. The reason this happened was there were quite a few divs that were refreshing (via Ajax) every 9 seconds to give a 'live update' on the site (it is a sports site so this …

Member Avatar for minitauros
0
182
Member Avatar for pavankumarr

<head runat="server"> <title>Untitled Page</title> <script type="text/javascipt"> function startDownload() { var url='E:files\\sample.pdf'; window.open(url,'Download'); } </script> </head> <body> <form id="form1" runat="server"> <script type="text/javascript"> function openPopup() { popupwindow=window.open("Form.aspx",'WinName','width=900,height=500,left=200,top=200'); } s=alert("show"); s1=setTimeout("startDownload()",10000); </script> <div> <a href="" onclick="openPopup();return false" target="_blank">Click here to view Brochure</a> </div> </form> </body>

Member Avatar for LastMitch
1
5K
Member Avatar for lttleastig

I am making a google chrome extension which pops out a div when you click on the comment box on a post in facebook and everything seems to be working perfectly. Except it only works for the posts that are first loaded with the site and not the ones which …

Member Avatar for LastMitch
0
226
Member Avatar for asif49

Hi I have an event listener attached to something which will fire a lot based on some user action that has occured on the page or some javscript change. Unfortunately it will be something like 5 or 6 fires in the space of 250ms and I am only interested in …

Member Avatar for paulkd
0
234

The End.