Running Script On Local Webserver
Jul 20, 2005The following script works fine on two Webservers in the internet, but it
doesn't work on my local Webserver (Xitami). I also tried the IIS, with the
same result - Code:
The following script works fine on two Webservers in the internet, but it
doesn't work on my local Webserver (Xitami). I also tried the IIS, with the
same result - Code:
I'd like a way to run a local program on the users system from a webpage.
Obviously this is generally a VERY BAD IDEA (format c: -y anyone?) but in this case it is internal and only a few people will be doing it, so the website can be put into any relevant "trusted" containers in the browser.
Basically what I want is a link like this:
<a href=.....>123.456.12.32</a>
and when the user clicks on the link it opens up their local copy of vnc and attempts to vnc to the IP address supplied.
How would I go about copying a robots.txt file from a webserver and then displaying that information?
View 1 Replies View Relatedi m using jslider on my page working properly on my localhost server but after uploading files through ftp it is not working, only the left and right arrows have been shown.
View 1 Replies View RelatedFor the life of me, I can't figure this one out. I've never had such an issue in the past and cannot find anything through a google search - and that's very rare for me.
So here's the technical nitty-gritty details:
I'm using jQuery hosted on [url]
I'm using the superfish drop-down menu and (at the moment) the default CSS, even if it doesn't integrate at all with my design
I'm also using "supersubs" to make the menu items larger
I'm building the menu through jquery by reading an XML through ajax. So I know jQuery works.
Everything is a-ok on 2 computers when viewed through either Firefox, IE or Chrome (even though it looks ugly in IE - didn't tweak it yet)
But, when I send the files through FTP to my host, it simply does not work. Neither my menu built through jQuery nor superfish or supersubs works. I don't get any sort of errors (normally, IE is helpful in pointing out javascript errors, but there's nothing this time).
The searches I did *had* results, but they were either about doing cross-domain ajax (which I'm not) or about javascript files not being served properly on the webserver. Knowing this server, that's most likely not an issue. I'mtransferringfiles using FileZilla, which also (I think) rules out transfer issues.
The URL: [url]
I'm currently facing a weird issue with the onchange event. I have a web application where each blur event makes a call the webserver to store the value of the textfield. I only want to trigger that ajax call when something has changed, so i track the onchange event on each textfield to set a flag if something has changed.
The onchange event always fires to first time when i click outside of a textfield even if i didn't change anything in the field.
I narrowed it down to the following: A prefilled textfield always fires the onchange-event the first time you leave the textfield. An initially empty textfield does not fire the onchange event.
Sample code (IE 8 on Windows 7 computer):
script:
HTML:
This is not the final script, it is a draft, but I am trying to learn as much as possible and I would like to fix this before I move on and completely rewrite it.
As you can probably tell - this is my first crack at JS...
Right now I have a page with a registration form, seen here:
[URL]
It is working as well as it can be in FireFox, but in IE it is not working at all. Now, I just ran the IE8 debugger, and my first problem is the onload function in the body tag, it is saying that an object is missing, but I do not understand what this means.
The first time I enter the command n it should run the first if statement, when I enter n it should then run the second one as its in zone two. However this is just not happening... What am I doing wrong. Its simply running the second one and skipping the first.
// gameFunctions.js
// Javascript file for Game.html
// September 29th 2010 Edition
[code]...
I can run MS-Dos using JavaScript with this codes:
Code:
<script type="text/javascript">
var cmd = new ActiveXObject("WScript.Shell");
cmd.run("cmd /c echo It works! CMD opened but is visible.");
</script>
I wonder if I can run MS-Dos hidden like in Visual Basic 6.0?
Code:
Dim command As String command = "echo It also works!" Shell "cmd /c " & command, vbHide Is it also possible to fetch the result and insert to a DIV? I'm sorry, I'm just a new web developer and really want to learn.
Although my javascript runs in firefox, doesn't in IE.[code]...
View 4 Replies View RelatedI have a rather lengthy javascript application that I want to run in it's
own window. It looks like it is no problem to do using the window.open and
document.write commands, however this seems like a lot of extra code to wrap
every line of my javascript with mywindow.document.write(""); Is there
anyway around this or perhaps a different approach to running javascript in
it's own window?
Is there a small addition we can make to a .js file, so that it will only be
read during certain times of the year and ignored at the others? It's for a
Christmas promo.
We want it to run only from 1 Nov - 10 Jan, any year.
i've put a div (passed to the function with "r") with inside three div with class "pul". These has the function:
function clic(r){
var blocco = r + " div.pul";
$(blocco).each(function (i)
{
[Code].....
This one should take the img that has been clicked (with the "each()") and by the "i" in each() changes the "src" attribute of the image (with name 0.jpg, 1.jpg, 2.jpg eccetera.. that finds in the folder) that i put in another div ("cambiaimmagine", that is inside "mostrafoto_img", that is inside "mostrafoto"). Why? This image is bigger than the previous, so that you can see it bigger. This all runs in Firefox and Safari, not on IE 6 and 7. I tried to put the alert out of the "click()" and it runs, but inside not.
View this message in context: [URL] Sent from the jQuery General Discussion mailing list archive at [URL]
I am trying to run this javascript function:
<script language="javascript">
function selectElement(idElement){
var colorSelected='#FFFFCC';
var colorNoSelected='#FFFFFF';
divElement= document.getElementById('sel'+idElement);
inputElement= document.getElementById('lselect'+idElement);
[Code]....
So that it runs when the window loads. Meaning if a checkbox is already selected, the background will already be changed for it.
How can you tell what shell you are running on UNIX system?
View 1 Replies View RelatedI'm building a very simple app that relies on a remote server. I will use this app on many websites, so I decided to store it on one server (I have control of the remote server in question).
I need to make sure that this server is up and running, so in the case it's not I can use a fallback.
Would it be a client-side approach? A server-side approach? My guess is to use a js snippet to do the job. If I'm correct, I'll probably use jquery to perfom the task.
I recently coded a page that extracts certain nodes from an external XML file and prints a line of text on the webpage.
It is an HTML page that is strictly devoted to this purpose. There is no other information on it.
The page is currently stored locally on my computer, and when I open it, the script runs fine and outputs the correct text.
However, when I transferred this script over to my web server, and locate it that way, it doesn't run correctly. When I go to the page, it is supposed to display a line of text at the top. It does when I run the file from my local machine, however when I open it from the server, it doesn't display this text. (Same browser, same computer)
When I right-click and view the source, all the code is there, and the files are identical.
why the script runs correctly only when I open the HTML page locally?
Heres the problem: I am running two javascripts on the same page and they are interfering with eachother b/c of the <body= onload handler... what do i need to do these so both will run without interference?? Heres how the page looks from step 1.
<html>
<head>
<script type='text/javascript'>
window. () {
for(var i=0; imgEle=document.getElementsByTagName('img')[i];i++)
if (imgEle.height > 500){ imgEle.width = Math.round(((500)/imgEle.height)*imgEle.width); imgEle.height = (500); }
}
</script>
</head>
<body
</body>
</html>
So i want one set of tabs and then a bit further down another set of tabs, both containing different content.
How do I get the same script to work twice on the same page, when it comes to javascript I am about as good as cut and paste and thats it. Code:
I have a bunch of scripts that I got from the net, I want to have all on one page, problem is that I cant get them to all run at once, they must clash or something, perhaps more than one is using the same request at the same time, I need to have them 'all' work. individually on different pages they work, just not all on the same page.
I'm not really sure how combining multiple scripts together would work. When I tried I just copied and pasted them all together one after the other, but perhaps I'm doing that wrong. Its too difficult for me, my knowledge does not go that far and its too advanced for me.
how to integrate javascript into my projects and it really is a joy when you manage to get them to work for your needs. It kind of makes me envious of those that know what they are doing, rather than my fumbles in the dark and little bouts of joy when I hit the right spot.
<script language="javascript">
var ns4=(document.layers)?true:false;
var ie4=(document.all && !document.getElementById)?true:false;
var now=new Date();
[Code]....
This JavaScript is not working in Mozilla Firefox and Google Chrome, can anyone please help me with this.. Thank you very much.. Please post your revised JavaScript if I am wrong..
<style type="text/css">
a
{text-decoration: none;}
[code]....
I'm don't do Javascript that often and I have a function that is not working fully. The problem is that the first function Form1_Validator runs correctly, but checkTheBox() does not run at all. Its a form validation script. The first function checks that text fields are filled and the second checks to make sure that at least one checkbox is checked.
View 6 Replies View RelatedOn my portfolio site, [URL], i've got noobslide (powered by mootools) running for a slideshow javascript effect. I also want to use lightbox (or mediabox, a different script like lightbox but it uses mootools as well) to enlarge the pics when clicked. Ive been able to get mediabox and lightbox working previously, and I've got noobslide working well now, but i cant get them to run together.
View 2 Replies View Relatedso I am trying to get a form validation running. but i am not sure how can i write a script where if successful a window will popup that is red saying "Success!" if there is success?
View 1 Replies View RelatedI have social buttons (digg, reddit, stumble) on my site and they consistently stall my pages as they wait for them to load. So my idea was to do an onload script that puts the buttons into a div layer waiting for them. In short, I don't want the social button scripts running until the page has loaded.
My idea was:
Code:
function socialite() {
document.getElementById('socialfloat').innerHTML = '<div style=" background:url(/images/socialfloat.png) center top; padding:16px 0px 0px 0px; margin:0 auto;"><span style="padding-left:8px; margin:0 auto;"><script type="text/javascript"> tweetmeme_source = 'traileraddict'; </script><script
[Code]....
Basically load the script codes into the DIV layer waiting. Didn't work, as the scripts aren't being evaluated/run. Is there a way to get this to work?
I don't really know javascript, and I am trying to add two different jquery scripts I downloaded to the same page.The Problem is whichever one I place first in order doesn't work on the web page, only the one placed beneath the other one works. So I can't get them both to work. Anyone know how I can get them to both work?
View 6 Replies View Related