17,115 Topics
![]() | |
Hi, I have a HTML page with a form in it. I need to pass a parameter to my Visual Basic application if the signup was successful. My HTML form is simple: [CODE=HTML] <form action="signup.php" method="post" name="signup" onSubmit="return signup();"> <!-- Some text boxes and check boxes --> </form> [/CODE] On … | |
I trying [icode]Window.unload=setcookie(username,'xyz',365);[/icode] where [code=JavaScript]function setCookie(c_name,value,expiredays) { var exdate=new Date() exdate.setDate(exdate.getDate()+expiredays) document.cookie=c_name+ "=" +escape(value)+ ((expiredays==null) ? "" : "; expires="+exdate.toGMTString()) }[/code] not working....... can anybody help me? | |
Hello, I want to be able to echo a redirect url, based on a few variables. The content type of this php script is set as Header("content-type: application/x-javascript"); here is my code: [CODE] $row = mysql_fetch_row($result); echo "window.location = \"http://myurl.com/test/".$row[0]."/index.php?name=".$row[0]."\";"; [/CODE] Right now the url just outputs the url as … | |
Hello People! Hope, you solve my problem. I program in VB.NET and have a WebForm that contain a client Javascript counter (min:sec) to zero. I use this code to show up a counter. [CODE]<script language="javascript"> var up,down; var min1,sec1; var cmin1,csec1,cmin2,csec2; function Minutes(data) { for(var i=0;i<data.length;i++) if(data.substring(i,i+1)==":") break; return(data.substring(0,i)); } … | |
HI i would be more than thankful if anybody can tell me why this don't work, the problem is that the JS counter won't work when there are more then 1 entrys in mysql. With one entry the script runs fine. Heres the code: [code] <table> <? //Connect to mysql … | |
Hi, this is my first time doing this, I would like to know if there is a way of printing multiple Images on the client side. I am printing barcodes. I put the barcode as a image into a <div> and then use javascript to print the entire <div>. The … | |
check\uncheck all checkboxes in datalist control in asp.net with vb. [code] Protected Sub DataList8_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataListItemEventArgs) Handles DataList8.ItemDataBound If e.Item.ItemType = ListItemType.Item OrElse e.Item.ItemType = ListItemType.AlternatingItem Then Dim chkSelect As New CheckBox chkSelect = DirectCast(e.Item.FindControl("chkSelect"), CheckBox) chkSelect.Attributes.Add("onclick", "javascript:return Validate(this.name)") End If end sub [/code] getting … | |
hi guys. i require some assistance of yours again. what i want is this: there is a form (say on page xyz.php) in which i have , say, 5 text-fields. but i also hav a button. upon clicking whihc, i want another text-field to appear. i do now want to … | |
hi guys. i require some assistance of yours again. what i want is this: there is a form (say on page xyz.php) in which i have , say, 5 text-fields. but i also hav a button. upon clicking whihc, i want another text-field to appear. i do now want to … | |
i have two text boxes with the id as first and second respectively.In javascript i took the values using [code] var first=document.getElementbyId("first").value. var second=document.getElementbyId("second").value. var sum=first+second; [/code] But the problem is when i alert the sum i got the result as concatenated.i didn't get the original sum.I also tried it … | |
I am helping a friend make a site using FrontPage 2002. He wants to have on his home page at the top 3 slideshows next to each other and changing at same time automatically. I am not familiar with javascript but (with the help of some of the wonderful tutorials … | |
I don't know if this is the best section to ( ask questions ). So, excuse me. It's my first topic anyway, and I couldn't find any other section to ask for help. I believe you don't need any explanation about my problem, but here it is anyway: E.g : … | |
I have a DHTML ajax pop up that I would like to have centered in the page as it is currently left justified. Also, I would like it to only show the first time a user views the page. Here is the code: [CODE] <script type='text/javascript'> // Browser safe opacity … | |
Hi all! I have made a page with an input "file" field for the user to be able to upload an image. I have made an php script that takes care of the checking of the file and saves it to the server. The problem is that the browser caches … | |
I am using Oracle IAS 10 g for deploying my web application using a war files.. I want to access certain cgi files placed in under cgi bin besides WEB-INF on the oracle server Wht should be the entries in web.xml ?? Tried doing this but did not worked <servlet-name>CGIServlet</servlet-name> … | |
Hi, I have made a webpage with 3 divs and have put images / text on these pages which can be dragged. I want to limit the area in which the user can drag the text. The user will be allowed to drag the text from the left div to … | |
I do not clearly understand this concept of scripting. May someone please explain this to me and give me some applications of scripting. I have seen some examples of scripts but I am trying to really see what can be achieved through scripting. I hope am not jumpig the gun … | |
hi all, iam trying to retrieve video file from database bit its nat working here is my code[CODE]<? include_once('functions.php'); include_once('conn.php'); if(!empty($_GET['pid'])) { $pqry="SELECT * FROM vdo_cat where c_id='".$_GET['pid']."'"; $pres=mysql_query($pqry) or die(mysql_error()); $prow=mysql_fetch_array($pres); $len=strrpos($prow['videos'],'.'); $vtype=substr($prow['videos'],$len+1,5); $vname=($prow['videos']); if(isset($vtype)) { ?> <link href="site.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- body { margin-left: 0px; … | |
hi [COLOR="Green"]below the coding i not opened the popup window [/COLOR] Code: [code] <html> <head> <script language="JavaScript"> window.open('test.htm','myExample9','width=200,height=200'); } </script> </head> <body> <form action="test.htm" target="myExample9"> <input type="submit" value="Open new window"> </form> </body> </html> [/code] | |
did anyone know how to make a calendar by using javascript? actually i want to put calendar next to text field, so that, the user can easily select the date and the date will come out in the text field......help me plzzz..... | |
How would I make something like they have on BBC iPlayer with their scrolling images and text. Thanks, Unreal. :) | |
I am a newbie ...and i m working on a casetool....named Coolgen... Which Generate the jsp pages.... now i have added a html control on my page...... <input id="demo1" size = "10" onBlur="magicDate(this);validate1();" > Now there is a onther field.... which is ool gen field.........whose id is 'PUBLISH_DATE' i want … | |
Hi, I don't know much about javascripts. I am preparing a module in PHP in which I have to validate data entered by a user through javascripts. Now there is a field in which I have ensure that the value entered by the user already resides in the database. How … | |
actually, i want to display back all checked value in checkbox..In my form, there is some checkbox element where the user should check necessary value b4 submit the form....My problem is, once the user has submit the from, i can't retrieved only checked value.....it display all value including unchecked value … | |
hi i am new to java . there are many diiferent books i saw in java like javascript ,java programming,java soap,java data base and so......on what these and all whether i have read all these to learn java or how to proceed | |
Hi, I am developing a module in PHP where I have to ask user to enter dates in two fields. The catch is that the second date entered should come after the first one in a calendar year. eg- if first date field has value of June 2,2008 then the … | |
[code] <html> <head> <title>swapimage</title> </head> <script> var arr=["C:\Documents and Settings\Mohan Krishna\Desktop\ku20.gif","C:\Documents and Settings\Mohan Krishna\Desktop\b30.gif","C:\Documents and Settings\Mohan Krishna\Desktop\goku12.gif"]; i=0; function swap() { document.images[0].src=arr[i]; i++; if(i==3) i=0; setTimeOut("swap()",5000); } </script> <body bgcolor="white"> <marquee behaviour="alternate" direction="left"><img src="C:\Documents and Settings\Mohan Krishna\Desktop\UNUSED DESKTOP ITEMS\batman5.gif" onClick=swap()> </marquee> </body> </html> [/code] | |
i am using a JS code to obtain the cursor position on a text area..it works botyh in Mozilla and IE..But the problem is when am using this in IE, am getting an alert box which has the contents like [object] ...the code is like this [code] function getPositionForConstraint(node) { … | |
Dear All, I have a problem with delete confirmation code in java script. i m using this code: [code] <script LANGUAGE="JavaScript"> function confirmSubmit() { var agree=confirm("Are you sure you wish to continue?"); if (agree) return true ; else return false ; } </script> [/code] in Asp page on click of … | |
Can anyone help me? I tried using spry in dreamweaver CS3 for the first time and, upon completion of my site, found that it isn't working in some versions of IE. It opens perfectly in Firefox, Safari, and Opera. Different versions of Internet Explorer seem to carry out the code … | |
Hello everyone, I'm using Thomas Brattli's window script from DHTMLCentral.com. It works great in IE, but in firefox, I get some errors. First is "oWin[i].oWindow.moveIt is not a function". I don't see why it doesn't work fine in Firefox if it works fine in IE. The function definition is there, … | |
Dear All, I have a problem with delete confirmation code in java script. i m using this code: [code] <script LANGUAGE="JavaScript"> function confirmSubmit() { var agree=confirm("Are you sure you wish to continue?"); if (agree) return true ; else return false ; } </script> [/code] in Asp page on click of … | |
Hai, I've to develop a [COLOR="Red"]dynamic web[/COLOR] project in my college. I'm interested on doing something different but I've no idea on what topic to select. Can you suggest me a good topic for the same. Hoping for lots of good ideas. Thank you all in advance !!! | |
hi all.... using javascript i want to add 01+1 and my desired output is 02. my code is var t=01; var t2=t+1; alert(t2); the alert value is 2. I want 02....what will i do? thanks in advance.... | |
Hey Guys, I am new to PHP and know nothing of java scripts. I have to build a web page where user enters login information at the time of registration. I have taken help of a PHP tool to generate the required scripts. Now in that I have to incorporate … | |
Problem with javascript code in Mozilla firefox. [CODE]//Initial Code block PhaseID = cboPPPhase.options[cboPPPhase.selectedIndex].value; WorkflowRequest(PhaseID); //The function function WorkflowRequest(PhaseID) { //This is Ajax code block Http.get({url: "../ajax/Process.aspx?PhaseID=" + PhaseID , asynchronous:false, callback: WorkflowRequest_callback}); } //The callback function function WorkflowRequest_callback(Result) { if (Result.readyState==4) { if (Result.status==200)// if "OK" { WorkflowProcessResult(Result); } } … | |
hi, I have a application form in which i want to use exactly the same functionality used as in following link [url]http://my.naukri.com/manager/createacc2.php?othersrcp=5424&wExp=N[/url] I am an asp.net developer.I have no previous exp in javascript.Can any one suggest any method to implement this functionality using asp.net and javascript. | |
I have been studying Javascript for quite a while now and I've recently started some projects of my own to try it out. Although my script looks perfectly valid to me, the error console in my browser keeps reporting that my object data type-variables are undefined or null, but I … | |
hi, i have designed a navigation bar using pop up menus in fireworks and used the insert>image objects>fireworks html to put it on my web page. when previewing it in firefox and ie7 the popup menu doesnt work. looked at the coding in imported and it has an error im … | |
Hi. I'm using AJAX to make a menu for a guy's website I'm making for him. Anyway, he has a sports memorabilia store. I have a simple menu. There is a drop down box that you click on to select the sports league you want. Then below it is another … | |
i am trying to create a webpage. In creating webpage i have troubling by java script. I have to make a drop down button. The elements of drop down button are pakistan afganistan india. Question is, when i click on pakistan then cities of Pakistan must be show, same if … | |
In javascript we can swap only jpg images? Then what about the gif images. Please help me. By answering my first post so the second post will be solved automatically. | |
Hi, I want to know if it is possible for Internet Explorer to detect any action on the "Print Screen" key. The website needs its content to be secured as much as possible. The clipboard is being cleared for every fraction of a second, until this web-application is closed. There … | |
I have a function like this .. [CODE] function1() { if ( valuecboOrganization =="2" ) { alert(valuecboOrganization); fnGetDepartmentRequest(valuecboOrganization); return; } } function fnGetDepartmentRequest(organizationid) { debugger; Http.get({url: "../ajax/Process.aspx?organizationid=" + organizationid , asynchronous:false, callback: fnGetDepartmentRequest_callback}); } [COLOR="Red"]function fnGetDepartmentRequest_callback(Result)[/COLOR] { debugger; if (Result.readyState==4) { if (Result.status==200)// if "OK" { fnGetDepartmentRequestProcess(Result); } } } … | |
Hi, I need to get event handler's argument in Firefox3 - but it does not have any global 'event' variable like IE nor it passes an argument to the handler. How do I get this argument then??? [CODE=JAVASCRIPT] function doSomething(e) { if(!e) var e = event; //for IE alert(e); //It … | |
I use FP2000 as a html-editor. My navigation bars show hover buttons, but no way the cursor changes to a hand over these buttons. I tried several changes to the code but lack of knowledge keep me from results. A typical button in code looks like: [code=html] <applet code="fphover.class" codebase="./" … | |
This is the scrip, is working perfectly on IE but not on Firefox, can anybody help please, THX [code=JavaScript]<script type="text/javascript"> <!-- var sw_interval; var sw_x = 10; var sw_dx = 0; var sw_t = 10; var sw_cursor = 1; var sw_v; var sw_w; var sw_numItems; var sw_first; var sw_last; var … | |
Hey, Simple javascript problem: user enters desired domain name into "domain" field and submits, php scripts check if domain is available. If it is, a paypal add to basket button is written onto the page, however i cannot use php to get the content of the "domain" field and put … | |
Hi I am new to javascript. I have two drop downs used to reload the page displaying selected information. How do I get the OnChange function to pass year and user form the drop down. I also need to pass data in the array $month. [code] <html> <head> <body> <script … | |
I'm using Adobe Acrobat version 5.0, and even the simplest string functions aren't working. Let's say I have a field called "name" and I want to get the second letter in that field. The following code should work unless someone slipped a narcotic into my morning coffee: var f = … |
The End.