Correct Method To Execute A Piece Of Code In A WSH File Every 5 Minutes?
Oct 18, 2011
I'm developing a WSH script and I need to execute a piece of code on continuously after some period of time
could any body please give me the correct method to satisfy my requirements ?
I know that WScript.Sleep(...); will wait for a while, but a similar method to repeat executing a statement after a while
View 4 Replies
ADVERTISEMENT
Jan 2, 2011
How can I execute a piece of js code every given seconds?
I have included a js file in a html and I have written code...
View 12 Replies
View Related
May 5, 2009
Is there a way in JQuery to execute some code after, or every X minutes of time other than using JS' setTimeOut()?
View 3 Replies
View Related
Jun 16, 2010
What I want is a piece of code that reads a table and inserts new entries into a listbox on the user side. I dont want to have to "refresh" the page to get new entries into the listbox.Essentially, the table will get updated by an app on one side and I want users to be able to view the updates as they occur.
View 2 Replies
View Related
Nov 26, 2010
I have a script (provided by someone else). The problem is the result is not the desired one. Example: I'm getting my hours and minutes in a decimal format. 8:33 is showing as 8.55
I have 3 fields.
I'm no expert and don't understand JavaScript at all.
Here is the script:
View 6 Replies
View Related
May 12, 2011
I have a single webpage that contains information on all 50 U.S. states. There are 50 links at the top to jump down to the state you want, and at the bottom of the information for each state a Back to Top link.
I'm making the Back to Top link into something more complex, and it will require three or four lines of code.
So that I don't have to repeat the code 50 times, and create a burden when I need to edit it, I want to place it in a .js file and call it x. Then below the information for each state I'll simply have:
Does calling code from a .js file 50 times slow down the page load? Which method would load faster?
View 3 Replies
View Related
Dec 6, 2009
How to perform on-demand javascript using AJAX? My question is: how to get a javascript code from my server and execute it?
View 1 Replies
View Related
Nov 22, 2010
What is the correct method for passing named values from a client back to the next client screen without sticking the info as an url query string?
View 3 Replies
View Related
Sep 3, 2010
I am wanting to be able to swap out any of them to make them 'primary' this works for the first click, but after the first click it makes every div id and input name the same as the first that was clicked.It's also not working AT all if i click on the bottom link first, then a link above it.Top-down works, bottom-up doesn't.
View 3 Replies
View Related
Mar 13, 2011
so im working on a piece of jquery/JS which executes (drops down a new div) when you click a link. I have the links setup as
<a href="#" id="d0">Execute 1</a>
<a href="#" id="d1">Execute 2</a>
<a href="#" id="d2">Execute 3</a>
And the jscript detects when d0, d1 or d2 is clicked and executes my script. It all works perfectly, however when you click on a link it will jump to the top of the page as a side effect of the a href="#" I assume?
View 1 Replies
View Related
Apr 7, 2009
I have the following problem in Internet Explorer 6: after loading Google map (use simplest example from Google API site) I see abracadabra instead of russian letters on control buttons ("Satellite" and others).
If I simply remove check from View | Encoding Auto-Select and then check this item again the page is refreshed and everything is ok with russian letters. (By the way, there is no such problem in FireFox).
So my question: is it possible to execute these menu commands by the Javascript code? If yes - how? If no - what to do?
View 1 Replies
View Related
Sep 30, 2006
everytime i test my websites in ie (which should be done seperately
from ff) the console shows me the error and the line number.
problem: it shows me the line number of the file of the error's origin,
but it shows me the main html file as file name.
i am developing a bigger project with many js files and often i have to
go through all js files cause i don't know really which file is meant.
View 4 Replies
View Related
Apr 26, 2011
I have been given a piece of code that validates passwords, but need to edit the code with correct variable names and indentations etc.
Here is the original code:
What the variables n1 and n2 are/ what they do?
View 3 Replies
View Related
May 29, 2011
This is what I'm attempting at the moment, links is an array. Should this work? I understand that HTML headers cannot contain complex datasets like arrays, so what format is the data sent in? Ie. how do I decompose the array on the PHP end? Or is there a better way entirely of doing this?
$.ajax({
type: "POST",
url: "http://asdfasdf.heliohost.org/multiurl.php",
[code]....
View 1 Replies
View Related
Aug 3, 2010
i have a link to a dynamically generated report download. when you click the link it takes a while for the server to do the number crunching and return the file. i need to execute some JS on completion of the file download. is this even possible??
View 5 Replies
View Related
Sep 15, 2010
I'm trying to execute a function in an external js file. I have the file linked
Code:
script type="text/javascript" scr="./JScript/JSFile.js" language="javascript"></script>
In my form the action points to the JSfile
Code:
action="JSFile.js"
My submission button has a link to the JS function
Code:
<a hef="javascript: function()"><input type="submit"></a>
When I click the submit button, it shows the JSFile instead of executing the function.
View 4 Replies
View Related
Jul 24, 2009
How can we execute external JS files using ajax. I tried to set evalScript as true. but for external js files this is not working. Also, is there any way to protect .js files by not allowing users to download it.
View 1 Replies
View Related
May 14, 2010
What I am trying to do is add a list box to my site that when the user clicks on a certain item and presses submit the correct code gets sent to my cgi cart.
View 3 Replies
View Related
Jun 30, 2011
I'm writing this in case it might help someone who hates Internet Explorer as much as I do. I'm fairly new to jquery so many people may already know this but this one stumped me pretty good.I had my code in document ready but for some reason all of it wasn't executing. It would just stop at a certain point. All the code executed fine in Chrome, Opera, Firefox, and Safari. Only internet explorer got hung up on a line of code that i wrote in regular javascript and not in jquery syntax and just would not continue after that. After changing it to jquery syntax it worked.[code]
View 2 Replies
View Related
Apr 2, 2011
1. When I have the "<textarea>" code lines in it put a text-area on the page, but it puts all of the code following that first text-area line into the text-area box and doesn't execute that segment of code.
2. When there is no "<textarea>" (for the sake of seeing if the rest of it worked) it doesn't check the survey.
I'm stumped and can't figure out what to do at this point Code and pictures follow:
[Code]....
View 9 Replies
View Related
Nov 7, 2011
I have a website which has a mysql db which records how many visitors i have.
I want a message box to pop up everytime a visitor logs on.
Whenever someone logs on, a php file constantly is run (via javascript) checks to see if the visitor counter has increased.
if it does it plays a "ping" sound. this works fine, but I think as the php file is separate from my index.php the message never appears.
is there a way to check in javascript that when a responsetext (ajax) changes from the current value being polled that it executes a function? (ie, the notify box)
View 1 Replies
View Related
Jul 18, 2011
I am using jquery to getjson from my service. The service works perfectly if you use fiddler and through the mvc code behind. You can also call the URL directly in the browser and it sends back the correct data.
But when I execute the below code it calls the service but nothing comes back or there are errors I cannot figure out what they might be. It seems like a very simple test of the getjson function.
$.getJSON(
View 2 Replies
View Related
Sep 23, 2006
I'm trying to develop fast, simple, html-based front ends
for some Windows application programs. My idea:
1. Use html forms to let users supply run parameters (title,
run options, etc.)
2. When the user presses a submit button:
a. The selected options for all the form fields are
written to an external file (e.g., c:projectinput.txt)
b. The application program, say, prog.exe, is executed.
This program then reads the run parameters from the file
input.txt and proceeds. Code:
View 1 Replies
View Related
Jul 6, 2011
I have a few buttons on a page I'm developing and I want the onclick event to call a javascript function in an external file and execute it. I would like to be able to pass a parameter to that function and then either have the function take the user to a new URL or make changes to the webpage content.
Initially (just to test) I had inline javascript that caused an alert to popup. That worked fine. Next I took the inline code and put it in a function in an external javascript file that was referenced in the HTML:
[Code]...
View 3 Replies
View Related
Dec 29, 2009
I wrote a simple code in javascript and it is working fine with IE and Firefox but the out put in php array count is correct in IE but not correct in Firefox
<script language="javascript">
var arrdimensions = {
"codimesion":{"s":{'0':'dimesion1','1':'dimesion2','2':'dimesion3','3':'dimesion4','4':'dimesion5','5':'dimesion6','6':'dimesion7'},"c":1,"m":"50", "sc":1, "f":"nopcs[]"}
};
function adddimensions(what) {
[Code]...
View 1 Replies
View Related
Jun 30, 2010
I am VERY NEW to javascript programming as I am to web development. I am pretty decent with VB.Net though. My question is, what are the different ways to call a JavaScript Function either from within XHTML Markup code or from a VB.Net Code-Behind file?
View 3 Replies
View Related