15,700 Topics

Member Avatar for
Member Avatar for shivam charan

client side code: <script type="text/javascript" language="javascript"> function closeMe() { // Code is here } </script> server side .cs file code protected void btnlogin_Click(object sender, EventArgs e) { if (checkuser(UserName.Text, Password.Text)) { // i want to call closeMe() function here. } else { } }

Member Avatar for G_Waddell
0
77
Member Avatar for Juriy

part of index page [CODE] <form id="form1" name="form1" method="get" action="show.php"> <select id="mark" name="mark"> <option value="">--</option> <option value="100">BMW</option> <option value="101">Audi</option> </select> <select id="series" name="series"> <option value="">--</option> <option value="1" class="100">1 series</option> <option value="3" class="100">3 series</option> <option value="5" class="100">5 series</option> <option value="6" class="100">6 series</option> <option value="7" class="100">7 series</option> <option value="11" class="101">A1</option> <option value="23" …

Member Avatar for Juriy
0
325
Member Avatar for stbuchok

I've seen a lot of people having issues debugging JavaScript code. So here is how you can easily debug your JavaScript code using Visual Studio (I believe firebug has similar functionality). Also if someone has Visual Web Developer can you confirm that you can do it in that as well …

0
124
Member Avatar for Virangya

Hey this is my code.. I'm trying to display whats in "carefare" variable inside a div. But it's not working I have no idea. All names of the div's are correct. and when i use alerts(commented) correct values are displaying but it's not getting printed inside my divs. Always the …

Member Avatar for Airshow
0
186
Member Avatar for ErangaD

I have 2 text boxes A and B I want the answer A-B displayed on A Text box 'onchange' event of B Please help me Thanks God Bless Eranga

Member Avatar for ErangaD
0
154
Member Avatar for clbembry

I have a mySQL that is continuously being added to and I need to make an AJAX function that checks the database periodically and only returns the results that it hasn't seen before.

Member Avatar for Brillig
0
166
Member Avatar for vizz

I am using following code to generate menus [CODE]<?php $menu = array(); $menu['home'] = 'Home'; $menu['mypage'] = 'My Page'; //Add in the format of: $menu['page name'] = 'Page Title'; $title='Home'; //Default title function generateMenu() { global $menu,$default,$title; echo ' <ul>'; $p = isset($_GET['p']) ? $_GET['p'] : $default; foreach ($menu as …

Member Avatar for vizz
0
1K
Member Avatar for ptemedia

Hi, I have made an image gallery which all in all is working fine. However, there is the option of to play through the images using setInterval to change the image every 8 seconds. After all images have been preloaded, this works fine. In its current set up however, the …

0
129
Member Avatar for anandhikrishnan

Hi, Am new to javascript, i have two fields 1. Start time ( hh:mm:ss Am/Pm ) 2. End time (hh:mm:ss Am/Pm) i want to validate it. Start time should be always greater than end time. Eg: start time : 10:00:00 Am end time : 09:00:00 Am It should alert the …

Member Avatar for anandhikrishnan
0
11K
Member Avatar for Macko888

Hey Peeps! been doing a bit of jquery latley and decided to implement some into my live site, now i know this is probably the most basic thing that i am missing, but i need some sort of stop() in my code, thing is, im not too sure where to …

Member Avatar for Macko888
0
121
Member Avatar for sam230

i m using google map version 3. i want to customized the map type control show top-right corner.. i want to show all the type (map,statellite,terrain,earth) in one horizontal line (like its shown in V2). kindly guide me little.. thanks

Member Avatar for sam230
0
140
Member Avatar for extemer

hello friends i want to add confirmation box to my delete option in the pagination code so when the user want to delete the record before deleting it may as for the option yes or no...below is my code and the code in bold is the delete code.... [CODE] <?php …

Member Avatar for Airshow
0
181
Member Avatar for extemer

hello friends i want to add confirmation box to my delete option in the pagination code so when the user want to delete the record before deleting it may as for the option yes or no...below is my code and the code in bold is the delete code.... <?php mysql_connect("localhost","root","")or …

Member Avatar for ddymacek
0
179
Member Avatar for sid78669

I have the following code in a .js file: [CODE=Javascript] function clearVillage() { /*Do Something...*/ } [/CODE] Now in my HTML page generate through PHP, If I call this function through a link like this: [CODE=HTML] <a class="fg-button ui-state-default ui-corner-all" onclick="clearVillage();" >Clear Village</a> [/CODE] It works. However, if I replace …

Member Avatar for sid78669
0
106
Member Avatar for f_atencia

Say I have the following XML variable: [CODE] var oResult = Server.CreateObject("MSXML2.DOMDocument.4.0"); oResult.async = false; oResult.setProperty("ServerHTTPRequest", true); [/CODE] How do I get the encoding to display in the header section? For example: [CODE] <?xml version="1.0" encoding="UTF-8"?> [/CODE] when I run it in the browser? Any help will be greatly appreciated.

0
65
Member Avatar for jamesyrawr

Hi I'd like someone to just give me a hand getting a form to open up facebox and submit the form details via that. Ok they process I'm looking for help on is this When a user enters the details into the contact form and clicks "submit" it needs to …

Member Avatar for Airshow
0
140
Member Avatar for mualanj

how can i populate javascript array value from my text box, suppose i have a array like this var a=new array("1.00","2.00"); instead of 1 2 i want to put text box value in there,which user will enter. thx in advance,really appreciate it.

Member Avatar for Airshow
0
100
Member Avatar for Mona Ali

Hi to all i have done validation on my HTML page but the problem is that when i press the submit button it show the alert message that name field is not specified but when i OK that message then data enter into the data base without specifying the name …

Member Avatar for ansaripk
0
135
Member Avatar for naveenchander

Hi, I am new to ASP.Net. I would like to know if there is a way by which I can Call a Serverside script through a Javascript. Or else is there a way to Postback a page through a javascript function. Thanks in advance Thanks, NaveenChander

Member Avatar for chandrannew
0
242
Member Avatar for Mona Ali

Hi to all i have done validation on single fields but i have to apply validation on 3 text field that at least one of thre is filled .i make a code but that logic doesnot work .. html code [CODE]<html> <head> <script type="text/javascript" src="jstest.js"></script> </head> <img src="idtech_logo.jpg" alt="logo" width="1500" …

Member Avatar for Mona Ali
0
149
Member Avatar for blotind

Hi all the problem lies with the createJSON function for some reason it is breaking no idea why though. please advise... [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> <script type="text/javascript"> function validateForm(){ var x=document.forms["myForm"]["username"].value if (x==null || x=="") { alert("username must be filled …

Member Avatar for ddymacek
0
137
Member Avatar for abhinavM

I have a set of radio buttons.These radio buttons are associated with some questions for survey.I also have a Submit button.I want that as soon as I click the Submit button, the application should read the status of radio buttons.But I am unable to figure out a way of doing …

0
110
Member Avatar for MDanz

Can i get help correcting the code below? You can just copy and paste and try it yourself. Onmouseover the popup div appears. If i click(X) the popup div should close but it doesn't. Only doubleclicking (X) closes the popup div. Onmouseover it should always display a popup div though. …

0
76
Member Avatar for kavyya

Hi i'm in need of a DHTML program for design tourism management program.. Since i don't have idea on it i unable to design it.. pls help me.

Member Avatar for Airshow
0
46
Member Avatar for samsons17

I am confused right now, and there will be test about ajax tommorrow.. And i bumped into this getXMLHTTP() function in one of the code that my professor gave me and i not sure what it does exactly.I mean because i also see in the other code, that people are …

Member Avatar for tgreer
0
1K
Member Avatar for sid78669

I have a javascript code that modifies the data for a hidden field on the page. The page is then submitted to php. The problem is although I can see the altered data in firefox when I select the section and do show source for selection, the modified data in …

Member Avatar for sid78669
0
202
Member Avatar for Waynef

Hi, Can anyone tell me how I would remove characters from a string if they are present? For example lets say I wanted to remove c:/fakepath/ from the string c:/fakepath/DSF102.jpg and just leave the DSF102.jpg how would I got about this? I got close but I need help. Thanks in …

Member Avatar for Waynef
0
150
Member Avatar for MDanz

This is a function for a slideshow,onmouseover i want it to stop. Instead of stopping the slideshow onmouseover, it speeds up?? How can i correct this to stop onmouseover? [CODE]<body onload="nextslide();">[/CODE] [CODE]function nextslide() { // Hide current slide var object = document.getElementById('slide' + current); //e.g. slide1 object.style.display = 'none'; // …

Member Avatar for Airshow
0
141
Member Avatar for momonq1990

html code: [CODE]<ul class="item"> <li><a href="#">Menu Item One</a></li> <li><a href="#">Menu Item Two</a></li> <li><a href="#">Menu Item Three</a></li> <li><a href="#">Menu Item Four</a></li> <li><a href="#">Menu Item Five</a></li> </ul> [/CODE] srcpt code: [CODE] $(document).ready(function() { $('ul.item a').hover(function() { $(this).stop().animate({ left: 20 }, 'fast'); }, function() { $(this).stop().animate({ left: 0 }, 'fast'); }); });[/CODE] pls …

Member Avatar for Amr87
0
80
Member Avatar for extemer

how to popup submit button while selecting item from the dropdown list. i had completed the task of displaying textfield while selecting item from the dropdown list but unable to figure out how to popup the submit button with textfield while an item is selected from the dropdown list...please help …

Member Avatar for Amr87
0
554
Member Avatar for McLaren

Hello, I have problem with submiting form in IE. This is the part of the code for submission. I am using jQuery validate and form plugins. On other browsers it submits. Tried ie7, ie8, ie9 and none of them submitted. (actually I tried on IE9, but in ie7, ie8 modes.) …

Member Avatar for McLaren
0
228
Member Avatar for Jamesiscrazzy

I've been trying to get this to work for alittle over a week and im about to lose hope in my capabilities. I need some help, someone who can write the working code and explain what is happening. Basically, i want to display a message that is called from posts.php …

Member Avatar for Jamesiscrazzy
0
239
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
142
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
202
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
292
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

The End.