jianbo:
To make a checkbox readonly use the following bit of code in the onClick event of the checkbox:
OnClick="if (true == true) return false;"
Of course where the true == true you would put your variable to check against and if it is readonly, the user would not be able to check...
To All:
On my window_beforeunload, I fire an event which opens a new window and runs the following code to determine if the user is leaving my site:
function CheckStatus()
{
try
{
var mystring = new String(window.opener.location.href);
mystring = mystring.toLowerCase()...
During my save routine using remote scripting, I pop up a new window filled with error messages (child window) and then I reload the main (parent) window, but how to I set focus back to the child window??? Is this possible.
TIA,
Patrick
aolb:
I use text fields to store xml....here is what I do:
.Parameters.Append .CreateParameter("txtXMLString", adLongVarWChar, adParamInput, Len(strSQL))
.Parameters.Item("txtXMLString").AppendChunk strSQL
I hope this helps,
[yinyang]
Patrick
samyiel:
What is the permission of the IUSR_"computername" on the above mentioned folders. This might or might not be the problem.
Thanks,
[yinyang]
Patrick
4345487:
Here you go...sorry about that
<HTML>
<HEAD>
<SCRIPT language="javascript">
function testitem()
{
document.getElementById("company").style.color = 'red';
/*id = document.aForm.aText.id;
pos =...
cisco999:
The page most likely is cached on your machine because you previously did not have caching turned on. Hit Ctrl-F5, this will refresh your page.
[yinyang]
Patrick
4345487:
You can use the following javascript to change the color:
document.forms["formname"].spanname.style.backgroundColor = red;
[yinyang]
Patrick
nospace52:
Just add the following in between the head tags of your html page:
<META HTTP-EQUIV="Refresh" CONTENT="5; URL=urlname">
I hope this helps,
[yinyang]
Patrick
Skittle:
There is no way to limit the amount of text entered. The only fix would be an event that is fired on the submit of the form to make sure the number of characters does not exceed a certain amount:
function CheckLength(maxchars){...
biktoryah:
Server side code is always executed before client-side. The only way to call a server-side function from client side is to use either Remote-Scripting. Here is a great article on that technology:
http://developer.apple.com/internet/javascript/iframe.html
Another way is to...
sipps:
This behavior you are experiencing is by default. No where on the web have I found a popup object to appear "in-front" of select lists. The only way around this is to re-arrange your page.
I hope this helps,
[yinyang]
Patrick
biffer999:
You need to use the command object, not the recordset object. Do the following:
Private Sub Command1_Click()
Dim ado_cmd as New ADODB.Command
Dim m_conn as New ADODB.Connection
m_conn.ConnectionString = ...
m_conn.Open
With ado_cmd
.ActiveConnection =...
cyprus106:
There is no such thing as goto in asp. But if you want to end a process completely, you can use Response.End(). Keep in mind that this will cease processing meaning that any code below this line will not be read or displayed.
I hope this helps,
[yinyang]
Patrick
harebrain:
What I meant, is that in my error handler, I do not have a case statement with specific errors to return to the user.
Would you rather send to the user
Run-time error '76':
Path not found
or a "clean" message box informing the user of what went wrong. You will never...
harebrain:
I don't usually set up error handling to handle things that are not errors. It is just as easy to use the FSO and check for the file then change your error routine to look for particular errors.
[yinyang]
Patrick
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.