|
You would call the Javascript function via the OnMouseOver event from the table cell itself-
<td OnMouseOver='function()'>Dummy Copy</td>
Try that out. Good luck!
Ranjit Viswakumar
Professional Services Specialist
rviswakumar@hostmysite.com
HostMySite.com[^]
|
|
|
|
|
I have a vb.net web service that is using a COM object for a 3rd party piece of software. Currently, if you call the web service multiple times at the same time, it will run up to the point that it calls a function of the COM object. At that point, each web service call sits in line and waits for the previous web service call to finish its call to the COM object before the next one is able to execute its call to the COM object.
This works fine when I have a windows application that is utilitzing a COM object and there are multiple calls at the same time to the same COM object.
What do I need to do so that the COM object can be called by multiple web service processes at the same time?
|
|
|
|
|
Hi all…
i was wondering how i could integrate SnapCasa (thumbnail grabber) into a Guest book or scmething, I have tried to use the SnapCasa sample page
in what I am trying to do but no joy and I was wondering if you could help me out please…
My Idea is like this below Ie.
1) Input Page
Name: <Input>
Location: <Input>
Site Info: <Input>
Web Address www.: <Input for SnapCasa>
2) Info sent to MySQL
Louis
UK
We have over 570 Microsoft Agents To Download ect ect.
1kings.co.uk
3) Output Page
Name: Louis
Location: UK
Site Info: We have over 570 Microsoft Agents to Download ect ect.
SnapCasa Output
(SnatCasa.com code) below where it shows code=1000 it is only for that Registerd site signup for a free account
<head>
<title></title>
<script type="text/javascript">
function showSnapshot() {
var website = document.getElementById("Textbox").value;
var requestString = 'http://snapcasa.com/get.aspx?code=1000&size=l&url='
document.getElementById("snapshot").src = requestString + website;
}
</script>
</head>
<body>
Website URL: <input id="Textbox" type="text" /><input id="Button1" type="button" value="Submit" onclick="showSnapshot()"/>
<br />
<br />
<img id="snapshot" src="" />
</body>
can you help..
My Regards
Louis..
|
|
|
|
|
Hi
I have a problem with the character between the C and the s at PC’s it is stored at the database and an email that the page send as PCâ?Ts and other times as PC’s
I read somewhere that it might be an encoding problem, but if that is the case where I should start looking?
Thanks in advance
|
|
|
|
|
Hi,
take a look at the database. If it is stored there correctly then it is an problem of the email (or while reading from the db). If the error is in the database, then the problem could be the way the value is stored or that the codepage of the db doesn't match.
Regards
Sebastian
|
|
|
|
|
It is stored incorrectly at the database also, the information at the database and the email came from a text field from a page at the site. It is the body from a mail distribution system.
|
|
|
|
|
Hi All,
I am developing a helpdesk application. I need a tool for displaying messages and replies just like codeproject displays the posts and replies in a tree manner. Is there any tool available for that?
thanx in advance.
regards,
Paramhans Dubey
|
|
|
|
|
Have you looked here[^]
only two letters away from being an asset
|
|
|
|
|
HI all,
I am getting this particular error:
-------
ADODB.Recordset error '800a0cc1'
Item cannot be found in the collection corresponding to the requested name or ordinal.
/uctipresentation/pscheduler/abcweek.asp, line 100
-------
The filename: abcweek.asp
The source code:
<!--METADATA TYPE="typelib" file="c:\program files\common files\system\ado\msado15.dll"-->
<%@ Language=VBScript %>
<%If Len(Trim(Session("USERNAME"))) = 0 Then Response.Redirect "access_denied.asp"%>
<%
strPagolConn = Session("PAGOLCONN")
strDevConn = Session("DEVCONN")
%>
<HTML>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>APIIT B.Sc Presentations & EOS Interview/Midpoint Inteview Schedules</title>
</head>
<body bgcolor="#FFFFFF">
<% if session("userlogin") > 0 then %>
<%if request("weekid") <> "" then%>
<%id=request("weekid")%>
<font face="Verdana, Arial, Helvetica, sans" size="3"><b>
<%Response.write "Week " %>
<%Response.write id %>
</font></b>
<table border="0" width="614" height="1" cellpadding="0">
<tr>
<td width="12%" height="1" align="center" bgcolor="#D3D3D3">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">Student ID</font></b></p>
</td>
<td width="8%" height="1" align="center" bgcolor="#D3D3D3">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">Type</font></b></p>
</td>
<td width="9%" height="1" align="center" bgcolor="#D3D3D3">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">SUP</font></b></p>
</td>
<td width="9%" height="1" align="center" bgcolor="#D3D3D3">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">ASS</font></b></p>
</td>
<td width="14%" height="1" align="center" bgcolor="#D3D3D3">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">Time</font></b></p>
</td>
<td width="8%" height="1" align="center" bgcolor="#D3D3D3">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">Day</font></b></p>
</td>
<td width="10%" height="1" align="center" bgcolor="#D3D3D3">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">Location</font></b></p>
</td>
</td>
<td width="10%" height="1" align="center" bgcolor="#D3D3D3">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">Release</font></b></p>
</td>
</tr>
</table>
<table border="0" height="24" cellspacing="3" cellpadding="0" width="614">
<%
dim orsbc3
set orsbc3 = server.CreateObject ("ADODB.RECORDSET")
dim orsbc4
set orsbc4 = server.CreateObject ("ADODB.RECORDSET")
JobOfferSQL1 = "SELECT distinct(type),locale,studid,release,time,dayid,day FROM present_test where weekof='" &id& "' and entryid='1000' order by dayid, time"
orsbc3.Open JobOfferSQL1,strDevConn,1,3%>
<%do while not orsbc3.EOF %>
<tr>
<td width="12%" height="18" align="left" bgcolor="#CCE4FF">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">
<A HREF="presmain.asp?id=<%=orsbc3("studid")%>">
<%Response.Write orsbc3("studid")%>
</td>
<td width="8%" height="18" align="left" bgcolor="#CCE4FF">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">
<%Response.Write orsbc3("type")%>
</td>
<td width="9%" height="18" align="left" bgcolor="#CCE4FF">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">
<%Response.Write orsbc4("PermanentSupervisorID")%>
</td>
<td width="9%" height="18" align="left" bgcolor="#CCE4FF">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">
<%Response.Write orsbc4("PermanentAssessorID")%>
</td>
<td width="14%" height="18" align="left" bgcolor="#CCE4FF">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">
<%Response.Write orsbc3("time")%>
</td>
<td width="8%" height="18" align="left" bgcolor="#CCE4FF">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">
<%Response.Write orsbc3("day")%>
</td>
<td width="10%" height="18" align="left" bgcolor="#CCE4FF">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">
<%Response.Write orsbc3("locale")%>
</td>
<td width="10%" height="18" align="left" bgcolor="#CCE4FF">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">
<%Response.Write orsbc3("release")%>
</td>
<%
orsbc4.close
orsbc3.MoveNext
loop
orsbc3.close
%>
</table>
<b><font face="Verdana, Arial, Helvetica, sans" size="1"><font color="#FF0000">
Note: Should there be any changes, kindly keep us informed latest by Friday before 12pm</font>.
</font>
<font face="Verdana, Arial, Helvetica, sans" color="#008000" size="1">
<p style="margin-top: 0; margin-bottom: 0">
MIP/EOS = Midpoint / End of Semester Interviews
<p style="margin-top: 0; margin-bottom: 0">
FYP = Final Presentation
</html>
</table>
<%else%>
<b><font face="Verdana, Arial, Helvetica, sans" size="2">
<%response.write "Welcome "%>
<%response.write(a.names)%>
<%response.write " to"%>
<p>
<%response.write "B.Sc Presentations & EOS Interview/Midpoint Interview Schedules Console."%>
<%Set a = CreateObject("dateway.Manipulation")
b = a.check(Date)
c = a.check1(Date)
d = a.check2(Date)
%>
<p>
<%response.write "Presentations Today " & b%>
</p>
<table border="0" width="614" height="1" cellpadding="0">
<tr>
<td width="12%" height="1" align="center" bgcolor="#D3D3D3">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">Student ID</font></b></p>
</td>
<td width="8%" height="1" align="center" bgcolor="#D3D3D3">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">Type</font></b></p>
</td>
<td width="9%" height="1" align="center" bgcolor="#D3D3D3">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">SUP</font></b></p>
</td>
<td width="9%" height="1" align="center" bgcolor="#D3D3D3">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">ASS</font></b></p>
</td>
<td width="14%" height="1" align="center" bgcolor="#D3D3D3">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">Time</font></b></p>
</td>
<td width="8%" height="1" align="center" bgcolor="#D3D3D3">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">Day</font></b></p>
</td>
<td width="10%" height="1" align="center" bgcolor="#D3D3D3">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">Location</font></b></p>
</td>
</tr>
</table>
<table border="0" height="25" cellspacing="3" cellpadding="0" width="614">
<%
dim orsbc47
set orsbc47 = server.CreateObject ("ADODB.RECORDSET")
dim orsbc38
set orsbc38 = server.CreateObject ("ADODB.RECORDSET")
JobOfferSQL1 = "SELECT distinct(type),locale,studid,time,day FROM present_test where weekof='" &d& "' and day='" &c& "' and entryid='1000' order by time"
orsbc38.Open JobOfferSQL1,strDevConn,1,3%>
<%do while not orsbc38.EOF %>
<tr>
<td width="12%" height="19" align="left" bgcolor="#CCE4FF">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">
<A HREF="presmain.asp?id=<%=orsbc38("studid")%>">
<%Response.Write orsbc38("studid")%>
</td>
<td width="8%" height="19" align="left" bgcolor="#CCE4FF">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">
<%Response.Write orsbc38("type")%>
</td>
<%
orsbc47.Open "select PermanentSupervisorID,PermanentAssessorID from user_student where userID ='" &orsbc38 ("studid")& "';",strPagolConn
%>
<td width="9%" height="19" align="left" bgcolor="#CCE4FF">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">
<%Response.Write orsbc47("PermanentSupervisorID")%>
</td>
<td width="9%" height="19" align="left" bgcolor="#CCE4FF">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">
<%Response.Write orsbc47("PermanentAssessorID")%>
</td>
<td width="14%" height="19" align="left" bgcolor="#CCE4FF">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">
<%Response.Write orsbc38("time")%>
</td>
<td width="8%" height="19" align="left" bgcolor="#CCE4FF">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">
<%Response.Write orsbc38("day")%>
</td>
<td width="10%" height="19" align="left" bgcolor="#CCE4FF">
<p style="margin: 0"><b><font face="Verdana, Arial, Helvetica, sans" size="2">
<%Response.Write orsbc38("locale")%>
</td>
<%
orsbc47.close
orsbc38.MoveNext
loop
%>
</table>
<b><font face="Verdana, Arial, Helvetica, sans" size="1"><font color="#FF0000">
Note: Should there be any changes, kindly keep us informed latest by Thursday before 12pm</font>.
</font>
<font color="#008000" size="1">
<p style="margin-top: 0; margin-bottom: 0">
MIP/EOS = Midpoint / End of Semester Interviews
<p style="margin-top: 0; margin-bottom: 0">
FYP = Final Presentation
</html>
</table>
</table>
</table>
</table>
<%end if
%>
<%else%>
<p></p>
<p></p>
<p></p>
<font color="#000000">
<b><font face="Verdana, Arial, Helvetica, sans" size="2">
<%response.write "Invalid Loging or Password."%>
<p>
<%response.write "Forgot your Password? Contact at"%>
<a href="mailto:webspace@apiit.edu.my">webspace@apiit.edu.my</a>
<p>
<table>
<font face="Verdana, Arial, Helvetica, sans" size="2">
<INPUT type="button" align="center" value=" Back " name="B1" onClick="history.back(); ">
</font>
</table>
</font></b></font></b></b></b></font></font></font></font></b></b></b></b>
</font></font></font></font></b>
<%end if%>
------------------------------------------------------------------------------------
I believe the problem here is that the records are empty so its not moving forward and probably giving out the error.
I have tried to fix it in numerous ways but none succeeded. The error is displayed on the 3rd column, SUPERVISOR.
I hope there are many here who can read the code and probably help me out with a solution, I really am thankful for the help...
I have searched the error up n down on all possible websites and forums, none provide the rite sol.n.
Thanks a lot...
|
|
|
|
|
Member 3408082 wrote:
Response.Write orsbc4("PermanentSupervisorID")
In the above code you have used Response.Write orsbc4("PermanentSupervisorID")
But where you have opened the recordset using query, i am unable to locate.
Please check it.....
|
|
|
|
|
ohh sorry, ok i have added dat to the code,
]]>
bt now the error message changes to:
"
ADODB.Field error '80020009'
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/uctipresentation/pscheduler/abcweek.asp, line 0
"
....dang
|
|
|
|
|
Member 3408082 wrote: Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
i.e. either you have reached end of record or there are no rows in table
|
|
|
|
|
thanks dude, actualy ure earlier reply kinda helped me lot to get to the source of the problem...
This code isnt done by me, the previous developer did it, dat was correct, then some coleague brot it over to another system, just tried to do the same thing but i gess kinda screwed it up...
actualy u see everything other dan Supervisor and the Accessor comes from a different database.
So the Student Id in the DB1 doesnt exist in the DB2 which the Supervisor and the accesor belongs to.
Thats y the error pops up...
thanks a lot dude, i mite need to ask u again if i got any probs...
add me to ure msn if u want to shounakg@msn.com
peace
|
|
|
|
|
hi,
I am sorry, i don't have a msn mail. I use gmail. If you have a gmail account then add me in your list
my id is: aman@armatrimonials.com
or you can also mail me if you ever have problem with ASP.
|
|
|
|
|
ohh by the wy there are no records in the database, table for that particular field.
|
|
|
|
|
I have a frame. I am creating a new form object in javascript.
I have set action attribute to "TestMyPage.ashx"
During runtime, FireFox converts action attribute to full url
containing protocol, host name, virtual dir. name and page name.
e.g.: "http://localhost:4768/MyApp/TestMyPage.ashx"
It is expected that FireFox should load the url in action attribute
on submit when it have the full url.
But when I add the form object to frame, it converts the action
attribute to "TestMyPage.ashx". I don't know what is causing this.
Because action attribute now has page name only, it can not load
the page (it do not have full url now).
Code for FireFox:
this.innerDocument = document.getElementById('MYFRAME').contentWindow.document;
var _form = document.createElement('form');
_form.id = 'MYFORM';
_form.name = 'MYFORM';
_form.method = 'post';
_form.enctype = 'multipart/form-data';
_form.action = 'TestMyPage.ashx';
this.innerDocument.body.appendChild(_form);
attribute is converted to page name only ...?.
When this is done for IE, during runtime it shows full url in action
attribute, so it loads the page successfully.
But FireFox is converting url to page name in action attribute.
Code for IE:
var _form = this.innerDocument.createElement('<form id = "MYFORM"
method="post" enctype="multipart/form-data" action="ImportHandler.ashx" />');
var formHTML = _form.outerHTML;
document.getElementById('MYFRAME').contentWindow.document.body.innerHTML = formHTML;
Can anybody suggest what is the problem for such behavior.
Any guesses are welcome.
Thank you.
Ashish
Software Engineer, Pune
|
|
|
|
|
Hi,
I am working on a Java application in which we are generating a newsletter. Now my requirement is to send email this newsletter to subscribers. One way to do this is using JavaMail class which requires details of the SMPT server, but I do not have access to the SMPT server of my company. So I thought i'll try mailto tag. I used the following code as a test code.
<html>
<a href="mailto:?body=<h1>heading</h1>">Send as an Email</a>
</html>
this code successfully triggered my outlook express, but it did not render the html in the body. It simply wrote the whole html tag in the body of the email.
Can someone help me to figure out how can i solve this??
|
|
|
|
|
|
I hav a requirement where an classic ASP site has to use an existing WegService which returns an address object. The response from a webMethod is as below:
<?xml version="1.0" encoding="utf-8" ?>
- <Address xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/">
<Name>Anoop</Name>
<HouseNo>6</HouseNo>
<Street>Tumkur</Street>
<Country>India</Country>
</Address>
The webMethod is returning an object of Address . How do i capture this response. As you can see that the response XML file returns multiple data.
ASP Code:
Dim l_obj_SOAP
Dim l_strResult
Dim l_wsdlPath
l_wsdlPath ="C:\Service.wsdl"
Set l_obj_SOAP = Server.CreateObject("MSSOAP.SoapClient")
l_obj_SOAP.ClientProperty("ServerHTTPRequest") = True
l_obj_SOAP.mssoapinit (l_wsdlPath)
response.Write("1")
response.Write( l_obj_SOAP.GetAddress("32323"))
response.Write("2")
Error:
Response object, ASP 0185 (0x8002000E)
A default property was not found for the object.
/SOAPclient/client.asp
Regards,
Anoop
|
|
|
|
|
Lately I've come across several websites that manage to break the Back button in IE. Once I navigate to one of these sites it is impossible to back up using the normal Back button. It is necessary to use the dropdown list control and select a specific previous site from the list to escape the current view.
How is this accomplished?
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
I am getting display of repeater Items like
Name
Address
Name
Address
Name
Address
Name
Address...................Like this 50 in number
So I want display to look like
Name Name Name
Address Address Address
Name Name Name
Address Address Address
Name Name Name
Address Address Address
My code is:
<asp:repeater id="Rep1" runat="server" onitemcommand="Rep1_ItemCommand" xmlns:asp="#unknown">
<itemtemplate>
<asp:literal id="Name" runat="server" text="<%# DataBinder.Eval(Container.DataItem," name")"="">
<asp:literal id="address" runat="server" text="<%#">' runat="server" >
|
|
|
|
|
Render a tr inside the ItemTemplate of the repeater.
<asp:repeater id="Rep1" runat="server" onitemcommand="Rep1_ItemCommand" xmlns:asp="#unknown">
<headertemplate>
<table><tr><td> NAME </td><td> ADDRESS</td></tr>
</table></headertemplate>
<itemtemplate>
<tr><td>
<asp:literal id="Name" runat="server" text="<%# DataBinder.Eval(Container.DataItem," name=")"></asp:literal></td><td><asp:literal id="address" runat="server" text="<%#">' runat="server" >
</asp:literal></td></tr></itemtemplate></asp:repeater>
something like this
Abhishek Sur
|
|
|
|
|
Can someone tell me where to find a book that tells me how to create a virtual brochure for my website? Want to convert my pdf files and put them on the website as a brochure so that visitors can flip through them page by page. Any ideas for software to create the brochure? Some type of flash program.
Thank You
|
|
|
|
|
I have the following web service
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.Web.Script.Services.ScriptService]
public class Test : System.Web.Services.WebService {
[WebMethod(true)]
public void Calc(int value)
{
int ii = 0;
SessionHandler.Session = Session;
SessionHandler.MyInt = value;
while (ii < 20)
{
SessionHandler.MyInt = value * ii;
System.Threading.Thread.Sleep(1000);
ii++;
}
}
[WebMethod(true)]
public int GetResult()
{
int returnVal = 0;
returnVal = SessionHandler.MyInt;
return returnVal;
}
}
I have the following javascript
function Calculate() {
var size = document.getElementById("size").value;
var watch = document.getElementById("watch").checked;
myInterval = setInterval("ShowResult()", 500);
Test.Calc(size, Demo);
}
function Demo(result) {
ShowResult(result);
}
function ShowResult(result) {
Test.GetResult(DisplayResult);
}
function DisplayResult(result) {
var disp = document.getElementById("result");
disp.value = result;
}
The sessionhandler is simply the following
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
public static class SessionHandler
{
private static String myInt = "myint";
private static System.Web.SessionState.HttpSessionState _session;
public static int MyInt
{
get { return (int)SessionHandler._session[SessionHandler.myInt]; }
set { SessionHandler._session[SessionHandler.myInt] = value; }
}
public static System.Web.SessionState.HttpSessionState Session
{
get { return _session; }
set { SessionHandler._session = value; }
}
}
I have an ASP page that uses the javascript to call a web service. The web service manipulates a calculation. The javascript polls the webservice using an interval to monitor the calculation as it takes place. It does this by use of a session variable. The first time the aspx page runs (it's simply 2 textboxes, a checkbox and a button) and the button is clicked, I can watch the value in the results textbox climb as the calculation takes place. If, when the calculation is done, I click the button again, the intervals that call the web service appear to take place, but the web service function is not actually called until the first calculation (Calc) is finished (after the new button click). This means that after the first page load and run through of watching the calculation, I can not watch the calculation perform again.
My goal is to be able to use a webservice to watch a calculation take place on server side from the client. I do not want an postbacks as that would defeat the purpose of the web service. Can anyone help provide any insight?
|
|
|
|
|
Hi.
I need to implement a custom button to IE that on click can save the current html page.
I was able to create such a button using registry. But i dont know how to get the current html page onclick.
Can anyone give me a direction?
Thanks.
|
|
|
|
|