Hey guys, does anyone know how to do this? Here is my current code that will not work. I have tried everything that I know how to make this work to no avail. This is under form1_load. Any help would be awesome. Thanks in advance.

Member Avatar
+0 forum 0

Hi there, ho can i check in MVC if the users of my website are coming from my domain .it , .fr or .co.uk etc? Thanks

Member Avatar
Member Avatar
+0 forum 1

How can we detect redundant rows.and maintain their count. if the rows are like 11111 11111 10101 11111 the result i want is 11111 4 10101 1

Member Avatar
Member Avatar
+0 forum 3

Hi Goodmorning. I'm developing an online add cart. my problem is when a user confirm payment and after a second he/she pressed escape. payment is successful but my email notification did not sent. how will i detect if a user pressed escape. Thank you.

Member Avatar
Member Avatar
+0 forum 3

I want to know if there is a way to check if a link is univisted javascript or jquery should display a popup mesage to the user to visit that link. This should happen as soon as a user logins the website. Any help in this regard will be appreciated.

Member Avatar
Member Avatar
+0 forum 2

Hello I have this code to detect the user browser, using if and else: [CODE]<?php if(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE) echo 'Internet explorer'; elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Firefox') !== FALSE) echo 'Mozilla Firefox'; elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome') !== FALSE) echo 'Google Chrome'; else echo 'Something else'; ?>[/CODE] Is there a way to do this using the switch statement? I tried this, and it does not work, it just retuns default: [CODE]<?php switch(strpos($_SERVER['HTTP_USER_AGENT'], $browser) !== FALSE) { case $browser='MSIE': echo 'Internet explorer...'; case $browser='Firefox': echo 'Mozilla Firefox...'; case $browser='Chrome'; echo 'Google Chrome...'; default: echo 'Something else...'; } ?>[/CODE]

Member Avatar
Member Avatar
+0 forum 13

Hi , I am trying to detect browser close and refresh event when user clicks on browsers button for refresh and close, but still not get any sloution. My project is in PHP. i try the folling code : - window.onbeforeunload = function(event) { alert("dsghjkadghjl"); } $(function () { $("a").click(function() { window.onbeforeunload = null; }); }); $(document).bind('keypress', function(e) { if (e.keyCode == 116){ window.onbeforeunload = null; } else if(e.keyCode==8) { window.onbeforeunload = null; } }); $("input[type=submit]").bind("click", function() { window.onbeforeunload = null; }); at alert i want to show the servey popup. but at the close on window not on refresh …

Member Avatar
Member Avatar
+0 forum 6

I am new to python. Is there any way that python can detect when a field is focused in an external program? The script would just need to know when a text input field was selected. Thanks,

Member Avatar
Member Avatar
+0 forum 1

how can automatic detect usb modem with java

Member Avatar
Member Avatar
+0 forum 1

Hello Since I can't get something to work, as a temp fix, Im going to do something else but I need this to only happen if it is a Webkit based browser (Safari, Chrome, Android, etc...). How can I detect this? Thank you

Member Avatar
Member Avatar
+0 forum 3

Hi all. I have got a code that detects the most mobile devices except Samsung Galaxy S3 (there may be other exceptions as well). Please advice how is it possible to detect the device Samsung Galaxy S3. My code is: <script type="text/javascript"> var isMobile = { Android: function() { return navigator.userAgent.match(/Android/i); }, BlackBerry: function() { return navigator.userAgent.match(/BlackBerry/i); }, iOS: function() { return navigator.userAgent.match(/iPhone|iPad|iPod/i); }, Opera: function() { return navigator.userAgent.match(/Opera Mini/i); }, Windows: function() { return navigator.userAgent.match(/IEMobile/i); }, any: function() { return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows()); } }; if(isMobile.any()){ alert("The device is mobile!"); } </script> Thank …

Member Avatar
Member Avatar
+0 forum 5

Hello, I own Gateway computer - DX Series DX4320-19 Desktop PC Windows 7 Home Premium 64-bit. Recently my wireless internet crashed, so I tried fixing it. I had D-Link Dir-615 and when trying to reinstall it, I kept getting a message "Unable to detect wired connection. Please check the connection between your computer and the router and try again". I checked and tried multiple times and nothing. I also tried using different cables. So, I decided that perhaps my router is the problem and purchased a new router (ASUS RT-AC660U). So, $189 later I get the very same message. When …

Member Avatar
Member Avatar
+0 forum 5

How to find which operating system is running the PC in C++?

Member Avatar
Member Avatar
+1 forum 3

my record got OrderFormNo and CashBillNo.(one to one insert) if 1st record OrderFormNo is 123 and CashBillNo is ABC, if 2nd record also same OrderFormNo, the CashBill must be same. As a result, I want detect if got same OrderFormNo in database but different CashBillNo, will not insert to database.

Member Avatar
Member Avatar
+0 forum 8

I'm a PHP newbie, and I need to replace my current code for linking to a stylesheet (which looks like `<link rel="stylesheet" href="/style.css" type="text/css"> `) by a PHP alternative. If it's important, the code I'm using which will link to it is [php-mobile detect](http://code.google.com/p/php-mobile-detect/). The structure I wanted to use was <?php include("Mobile_Detect.php"); $detect = new Mobile_Detect(); if($detect->isiOS()){ // code to run for the Apple iOS platform. <link rel="stylesheet" type="text/css" href="style.css" />; } ?> which should work, except, 1. Dreamweaver gives me a syntax error alert at the second line, and 2. I get a browser error citing an unexpected …

Member Avatar
Member Avatar
+0 forum 1

Is it possible to make a Python program which checks if a file exists, maybe like: #!/usr/bin/python if exist 'File.txt': print "File.txt exists!" else: print "File.txt does not exist :-(" Obviously the `if exist` code will fail, as it is not a python command, but is there anything like the above which works?

Member Avatar
Member Avatar
+0 forum 9

my compaq pc cant install sound drivers and i bought a new pCI sound card but the card also fail to install drivers, what can be the possible soluyion.

Member Avatar
Member Avatar
+0 forum 1

hi i have an outer div which contains alot of inner divs like this '<div id="wrapper"> <div id ="1" class="hoverme">sometext</div></div> so what i nedd to do is that i need to detect the on hover stat of ever hoverme class in tthe wrapper div and return the id number of the hovered elemnt Thank you

Member Avatar
Member Avatar
+0 forum 2

Hi i have a directory containg about 300 files with different extensions like : .txt, .php, .html,etc.. and i have tried this code but it displays a files list instead of only thier extentions [CODE]string[] filePaths = Directory.GetFiles(@"c:\tmp]");[/CODE] so what i need to do is to display all the files extensions in that folder ***Thank you***

Member Avatar
Member Avatar
+0 forum 3

hi! I want to start writing a project that recognizes speech and voice. first I want to know,have you ever seen a project like this,written in java or any other languages? if no I know it is not a simple project that it can be found by requesting in a general java forum,and I want to process a language that is not English! please help me. if you think java is not the right language for this,I would be happy to be informed by you! thank u -

Member Avatar
Member Avatar
+0 forum 2

Hi, I have been wondering about implementing this for quite a while now. I don't know if this possible or in what language it can be done, so I came to this board hoping to get some answers. I have a Django/Python web application and have the need to list installed client software on the client computer that matches entries in our database. I have thought about doing this in Python, but this seems impossible seeing that the execution takes place at the server. All I want to achieve is to detect installed software (registry), I don't want to edit …

Member Avatar
Member Avatar
+0 forum 1

I found a crawl detection script on the internet that works great. But at the moment I only have Googlebot. I'm trying to add YahoosLurp, and Ask Jeeves, and any other popular web crawler. PHP is definetly my weakness Heres the script [CODE] <?php $useragent = $_SERVER["HTTP_USER_AGENT"]; if (stripos($useragent,"Googlebot")) { //Found! Create file $file = fopen("crawled.txt","a"); fwrite($file,"You've been crawled\n"); } ?> [/CODE] Its saved in a text file called crawled.txt Im trying to add extra crawlers to the script, with the date.

Member Avatar
Member Avatar
+0 forum 1

Suppose I open up Outlook 2007. On the bottom left, there are four folder buttons: Mail, Calendar, Contacts, and Tasks. I will have a C# plug-in running and wondering if there is anyway to detect when the "Tasks" button is clicked. Thank you very much in advance!

Member Avatar
+0 forum 0

Hi guys, I had a home ubuntu web server I was running which just died due to RAM failure. To keep the site going, I took out the HDD and swapped it on to another machine I had laying around. Luckily, I was able to boot it with no problem, but the only thing is the drivers didn't update automatically... This causes a problem because I can't seem to figure out how to make it see the new (different) network card I had on the machine. Is there any way I can make it detect it? I have no GUI, …

Member Avatar
+0 forum 0

i have a video player and i need to detect when the scrubber is more then 20.6% across this is the script i got so far [CODE] function ad() { if (document.getElementById('scrubber').style.left > "20.6%") { document.getElementById('ad').style.display = 'block' }else{ setTimeout(ad(),1000); } } [/CODE] this is the scrubber and the ad i need to show when the scrubber is past 20.6% [CODE]<a id="scrubber" href="#" class="scrubber-button" style="left: 0%;"><img src="scrubber.gif" width="16" height="16"></a> <div id="ad" class="ad" style="display:none;">Ad This is the ad if you see this then i win.</div> [/CODE]

Member Avatar
+0 forum 0

The End.