Jump to content

pulpfiction

Members
  • Posts

    1,210
  • Joined

  • Last visited

Posts posted by pulpfiction

  1. Hi guys, This is really a great forum.. Well this is about meFull name: HarishAlternative name(s): N\aBirth date(dd/mm/yyyy):13/06/1983Gender: MaleZodiacal sign: GeminiCountry of residance: US (been here for 1 yr) From IndiaState of residance:OklahomaHeight:5' 10''Weight:160 lbsEyes:BlackHair:BlackSmoking/Drinking/Drugs:No/No/NoFavourite Music:Rock, hip hopFavourite Movies:Saw, Pulpfiction, Forrest Gump.......Interest:Basket Ball, Pets: None

  2. This is the full page code, i am testing this in a seperate page.Dim oApp As Outlook.Application = New Outlook.ApplicationClass Dim oname As Outlook.NameSpace = oApp.GetNamespace("MAPI") Dim ofolder As Outlook.MAPIFolder Dim cntfld As Outlook.MAPIFolder = oname.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts) cntfld.Items.Sort("Email1Address") Response.Write(cntfld.Items.Item(1)) Dim t As Outlook.ContactItem t = cntfld.Items.Item(1) Response.Write(t.Email1Address)What i noticed is that when i comment the code in the red, i get the o/p somthing like this. for the line in GREENSystem.__ComObjectBut when I uncomment the RED part it is not displaying the page. Loading take a very long time, what could be wrong.......

  3. Dim oApp As Outlook.Application = New Outlook.ApplicationClass Dim oname As Outlook.NameSpace = oApp.GetNamespace("MAPI") Dim ofolder As Outlook.MAPIFolder Dim cntfld As Outlook.MAPIFolder = oname.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts) cntfld.Items.Sort("Email1Address") Response.Write(cntfld.Items.Item(1)) Dim t As Outlook.ContactItem t = cntfld.Items.Item(1) Response.Write(t.Email1Address)

  4. I want to access the Outlook in the local system, think can be done without any middleware. Found a reference MS Outlook 9.0 in COM. another change was, "impersonate=true". This code below works to a certain extent but i'am not able to get the mail ID's, any suggestions. Thanks Dim oApp As New Outlook.ApplicationDim oname As Outlook.NameSpace = oApp.GetNamespace("MAPI")Dim cCalendar As Outlook.MAPIFolder = oname.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar)Dim ofolder As Outlook.MAPIFolderDim cnt As Outlook.MAPIFolder = oname.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts)Response.Write("Folder Name = " + cnt.Name)Response.Write("<br>")Response.Write("Items in the Folder = ")Response.Write(cnt.Items.Count.ToString)Response.Write("<br>")Response.Write("<li>" + cnt.Items.Item(1).ToString)

  5. Hi Guys,I am trying to get the mail IDs from the contacts from the MS OUTLOOK. This is the code i am using now, but not working....ERROR:System.NullReferenceException: Object reference not set to an instance of an object.

    Dim oApp As Outlook.Application            Dim oname As Outlook.NameSpace = oApp.GetNamespace("MAPI")            Dim ofolder As Outlook.MAPIFolder            Dim cntfld As Outlook.MAPIFolder = oname.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts)oname.Logon("username", "password", True, True)            Dim addr As Outlook.AddressList = oname.AddressLists.Item(0)            ofolder = oname.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts)            Dim oMailItem As Outlook.MailItem = oApp.CreateItem(Outlook.OlItemType.olMailItem)            oMailItem.To = ofolder.Items.Item(0)            oMailItem.Subject = "This is a test mail"            oMailItem.Body = "This is a test Mail"            oMailItem.Save()            oMailItem.Send()

    TIA

  6. Try this....<script language="javascript">function test1(va){var opt = va.selectedIndex;var val = va.options[opt].value;document.write(val);}</script><SELECT name="opt" style="WIDTH: 200px" onchange="test1(this)"><OPTION value="option 1">option 1</OPTION><OPTION value="option 2">option 2</OPTION><OPTION value="option 3">option 3</OPTION><OPTION value="option 4">option 4</OPTION></SELECT>

  7. Well, In general the URL query string is used to pass few values to another page like this..www.domain.com?id=123&name=test(the variables are after the "?")fewer data can be sent, But if you have many values to be passed, the url will be too long, (not preferred)..I guess you too have many variables.I'm Not pretty sure, I could be wrong

  8. Hi, This is what WIKIPEDIA says

    In December 1995 Sun Microsystems and Netscape Communications Corporation introduced [1] JavaScript. In March 1996 Netscape Communications Corporation released Netscape Navigator 2.0, which featured support for JavaScript. Due to the de facto success of JavaScript as a client-side scripting language for web pages, Microsoft developed a "roughly" compatible language known as JScript, which was included in Internet Explorer 3.0, released in August 1996.Netscape submitted the JavaScript specification to Ecma International for standardization; the work on the specification, ECMA-262, began in November 1996. The first edition of ECMA-262 was adopted by the ECMA General Assembly of June 1997.ECMAScript is the name of the scripting language standardized in ECMA-262. Both JavaScript and JScript technologies aim to be compatible with ECMAScript, while providing additional features not described in the ECMA specification
    Check out the site belowhttp://en.wikipedia.org/wiki/ECMAScript
  9. Hi,The JS function will retrive the values that you pass using the query string<html><script type="text/javascript">var qsParm = new Array();function qs() {var query = window.location.search.substring(1);var parms = query.split('&');for (var i=0; i<parms.length; i++) { var pos = parms.indexOf('='); if (pos > 0) { var key = parms.substring(0,pos); var val = parms.substring(pos+1); qsParm[key] = val; document.write(qsParm[key]) document.write("<br />") } }}</script></head><body onload="qs()"></html>HTH

  10. Hi try this codefunction deci(){ var decimals=2 //# of decimal digits var original_number=12345.6789 // sample data var result1 = original_number * Math.pow(10, decimals) var result2 = Math.round(result1) var result3 = result2 / Math.pow(10, decimals) document.write(result3)}HTH

  11. Hi Why do you want to write in bits and pieces, write it togeather in one function,<script type="text/javascript">var mutu=50function cnt(){mutu=mutu+1if(mutu == 52){document.write("reached 52")}}</script><form><input type="button" onclick="cnt()" value="Lisää"></form>

×
×
  • Create New...