15,699 Topics

Member Avatar for
Member Avatar for santhanalakshmi

Hi, This is my perl program.......... [CODE]#!c:/perl/bin/perl use CGI qw(:all); $pfaccode=param('faccode'); $pprogramme=param('programme'); $pdeptcode=param('deptcode'); $pbrancode=param('brancode'); $psemester=param('semester'); $pkook = cookie(-name=>'logtime'); print "Content-type: text/html\n\n"; print "<body bgcolor=\"#ffcccc\">"; use DBI; my $dbh = DBI->connect("DBI:ODBC:wwwdsn","webid","dibew") or die "Cant connect: $DBI::errstr\n"; my $sth = $dbh->prepare("select kid from facltmst where faccode = ?") or die "Can not …

0
70
Member Avatar for vishalanuj

[CODE]<%@ page language="java" pageEncoding="ISO-8859-1"%> <%@taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@taglib uri="/WEB-INF/struts-html-el.tld" prefix="html_el" %> <%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/c.tld" prefix="c" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Listing all cities</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <center><h3>city List</h3></center> </body> <html:form action="/UpdateSuccessAction.do" > <c:forEach …

Member Avatar for vishalanuj
0
139
Member Avatar for skurenak

I am an absolute beginner with javascript and have no idea how to solve this one. got a function fu() which should display the NAME of the image upon onmouseover,but when I try it,all the images show the same name,although they have different names in the code. I thought the …

Member Avatar for skurenak
0
103
Member Avatar for hajjo

imagine i have inputtext i have list of values ..which are merchandise, auotmobile, car if user types c in textbox i want car to show up ..how can i do that? like when u type hotmail message..and u write k..and emails starting with k in ur list comes up.. sthg …

Member Avatar for Thirusha
0
62
Member Avatar for pradhan.s

how to run java script using a notepad should we use .js extension..?

Member Avatar for Thirusha
0
37
Member Avatar for leesyy

hi, can anyone provide an example codes on the wrtkit selectionMenu and SelectionList. i need it to display a drop-down list for selection in a view specified in the same .js file thanks a lot...it's really urgent!!!

0
63
Member Avatar for Stefano Mtangoo

There are few Books on Java, C++, PHP and Python, but haven't seen one in AJAX/JavaScript. Is there any legal downloadable JavaScript/Ajax book?

0
83
Member Avatar for leegeorg07

Hi, using a snippet I found on here I have this code: [code] var password; var pass1="PASSWORD-HERE"; password=prompt('Whats The Magic Word?',' '); if (password==pass1) alert('That Is Correct!'); else { window.location="SITE-LINK"; } [/code] But I want to make pass1 harder to see so I want to encrypt it and use that …

Member Avatar for HenryGR
0
105
Member Avatar for Graphix

I am currently having a problem with my BB-code editor, like most things it works great in FF, but i have an issue with IE: whenever i select a word that has already been previously typed, it selects that word instead of the one i selected. Here is the selection …

Member Avatar for Airshow
0
285
Member Avatar for samlabs821

Hi there .. I have error on my firebug it says:document.getElementById("category") is null Could someone help me?? and i wanted to set the default drop down option [code=html]<html> <head> <script type="text/javascript"> var i = 0; var someValue = '4'; var mySelect = document.getElementById('category'); while(i < mySelect.options.length) { if(mySelect.options[i].value == someValue) …

Member Avatar for Thirusha
0
122
Member Avatar for rawroro

Hello , I have a question concerning evnthandlers . I am programming a chat system and have an event handler in my code that checks for user presence ( using [URL="http://www.xmpp.org"]xmpp[/URL]) . this is done when a connection sends a "presence packet " which is one like this , [CODE] …

0
52
Member Avatar for jaimca

Hi i need to pass values from one html page to another without using forms. Is this possible . Can i access these values using javascript.. Please help me with a code sample .. thanks in advance

Member Avatar for samlabs821
0
76
Member Avatar for Jayakrishnan_gk

I have a search box. I need to remove all the special characters from the search term and then query it. “’-,?~!@#$%&*+-= all these characters.... can anybody suggest a proper regular expression for this ? and the syntax for using it in javascript. my query is saved in var query;

Member Avatar for Jayakrishnan_gk
0
154
Member Avatar for Chad Gary

Trying to turn all <p> elements to red. I'm using the following js code with prototype and I'm getting an error that says each is not defined in my firefox window. [CODE]var paragraphs = $$('p'); each(paragraphs, function(element) { element.style.color = "red"; });[/CODE] Html Code: [code=html]<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" …

0
51
Member Avatar for CssQueen

Hello, I am trying to populate data from an xml file when a certain catergory from the dropdown menu is selected. The dropdown menu is also populated from a xml source different from the one where the data is stored that needs to be pulled. so when a category is …

Member Avatar for CssQueen
0
110
Member Avatar for drboring

I am new to JavaScript. Therefore, I don't understand how the following javascript code work: [CODE] var specialChars="/\\(\\)><@,;:\\\\\\\"\\.\\[\\]\*\+\?\!\#\$\%\^\&\=\~\`\|\/'"; var validChars="\[^\\s" + specialChars + "\]"; var atom=validChars + '+'; var atomPat=new RegExp("^" + atom + "$"); var str = "Hello World!"; if (str.search(atomPat)==-1) { alert ("Special Characters Found!"); } [/CODE] When …

Member Avatar for jomanlk
-1
81
Member Avatar for benrich

Hey all Can anyone see why this isn't working for IE but is Firefox? I'm trying to update a div on the page using some javascript and php. Whenever a dropdown box on the html page is changed, its value is passed to a javascript function, then onto a php …

Member Avatar for benrich
0
153
Member Avatar for filch

Hi, I am in a real need to get this going quickly and have run into a bit of a stumbling block. Here is what I am trying to do. I am creating a Paypal Add to Cart page for several products. I have this working for a single button …

0
162
Member Avatar for asong

Write a Java program that uses an algorithm implementing the Gauss-Jordan method to solve the system of linear equations given in the introduction. Your output must show the output of every calculation to no more than seven (7) decimal places. You must create and use a function that cuts off …

Member Avatar for Graphix
-1
83
Member Avatar for tarunkhatri

Hi Everyone, I am doing some development using php and sql I need a pop up javascript calender for a form which has start date and end date. So if someone selects a start date from the 1st pop up calnder 2nd calender shuold start from that date. Can any …

Member Avatar for chandru7
0
70
Member Avatar for vidhyaponnusamy

hi i have created one simple page using ajax ,my index page contains menus page1 page2 page3 page4 if i click the page2 menu means my page2.html is opening in the same window index.html itself ,but in my page three i have a link if i click that link it …

Member Avatar for vidhyaponnusamy
0
103
Member Avatar for MDanz

[icode]window.getSelection()[/icode] ...now this works with the frame that it's in.. i have a top frame and bottom frame.. i want to write the function in the bottom frame and the javascript runs on the top frame.. i tried this but it isn't working [icode]parent.topframe.location.getSelection[/icode]

Member Avatar for Airshow
0
49
Member Avatar for altarek

hello i want to secure my data ,i have link to pdf file when click it give all path to pdf like this [B][url]http://192.167.1.13/data/0000/000/000/0000-000-000-000.pdf[/url][/B] i want to change it to be like this [B][url]http://192.167.1.13/xxxxxx[/url][/B] or any other i want to change it start from /data any help

Member Avatar for almostbob
0
84
Member Avatar for Skzz

I am 100% new to JavaScript, but I don't want that to be the case for much longer at all. However, what's the best way to go about learning? What books should I purchase, or where is the most [i]accurate[/i], extensive, free online tutorial? Your suggestions are appreciated! :)

Member Avatar for rawroro
0
126
Member Avatar for neomatrix2

iam trying to call javascript on createuserwizard validation with following script [CODE] function ShowModalDialog() { Page_ClientValidate(); if(!Page_IsValid) $find('<%=AddUserValidationSummary_ModalPopupExtender.ClientID%>').show(); } [/CODE] and my trying to call it for on pageload on create user button click event [CODE] btn.Attributes.Add("onclick", "ShowModalDialog();"); [/CODE] now it works but it fires blank for databse validation like …

0
53
Member Avatar for serendipity

I have a web form. I want the "enter" key disabled from sending the form so users have to SUBMIT in order to send form. Have the following entered in the head: [CODE]function stopRKey(evt) { var evt = (evt) ? evt : ((event) ? event : null); var node = …

Member Avatar for serendipity
0
178
Member Avatar for paptamas

Hy everyione. I'm new here (@daniweb). I used in my web projects some open source wysiwyg editor, like FCKeditor. And I want to create a very simple wysiwyg editor. With html and javascript. To make text bold, italic, colors, etc. But how to start? Any ideas! Thank you in advance:)

Member Avatar for paptamas
0
115
Member Avatar for gabinic

Hi all, I have a lot of portals made via ning.com platform. I use Zoho too. In Zoho Notebook I want to add a WebPage from ning.com, ex. e11e11.ning.com and I can do this. But when I acces ZohoNotebook page where I had added ning.com page, a redirect command (not …

Member Avatar for Gilette
0
80
Member Avatar for deadlyscorpian

Hi all, I want to make one php based application where in at place I need to fix one thing through JavaScript. Let me explain my problem: I have one MySQL data base where we have Employee full name & Date of birth, Date of Joining, Employee Code. On the …

0
44
Member Avatar for NigelT

I wish my Users to be seamlessly sent to an alternate URL using a redirect if the original URL is not available or times out. As a total newbie to JS & AJAX, I wonder if a solution is possible to detect failure to connect to URL_a and automatically redirect …

Member Avatar for NigelT
0
94
Member Avatar for digtokiller

Hello all, i need a movie/mediaplayer and i could imagine that it would be in javascript. all it should be able to do is to play mp3(music) and wmv(movie) files. it need a start,stop,pause and fullscreen button. anyone can give me a code just to place in my page? thnx …

Member Avatar for digtokiller
0
200
Member Avatar for abazoskib

[code]function loadSecondaryNetworks() { var secondaryNetworks = new Array('13','14'); var select_list_field = document.getElementById('network'); var select_list_selected_index = select_list_field.selectedIndex; var value = select_list_field.options[select_list_selected_index].value; value = value.split('-'); value = value[0]+''; for( var i=0;i<secondaryNetworks.length;i++) { var secondSelect = document.getElementById("secondaryNetwork"); clearSelect('secondaryNetwork'); if(secondaryNetworks[i] === value) { alert("test"); var newOption = document.createElement("option"); newOption.setAttribute("value","dep"); secondSelect.options.add(newOption); newOption.innerHTML = "Stats for …

Member Avatar for jomanlk
0
89
Member Avatar for MDanz

[code]<script language=javascript> function getSelText() { var txt = ''; if (window.getSelection) { txt = window.getSelection(); } else if (document.getSelection) // FireFox { txt = document.getSelection(); } else if (document.selection) // IE 6/7 { txt = document.selection.createRange().text; } else return; document.aform.selectedtext.value = txt; } </script>[/code] how do i identify the frames?.. …

Member Avatar for MDanz
0
106
Member Avatar for laursenj

i got a phpcode as ill like to have as a javascript code if anyone can help me... Php code: [CODE]<?php $now_ho = date("H"); //Daytime(6h~19h) if ($now_ho < 19){ if ($now_ho >= 6){ $vwimg = "hh_entry_oc1"; } } //Night (19h~6h) if ($now_ho <= 24){ if ($now_ho >= 19){ $vwimg = …

Member Avatar for laursenj
0
101
Member Avatar for sops21

I have a select box with information about people in it. When you click on their name in the select box, I'm trying to display information (Name, Address, Height, Weight) about them inside of a <div>. Here is what I have so far: [CODE]<form> <SELECT NAME="list1" MULTIPLE SIZE=20 class="set_width" id='developer'> …

Member Avatar for sops21
-1
157
Member Avatar for vedmack

I have a very weired problem (which is not easy to describe.. but I'll do my best): I have a html page with several forms , only one of the got the action="ComputeAndReturn" and the other forms got only name="" tag... the problem is that after i submit the form …

Member Avatar for McVaio
0
193
Member Avatar for MJ Pieterse

i have been trying to google for a solution on my problem, but no luck yet. i have a ajax modal pop up that i'm using on my asp.net page, but it's not working in Firefox Mozilla or Google Chrome. All seems to be fine with IE. Does anyone have …

Member Avatar for pritaeas
0
93
Member Avatar for leesyy

hi, i am currently working on aptana studio nokia wrt plugin to develop a mobile widget where i need to retrieve data from database. i've created a java servlet in eclipse to connect and execute query to the ms sql server 2005 database. in aptana, i am using js file …

Member Avatar for jasstion
0
165
Member Avatar for valonesal

One of the guys here were nice enough to help us put together a javascript code that displays dynamic information. [CODE]<div id="info"></div> <script type="text/javascript"> var request if(window.XMLHttpRequest){ request=new XMLHttpRequest() }else if(window.ActiveXObject){ request=new ActiveXObject("Microsoft.XMLHTTP")} request.open('GET','http://ourwebsite.com/index.php?get=1',false) request.send(null) document.getElementById('info').innerHTML=request.responseText </script>[/CODE] The problem we are having now is that it does not show the …

Member Avatar for codejoust
0
68
Member Avatar for laursenj

i got this javasciptcode: [CODE]<script type="text/javascript"> window.onload = function(){ var now = new Date(); var hour = now.getHours(); var vwimg = ""; if(hour < 19 & hour >= 6){ //Daytime(6h - 19h) vwimg = "http://www.whatever.com/link1"; }else if(hour <= 24 & hour >= 19){ //Night (19h - 6h) vwimg = "http://www.whatever.com/link2"; …

0
62
Member Avatar for bavs_02

hello to everyone, I have this code as a Grading System, but whenever I press a key on my keyboard, it shows Not a Number or NaN! Please help! I need this by two days! Please! :( [code=html]<html> <title>Grading System</title> <head> <script type="text/Javascript"> function totalM() { QM1 = parseInt(document.average.QM1.value); QM2 …

Member Avatar for bavs_02
0
217
Member Avatar for vidhyaponnusamy

Hi I am new to ajax but i have done one simple menu program using ajax i created one index page with menus if i click each menu i want that linked page in the same window now i am getting as a separate window that is i want to …

Member Avatar for Thirusha
0
215
Member Avatar for pandeyprashant

Hello everyone, please tell me how to disable print-screen option in mozilla firefox to save my web page.

Member Avatar for beeerlover
0
194
Member Avatar for ryy705

Hello, I added some filtering and pagination functionality to a large table with JQuery. It runs fine if I access it locally on the server. But it runs very slowly if I access it over the internet. I don't understand this. I thought all javascript execute in the browser. Why …

0
60
Member Avatar for cVz

Hi I use Visual 08 ASP.NET C# and JavaScript I would like to do the following validation on a text box the length MUST be 12 characters long in the following format LLLLLLNNNNNN Where L = Letters N = Numbers if the users input does not match the required format …

Member Avatar for guru_sarkar
0
1K
Member Avatar for gagan22

hi all, I am using one javascript function for confirmation in submitting link in database. As we know there is two option comes for confirmation for YES and NO. But when i am clicking NO button then it is submitting the request . But i want when i click only …

Member Avatar for omar83
0
328
Member Avatar for santhanalakshmi

hi, i am very new AJAX.i have some assignment. if i am clicking any menus means target location must be in [B]PARENT ITSELF[/B].it should not open another windows.As like frameset,but i dont need to use frameset.I want to use AJAX with javascript............ please give me a sample coding.

Member Avatar for codejoust
0
75
Member Avatar for claudiu_is

I want to write to input and click submit on a form, but don't know how to access the elements, given an id. Help :D

Member Avatar for claudiu_is
0
100
Member Avatar for lonelyman54

Hi, this error on IIS 6.0 (windows 2003 standart). Same code work at different server(iis). i think, update java script or install extension.

Member Avatar for shri1987
0
76
Member Avatar for Ghodmode

Is it possible to iterate through an anonymous array of strings with a for loop? Here's what I'm trying to do:[code]for ( i in ['country', 'city', 'state'] ) { doSomethingWithString(i); }[/code] What I want is the string, but what I'm getting is the index number of the array, which I …

Member Avatar for Troy III
0
1K

The End.