devxlogo

We are an award-winning tech entrepreneurship website where trusted experts can provide value globally.

Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.

devxlogo

Trusted for 26 years

Over 30K Articles

1M+ Readers

Expert-reviewed

10K+ Tech Terms

As seen in:

microsoft logo
business_insider_logo
wired_logo
berkley
arstechnica_logo
hackernoon

The Latest

Rotate an Image

Question: I’m creating a drag and drop program to design kitchens. How can I rotate a single picture using JavaScript? Answer: You can’t rotate an image using JavaScript. JavaScript doesn’t

Insufficient Key Field Information Error With RDS

Question: I am using the Dataspace and DataControl objects to interact with a database through Internet Explorer 4 using form elements. The data displays perfectly when I use this query:

Disable Browser’s Menu Items

Question: Can I use JavaScript to disable the one of menu items of Internet Explorer or Netscape Navigator? Answer: Sorry, you can’t modify the menus in Internet Explorer or Netscape

Function for Adding Sales Tax

Question: What function would I use to take a given amount of money and add 6% sales tax? Answer: In JavaScript you could use: function addSalesTax(SubTotal){ return SubTotal * 1.06}

Cannot Use JavaScript to Get Server Date

Question: How do I get the server date using JavaScript that is embedded in an HTML file? Answer: You can use server-side code (like Perl, ASP, and so forth) to

Resolving IP Addresses

Question: I require Visual Basic code to resolve IP addresses stored in firewall logs generated by Checkpoint Firewall1. The aim is to report company access by user (assigned dedicated IP

Reference an External JavaScript File

Question: How do you reference an external JavaScript file from an HTML page? Answer: You can reference an external JavaScript file from your HTML page similar to the way you’d

Cannot Align Prompts and Alerts

Question: I have alerts and prompts intermingled on a page that collects information from the user. Is there a way to align them all so that they do not appear

Closing the User’s Browser Window

Question: I want to close the window that opened a new window using window.opener.close().The problem is when this code is executed, some confirmation message pops up. Is there any way

Convert a Number to a String

Question: How do I convert an integer/float type into a string? Answer: Converting numbers to strings is much easier than you think. Because JavaScript is an untyped language, the interpreter

Virtual Includes

Question: I’ve been told that you cannot have dynamic virtual includes inJSP. Is this true? For example, is something like this going tocause problems? Answer: JSP is still relatively new,

Servlets vs JSP

Question: What is the difference between servlets and Java Server Pages? Which is preferred? Answer: Servlets and Java Server Pages are complementary APIs, both providinga means for generating dynamic Web

Insert Persistent Breakpoints

VB won’t let you save a breakpoint when you have a lengthy debugging session. Use Debug.Assert to create persistent breakpoints that trigger when you are in the environment, but not

Print the Frame From JavaScript

You can print the entire document from the JavaScript using Parent.Print() function. Similarly, to print a frame from JavaScript, you can use parent.framename.print() in the code. For example, this code

Handle Collisions in DAO and RDO Data Access Techniques

RDO and DAO data access components handle collisions while updating a database differently than the ADO data access component. The rdoResultset and Recordset objects contain BatchCollisionCount properties that indicate how

Forward-Declaring a Namespace Member

Suppose you need to forward-declare class Interest, which is a member of namespace Bank. It would seem that all you need to do is use the class’s fully qualified name:

ActiveX Can’t Create Which Object?

When working on a large VB application that uses hundreds of COM objects, the “429 can’t create object” error doesn’t give you much help in determining which object could not

Real Time Programming: Myths and Reality

The term “real time” has become a buzzword, as in “real time stock quotes” or “real time database queries”. However, neither a database-oriented system nor a NYSE stock ticker running

Dynamic Versus Static Binding

Not every call of a virtual function is resolved dynamically. In fact, in many cases the compiler resolves the call statically, even if the function is declared virtual. For example:

Assign Toolbar Button Images at Run Time

When developing applications, quite often you end up experimenting with different toolbar icons to test how well they serve their purpose. If you change an icon in an ImageList, you

Count ASP Sessions

Question: I am trying to count the number of users (sessions opened) to a given app. It easy enough to increment an Application variable with Session_Onstart and decrement it with

Make Variable Available to All Pages

Question: Can I use a global variable in VBScript and make it accessible from any Web page? Answer: There is no such thing as a global variable in Web pages.

Find the Path of a Project With ASP

Question: Is there any way to programmatically determine the path of the current ASP page on the server? I am trying to access a specific text that I added to

Determine Which Submit Button Was Clicked

Question: I have a Web page with a form(action=sample.asp),frmProduct. The form has some textboxes (one of which is a key field, sav txtKey) and two submit buttons: one for retrieve

Reference a DLL From an ASP Page

Question: I wrote a DLL in Visual Basic and I want to use its functions in ASP. I created a server.CreateObject(“projectname.classname”) and tried to call some of the methods of

Get Count of Records in a Recordset

Question: How do I get the number of records from a “select * from dept where deptno = ..”? I want to know how many records are in my recordset

Leverage Office to Spellcheck RichText

Integrate Microsoft Word 97’s spellchecking capability into VB apps while maintaining formatting within a rich textbox. To test this code:1. Create a standard EXE project in VB.2. Add the RichTextBox

Handle Update Collisions in ADO Disconnected Recordsets

Data-access techniques using cached data on the client for updates is possible using disconnected recordsets. This technique generates collisions in some situations. However, the technique for dealing with collisions rows