15,116 Topics

Member Avatar for
Member Avatar for techyworld

Hi how can i randomnize the index of this array? var arr = new Array("0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20"); i want to return the index of the array randomnly. Any help?

Member Avatar for techyworld
0
162
Member Avatar for cgull

Hello, I have downloaded the plugin maskedinput from: [Click Here](https://github.com/digitalBush/jquery.maskedinput) Trying to use it on a site I am developing with codeigniter and foundation framework, the index.html file that comes with it works well on my site, I get this error: TypeError: $(...).mask is not a function The jquery files …

Member Avatar for cgull
0
861
Member Avatar for techyworld

Hi i create a table and fill it randomnly with operand and operators. Now i want to retrieve every 3 element in each row. For example, have a look at the image i have uploaded, I want to retrieve : + 4 + 4 + 10 + 10 + 10 …

Member Avatar for gon1387
0
155
Member Avatar for techyworld

I want to retrieve every 3 elements in rows and push it in another array. for Ex:retrieve array index [0,1,2] [1,2,3] [2,3,4] [5,6,7] [8,9,10] it goes on like this for all rows. Can someone help? function drawTable() { var div_id = document.getElementById('div1'); var tbl = document.createElement("table"); tbl.setAttribute("id","table_id") ; tbl.setAttribute("border","1") ; …

Member Avatar for gon1387
0
145
Member Avatar for titosd

Hello, I"m try to add hidden input by ajax, and i succeed but not 100% I want to add the inputs when a user select a value from select. but the selects not constant, maybe in the page one select or two or three. it's related to another thing. I …

Member Avatar for LastMitch
0
95
Member Avatar for riahc3

Im trying to set a session variable using AJAX but it doesnt seem to work: This is my PHTML page: <?php session_start(); ?> //SOME CODE <script type="text/javascript"> $j(document).ready(function() { var variablecalle=$j("#listadetiendas").val(); var data = 'calle='+variablecalle; $j.ajax({ url: '../../updatesession.php', type: 'POST', data: data }) }); Then this is my "updatesession.php" page: …

Member Avatar for riahc3
0
12K
Member Avatar for tomparker

Hey everyone! I'm looking forward to being a part of the community. I'll answer questions when I can, and I'll be posting questions for you 'gurus' out there that can shed some light on problems that I encounter. Recently I've been getting more into responsive design on the WordPress platform. …

Member Avatar for tomparker
0
313
Member Avatar for brenton_77

I can't seem to get the jquery ui autocomplete to allow spaces as it ends the query. I need to be able to type a users first and lastname name and have the results returned, however on pressing space between the first and last name the query ends. I've tried …

Member Avatar for stbuchok
0
142
Member Avatar for techyworld

Hi can someone help? I'm creating a 2 dimensional Array with a table but its not displaying anything. why this? var totalRows = new Array(10); function drawTable() { var div1 = document.getElementById('div1'); var tbl = document.createElement("table"); // creating rows for (var i = 0; i < totalRows.length; i++) { var …

Member Avatar for techyworld
0
457
Member Avatar for Julia25

I found a script but i cant make it to work to detect ie 9. need some assistance! http://www.devslide.com/labs/browser-detection

Member Avatar for Julia25
0
203
Member Avatar for soapyillusion

Hi all, Im trying to get some data from an Ajax callback and use it in another function (from a php file). I was just wondering if there was a way to pass data returned from the callback to another function. I could just do the function at success but, …

Member Avatar for soapyillusion
0
128
Member Avatar for techyworld

hi how can i implement a timer (minute-second-millisecond) using simple javascript? It will increment when click on a button.

Member Avatar for techyworld
0
106
Member Avatar for GraficRegret

is it posible to pass information held inside a MySQL database into a javascript array using PHP code? something like: $sql = mysql_query("SELECT * FROM uploads WHERE ref_id = '$refID'"); //javascript below var array = new Array() while(<?php echo $row = mysql_fetch_array($sql)?>) { array.push(<?php echo $row['name']; ?>) } or am …

Member Avatar for diafol
0
312
Member Avatar for GlenRogers

Hi. I have a php file with image links(mysql data) in one div, when a link is clicked the product_id is sent to another php file that builds the html to display all images(in another mysql table) with that product_id in another div. Someone else helped me out withsome ajax …

Member Avatar for soapyillusion
0
155
Member Avatar for biswa2ray

I want to add and delete 3nos of text field and label in a row dynamically using Add and delete button in javascript. Is any one help me in this regard...

Member Avatar for gon1387
0
342
Member Avatar for GraficRegret

is there any way to pass a variable from php into a variable in javascript? or do I need to revert to AJAX to get this done?

Member Avatar for diafol
0
3K
Member Avatar for jtok

Sorry for everything being marked as code. It wouldn't let me post it unless I did (and, yes, I did try using the Inline Code option as you can see by the single quotes around much of what is written here). I have a page with an updatepanel that contains …

Member Avatar for jtok
0
800
Member Avatar for techyworld

Hello people, I need an idea with u. I need to draw a grid 10 by 10 and then randomnly fill it with numbers, operators + - and =. then user will need to swap number or operator or equal sign to make matches like this 2+3 = 5. It …

Member Avatar for Taywin
0
143
Member Avatar for tsp003

Hi Guys, I've been searching the internet over this one for days now and am even more confused, so I hope you can point me in the right direction. I am basically trying to create a 3 tier cascading dropdown based on country/city/states. I'm using the following code to create …

Member Avatar for tsp003
0
228
Member Avatar for Farhad.idrees

HI i have many forms in my application.. when some one see any form so i want to show form as "Only readable form" means i want to use disable form.. when someone click edit button so my form should enable for editing.. how to do it? can anyone help …

Member Avatar for code739
0
143
Member Avatar for arcana55

Hi! I have the following table: <table> <tr> <th>Cost</th> <th>Quantity</th> <th>Sum</th> </tr> <tr class="txtMult"> <td class="val1">1</td> <td><input class="val2" type="text" name="txt/>"</td> <td><span class="sum">0</span> </tr> <tr class="txtMult"> <td class="val1">2</td> <td><input class="val2" type="text" name="txt/>"</td> <td><span class="sum">0</span> </tr> </table> What i want to do is to multiple row by row cells: val1*val2. I found …

Member Avatar for Bachu
0
196
Member Avatar for amrita111

I have created two folders with name 1)JSP containing jsp file(for login) 2)JS containing javascript file(for login validation) I have linked javascript file with jsp file int he following way. <script type="text/javascript" src="../JS/loginValidate.js"> How can I access parameters of login page(jsp file in JSP folder) in javascript file?

Member Avatar for code739
0
103
Member Avatar for GraficRegret

here is the slideshow styles, <style> body {font-family:Arial, Helvetica, sans-serif; font-size:12px;} .fadein { position:relative; height:361px; width:640px; margin:0 auto; background: #000; padding: 0px; } .fadein img { position:absolute; left:0px; top:0px; } </style> here is the javascript <script type="text/javascript"> $(function(){ $('.fadein img:gt(0)').hide(); setInterval(function(){$('.fadein :first-child').fadeOut().next('img').fadeIn().end().appendTo('.fadein');}, 5000); }); </script> and here are the phps …

0
83
Member Avatar for Farhad.idrees

HI Guys... I have jquery list menu box of sliding.. i want o use scroll bar..i have imported requrired files but when i import jqxpanel file so nothing show.. when i block jqxpanel file so lisemenubox shows but without scrollbar..i have also enable true scroll bar but its not showing.. …

Member Avatar for Farhad.idrees
0
233
Member Avatar for mrhankey

hi, i have been struggling to find a good autocomplete script with mysql backend. i now have an easy to use one and all is working, however in my page after the search has been typed and user selected instead of the users name appearing in the search box i …

Member Avatar for mrhankey
0
129
Member Avatar for brianbabu

Hi, can someone explain me the entire working of jquery.filedrop.js? I have used the filedrop for a project but i am interested in knowing it fully in detail so that i could improve its functionality and modify the code according the reqiurements i get from my client. Thanks.

Member Avatar for Taywin
0
169
Member Avatar for darren.ang.5264

hi, i am a newbie to ajax. i have created 2 html file in the following :- <<< a.html >>> <!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=big5" /> <title>Admin Page</title> <script> function loadURL(cDiv, cURL, cGetPost, cParam) { var xmlhttp; if (window.XMLHttpRequest) {// …

Member Avatar for Taywin
0
162
Member Avatar for garyjohnson

I have javascript code with displays the placeholder attributes on browsers which dont support HTML5, I am testing the code in IE. It works on every field which is type text. But when its type"password" it displays the placeholder as a password and not text. I need to it show …

Member Avatar for LastMitch
0
876
Member Avatar for Farhad.idrees

here is one form element. <input value="-7" class="validate[required,custom[integer],min[5]] text-input" type="text" name="min" id="min" /> here is one more problem.. i wanto use my javascript varible value in above class "validate[required,custom[integer],min[5]]" here like use dynamic number where 5 is using how to do it? Regards..

Member Avatar for Taywin
0
177
Member Avatar for Farhad.idrees

HI i have to compare three values but its not working.. alert box is not showing if i m putting less or greater values...i m calling this function on blur... function validate(value) { var minimum = document.getElementById('min').innerText; var maximum = document.getElementById('max').innerText; // alert(value); if( value < mimimum ) { alert('Value …

Member Avatar for AleMonteiro
0
119

The End.