How to refer in ASP to the content of the text box portion of a dropdown list bo

390 byte By mpoincare at 2007-11-18 1:12:43
I have on a web page a dropdown list with 3 values:<option value "1" > United States </option><option value "2" > Canada </option><option value "3" > United Kingdom </option>Now If the first country in the list is selected with value ="1", what ASP code can allow...

DOS batch: current directory and current drive

246 byte By oob2 at 2007-11-18 1:13:32
Hi,<br/>If I have a DOS batch called "a.bat" under my D:\test\a.bat. Inside this batch file, how to get the directory and drive where a.bat resides? <br/>If I type something like this:<br/>C:\Program Files\>D:\test\a<br/>Thanks.

Page refresh for a <frameset>

161 byte By GazDev at 2007-11-18 1:14:53
I have a frameset with two frames. When I press F5 both frames are refreshed. I only want the active frame to refresh when I press F5.<br/>Is this possible?

VBScript/Windows Scripting Host shell

926 byte By Chamitha at 2007-11-18 1:18:18
Hi,I'm a newbie to VBScript and I'm trying to launch an application using the WScript.Shell Run command.Option ExplicitDim WshShellDim returnSet WshShell = Wscript.CreateObject("Wscript.Shell")return = WshShell.Run("cmd.exe")MsgBox(return)set WshShell = NothingI have a couple of questions....

ASP - [Microsoft][ODBC SQL Server Driver]Timeout expired.. pls help.

988 byte By ongwc at 2007-11-18 1:21:03
Hi all,I have this problem, everytime I load my ASP I got this "[Microsoft][ODBC SQL Server Driver]Timeout expired" error, I have checked and tried runing my "Stored Procedure/Query" in "MSSQL Query Analyzer" it only took less than 1 second to complete but how come the ASP said "timout expired"? Her...

Advance JavaScript Menus

371 byte By sarkbrain at 2007-11-18 1:23:06
Can somebody tell me from where I can download some advance JavaScript menus like those from www.msdn.microsoft.com ... the problem is that I can't copy that code and put it on my www bvecause they are designed to work only for www.msdn.microsoft.com ?? Did you saw JavaScript menus more cools t...

Can I Create modal Window?

491 byte By gorgeous at 2007-11-18 1:24:08
Hi friends,I want a modal window as we create in Vb Application.If I use showModaldialog( ) function - the problem is that i can not reload the dialog window after submit. this window is for one time??i tried another solution - i create a window using Window.open(), and OnBlur event set the focus to...

JavaScript -->HTML population

616 byte By martini at 2007-11-18 1:25:19
I am using javascript for populating the HTML pages with data. The data is filled in a java vector (mainVector). This vector object has multiple vectors inside it. Now this mainVector is returned by a bean that communicates with the database.In the HTML page, I have a next and a previous button, on...

Line feed and carriage return - Text Area of the HTML in JSP

408 byte By martini at 2007-11-18 1:25:20
The database that I am using consists of data that has a carriage return and line feed. I am accessing this data and associating it to a javascript variable. But when I try to access this variable, it gives unterminated string literal error. This is because, in the servlet that is generated from JSP...

Masked edit

297 byte By Detroit man at 2007-11-18 1:25:31
Hi all!<br/>Is there a way to put a text field in a phone format?<br/>The text field should be like "(999)999-9999"<br/>Where the user doesn't have to enter the "()-" characters it will be force by the application just like a mask edit field in VB<br/>Thanks for your help

asp and hyperlink

333 byte By gdmiller105 at 2007-11-18 1:25:41
I'm having some problems getting an asp to display a hyperlink that's stored in a database. It displays something like "www%2Edev-archive%2Ecom." <%=Server.urlEncode(rs("SITELINK").Value)%> is what I'm using to pull it out of the database. Is it a problem in the database, or...

Download and Install...

364 byte By lord loh at 2007-11-18 1:27:03
Has anyone got the google toolbar ( http://toolbar.google.com/).The toolbar is installed and appears near address bar of IE by just a visit. (After you say "I agree" to "Terms and Conditions")My Questions are=> How does this happen ?=> Does any one know of any script that can do this and is fr...

Please help

302 byte By mystichabor at 2007-11-18 1:31:59
I have 2 select boxes; the second select box is dynamically populated when the first select box is selected.1) <select name="oOption1" onchange="populatesecondbox()"><%while not rs.EOF %><option value="<%=rs("project_id")%><%=rs("name")%></option>...

Please, please, please help.

792 byte By mystichabor at 2007-11-18 1:32:01
I have 2 select boxes; the second select box is dynamically populated, from the database, when the first select box is selected. I don't know how to do get the data from the access using the client script. Is there other way? Thanks.1) <select name="oOption1" onchange="populatesecondbox()...

Using cookies

204 byte By tomuch at 2007-11-18 1:32:40
I have two swf.(Flash) files on my site. indexswf_1 & indexswf_2. Can I use cookies to direct the browser to open indexswf_2 if the veiwer has already visited the said page before, rather then indexswf_1.

program in system tray

167 byte By emeel at 2007-11-18 1:33:36
hi<br/>i want coutner written in java script to appear in the system tray and this counter will count seconds.<br/>thanks<br/>[Goodz13:Moved from Java Forum]

Disable right click

131 byte By jay_143 at 2007-11-18 1:33:39
I want to disablr mouse right click in my HTML page using Javascript please help me & Tell me the event which captures right click.

Can anybody give me further details about the message:"Expected literal constant

1224 byte By mpoincare at 2007-11-18 1:34:53
I am trying to add a new record in a ms access database located in the followingphysical path: C\Inetpub\wwwroot\plea\data\project.mdb on a windows2000 server. Ia using the following ASP code in order to do that: <!-- #include file="adovbs.inc" --><% Dim conn, sConnectionConst DB_CONNECTION...

Reading From An IFrame

445 byte By LTheobald at 2007-11-18 1:37:05
It's a reasonably simple question, but I haven't done much JavaScript in my life - So I need help!What I have are two pages. One is a page with a variable stored within a script tag in the head section of the page. I've got another page that consists of an IFrame, displaying the fir...

calling a function from an asp page generate an error message

1305 byte By mpoincare at 2007-11-18 1:38:23
I am trying to call a function that will generate a reference numberfrom an ASP Page. Here is the listing of the function:function ReferenceNumber() Dim Ref, tmpRef, weightTable Randomize Ref = Right(CStr(Day(Now)) & CStr(Month(Now)) & CStr(Second(Now) & CStr(Minute(Now)) & CStr(Year(Now)) &...

<input type=radio>

729 byte By Detroit man at 2007-11-18 1:41:17
Hi everybody!Does somebody knows if i have 4 radio button but i have to give them seperate names will i be able to select only one after i do that??Ex:<code>Male <input type='radio' name='male' value='m'>Female<input type='radio' name='fema...

Hiding Buttons when printing

981 byte By Goodz13 at 2007-11-18 1:43:55
I have a page with a form with input type text, select, etc.What I want to know is how do you hide butons and submit buttons.I found the following code, but it doesn't seem to workin my head tags.<style type="text/css" media="print"><!--.hide {display:none}--></style><style...

Removing an item from a listbox SELECT - OPTION

398 byte By Stephen Boston at 2007-11-18 1:44:16
I tried searching for this to no avail.Does anyone know of a way to remove an item from a html listbox.We have 2 lists on our page and we are transferring one item from one box to another. This works find. However, we want to be able to remove an item from one ofthe boxes.My head is flat from poun...

Dir Tree works in IE but not NS

2645 byte By Goodz13 at 2007-11-18 1:44:46
The following JavaScript works in IE but not Netscape. Is there an easy way to get it to work in both without detecting the browser? What about another scripting language?What it does is submits to a CGI that displays a directory Structure.<script language="JavaScript"><!-- var openDir...

activex control

1351 byte By vbnov at 2007-11-18 1:48:09
hi all i use label & timer control in my asp page.<object id="ietimer" width=39 height=39 classid="clsid:59ccb4a0-727d-11cf-ac36-00aa00a47dd2"> <param name="Interval" value="50"></object><object id="ielabel" width=150 height=150 classid="clsid:99b42120-6ec7-11cf-a6...

how it works?...(delay)

441 byte By atilla selem at 2007-11-18 1:48:53
hi,this seems an easy question in windows programmingbut since i'm a newbie in web pro, it became a must to ask it,How Sleep(seconds)...is coded in JavaScript...i wanna put my delay in a function while it puts some images one by one but with some delay...so which class should i use in JavaScrip...

js: focus() causes images to stop displaying... workaround?

947 byte By sylkro at 2007-11-18 1:49:14
hey all, i got this site and when it loads it displays the contents of the shop. so we get the images to load and display perfectly. there's an enlarge button which pops up a detail window for that item and a focus for it. however, if the images haven't fully displayed, they don't...

Editable Combo in HTML

308 byte By Rajan at 2007-11-18 1:53:56
Hello GurusHow can I create a Editable combo (user can select from a listor type directly) in HTML page? Also whne I enabled "Multi Selection" it changed as list box. Is there any way to create a multi selectoin combo box in HTML?Thanks in advance.Rajan...

POST without FORM? Help... :(

182 byte By randy909 at 2007-11-18 1:59:28
Is it possible in HTTP do action POST without<br/><form ... method="post"><br/> <input type=file...><br/> <input type=submit...><br/></form><br/>IE 6.0

Problem with window.focus

667 byte By vbasp at 2007-11-18 2:05:32
I have a problem. We know that we can open many windows with names to all windows by the command thru javascript:window.open('','name1','');Now I have opened suppose three windows with names win1, win2, win3. Now i want to check whether window win2 is opened or not and...

Can I hide <option> elements?

626 byte By Jeremy Davis at 2007-11-18 2:05:41
I have a <select> list with loads of <option> elements. I would like to provide an edit box that when typed into reduces the number of <option> elements to matching ones only.I wish to use JavaScript only, and I relaise I could use a large array, match the array, emply the <sele...

input to a html form input programatically

382 byte By mce at 2007-11-18 2:10:00
Hi,i don know if you understand what i am talking about, but this is what i want now. i want to input chracters to an input windows on a html page, the chracters are not taken from the keyboard as usual, but it is taken from a "soft keyboard" embedded as an activeX running on the same html page on I...

Linking within a HTML document

385 byte By Xeon at 2007-11-18 2:13:02
Now! Can someone be kind enough to show me a bare-bones, minimal, no frills example of how to jump to a certain location in a HTML document?(like those FAQ pages where there's questions and answers on 1 same page and when the user clicks a question, the user is taken to a location somewhere bel...

In Tree View, On Click on the Parent node, the child records needs to be loaded

661 byte By Nirmala123 at 2007-11-18 2:13:11
We are developing a thin client browser based application using struts frame work, where the User Interface contains Tree View. When I click on the Parent node, the controller should hit the database and get the child record.I am able to create the Tree view using Java script. I would like to know,...

Retrieveing indexes from multiple section list box

348 byte By ganeshjiyer at 2007-11-18 2:13:15
i have created a multiple select list box. how to retrieve the indexes of the selected items if i selected more than one item in the list box. presently the property "selectedIndex" gives the first selected item only. but i want the indexes of all the items selected. ie; if i select 3 items from a c...

Changing color of text hyperlink

386 byte By Xeon at 2007-11-18 2:14:27
I've attached my sample HTML page to this thread.When you open the page, you should see a text called "Red" and the font color of this text is blue.In the HTML code, how do I set this text color from blue to red?I know I can use a WYSIWYG editor to fix this, but I wanna know how to do this thro...

Button

242 byte By Detroit man at 2007-11-18 2:14:30
Hi all<br/>I want to put that text on my button but i want it to be on top of the other<br/>Here there a way to change line in a value of a button?<br/>EX:<input type=button name=top value=Hello[B]<br></B>??there

How do I convert this function?

695 byte By Bounty Bob at 2007-11-18 2:15:12
Hi All,The following function takes date input in the form of "d-m-yyyy hh:mm:s", verifies it and returns a date object.function str2dt (str_datetime) { var re_date = /^(\d+)\-(\d+)\-(\d+)\s+(\d+)\:(\d+)\:(\d+)$/; if (!re_date.exec(str_datetime)) return alert("Invalid Datetime format: "+ str_dateti...

Problem with a simple form

328 byte By Xeon at 2007-11-18 2:16:14
Now, I've attached my single-page form(only 3 simple controls)( to this thread.When the user types in his/her name in the text box and clicks the Submit button, the value(name, in this case), will be sent to my e-mail address. But for some reason, an error page always gets displayed instead. Th...

Classid

417 byte By lord loh at 2007-11-18 2:16:32
==>What exactly is CLASSID ?I see it when certain components are embeded on a webpage and the registy is full of it!==>Is it windows specific ?I ask this as I never knew of a registry on linux or mac==>These must be unique! So how are they assigned? or assumed?Does a CLASSID on my system fo...

getting the string.length in pixel / JavaScript

700 byte By Steve Baerthlein at 2007-11-18 2:17:10
hi there,can I get the amount of pixel out of the length of an string in JavaScript?I have a table with several columns and each of this column has a fixed height and width. Now I want to put some text into the columns (TDs) and if the text ist too long to fit into the column HTML will normally stre...

HTML Help

353 byte By Bentcereal at 2007-11-18 2:18:38
This has nothing to do with java but if you know where i can get the html code to get rid of a banner on an angelfire site or something let me know. I started a website for a game that i play and i don't want to pay for a .com website yet. so i need to the code to get rid of the banner that app...

ie address bar?

125 byte By tomreed at 2007-11-18 2:19:58
I am trying to blank out the link shown in the address bar of internet explorer when my pages load. Can it be done?:confused:

onmouseover doesnt work in netscape

279 byte By mryogi at 2007-11-18 2:23:48
hi <br/>i am developing a website in which i am using div for absolute positioning of div's<br/>onmouseover event results in showing of menu's<br/>onmouseover works well in ie and opera <br/>but not in netscape<br/>is there any method i can solve this problem

including a ".js" inside a ".js"

79 byte By stimpy_z at 2007-11-18 2:26:34
Is there some way to include a ".js" inside another ".js"?<br/>Ater Felis.

Javascript help please

1258 byte By mackins60 at 2007-11-18 2:27:43
I have written an array (quantity data from a cookie) to form fields with a for loop e.g. document.write('<td><input name="quant'+[i]+'" type="text" size="9" value="'+ ard[i] +'"></td>');I want to allow users to change any of the quantity fields and wh...

Require ur help on Access control!

231 byte By DarkVader at 2007-11-18 2:28:25
I have designed a web pages in JSP. I want to implement 3 types of access to my web site. <br/>Does anyone know how to implement an access control system in JSP? Any hints would be most welcomed.<br/>Thanks in advance!

Resize frame?

94 byte By daniel_ohlsson at 2007-11-18 2:28:38
How can I resize (or hide) a frame (with javascript) when clicking a button in the same frame?

Html 2 txt

282 byte By der124 at 2007-11-18 2:28:58
I was wondering if there are any algorithms for converting html to text. I've found some utilities, but those aren't what I need.<br/>I'm developing an application and one of the specs are HTML to Text Conversion.<br/>Your help would be greatly appreciated

Regarding XMLHTTP

489 byte By vbasp at 2007-11-18 2:29:34
I have made a chat application in ASP which features private chat, addition and deletion of buddies. Now I have made it by refreshing the page again and again and fetching the messages from the database. But since I am refreshing the page again and again the performance is affected. I would like to...