17,115 Topics

Member Avatar for
Member Avatar for hajjo

I have <a title="jjj jjj" /> it appears as jjj new line jjj in itnernet explorer. but in firefox it ignores new lines and replaces them with space. any solution for this on firefox?

Member Avatar for Admiral
0
78
Member Avatar for uselessninja

hi everyone i have 2 textboxes: when i enter a name on first textbox the first letter of what i have entered will appear on second textbox...is it possible for javascript? to make it clear: i will enter a name "COCOMARTIN" on the firstbox and the first letter " C …

Member Avatar for uselessninja
0
146
Member Avatar for Sop215

Hi All Anyone knows how do i store the selected value into a hidden field or variable so that i can use it for database insert ? Btw this is in ASP. I took the jquery sample code from: [url]http://www.ajaxshake.com/en/JS/232761/a-progressive-enhancement-to-select-multiple-form-elements-asmselect.html[/url] Here is my code: [CODE] <script type="text/javascript"> $(document).ready(function() { $("#Part_ID").asmSelect({ …

0
56
Member Avatar for jd2011

I am currently looking for a way not go get caught using an auto healing scipt for a text based game. Here is the script code. I will not give the website name. [CODE]// ==UserScript== // @name Auto eat script // @namespace // @author Private // @include http://www.xxx.com/game.php // @version …

Member Avatar for jd2011
0
143
Member Avatar for newbie14

Dear All, I have a page here [url]http://183.78.169.54/tree/2.html[/url]. What I want to control is that for link on the left that is clicked I want the text to change to a particular color to highlighted it have been selected. And when another linked is clicked I want the previous linked …

Member Avatar for malini1211@gmai
0
521
Member Avatar for momonq1990

<!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=utf-8" /> <title>Asiahome Trading Corporation (Server)</title> <script language="javascript" type="text/javascript"> function validate(){ var user = document.getElementById('username') var pass = document.getElementById('password') user.style.backgroundColor = (user.value.length == 0) ? "red" : ""; pass.style.backgroundColor = (pass.value.length == 0) ? "red" : …

Member Avatar for Amr87
0
157
Member Avatar for Aeterna

I'm trying to create a countdown timer that uses datetimes from a database. So far I have the endDate as a DateTime object. What I want to be able to do is pass this into javascript as a javascript DateTime, then find the difference between the endDate and Now, and …

Member Avatar for Airshow
0
222
Member Avatar for konradhoppe

Hi community, I am struggeling to get an ajax request to work. The main issue here is that I can't fill in a select box from jquery for some reason. I was working before without jquery and used the method innerHTML() to paste options into the box, which worked fine, …

Member Avatar for konradhoppe
0
203
Member Avatar for hajjo

I have this window.top.onscroll = function(){moveScroll(); } It works perfect in ie, but in firefox I get permission denied to get property onscroll. why? and whats the solution? on top of my page i have done this though var url = document.URL; url = url.substring(7,url.length); url = url.substring(0,url.indexOf(":")); if(isMoz) document.domain …

Member Avatar for stbuchok
0
151
Member Avatar for Mona Ali

Hi to all i make an HTML page and after entering the data when user press the submit button the data stored in database. i also make validation that which text field is optional and which text field is necessary to fulfill.but the problem is that i have 3 text …

Member Avatar for stbuchok
0
64
Member Avatar for Coyx

Hi guys! I'm back with more problems! I've tried everything... I just can't seem to get it to work. :( Okay, a short explanation of what the goal is. I have 5 buttons, and a list of records which are pulled from the database. Import CSV Create Edit Delete View …

Member Avatar for stbuchok
0
293
Member Avatar for Arthi Raman

Hi, I need to pass the value of hyperlink to another jsp page. For eg., <a href="sample.html" id="myAnchor">[B]sample[/B] </a> Now, i need to retrieve the value, [B]sample[/B] and pass it to another page. Kindly help me on this. Thanks.

Member Avatar for Airshow
0
58
Member Avatar for choboja621

My problem is, when you type an age, it always says "Invalid Age" w/c falls in the default condition. I dont know how to figure out this. Its my codes. Help me to fix this. Thanks! [CODE] <html> <body> <script type="text/javascript"> var $age = Number(prompt("Enter Your Age: ")); switch ($age) …

Member Avatar for choboja621
0
101
Member Avatar for Xtremefaith

So I have a big goal I'm trying to accomplish but since I haven't gotten an answer yet I think its too broad and I realize I may be missing some Ajax/jQuery fundamentals so I want to start a fresh post here to get any help I can. I have …

Member Avatar for TomH.PG
0
146
Member Avatar for devindamenuka

hi all, i am new to javascript i was trying to passe text input to javascript. but code is not working here is the code [code] <script type="text/javascript"> function val(){ if(document.a.email.value=="" ||document.a.email.value==null ){ alert("sssss"); return false; } if(document.a.email.value!="" ||document.a.email.value!=null ){ alert("sssss"+document.a.email.value); return true; } } </script> [/code] and here is …

Member Avatar for TomH.PG
0
171
Member Avatar for sica07

I'm trying to include a widget in my page that looks and behaves like the Google calendar or Outlook calendar. Is there such a widget in Dojo? I have found [url]http://unscriptable.com/code/dojocal/dojocalTest.html[/url] but I don't know where to download it. I tried to contact the author but I got no answer. …

0
88
Member Avatar for bhob

hi there, i have a problem with the ui-state-error part using JQuery form validation. here's the code: [CODE] $(function() { // a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore! $( "#dialog:ui-dialog" ).dialog( "destroy" ); var name = $( "#name" ), email = $( "#email" ), password = …

0
88
Member Avatar for upmuthukumar

Hello Experts, Please any body help on how to implement multiple video using frames in webpages. For expample, if I click on hyperlink 1 then video1 should play and if I click on hyperlink 2 then video2 should play in the same place of video1. That video1 should stop playing …

0
42
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
130
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
200
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
373
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
112
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 feedz87

- I have the problem where my update is not not working.Anybody can help me... FORM <code> <?php session_start(); include ("../entity/login_class.php"); include ("../entity/admin_class.php"); include ("../entity/customer_class.php"); $Customers = new Customer(); $id = $Customers-> getCargoID(); $Customers ->getCargo($_GET['id']); $id = $Customers->getCargoID(); $cargoCode = $Customers->getCargoCode(); $cargoDesc = $Customers->getCargoDesc(); ?> <form method="post" name="updateCustomer" id="updateCustomer" action="../controller/customer_control.php" …

0
59
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
133
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

The End.