Win a copy of Rust Web Development this week in the Other Languages forum!

chetan sisodiya

Greenhorn
+ Follow
since Nov 14, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by chetan sisodiya

This is my code below :

var notesDatabase;
var notesSessiona;
notesSessiona = new ActiveXObject("Notes.NotesSession");
notesDatabase = notesSessiona.GetDatabase("","");
notesDatabase.open();
var mailItem = notesDatabase.createDocument();
mailItem.Subject="hi";
mailItem.To = "";
mailItem.Cc = "";
mailItem.Body = "hi";
mailItem.display (0);


With this script my lotus notes desktop client is opening but I am also getting an error TYPE MISMATCH
Please tell me where I am wrong


Thanks
Chetan
Hello guys,
I have wrote the following lines of code for to send a report.
I am using mailItem.HTMLBODY for embedding the HTML content in my mail.


BUt this piece ofcode is not working.

I am getting a TYPE MISMATCH ERROR. PLease help.
I want lotus mail client to invoke where content should be that i have in HTML BODY and want to give to mail id explicitely there only.I just want to open the lotus mail clients.

notesSession = new ActiveXObject('Notes.NotesSession');
notesDatabase = notesSession.GetDatabase("","");
notesDatabase.open();
mailItem = notesDatabase.CreateDocument;
mailItem.Subject="<%= subject%>";
mailItem.To = "";
mailItem.Cc = "";
mailItem.HTMLBody = "<%= session.getAttribute("partone") + accTable + swerapp + swerca + sanityTeam%>";
mailItem.display (0);

Hello all,
below is the code for invoking outlook by java scrips .

I want to invole Lotus Notes, but unable to find the cede on gogle,

Please help

var outlookApp = new ActiveXObject("Outlook.Application");
var nameSpace = outlookApp.getNameSpace("MAPI");
mailFolder = nameSpace.getDefaultFolder(6);
mailItem = mailFolder.Items.add('IPM.Note.FormA');
mailItem.Subject="CUSTOMER SERVICE";
mailItem.To = document.frmM.txtEmail.value;
mailItem.HTMLBody = "SOME HTML CODE";
mailItem.display (0);

10 years ago
JSP
tnku guys.

How can i deploy it on windows?
yeah I have been through it. It is covered under GNU license. I want to use for office purpose, and even we can sell it later. I think its not possible to sell ant app developed on Lucene.


Hello friends

I need to make a local search engine where we can people can insert their text or logs came during testing, and we can give the solution for their problem. Its like making an ISSUE TRACKER Web Tool.

We gonne save the solution of for logs in data base but its shuld give back all the possible solution matching with the problem given in search box.

Is there any exixting library I can use for this with little modification ?


Thanks
Hello all, i m using 1 dropdown and a textarea to display the data i recieved from database using ajax.


MY AJAX CODE TO INSERT IN ELEMENT ----

document.getElementById("add_detail").innerHTML =response;

document.getElementById("complete_detail").innerHTML =response1;


MY HTML CODE ----------

<div name ="add_detail" id="add_detail">
<select name="add_detaila" id="second_drpdwn" onchange="GetSelectedItem2(this)" >
<option>Select City</option>
</div>


<div id="complete_detail" name="asd">
<textarea id="asd" name="comp_det" rows="30" cols="70" >
</textarea>
</div>



But the above code is not working, onselecting valueu from the dropdown textarea is disapeearing.

However If I add a dropdown list of the same id or a diff id proper result are being displayed.
My Edited code is -


HTML COde----

<div name ="add_detail" id="add_detail">
<select name="add_detaila" id="second_drpdwn" onchange="GetSelectedItem2(this)" >
<option>Select City</option>
</div>

<div name ="add_detail" id="add_detail">
<select name="add_detaila" id="second_drpdwn" onchange="GetSelectedItem2()" >
<option>Select City</option>
</div>


<div id="complete_detail" name="complete_detail">
<textarea id="asd" name="comp_det" rows="30" cols="70" >
</textarea>
</div>




Can anyone tell me hows that possible. Because the name and id of both the dropdown here are same. NOw th text area is showing proper result.
FILE NAME - aja1.jsp
I am using AJAX for sending parameter on the same page using GET Method.

How can I process those parameter in my JSP code and get back the resuld in responseText Object.
Forexample - In PHP we can echo pramater to access by responseText Object.

My code is given below...



<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
function sendparm(){


var xmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
var ajaxDisplay = document.getElementById('aj_id');
ajaxDisplay.innerHTML = ajaxRequest.responseText;

}
}
var nm= document.form1.txt1.value;
var url = "aja1.jsp"
var queryString= "?name=" + nm;
xmlhttp.open("GET",url+queryString,true);

xmlhttp.send(null);
}
</script>
<title>JSP Page</title>
</head>
<body>



<form name="form1" method="get" action="aja2.jsp" value="form1">
<input type="text" value="" name="txt1"></input>
<input type="button" value=click" name="btn1" onclick="sendparm()"></input>

<%
String str = request.getParameter("name");
//////WHAT SHOULD I DO NOW TO PROCESS THIS STR VARIABLE AND TO ACCESS IN AJAX TO INSERT IN HTML
%>

</form>

<div id='aj_id'>Your result will display here</div>

<input type="text" value="" id="asdaasd" name="txt2"></input>

<h1>Hello World!</h1>
</body>
</html>
10 years ago
JSP

posted Today 1:49:17 PM 0
uday singh rajpurohit wrote:
Thanks Himanshu


Himanshu, the link you gave is I m familior with already. My problem is that I am not senting parameter to a diff page. I m posting dropdown's parameter on the same page. and on eveny ONCHANGE event on the first dropdown list proper result are reflectiung back on second parameter but the value of second drop down is set set back to default selected calue.. Is should be what I selected before.



Can any once plese send the code to populate the value in drodown list after submitting form.
10 years ago
JSP

uday singh rajpurohit wrote:Thanks Himanshu



Himanshu, the link you gave is I m familior with already. My problem is that I am not senting parameter to a diff page. I m posting dropdown's parameter on the same page. and on eveny ONCHANGE event on the first dropdown list proper result are reflectiung back on second parameter but the value of second drop down is set set back to default selected calue.. Is should be what I selected before.
10 years ago
JSP
Hi Geeks,

I m very new to JSP and java script.
I have a 2 dropdown list. In both drop down i m fetching some data from data base.
In SECOND DROPDOWN LIST I have to fetch data depending on the selected item of the SECOND DropDOwn list. I have succeeded in that.

PROBLEM :
But when I select an item in first dropdown list, i m posting fors data to jsp code,and proper resuld are reflecting back. But on every ONCHANGE event on my first dropdown list page is getting reloaded and the FIRST DROPDOWN list data is get emptied. I mean it should contain what I have selected after posting parameter to jsp.
How can I stop from this or how can i retain value in the dropdown list. Is should get set back to default....
10 years ago
JSP