15,120 Topics

Member Avatar for
Member Avatar for fabzster

Hi I pull data from a MYSQL database to populate a Drop down <td class="<?php print $Bank_ca_error;?>">Bank Name</td> <td> <select name="Bank" id="Bank" tabindex=24 style="color: <?php print $TextColour;?>"/> <option><?php print $_SESSION['Bank_ca'] ;?></option> <?php //Get Data to populate drop down $BankQuery = "SELECT BankName FROM tblbank ORDER BY BankName"; $BankResult = mysql_query …

0
76
Member Avatar for sara5454

this is my code (html) i dont know how can i open the page in div , i try with iframe but is failed :/ plz help me! <html> <head> <title>Template</title> <script type="text/javascript" src="script.js"></script> <link rel="stylesheet" href="style.css" type="text/css" media="screen" /> </head> <body> <div class="PageBackgroundGradient"></div> <div class="Main"> <div class="Sheet"> <div class="Sheet-tl"></div> …

Member Avatar for almostbob
0
383
Member Avatar for mbarandao

I have a form with a select box which is dynamically populated from db. Based on the selection, additional data populates other linked boxes (an input and a textarea). The general idea: the list box has a list of products; once a product is selected, three other input boxes are …

Member Avatar for mbarandao
0
79
Member Avatar for evalina1987g

Hello everybody, am a bit new here. My first question is, if I am on the right place here? I feel like been in the wrong place. Am looking for some forum where I can ask or finde about "General questions" I have about AJAX sometimes. Am not sure, if …

Member Avatar for code739
0
90
Member Avatar for VenusCrystal

Hi, I have to add css attribute at runtime using jquery.. For example i have the following code: <table width='100%' cellpadding='0' cellspacing='0' > <tr> <td valign='top' width='70%'><span class='header-text'> </span> </td> </tr> </table> I need to add css style to the table. I can access span element of td within table. …

Member Avatar for VenusCrystal
0
171
Member Avatar for danisaurus

hi everybody i need for mi [hobbie web app](http://www.buscocolegio.com) a transference between a java array and a javascript array. this is what i have tried to accomplish but it doesnt seem to work well: <script type="text/javascript"> var arrayJS=new array(); <% String[] javaArray=(String[])request.getAttribute("names");%> arrayJS=<%=javaArray%>; for(var i=0;i<arrayJS.length;i++) //data processing any help would …

Member Avatar for stbuchok
0
68
Member Avatar for riahc3

Hey I tried to access a cookie that has a [object HTMLImageElement] but I found out that cookies have a limit on size so Im trying to do this with pure Javascript I can store the value of what I want in a hidden div and now I want to …

Member Avatar for riahc3
0
168
Member Avatar for ruchi18

Hi $(window).load(function(){ var p = 0; function moveit(target,shift) { p += 0.01; var r = 135; var xcenter = 700; var ycenter = 350; var newLeft = Math.floor(xcenter + (r * Math.sin(p + (shift || 0)))); var newTop = Math.floor(ycenter + (r * Math.cos(p + (shift || 0)))); target.animate({ top: …

0
58
Member Avatar for fantasma

Greetings! I'm at the moment stuck with something that would be very trivial, but, since I'm not that versed in jQuery and Zepto I can't figure out a way to solve it. I need to animate a slider With jQuery everything works fine $('.slider').animate({ left: '-=1024px' },500); } But with …

0
57
Member Avatar for diafol

Hi all, been using Chrome's Inspect Element to debug some js and I came across 2 anomalies: Directly below the html tag: <object type="{0C55C096-0F1D-4F28-AAA2-85EF591126E7}" cotype="cs" id="cosymantecbfw" style="width: 0px; height: 0px; display: block;"></object> Then in the head area: <script type="text/javascript" id="WCIDWAXScript" defer="defer">function WCIDCollect() { var VIS_SIG_TEXT = "T"; var VIS_SIG_IMAGE = …

Member Avatar for diafol
0
331
Member Avatar for Vijaysurya

Hi ,anybody plz help me. i created own musttry button(same as like button).what is the problem. this javascript function does not working. planbook is class name. function musttry_add(planbook_id) { $.ajax({ url: $('planbook').val(), type: 'POST', data: { personalId:personalId, planbookId:planbookId }, success: function(data, textStatus, jqXHR){ musttry_get(planbook_id); } }); } function musttry_get(planbook_id) { …

Member Avatar for fobos
0
213
Member Avatar for frostymoon37

# How do i do a previous and next buttons with ajax and get different results on same page? # Im fairly new to coding so i need some help. im trying to build a web site for geology ( rocks, etc). My concept is this. How do i use …

0
153
Member Avatar for Thevenin

Hi all, I really need some help. I am trying to make a website with horizontal scroll (working!), then I am using a jQuery Slideshow (called Camera), and I combined this with the horizontal scrolling website(working!). When I select the page I want from the menu, the website scrolls to …

0
114
Member Avatar for bilal_fazlani

I using listview on an asp.net form.. It has item template and edit template... I want to add ajax slider in both the templates.. I just used on script manager as suggested my many people,, but for reason i can only see one single slider in the top row.. and …

Member Avatar for bilal_fazlani
0
329
Member Avatar for FireSBurnsmuP

Alright, I just started trying to do some CSS (I know, I have too much time on my hands) in order to make my own theme for firefox, so it matches my windows theme a little better. However, I really don't know what CSS is, what the general syntax is, …

Member Avatar for alikhanbaba
0
121
Member Avatar for benqus

I want to write a new version of [my jQuery extension](http://benilicous.blogspot.com/2012/05/jquery-jmake-v3-adding-appending.html) but I want to ask before diving into it. So here is what I have and what I want, I am not sure whether I am goind in the good way with this question so feel free to express …

Member Avatar for benqus
0
205
Member Avatar for riahc3

Hey Im seeing that I need to learn Javascript and using its classes, functions, declaring it, etc so I need something. What is a good way to learn Javascript (besides practice, because basically its all copy-paste so Im not learning what anything means)...... Thanks!

Member Avatar for riahc3
0
216
Member Avatar for mariaceline_21

Notice: Undefined index: HTTP_REFERER in C:\xampp\htdocs\cart\order.php on line <?php define('INCLUDE_CHECK',1); require "connect.php"; if(!$_POST) { if($_SERVER['HTTP_REFERER']) header('Location : '.$_SERVER['HTTP_REFERER']); exit; } ?>

Member Avatar for mariaceline_21
0
228
Member Avatar for mariaceline_21

Notice: Undefined variable: _SESSION in C:\xampp\htdocs\dl\index.php on line 117 here;s the code: <?php if ($_SESSION['username']) echo "Hello ".$_SESSION['username']." â™”<a href='logout.php'> Logout </a> "; ?>

Member Avatar for vibhaJ
0
101
Member Avatar for mariaceline_21

Strict Standards: Only variables should be passed by reference in C:\xampp\htdocs\cart\ajax\tips.php on line 8

Member Avatar for mariaceline_21
0
233
Member Avatar for memz

how to make this link alert t0 times <A HREF='javascript:window.alert("attack");'> link </A>

Member Avatar for azareth
0
98
Member Avatar for saadi06

Hi, I am using jquery form validation and jquery multiple file upload script but I am having problem with it. My multiple upload script works like this <input type="file" name="userfile[]" size="20" class="multi MultiFile-applied" type="file" maxlength="5" accept="gif|jpg" /> and I dont want to apply jquery validation code on this field but …

Member Avatar for saadi06
0
239
Member Avatar for QuaminaIT

function validscript() { var fname = document.getElementById("fname") ; var lname = document.getElementById("lname") ; var number = document.getElementById("number") ; var email = document.getElementById("email") ; var confemail = document.getElementById("confemail") ; var street = document.getElementById("street") ; var city = document.getElementById("city") ; var state = document.getElementById("state") ; var zip = document.getElementById("zip") ; if (fname.value …

Member Avatar for fobos
0
165
Member Avatar for vuquanghoang

I have a code on the Internet and I have rewritten it, but there are t and n3 variable in the odd_order function that I don't understand their meaning. Please help me to explore it. :D. This code is generating a odd order magic square. <html> <head> <title>Magic Squares</title> <script …

Member Avatar for fobos
0
222
Member Avatar for manzoor.ilahi77

I need not to focus on readonly input and when user tab it should jump to next write field. <input type="text" name="first"></input> <input type="text" name="second" readonly="readonly"></input> <input type="text" name="third"></input> <input type="text" name="fourth"></input> <input type="text" name="fifth" readonly="readonly"></input> <input type="text" name="sixth"></input> <script> $(document).ready( function(){ $('input').focus(function(e) { var readonly = $(this).attr("readonly"); if (readonly) …

Member Avatar for stbuchok
0
1K
Member Avatar for vizz

[jCanvas](http://calebevans.me/projects/jcanvas/docs.php?p=arcs) <script> $(document).ready(function(){ $("canvas").drawArc({ strokeStyle: "#000", strokeWidth: 5, x: 100, y: 100, radius: 50, start: 45, end: 135 }); }); </script> It works only on <div id='canvases'> <canvas width='400' height='450'>Please enable JavaScript to use the sandbox</canvas> </div> This is not working on `<div id="canvas"></div>` How to make it work?

Member Avatar for vizz
0
58
Member Avatar for yanwick

One question: How do i differentiate when a page is refreshed event from a page/browser closed event? Because it seems that the onbeforeunload event is triggered when a page is refreshed and when it's closed, and i didnt want that to happen ?

Member Avatar for diafol
0
2K
Member Avatar for thiemebr

I have this jquery code below and I need it to attach events on controls as the controls are created dynamically. Right now they are set for a specific control. Thanks $(document).on("click", "#day1Header", function () { $("#day1Details").slideToggle("normal"); $(".expandDay1Details").html($(".expandDay1Details").html() == 'CLOSE' ? 'EDIT' : 'CLOSE'); }); $(document).on("click", "#day2Header", function () { …

Member Avatar for jwdunne
0
106
Member Avatar for Annuscha

Hi, I've been strugelling with this code for days now, I new at javascript and really need help. This code worked perfectly and then just stopped working. I want the divs to change on a mouseover event, so basically when you hover over a td it goes to a other …

Member Avatar for phfilly
0
239
Member Avatar for PF2G

Hi, I'm working on a website where i have the list of all products and its info: image, description, reference and a button to see more images of the product. I want to create a checkbox that when is checked all the info is hidden except the image. I'm using …

Member Avatar for stbuchok
0
268

The End.