|
I use the Web Developer Toolbar extensively and also Firebug. Both confirm that the DOM placement of my textboxes is correct and in fact within the form. I just migrated the files to my localhost and it works on that perfect so I think it is an environment thing.
|
|
|
|
|
Hi friends,
I am working on customizing the WebBrowser ActiveX control.
I want to change the text hightlight/selection color. I hve
searched a lot, but hve found nothing conclusive. Hope anyone
here would help.
Thanks in Advance..
|
|
|
|
|
Hi Guys,
I'm trying to remote desktop onto my PC at home, however since I have ADSL and my ISP doesnt support static IP addresses, I end up having to check my IP address before I head into work. Problem is my line is pretty rubbish, and the connection gets dropped every 4-6 hours. So i get maybe 4-6 hours out of it, then no longer have access to my home desktop.
Thinking on it, the easiest solution (Barring a Static IP) is to run a script that will automatically write my IP to my website (hosted externally).
Does anyone have any ideas on how to do this? Solutionising is welcome?
Thanks for your help, Grg
|
|
|
|
|
Have you tried TeamViewer[^]?
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
Thanks Walt,
Yeah, I've used this previously. I want to try and steer clear of all in one solutions. Anyone with any thoughts on writing IP to a website?
|
|
|
|
|
DynDns offers a free service that gives you a free subdomain hostname controlled by their client updater software; you simply install the software on your home PC, and it will automatically keep the IP address synced with the DynDns hostname.
Adam Maras | Software Developer
Microsoft Certified Professional Developer
|
|
|
|
|
hello people, here is a tricky one for you , i want to make my website be compatible with all browsers and as you know, css works on ff fine but ie totally differant ... so i tried this :
<![if !IE]><link rel="stylesheet" type="text/css" href="iestyle.css"/><![endif]><![if !IE]><link rel="stylesheet" type="text/css" href="textstyle.css"/><![endif]>
<link rel="stylesheet" type="text/css" href="styling.css"><link rel="stylesheet" type="text/css" href="textstyle.css">
hoping that this would make my website support ff and IE , but then IE doesn't want to use that specific style sheet and moves on..... what do i do ? and have you got any other suggestions of making a website compatible with any browser ..
Cheers
|
|
|
|
|
|
but i have designed for ff first, i just need to convert it to IE which i have got the stylesheet for all ready, just IE won't look at it
|
|
|
|
|
Try this (not knowing which version of MSIE you use) ...
Within the head tags ...
<link rel="stylesheet" href="your_path/css_regular_filename.css" type="text/css"/>
<!--[if IE]>
<link rel="stylesheet" href="your_path/ie.css" type="text/css"/>
<![endif]-->
<!--[if lt IE 7.]>
<link rel="stylesheet" href="your_path/ie6.css" type="text/css"/>
<![endif]-->
(sorry for delay in my reply)
modified 1-Aug-19 21:02pm.
|
|
|
|
|
thats okay mate, so what would i put for non ie ?
|
|
|
|
|
|
Hi,
How can i randomly generate a number every (for example) 20 minutes with php?
I know how to generate a number, but i have no idea how to make it generate one every X minutes.
Thanks in advance!
|
|
|
|
|
This may sound like an obvious answer but you just put your random number generator in a loop, and include whatever PHP command is required to sleep for 20 minutes each time around the loop.
|
|
|
|
|
I dont want the app to sleep. It has several other things to do.
Got another suggestion?
|
|
|
|
|
Sorry no, I guess you have to find some way of checking the time every so often and after twenty minutes call your generator function.
|
|
|
|
|
I suggest you take the initial idea and find a way to create another process to do the other tasks that need to be done...I other words, you'll perform the update the time and sleep for 20 mins on one process thread and on the other thread you'd perform the remaining tasks.
Hope this helps.
modified on Wednesday, January 27, 2010 10:00 AM
|
|
|
|
|
This message needed to be posted to the original questioner.
|
|
|
|
|
Sorry I just joined and am learning the format for forum post.
modified on Wednesday, January 27, 2010 9:57 AM
|
|
|
|
|
plecco wrote: Sorry I just joined and am learning the format for forum post.
May I suggest you spend time in "read only" mode until you are more familiar with how the forums operate, before starting to answer queries. That is, unless you absolutely have the solution to a poster's question.
|
|
|
|
|
I may be a tad late to the game here but if you are using Linux or Mac this should work fine for your needs.
--Terry Valladon
<code>
$random_number = rand(); // I will let you worry about seeds and stuff, perhaps call your own make_random() function?
print('Random number is '.$random_number."\n");
declare(ticks = 1); // Set ticks to one second
pcntl_signal(SIGALRM, "signal_handler"); // Installs a signal handler for SIGALARM (works in linux/mac only I think)
pcntl_alarm(1200); //trigger alarm in 20 min (60 seconds * 20 min = 1200 seconds)
// This is just to keep the script running forever, I would HOPE you would have real code in here rather then just looping endlessly.
for(;;)
{
sleep(1);
}
function signal_handler($signal)
{
global $random_number;
switch($signal)
{
case SIGALRM:
$random_number = rand(); // New random number, I will let you worry about seeds and stuff, perhaps call your own make_random() function?
print('New random number is '.$random_number."\n");
pcntl_alarm(1200); //trigger alarm again in 20 min
break; // Exit function and continue normal code execution.
}
}
</code>
|
|
|
|
|
Good Morning,
I am trying to write a simple time out javascript to accompany an ASP.net application. The default time out for the application is 20 minutes. Currently, when it does time out, it reverts to an ugly error page. I would rather that it either logs the user off or simply sends him to the login or index page. Although I have found some very seemingly simple samples, I cannot get anything to work. I do not know if it makes a difference, but I am using an internal (<Iframe>) to rotate pages within a main page. I do not why that should make a difference since the session value is based on the session and not the page. Either way, I have tried posting the script on both the Main page that displays the frame and on the inserted frame page as well. It makes no difference. These are the two scripts that I have tried:
Style 1 is supposed to give the option to take the user to a new page if it is not responded to:
function warnuser()
{
if (confirm("There has been no activity for some time.\nClick 'OK' if you " +
"wish to continue your session,\nor click 'Cancel' to log out.\nFor your " +
"security if you are unable to respond to this message\nwithin 2 minutes you " +
"will be logged out automatically."))
{
//post the page to itself
document.location.href = "Main.aspx"
}
else
{
document.location.href = "Index.aspx"
}
}
Style 2 is simpler and simply posts a warning:
function SessionAlert()
{
alert("Your Session will time out in 19 minutes");
}
setTimeOut("SessionAlert", 1 * 60 * 1000);
I tried setting the second one for just a minute just to see if it would work. It doesn't. Following is the setting that is deployed on the web.config page in the ASP.net applcation (and it does time out in 20 minutes):
<sessionState mode="InProc" cookieless="false" timeout="20" />
Any assistance is greatly appreciated....Pat
|
|
|
|
|
The following javascript will simply run in background and redirect the user whereever you want - (The '3000' value is in milliseconds.)
var t=setTimeout("document.location.href ='somewhereelse.aspx'",3000);
Note this method is client side and works on the users browser. Clients can sometimes turn off javascript.. server side maybe needed.
I won't go into the server side options here - too many! This codeproject article however is excellent for giving you a through introduction:
Beginners Introduction to State Management Techniques in ASP.NET[^]
I think where you're having problems is the iframe though. Your time condition needs to sit on either one or the other. In your case I would suggest the main page - the parent page to the iframe. Set a timer - client or server side here and the child iframe will have to inherit the command.
|
|
|
|
|
Hi All,
I have a web based application with Windows Authentication. I need to pass the user name of windows authenticated user to the web application say keep the username in session.
How is this possible any help would be great.
Thanks is Advance
Regards
|
|
|
|
|
Hi All,
I have a web based application with Windows Authentication. I need to pass the user name of windows authenticated user to the web application say keep the username in session.
How is this possible any help would be create.
Thanks is Advance
Regards
|
|
|
|