14,054 Topics

Member Avatar for
Member Avatar for adishardis

I need to create an dynamic array which will be sent via `$("#ratings").load("ratingscalculator.php?Myarray="+myarray)` and then used in a select query $result = $database->connection->prepare("SELECT *, (SELECT COUNT(*)+1 FROM TABLE WHERE kampanj > t.kampanj and (kampanjnamn = 'Kampanjnamn_1' or kampanjnamn = 'Kampanjnamn_7' or kampanjnamn = 'Kampanjnamn_3' or kampanjnamn = 'Kampanjnamn_4' )) as …

Member Avatar for adishardis
0
160
Member Avatar for llgms

Hi guys I am trying to buld an rss reader for random rss feeds in javascript. I need to catch the data in an event as I am going to pass around that event. I tried realtime.co or firebase and feedthefire but, there is no result so far. If someone …

Member Avatar for llgms
0
352
Member Avatar for Indians

![d7f49899d09d4dd84f5105080c780de5](/attachments/small/4/d7f49899d09d4dd84f5105080c780de5.PNG "align-left") here i attached one image. look at this.if i selected the Guest Currency then automatically Guest Currency Value should shown in the next text box. how to do that? is there any javascript, jquery plugin? Guest Currency : <select name="gcurrency" tabindex="21"> <option value=""></option> <option> INR India Rupees </option> …

Member Avatar for diafol
0
3K
Member Avatar for Amoryethel

I'm trying to put together a webpage that will leave a dropdown menu (near merch1) disabled until the checkbox is selected, but the dropdown menu insists on staying disabled. I don't know if it has to do with my checkBox function, or if that's even a necessity. Here is a …

Member Avatar for Amoryethel
0
123
Member Avatar for mukulnimker7751

Hi All, M trying to design a web portal which shows all my trackers and allows me to open it . the trackers are in ms Excel format. Please suggest me d best possible way to achieve the goal. Thanks Mukul

Member Avatar for JorgeM
0
141
Member Avatar for simplypixie

I am using tinymce on a cms and I want to be able to have a dropdown menu of all pages on the site (stored in a db) to choose from when adding a link but all I am getting is an emtpy set of values. I am using the …

Member Avatar for simplypixie
0
891
Member Avatar for klemme

Hi all, I have a problem with my code below. It works in chrome, but acts different in IE, and sometimes FF. Im aiming to load in divs whenever the user scrolls to 220px from the bottom. Basically, I tjeck to see if the distance from the bottom < specified …

0
96
Member Avatar for mbarandao

Hello: I need some assistance with a jquery/javascript code. I have a form with chain-linked list box of product, and prices. Each product is inside a <tr> which are added as needed. So there can be many items added to the form. The total of the items cost (qty*cost) from …

Member Avatar for mbarandao
0
748
Member Avatar for jonsan32

I'm trying to combine the functionality of the 3 codes below to produce a delayed redirect to a random URL while displaying a bar filling up by %. Each one works great, but I need all 3. Any help would be greatly appreciated. Thanks! **The first redirects after a delay** …

Member Avatar for happygeek
0
2K
Member Avatar for amrita111

I am calling an mvc controller method vaia ajax call..When i put debugger on then that controller method is called sucessfully otherwise my ajax call is failing. What to do?

Member Avatar for LastMitch
0
96
Member Avatar for jonsan32

What would I need to add to the code below to have the random redirect timeout for 5 seconds before triggering? <script type="text/javascript"> (function(n){ var pages = ['http://www.thestormybrain.com/2013/11/malcolm-gladwell-choice-happiness-and.html', 'http://www.thestormybrain.com/2013/11/steve-jobs-how-to-live-before-you-die.html', 'http://www.thestormybrain.com/2013/11/david-blaine-how-i-held-my-breath-for.html']; n = n < 3? 0 : n < 8? 1 : 2; window.location.replace(pages[n]); })(Math.floor(Math.random() * 10)); </script> I know …

Member Avatar for jonsan32
-1
544
Member Avatar for nyuszi

hi i get an error while i trying to do a plumber game here is the javascript code: error message: Uncaught TypeError: Cannot call method 'getAttribute' of undefined (line 34) the problem: function check () { kepek = document.getElementsByTagName("img"); cellak = document.getElementsByTagName("td"); db = 0; for (i=1; i<cellak.length; i++) { …

Member Avatar for ryantroop
0
1K
Member Avatar for furlanut

When the page opens all 12 popupDiv (large) images are centered in a stack. Why ? Having closed them all, the page then behaves the way I want i.e. onclick the popupDiv appears and one can go to the next or preceding large image. Can someone explain what is making …

Member Avatar for LastMitch
0
125
Member Avatar for NewHeart42108

I have a javascript function that works fine when it is included in a <script></script> statement in the header of my php file, but when I move it to a separate .js file, it throws two errors. The function is function calculate() { var i var optCount = <?php echo …

Member Avatar for pritaeas
0
247
Member Avatar for accra

i have this ajax script <script type="text/javascript"> var url = "GetAutoData.php?svreg="; // The server-side script function handleHttpResponse() { if (http.readyState == 4) { if(http.status==200) { var results=http.responseText; document.getElementById('divAutoInfo').innerHTML = results; } } } function requestAutoInfo() { var svreg = document.getElementById("getautomobile").value; http.open("GET", url + escape(svreg), true); http.onreadystatechange = handleHttpResponse; http.send(null); } …

Member Avatar for gabrielcastillo
0
223
Member Avatar for kanoy83

hi guys, i just want to create a javascript confirm script if the file will overwrite the current file with the same filename or with a file already existing. if yes: ask to overwrite if no: back to edit file page function overwrite() { var r=confirm("The same file name existing. …

Member Avatar for kanoy83
0
2K
Member Avatar for Aleshanee

I try to create with jquery a simple hover-sliding. [Here is my example](http://jsfiddle.net/Aleshanee/BgdMY/12/embedded/result/) My first problem ist the mouseenter is, when a users the duck and while the duck slides up the user is going to mouseenter the cow, the sliding want to show both slides and do ugly stuff …

Member Avatar for LastMitch
0
177
Member Avatar for furlanut

I think this is a javascript query rather than css. The script opens and resizes images centering div on the screen. I have inserted function opendiv(id) so that one can go forward and back through the images on the webpage. This part works except that the images no longer center …

Member Avatar for LastMitch
0
137
Member Avatar for rhodoscoder

var 1 = document.getElementById("1").click(); var 2 = document.getElementById("2").click(); var 3 = document.getElementById("3").click(); if(1){ userChoice =="1"; }else if (2){ userChoice == "2"; }else if (3){ userChoice == "3"; } I'm working on code that gets user choice when the user clicks on a div.I'm attempting to 'get' the element and assign …

Member Avatar for JorgeM
0
101
Member Avatar for mattster

Hi again, We all know jQuery can really spice up a website, so what would plugins could I try to make my pages even more exiting? (ie. typeahead.js) Thanks!

Member Avatar for rhodoscoder
0
117
Member Avatar for arctushar

Hello everyone I have a web form. This form has 5 fields. I want that if someone fill up the form and submit, this form data will be save to a form. Also want this after submitting this form it will do some php process. How can I do that …

Member Avatar for LastMitch
0
78
Member Avatar for WoW Me Web Girl

here are the questions i was asked.. Please help Im a little confussed. 6.Describe (3-4 sentences) what this statement does: ("this is foo bar".match(/o/g)||[]).length 7.Write a JavaScript function that takes in a DOM element and returns a count of the number of <a> tags contained within that element (first level …

Member Avatar for WoW Me Web Girl
0
170
Member Avatar for Master Mascus

I need jquery code for DOB range validation(age should be at least 15) using the .validate() jquery function. I am not able to create the function in the rule, help anyone ?

Member Avatar for stbuchok
0
184
Member Avatar for Indians

this is my html and javascript coding. how to do contenteditable div onkeyup calculation. i tried it but i doesn't work... <td><div class="inputclass" id="quantity1" contenteditable> </div></td> <td><div class="inputclass" id="unitprice1" onkeyup="maths();" contenteditable> </div></td> <td><div class="inputclass" id="total1" contenteditable> </div></td> function maths() { var qt = document.getElementById("quantity1").value; var up = document.getElementById("unitprice1").value; qtup = …

Member Avatar for minitauros
0
1K
Member Avatar for f.atencia

I'm having trouble with the following code in IE 11 (Windows 8.1) var oAddressEditorController = angular.element(oModal[0]).controller(); // Initialise the controller with the passed options oAddressEditorController.init(poParams); // Show the address editor modal oModal.modal('show'); Error says 'Unable to get property 'init' of undefined or null reference. Works fine in other browsers and …

Member Avatar for f.atencia
0
134
Member Avatar for f.atencia

Can anyone explain why the following angular.js code gives me an error in Internet Explorer 11 (Windows 8.1): 'Object doesn't support property or method 'hasOwnProperty'' if (key != 'prototype' && key != 'length' && key != 'name' && obj.hasOwnProperty(key)) { iterator.call(context, obj[key], key); } The code belongs inside the forEach …

Member Avatar for f.atencia
0
153
Member Avatar for tqmd1

Sir, I have following codes <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="language" content="english"> <meta http-equiv="Content-Style-Type" content="text/css"> <title>Numeric Textbox</title> <style type="text/css"> body { margin-top:220px; } #bc { background-color:#FFE4B5; } #ft { font-family: "verdana"; font-size:14; font-weight: bolder; color: green; } .bt { width:100px; …

Member Avatar for JorgeM
0
215
Member Avatar for tqmd1

Dear Sir, I have following codes <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <title>Numeric Textbox</title> <SCRIPT LANGUAGE="JAVASCRIPT"> //------------------------------------------------------------------ function isNumberKey(evt) { var charCode = (evt.which) ? evt.which : event.keyCode if (charCode > 31 && (charCode < 48 || charCode > 57 || charCode == 110)) { alert("Enter …

Member Avatar for JorgeM
0
397
Member Avatar for jonsan32

My button uses the following. It produces a random post within my blog whenever a user clicks it. <div id="myLuckyPost" class="random button"></div><script type="text/javascript"> function showLucky(root){ var feed = root.feed; var entries = feed.entry || []; var entry = feed.entry[0]; for (var j = 0; j < entry.link.length; ++j){if (entry.link[j].rel == …

Member Avatar for jonsan32
0
6K
Member Avatar for Indians

This is my php & html code for show numbers in words. this works correctly `<input type="text" value="<?php include("number_words.php"); echo convert_number_to_words(123); ?>" size="70" readonly="readonly" />` this is my final total amount html code `<input type="text" name="totalamount" id="totalamount" size="8" readonly="readonly" />`. here i am doing convert numbers into words. but i …

Member Avatar for broj1
0
510

The End.