|
|
|
hi,
i couldnt find this on the php site so i decided to ask here.
if i put an ftp script on server 1 and it uploads files to server 2, then a client uses the script, does the file
go from the client to server 1 to server 2
or
directly from the client to server 2
thanks,
sam kline
|
|
|
|
|
That will depend on how you have the code setup. Do you have the script load the files to Server 2 without going through Server 1(meaning Server 1 isn't written in the code directly)?
|
|
|
|
|
you can do the same for both. Its depend that what you want pass the file from server 1 or from server 2, You have to mention that in your coding.
--------------------------------------------------------------------------------------------------
Hiral Shah
India
If you think that my answer is good enough and can be helpful for other then don't forget to vote.
|
|
|
|
|
Hi
How can i get data viewstate a control in asp.net
|
|
|
|
|
hi there,
u can access ViewState property.
and the link below might be useful for u
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuicontrolclassviewstatetopic.asp
<< >>
|
|
|
|
|
I am trying to check whether or not a server is operating properly before I redirect my users to a login page on that server. I use the code below. When I run the following code from a saved version on my desktop (i.e. C:/Desktop/test.html) it will display my alerts and then take me to the desired location. When I upload the code to my website and then run it (via www.mysite.com/test.html) it doesn't work. It never gets passed my checkStatus alert. Does anyone have any idea why this is happening? Why does it work locally but not on my website?
Thanks in advance
P.S. I am new to javascript; a friend of mine helped me with this code.
<html>
<body>
<h1> Please Wait...</h1>
</body>
<script language="javascript">
<!--
var pollInterval = 1000;
var error_url= "error_page.html";
var checkStatusUrl = "http://server_to_be_checked.com/login.php";
var req;
// check whether you body index page is up running
// this tells the wait page to check the status every so often
window.setInterval("checkStatus()", pollInterval);
//checkStatus();
function checkStatus()
{
alert("checkStatus");
createRequester();
if(req != null)
{
req.onreadystatechange = process;
req.open("GET", checkStatusUrl, true);
req.send(null);
}
}
function process()
{
alert("process");
alert(req.readyState);
if(req.readyState == 4)
{
// only if "OK"
if (req.status == 200)
{
if(req.responseText != "")
{
// a "1" means it is done, so here is where you redirect
// to the confirmation page
document.location.replace("http://server_to_be_checked.com/login.php");
}
// NOTE: any status other than 200 or any response other than
// "1" require no action
}
}
}
/*
Note that this tries several methods of creating the XmlHttpRequest object,
depending on the browser in use. Also note that as of this writing, the
Opera browser does not support the XmlHttpRequest.
*/
function createRequester()
{
try
{
// it went to here !!!!!!
req = new ActiveXObject("Msxml2.XMLHTTP");
//alert ( "Msxml2.XMLHTTP" );
}
catch(e)
{
try
{
req = new ActiveXObject("Microsoft.XMLHTTP");
//alert ( "Microsoft.XMLHTTP" );
}
catch(oc)
{
req = null;
}
}
if(!req && typeof XMLHttpRequest != "undefined")
{
// did not go to here
req = new XMLHttpRequest();
}
//alert ( req == null);
return req;
}
//-->
</script>
</html>
|
|
|
|
|
|
dont cross-post pls
refer the answer one in asp.net board
<< >>
|
|
|
|
|
We have wikimedia in our website. The pages doesnt get refreshed or updated. Everytime the cached pages are only displayed. This problem is only in Firefox and not IE. Let me know why it happens.
|
|
|
|
|
We host all these 3 sites
www.xyx.com/a belongs to education sector
www.xyx.com/b belongs to finance
www.xyx.com/c belongs to insurance
these are indiviual child sites
when i browse these from the internet individually
everthing works fine but when i acces all the three simultaneously one of the other sites gives me a problem
and the error message is always different
|
|
|
|
|
Well - withouth the error-message(s) it would be hard to guess, but my bet is that they all access the same database/datasource and deadlock eachother yeilding various errors..... but it is a guess.
---------------------------
127.0.0.1 - Sweet 127.0.0.1
|
|
|
|
|
Code:
<script>
function Msg()
{
var agree = confirm("Save ?");
if( agree )
{}
else
{
return false;
}
}
</script>
on body :
<body onbeforeunload="return Msg();">...........</body>
so when I click "Cancel" on "Confirm Window", IE open a new alert box automatically. How can I disable this function of IE by using Javascript ?
Thanks!
Hung
|
|
|
|
|
Hi Hung,
You cannot disable this dialog box since you are using the onbeforeunload event. In this case, you might consider using this dialog to show the confirm message instead of using the confirm method. It looks something like:
<body onbeforeunload="return 'Save?';">...........</body>
|
|
|
|
|
But how can I change the content of the Messages ?
Hung
|
|
|
|
|
You cannot change the predefined text in the dialog log, what you can do is to dynamically add your confirm message in the dialog. You message should appear in the center of the dialog box.
|
|
|
|
|
Can you show me the code ?
Hung
|
|
|
|
|
MSDN:
"When a string is assigned to the returnValue property of window.event, a dialog box appears that gives users the option to stay on the current page and retain the string that was assigned to it. The default statement that appears in the dialog box, "Are you sure you want to navigate away from this page? ... Press OK to continue, or Cancel to stay on the current page.", cannot be removed or altered."
Example from MSDN:
<HTML>
<HEAD>
<SCRIPT>
function closeIt()
{
event.returnValue = "Any string value here forces a dialog box to \
appear before closing the window.";
}
</SCRIPT>
</HEAD>
<BODY onbeforeunload="closeIt()">
<a href="http://www.microsoft.com">Click here to navigate to
www.microsoft.com</a>
</BODY>
</HTML>
---
b { font-weight: normal; }
|
|
|
|
|
Sorry, I'm the author of this question but I lost my account.
Can I close that window automatically when it appear ? or do you know how to do like that window ?
|
|
|
|
|
If any browser allows such a thing, then take it as a bug. The idea behind it is that users get one chance (and only one!) to re-think their decision to close a window, thus giving web developers an opportunity to remind users of unsaved form data, etc. If you could actually stop the user from closing / leaving a page, then it would invite usability problems, to say the least.
|
|
|
|
|
I have the code:
<table><tr>
<td id="text"><a href="abc.htm">hung1</a></td>
</tr>
</table>
I want when I click on this text "abc page" the message box appear and if user choose "cancel" then nothing change (like Message box above of IE).
I used this javascript code:
<SCRIPT FOR=text EVENT=onclick>
confirm("Save?");
</SCRIPT>
But not successful. What must I do?
|
|
|
|
|
the js code should be something like this:
onclick="return confirm('Save?')
<< >>
-- modified at 0:59 Saturday 10th September, 2005
|
|
|
|
|
hello,
i need to retrieve the value of a hidden html field in a JSTL expression.
I've tried a lot of solution but none worked.
Tried with value ="${param.fieldname}", <c:set ...
servlet pageContext.set attribute....
In partiicular i have a text field witch contains a string like"yyMMdd...."
and i need to fmt:parseDate and fmt:formatDate it but i cannot get it's value and it cames empty.
What is the solution?
Please help as soon as possible. Thanks a lot
Domenico
|
|
|
|
|
Back ground to a problem:
---------------------------
We have a page of multiple choice questions in a Test (ASP application) that has a timer. Since there are several questions on the page obviously the page scrolls, and to enable the student to see the time remaining as per timer, we have made a separate frame and fixed the timer in that- on the top right.
If the questions are not completed by the student, and the time is up- this questions page auto submits.
The Problem:
----------------
When the student clicks on submit button indicating that he has finished with the questions, or if the page auto submits…the student moves to the answers page, but the timer appears here also.
Can someone please suggest a way by which the timer is restricted to the Questions page only- at the top right in a fixed manner?
|
|
|
|