15,700 Topics

Member Avatar for
Member Avatar for bizfreak22

I am a newbie, really need your help. I've been working on this for 2 days and can't get it to work correctly. I have a form that I want to submit to the database "New Lead" form. I am using the submodal feature for the customer notes. For some …

Member Avatar for ananthaninfo
0
129
Member Avatar for Shizuo

I'm having problem with counting some special characters on textarea every time I press alt+164 for example , it does not count the character unless I press another key. heres my code: HTML [code]<textarea style="resize:none;" rows="15" name="tarea" cols="45" onkeyup="count_chars(this);" onkeydown="count_chars(this);" onkeypress="count_chars(this);"></textarea> [/code] Javascript: [code] function count_chars(tarea) { x = document.myform.tarea.value; …

Member Avatar for Shizuo
0
92
Member Avatar for alihuta2002

I know this may be a question that we see often, but I couldn't see any similar to my case or maybe just I don't understand the right concept of AJAX. I'm kinda new to AJAX and trying to accomplish with one of my new project. I've been told that …

Member Avatar for rv1990
0
167
Member Avatar for oggiemc

Im writing a piece of code which allows the user to search by HTML element on a page..The user selects what element they want to search for, and then the code traverses each element highlighting them one by one..The code works fine if the user searches for one element from …

0
65
Member Avatar for Jon BH

Hi It might sound strange but can I simplify it !! I have only one variable for input which is diameter of a circle in millimeters. This ultimately converts into a Guage value as in gun barrels. I can do this in Excel but haven't much of a clue about …

Member Avatar for Jon BH
0
199
Member Avatar for Buppy

Hi, I have a jQuery event [CODE] $('#msg-text').keyup(function() { $('#msg-chr-remaining').html('Remaining characters: '+(255-$('#msg-text').length)); }); [/CODE] The problem is it fires only once - the first time. Anyone knows why? Thanks

Member Avatar for stbuchok
0
89
Member Avatar for anton24

I have a form which action is a php script. That script returns a header('Location: whatever.html'); Now my question is, would be a way through ajax/javascript to do that only the form were sent, but avoid or prevent the redirection to whatever.html? Also, if would be possible know the page …

0
106
Member Avatar for Jessurider

can anyone tell me why the below code for page backward preventing is not working in firefox but works perfectly in google chrome and internet explorer. can anyone tell the apt code that works in all browsers [CODE]<a href="mainpage.html">log out</a> <script language="JavaScript" type="text/javascript"> window.history.forward(1); </script>[/CODE]

Member Avatar for masijade
0
61
Member Avatar for arvind.thakur

Hello Guys, Well I am converting a web application which is made using html, javascript, css and ajax.Now I also want to open this apps on the android tablet but I do not want to change the coding techniques because this apps will going to open on the browser of …

Member Avatar for peter_budo
0
184
Member Avatar for tigepalm

I've looked all over the web for similar code that produces the same effect as ESPN two level menu & sub menu bar but unsuccessful. Can anyone pls. help? Tks.

0
47
Member Avatar for wafieali

Hi All, Sorry if this annoyed any of you. but I'm really indeed. I need to know on HOW TO LOAD 300 RECORDS OR DATA PER SECOND in my mobile apps (for this purpose, I use iOS app). I just need a sample or basic code on how to run …

Member Avatar for wafieali
0
120
Member Avatar for arvind.thakur

Hi Guys, I m writing one HTML page where i wanted the page orientation to be set to LANDSCAPE through Javascript or CSS. So when I click on Print button or anyways on the HTML page, the print window will pop-up so now in that orientation property should be set …

0
63
Member Avatar for s7mo

Trying to adapt my working email code to work on a different page... I have VERY little javascript experience...and don't know proper syntax. I want to put this on a page that is created with a while loop (php) and has many members on one page. So it needs a …

Member Avatar for s7mo
0
167
Member Avatar for sid78669

This is what I have in a page: [CODE=HTML] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Sandbox</title> <style type="text/css"> table.twocPC { width : 612px; border-width: 1px; border-spacing: 1px; border-style: solid; border-color: black; border-collapse: separate; background-color: white; vertical-align: middle; } table.twocPC td{ border-width: 1px; padding: 0px; border-style: solid; …

0
114
Member Avatar for MDanz

i tried this code but onmouseover it doesn't stop the the slideshow? [code] function nextslide() { // Hide current slide object = document.getElementById('slide' + current); //e.g. slide1 object.style.display = 'none'; // Show next slide, if last, loop back to front if (current == last) { current = 1; } else …

0
70
Member Avatar for Violet_82

Hi peeps, I wonder if anybody can give me a hand with this. Basically on my website [url]http://antobbo.webspace.virginmedia.com/photography/testing/gloom.htm[/url] to view a picture you need to use the left hand-side menu. Now, all good except that when you want to view any picture at the bottom of the left hadn-side nav …

Member Avatar for Violet_82
0
372
Member Avatar for Hani1991

Hello everybody. I've tried the following code in the head: [CODE] <script language="JavaScript"> var TxtArea = 0; function insert_bui( t ){ if( !TxtArea ) return; tx = document.selection.createRange( ); switch( t ){ case "B": tx.text = "-b-" + tx.text + "-/b-" ; break; case "I": tx.text = "-i-" + tx.text …

Member Avatar for Hani1991
0
111
Member Avatar for elieobeid7

I have created 2 google chrome extensions for 2 different websites that i have nothing to do with. the websites are not mine. when you click on the extensions a login screen will popup, i want the users to be able to fill their login details and login to the …

0
111
Member Avatar for clbembry

I know Jquery uses AJAX, but is there any negatives of using setInterval rather than the usual method of polling with AJAX? EDIT: :P I now realize that setInterval is not a Jquery function, but that doesn't really change the question much.

Member Avatar for stbuchok
0
56
Member Avatar for karthik_ppts
Member Avatar for IIM
0
128
Member Avatar for KarthikOnIT

Hi Friends, I have been searching for JavaScript data visualization tools. The charts like "Icicles", "TreeMaps" are the ones I was looking for. I have found few open source libraries like the [url]http://thejit.org/[/url] However, libraries which has gradient effect with better UI would server the purpose. Please suggest some better …

0
111
Member Avatar for klemme

I have this bit which I have actually only tried in Google Chrome, but it works finte there: Im using ajax to get data from the Db, when popuating one select list based on whats selected from another: But in Internet Explorer 9, it doesnt work: [CODE] // JavaScript Document …

Member Avatar for blocblue
0
199
Member Avatar for cormee

Hi I'm getting a few spammers bypassing certain form elements on my site which I attribute to them having javascript disabled. Is there any way of diplaying the <form></form> content if it's enabled and otherwise displaying a message saying "We are no longer taking registrations". I'm not too concerned about …

Member Avatar for karthik_ppts
0
170
Member Avatar for Olivis

Hi! I'm new to javascript. Just trying to write some code that combines stuff. This is the javascript. [CODE]x=z; y=new Date(); function test() { if (y<3) { z=3; } else if (y>3 && y<7) { z=7; } else if (y>7 && y<10) { z=10; } } function test2() { if(x<4) …

Member Avatar for urtrivedi
0
165
Member Avatar for Punny

I want to send my information on a database. just wondering if I could use MYSQL? If its not possible, can I use JavaScript to send it on Java and make it work on MYSQL?

Member Avatar for rv1990
0
80
Member Avatar for arsala211
Member Avatar for newbie14

Dear All, I have page here with the treeview menu [url]http://183.78.169.54/tree/1.html[/url]. Now what I want to control is that once a submenu is selected then I want it to have a different font color how to control on that. Secondly I am going to have a validation form so based …

0
55
Member Avatar for ferat_tes

Hello, I need to write an extension for Chromium Browser. First i will just write a code to change the proxy. After that i will write all the extension. But i could not use proxy API. I write this code on the background page of extension but it did not …

0
341
Member Avatar for Waynef

Hi, This piece of code works in chrome & IE but not Firefox, can anyone see why? [CODE]function openimage(a, b, c, d) { var b = document.getElementById('photo' + a).value; var c = document.getElementById('album' + a).value; var d = document.getElementById('clicks' + a).value; if (d = 1) { jQuery.facebox({ ajax: 'profile/previewphoto.inc.php?photo=' + …

Member Avatar for Waynef
0
130
Member Avatar for vizz

How to check browsers javascript and cookies are enabled or not? And How to redirect on error page for each condition separately ?

Member Avatar for IIM
0
132
Member Avatar for de1337ed

Just two questions that are completely unrelated: 1. (Tough to Explain), But how do I create relational drop down menus? Let's use careers as an example. If someone were a computer engineer. I want them to chose engineer in the first drop down. Then then the second drop down will …

0
54
Member Avatar for kukuruku

I have this problem with xsl if I entered the state and the city is working fine ,but if I miss one or the other doesnt work Thanks [CODE]<?php $city=$_GET['city']; $state=$_GET['state']; $dom = new DOMDocument; $dom->load('Sample.xml'); $xsl = new DOMDocument; $xsl->load('asn6.xsl'); $xslt = new XSLTProcessor(); $xslt->importStylesheet($xsl); if(isset($city)) $xslt->setParameter(NULL, 'city', $city); …

Member Avatar for Airshow
0
129
Member Avatar for BlueCharge

Hi thanks for reading, got the following code, was working and not it is not. I want timers for each item, timer countdown being pulled from MySQL. Thanks. [CODE] <script type="text/javascript"> <?php $selectTimers = mysql_query("SELECT * FROM auctions ORDER BY itemID DESC"); while($fetchTimers = mysql_fetch_array($selectTimers)) { $itemID = $fetchTimers['itemID']; $itemYears …

Member Avatar for Airshow
0
204
Member Avatar for k9huey

I am making what I call a PM (Preventive Maintenance) Kit list. My users will use this list to generate a printable sheet to tell me what they used out of there kit. The list includes pricing per part and I would like the list to calculate the costing as …

Member Avatar for k9huey
0
2K
Member Avatar for Awah Mohamed

hi guys i want to use php websockets... i made a web socket but it didnt work i hope you guys know some javascript couz the client page is made with javascript and html5 this is the server's code: [CODE] <?php error_reporting(-1); $host = "127.0.0.1"; $port = 8000; $socket = …

Member Avatar for Awah Mohamed
0
253
Member Avatar for Studio

I am currently working on creating a vertical scroller and have got so far but have got stuck on some of the functionality My HTML looks like this [CODE]div class="outer"> <div class="slider-content clearfix"> <ul> <li><img src="images/img1.jpg" width="200" height="200" alt="img1"></li> <li><img src="images/img2.jpg" width="210" height="200" alt="img2"></li> <li><img src="images/img3.jpg" width="220" height="210" alt="img3"></li> <li><img …

Member Avatar for Studio
0
113
Member Avatar for Hani1991

Hello every single one :) I want to introduce you how to enable Javascript in web browsers where it's disabled.. This is only a try I'm going to make... And I want someone to kindly correct me if I'm wrong, or to say I'm right if I'm so. To enable …

Member Avatar for Pro2000
0
107
Member Avatar for Ritesh_4

Hello Is there a tutorial or example which could enable me develop a flipbook similar to the one shown on this link: [url]http://www.20thingsilearned.com/en-US/home[/url] ? I've tried google, but not found anything similar, except that link itself

Member Avatar for Ritesh_4
0
146
Member Avatar for Mkaveli

Hi i was wondering if someone knows some good tutorials on creating website with Node.js, jquery, ajax and HTML. Much appreciated, Mkaveli

0
60
Member Avatar for azegurb

hi all, i have search form that retrieves data from database. and i have select options. when i choose with only [CODE]select option[/CODE] it can populate data from database. but i want to retrieve data from database with both input tag (by typing into it) and select tag it cannot …

Member Avatar for azegurb
0
195
Member Avatar for iamthwee

Hello my fellow friends. I'm in need of help. I'm just no good with Javascript. What I have is the following... [url]http://vadikom.com/demos/poshytip/#async-simple[/url] Now it works well. But you have to create a new class for EACH toolip on the page and reference it to its class id. WTF? Anyway to …

Member Avatar for Airshow
0
113
Member Avatar for aleenkhan

Hello, I am a newbie for JS. I am unable to use two javascripts on a single page. Can someone help me as its not working perfectly? Below is my HTML Code.... [CODE]<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>HTML Frames Example - Content</title> <script type="text/javascript" src="js/mootools.js"></script> …

Member Avatar for Airshow
0
89
Member Avatar for mayankbha

Hello , I have created a page where user can uplaod a file and the file is upload in a folder. Also there are two divs. In first div user can see the file he uploaded and also can delete it. In second div the user can drag file from …

0
69
Member Avatar for Dragonbaki

Hi guys., I have a textbox for entering URL. I validate that URL using regular expression. Now the problem is, How do i know whether the entered URL is exist or not.? For example, if user enter "http://www.daniweb.cam" rather entering "http://www.daniweb.com", how do i intimate them that the entered url …

Member Avatar for Airshow
0
1K
Member Avatar for Xtremefaith

So for the record I'm using wordpress but you don't need to know wordpress in order to help me with this. This is my first AJAX attempt and [U]I read through W3schools[/U] and understand a good portion of how it works in theory but haven't found any close enough working …

Member Avatar for Xtremefaith
0
269
Member Avatar for blotind

Hi all This won't validate!! any suggestions? it for some reason doesn't call the ValidateFrom function... so the error lies either with the manner in which i'm calling the javascript functions or the javascript itself. [CODE] <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="style.css" rel="stylesheet" type="text/css"> <title>User Details</title> …

Member Avatar for Airshow
0
181
Member Avatar for RazorRamon

Ok i'm trying to build a forum with jquery ajax characteristics. Below is the html/jquery coding. And i know jquery is loaded because I did the [ICODE]alert(1);[/ICODE] inside the document ready and it worked. [CODE] <!doctype> <html> <head> <title>Shouts!</title> <script src="jquery.js"></script> <script> $(document).ready(function() { $("#messages").load(function('loadchat.php'); $("#post").submit(function(){ return false; }); }); …

Member Avatar for xylude
0
575
Member Avatar for Olivis

Hello! Just started learning javascript: anyway just messing around trying to make a program where you enter a value into each of the two prompt boxes and the multiplied value of the two is show. I've got this: [CODE]function showprompt() { r=prompt("Enter first number:",""); if(r!=null && r!="") { x=r; } …

Member Avatar for stbuchok
0
119
Member Avatar for riseguim

Hi! So here's the deal: I have this style switcher which is awesome, therefore, the cookie does not seem to work, actually it simply doesn't. I'm sure someone can figure this out for me, that would save me! [CODE]<script type="text/javascript"> // *** TO BE CUSTOMISED *** var style_cookie_name = "style" …

Member Avatar for riseguim
0
146
Member Avatar for Juriy

Guys plz need a help. I have index page [CODE] <form id="form1" name="form1" method="get" action="show.php"> <select name="cg" onchange="SearchC();" id="catG" > <option value="1" >ВСЕ КАТЕГОРИИ</option> <option value="2"<? if($pcat=="2")echo "selected='selected'"; ?>>subject</option> <option value="3" <? if($pcat=="3")echo "selected='selected'"; ?>>faculty</option> <option value="4" <? if($pcat=="3")echo "selected='selected'"; ?>>lecture</option> </select> </form> [/CODE] then [CODE] function SearchC() { var …

Member Avatar for Juriy
0
83

The End.