Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: emozley
  • Content: Threads
  • Order by date
  1. emozley

    Building a dynamic SQL statement based on contents of an array

    Hi, After years and years of procrastinating I have finally decided to bite the bullet and convert my ASP classic code to PHP. Some bits are relatively straightforward but I am having real problems understanding how best to work with the results of sql queries. In ASP classic I can dump the...
  2. emozley

    Calling a function with a fileUpload form

    Hi I have a page which lets me upload files using HTML5/JavaScript. Files get uploaded after being dragged and dropped. This part is working very well. <!DOCTYPE html> <html> <head> <title>dnd binary upload</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">...
  3. emozley

    Sending email with ASP classic

    Hi Although the code is ASP I am posting in the IIS forum as the code works on my Windows 2003 server but not my Windows 2008 server with IIS7. My code is as follows: Set myMail=CreateObject("CDO.Message") myMail.Subject="Test Email" myMail.From="Ed Mozley <xxx@xxx.com>" myMail.To="Ed...
  4. emozley

    Outlook addin ItemAdd event not being triggered

    Hi, I wrote an Outlook macro to make sure an email was filed in the correct sent items folder. To distribute it to all staff it seems the best way to do this is to convert it to an Outlook add-in which I am attempting to do in Visual Studio 2010. The problem is that the ItemAdd event is not...
  5. emozley

    Reading RSS feed

    Hi I am trying to read an RSS feed with the following: Set xmlDOM = CreateObject("MSXML2.DOMDocument") xmlDOM.async = False xmlDOM.setProperty "ServerHTTPRequest", True xmlDOM.Load("http://www.bwbllp.com/events/feed/") Set itemList = xmlDOM.getElementsByTagName("entry") For Each...
  6. emozley

    GPO scripts best policy

    Hi I have a folder on a server where I keep all my software installs. So for Java for example I have the .exe and a little batch file which runs that .exe with various parameters. If I want to set up a group policy to install Java on all machines when they are turned on should I put a...
  7. emozley

    Building a menu with hyperlinks

    Hi, I have a table in my database that contains an id and a Title field. id | Title ---------- 1 Golf 2 Football 3 Rugby I want to list all the records but displayed in a table which is going to be my left hand menu. Each item on my menu needs to be a hyperlink which contains the id...
  8. emozley

    Inserting images with jQuery

    Hi I have found some code to insert images onto a canvas using jQuery. Now I am trying to figure out if it's possible to add extra info the the images inserted - width, height, title, id. Any ideas? var canvas = $("#c"); var c = canvas[0].getContext("2d"); var path =...
  9. emozley

    Putting a canvas in a div

    Hi, I have a page with 4 divs - a header, left, right and footer. Left and right are held in another wrapper div. I am trying to draw a grid in my right div but am not quite sure how to this. My code so far is as follows: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC...
  10. emozley

    Calling a function to format text C#

    Hi, In my .aspx page I have some code to display some data from a SQL query: <asp:Label ID="EventDetailsLabel" runat="server" Text='<%# Eval("EventDetails").ToString().Replace(Environment.NewLine,"<br />") %>' CssClass="upcomingevents_details" />...
  11. emozley

    Waiting for a div to exist before populating

    Hi I have a link which runs an AJAX request which opens a DIV that contains an HTML form that contains other divs. I then run call a second javascript function which populates the form. What I have discovered is that unless I have some kind of pause the function that populates the form comes...
  12. emozley

    Imports query

    Hi, In my code file I have a line: Imports DataConnection The word DataConnection is underlined in green and it says it can't be found. I have a file called DbConn.vb which contains the following: Imports Microsoft.VisualBasic Imports System.Data.Odbc Imports System.Data Imports...
  13. emozley

    Ping to see if machine is on

    Hi I have a VB.NET program that audits the software on a PC and also detects it's operating system. I have found that if it tries to audit a PC that is switched off the program can get stuck so I have tried to ping a machine first and if it's unresponsive to move on to the next PC. Generally...
  14. emozley

    Running a procedure on a loop

    Hi I have got some code that returns a list of all applications installed on a PC. I am now trying to run it across all PC's on my network by loading all of my PC names into a SqlDataReader and then looping through that. What I am finding is that the procedure is being called before the last...
  15. emozley

    Multi line sql

    Hi I am trying to execute a IF NOT THEN...BEGIN....END statement stored in a string in VB.NET but am not having much luck. It says there is an error at "BEGIN": strSQL = "IF NOT EXISTS(SELECT * FROM AppsCheck_Apps WHERE ApplicationName='" & InstalledPrograms(i).DisplayName & "' " _...
  16. emozley

    Building a folder tree from a database

    Hi, Does anyone know of any good/simple examples of building a folder tree based on the contents of a table? FolderID | ParentID | Name -------------------------- 1 0 My Documents 2 1 Personal 3 1 Work 4 3 Confidential 5...
  17. emozley

    Random string not so random!

    Hi, I am working on a system that creates a logical file structure with folders stored in a database. I each folder has a unique identifier. My function to create this is with code I got from the Microsoft website: Function CreateGUID() Randomize Timer Dim tmpCounter,tmpGUID Const...
  18. emozley

    Updating records with incremental counter

    Hi I am trying to get some records in date order and then update a field OrderOnSchedule with an incremental counter - I can't see where I am going wrong? DECLARE @counter int SET @counter = 0 WITH q AS ( SELECT ScheduleDocuments.DocID, Documents.Title...
  19. emozley

    Deleting records with a join in the criteria

    Hi there, I am trying to delete records from a table called ScheduleDocuments but I don't want to touch the Documents table - I'm just using that to check the FolderID. If I do a SELECT statement it shows the records I want to to delete but when I try and do a DELETE statement it says there is...
  20. emozley

    GPS Security

    Hi, I am trying to add some security to a web app I am writing which will mean if you try and run it more than 100m from a certain location it will redirect to a page gpsfail.asp otherwise it will go to loginform.asp If you are not logged in it redirects to a page that has this code: <body...

Part and Inventory Search

Back
Top