|
Set the name of the function you created in OnClientClick property for the button.
Bhaskara
|
|
|
|
|
Thank you for your reply, however iam not sure if you got what i want.
I dont need to show the message because i did, what i want is when the message appears with ok Cancel buttons i need to catch the event when ok button is pressed.
|
|
|
|
|
|
You will want to apply your Javascript onSubmit of the form-
<form name="demo" onsubmit="return validateFormOnSubmit(this)" action="action.htm">
And you function would have to return true or false-
function validateFormOnSubmit(fld) {
var reason = "";
if (fld==true) {
reason += "There is an error.";
}
if (reason != "") {
alert(reason);
return false;
}
return true;
}
This will go through validation and pass false with an alert, or pass true and POST the information to action.htm. Good luck!
Ranjit Viswakumar
Professional Services Specialist
rviswakumar@hostmysite.com
HostMySite.com[^]
|
|
|
|
|
Hi All,
I could not find out correctly where to post this question. Finally, I thought web development is the best place to post this.
Version history option is not displaying selected version of list items in Custom List Form whereas its working fine in Default List Forms in Windows Sharepoint Services 3.0.
Any idea to get rid off this issue?
Thank you in advance
Raheem MA
|
|
|
|
|
I want to create a .NET website where one of the pages will look like the windows directory structure and the user will be able to download the files/folders.
So basically, I have a bunch of folders on my pc and the website should point to those folders on the website in a similar format and allow the user to download files and zipped folders, etc.
How to achieve this?
|
|
|
|
|
Hi,
you can get a directory and file listing with DirectoryInfo.GetDirectories() and DirectoryInfo.GetFiles(). With this information you could build a ListView or DataGridView on your webpage. Whenever somebody clicks on a row in the view, you have to browse to this directory and do the same again (listing all files and subdirectories). If it is a file, you could point the link directly to the file.
Hope this provides a good starting point to you.
Regards
Sebastian
|
|
|
|
|
Hi All,
I need an urgent help as I am stuck into it since last 2 week.
I am using FBA on sharepoint. I have customize the login.aspx by modifying the simple.master page but I am not able to add webpart on it as this does not inherit webpartpages class.
can any i suggest me how can I add webpart on login.aspx? pls help me out.
Regards
Deewaker
|
|
|
|
|
Is there a way you can use an usercontrol in place of a web part. I know it is a rude way but may be a simple solution.
Bhaskara
|
|
|
|
|
Hello, I am new this website so plese bare with me. My company uses 2007 SharePoint and I have access to modify our SharePoint pages using SharePoint Designer. I need help with the following sceniro:
Someone opens a list in the EditForm.aspx view. When they open it they start to select dropdowns, radio buttons, check boxes, etc. However, what I need to know is how do I hide a field in this view until the value of another field is determined?
Example: If Field 1 = "Yes" then Show Field 2 so that the person can resond to it.
If Field 1 = "No" then Field 2 show not show.
I hope I am making sense. Please provide any feedback. I have searched for two days on the Internet and have found one item that relates to this. It was how to permenantly hide a specific field using JavaScript. Here it is:
***SharePoint list Page starts off with <%@ Page language="C#" MasterPageFile="~masterurl/default.master"
<asp:content contentplaceholderid="PlaceHolderMain" runat="server" xmlns:asp="#unknown">
_spBodyOnLoadFunctionNames.push("hideFields");
function findacontrol(FieldName) {
var arr = document.getElementsByTagName("!");
// get all comments
for (var i=0;i < arr.length; i++ )
{
// now match the field name
if (arr[i].innerHTML.indexOf(FieldName) > 0)
{ return arr[i]; }
}
}
function hideFields() {
var control = findacontrol("RequestID");
control.parentNode.parentNode.style.display="none";
control = findacontrol("ID");
control.parentNode.parentNode.style.display="none";
}
|
|
|
|
|
hi all
please check the below code. the alert is working fine in onload. but how can i do the same when i mouse over to the particular <td>. please help me on this.
<HTML>
<HEAD>
<script>
var objBody;
var objDiv;
var anchorText;
var objLink;
var newChild;
var allTds = new Array();
window.onload=function(){
var tds=document.getElementsByTagName('td');
for (var s=0;s<tds.length ;s++)
{
allTds[s]=document.getElementsByTagName('td')[s];
alert(allTds[s].firstChild.nodeName);
}
for ( var i = 0; i < tds.length; i++ )
{
tds[i].onmouseover = function()
{
this.style.border = "1px solid #000";
};
tds[i].onmouseout = function()
{
this.style.border = "1px none";
return true;
};
}
}
</script>
</HEAD>
<BODY>
<table width="400" border="0" cellspacing="0" cellpadding="0" align="center">
<tr><td><img src="images/thumb1.jpg" height="120" width="120" border="0"></td><td>Dummy Copy Dummy Copy Dummy Copy Dummy Copy Dummy Copy Dummy Copy Dummy Copy Dummy Copy Dummy Copy Dummy Copy</td></tr>
<tr><td colspan="2">Dummy Copy Dummy Copy Dummy Copy Dummy Copy Dummy Copy Dummy Copy Dummy Copy Dummy Copy Dummy Copy Dummy Copy</td></tr>
</table>
</BODY>
</HTML>
|
|
|
|
|
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.
|
|
|
|
|