devxlogo

July 10, 2000

Determining a Client’s Time Zone

Question: I want to know from which time zone a client is accessing my site to control display of commercial ads. How can I find this out? Answer: In general,

Filtering On Node Name

Question: I have an XML document for news items. It has a tag which has 3 child nodes , and , of which there can be multiples with the one

Add vs String Concatenate

Question: I want to force the addition of two numbers in JavaScript, but they always just concatenate. There has to be a simple way to do this that I’m missing.

Using setAttribute Method of DOM Object in VB

Question: I am unable to use “setAttribute” method in Visual Basic. Following is the piece of code. Dim objXML As DOMDocumentDim objOrders As IXMLDOMNodeDim objOrder As IXMLDOMNodeSet objXML = CreateObject(“Microsoft.XMLDOM”)Set