Type: Posts; User: the_cat
Search took 0.01 seconds.
Then remove them...
It's worth reading up on how sub-routines and procedures work: http://www.w3schools.com/vbscript/vbscript_procedures.asp
Not least because almost all programming languages have something similar....
Your requirement is to check to see if the PC is on DHCP, and if NOT then it sets a static IP, connects to the modem, then sets itself back to DHCP, correct?
So put your code into a sub-routine and...
Yes, the index is 7. In fact in all my example scripts I used 7 so you can just use them verbatim.
Note that it doesn't have 2 IP addresses - but it COULD have!
Your PC probably has multiple IP addresses, so you need to find the index of the adaptor that you're really interested in. You can do this by opening a command prompt and typing:
February 9th, 2015, 06:47 AM
Have you looked online for teaching resources? This site: http://www.w3schools.com/ is, in my view, absolutely brilliant for starting off, and is free.
That will teach you HTML which is the basic...
February 9th, 2015, 05:28 AM
I don't know about the SendKeys part, but there are a couple of typos in the script. This line should be:
SQL_STD_ORDERS = "SELECT TKT_NO FROM [DEMOLAWN].[dbo].[VI_PS_DOC_HDR] where TKT_NO = '"...
September 29th, 2014, 05:35 AM
Okay, then you need to find the location of the start of the query string (so the question mark) and strip out everything else to the right and replace it with the new query string as it's not...
September 29th, 2014, 04:48 AM
I've never used this but geolocation is a function of HTML5 so a good starting point, as always, is W3Schools: http://www.w3schools.com/html/html5_geolocation.asp
And a web search produced a little...
September 22nd, 2014, 05:29 AM
If you work through what your code is doing, it does make sense. Say the first time the URI is
http://foo/search?q=bar you're then replacing the "?q=" with the "?q=+test1+test2+test3" so it now...
September 15th, 2014, 02:43 AM
I strongly suggest making a new post, however, in the interests of getting to the answer quickly, within the body section you'll want a button, give it an ID, for example "btnReboot", so your code in...
March 24th, 2014, 08:31 AM
Having a quick play with this, assuming you're reading the first line from your .DAT file, this script section should work:
<script type="text/jscript" language="jscript">
var filename =...
March 24th, 2014, 07:54 AM
Alerts are disabled in Gadgets: http://msdn.microsoft.com/en-us/magazine/cc163370.aspx#S10
Mind you, Gadgets have been discontinued ( http://windows.microsoft.com/en-gb/windows/gadgets ) so you...
January 13th, 2014, 03:07 AM
You have a typo - it should be "responseText" not "responsetext", plus you need to test that there is a response and it's "OK" before you try doing anything with it:
January 6th, 2014, 07:51 AM
You're welcome - glad it worked!
January 6th, 2014, 07:18 AM
I can't help with the first part of your query I'm afraid. If you Google the problem there is mention of starting Chrome from the command line with security disabled:...
January 6th, 2014, 06:59 AM
Try it - it should work! Assuming that the webserver supports the Access-Control-Allow-Origin header which it probably does (or can be made to).
January 6th, 2014, 05:56 AM
Run it from a web server. It appears to be a Chrome bug to do with CORS (cross origin sharing) : http://code.google.com/p/chromium/issues/detail?id=67743
If you're running it from localhost then the...
January 6th, 2014, 05:20 AM
You shouldn't have the hash in front of "header.html".
The other thing to note (see the documentation: http://api.jquery.com/load/ ) is the same origin policy: "Due to browser security...
January 6th, 2014, 04:59 AM
I have tested it with the latest version of Chrome on Windows 7 and it seems to be working fine. Maybe the problem lies elsewhere?
Here's the full listing of my test file and it duly pops up an...
January 6th, 2014, 04:21 AM
You mention jQuery in the title - why not put your code inside the jQuery document ready function?
// your code goes here
December 2nd, 2013, 03:30 AM
There's no harm in breaking the problem into simple lines of code, not least so it makes it easier for someone else to manage.
var minimum = 35,
output = 0,
input = prompt("How many...
November 6th, 2013, 07:22 AM
Then your sort function will need to handle that. I've rewritten it to make it more readable:
if ( a.text === b.text ) return 0;
if ( (a.text.replace(/,/g,""))*1 <...
November 6th, 2013, 03:41 AM
Your sort function is purely for text. If you want to sort numerically then the function should read:
If you have a combination of select controls on the page though you might want...
September 23rd, 2013, 07:23 AM
If you just want to grab the Ajax content and use it in place of the current body, then use the shorthand Ajax method:
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!