When i am executing javascript in browser it is working properly..I have to execute it with some JSP code .. so iam executing it in apache server and javascript is not working .. what to do for resolving this.
I have a number of server-side Javascript applications running on an old Netscape Enterprise server. I want to move them to Apache. Is there a way to do this without extensive recoding ? My code contains a lot of Oracle and SQL Server database interaction.
This is a strange problem because there's no reason it should be happening. I'm running xampp 1.7.4 locally and jquery-1.6-dev. I'm working through the "jQuery Novice to Ninja" book and everything is working fine until I hit Chapter 3 - animated navigation. Instead of displaying across the top of the page, the nav bar displays down the page. After double- and triple-checking everything I just straight copied the example files for the book into my local server. It did the same thing. In other words, when I double-clicked the file to view in the browser it worked, but the exact same file viewed in the server did not work. I checked with the file I was working on and sure enough the same thing happened - it worked viewed in the browser but not through the server. I hope I explained this clearly. Has anyone run into this sort of thing before? Is there something on the server that needs to be configured?
I want to execute server code invoked from inside Javascript code.
I will have my server code in a servlet, callable with a URL, but how do I invoke the servlet from Javascript without reloading the page and not opening any window? I mean, I don't want to display the HTML result of this request.
I've written some ASP using javascript (rather than vbscript) and it runs as expected on my test IIS server. Recently a colleague said that he was unsure if an Apache server, that's setup to serve ASP, can correctly handle non-vbscript ASP.
Is there any way to put javascript variable into Apache log file? I know in PHP, there is apache_note function, by which you can get PHP variable into apache logs. Does anybody know if there is similar function in Javascript?
I have JavaScript code, that exports a HTML table to MS Excel.
This works fine on my development (local) server, however, it fails to work on my 'live' IIS server. Once I click on the Export link, I confirm the "Export to Microsoft Excel?" message, then nothing happens. I am not sure if MS Excel needs to be installed on the server or not?code...
I have JavaScript code, that exports a HTML table to MS Excel. This works fine on my development (local) server, however, it fails to work on my 'live' IIS server. Once I click on the Export link, I confirm the "Export to Microsoft Excel?" message, then nothing happens. I am not sure if MS Excel needs to be installed on the server or not?
<script language="javascript" type="text/javascript"> function ExportToExcel() { input_box=confirm("Export to Microsoft Excel?"); if (input_box==true) {
I've been working on a college project to rebuild a php/mysql web application. My local dev. environment runs php/mysql on IIS, and the server that hosts the web-app runs php/mysql on Apache. As part of the revamp I've coded a few bits of javascript that works perfectly in my dev machine, but when upload do not work properly. Here is the latest bit:
Form with hidden fields I want to post to the next page. <form action="ADToDoPrintPage.php" target="_blank" method="post" id="fm"> <input type="hidden" name="TotalHours" id="TtlHour" value="<?php echo "$total_hours" ?>"><input type="hidden" name="TotalCycles" id="TtlCycle" value=" <?php echo "$total_cycles"; ?>">
Then a list of links, one of which posts the form to the desired page: <li><a href="" onclick="document.getElementById('fm'). submit();return false;"> Printer Friendly View</a></li>
Problem is rather than going to the desired page, it simply directs to the homepage. I'm baffled as to why this is happening and dont know where to start looking. Could it be something do to with javascipt not being enable or permitted on the webserver? I've made sure the site is in the 'trusted sites' list in IE but with no joy.
I have designed a site. It's working properly in locally.Now I want to insert a special javascript on my home page.The job of that special javascript is, makes some errors in the site when site is going to publish on internet.
I have installed an image rotator script on my page however the animation is not working i.e. the rotation between images is not taking place. The script works on my localhost though. code...
I am having trouble running a code that uses JSON to build a YUI DataTable. I'm using YUI 2.8.2.1 and running an Apache 2.2 server in Windows XP. I hardcoded the DataSource as a JSON string that looks like the following:
I have created a global navigation includes document. Unfortunately the drop down menus that are part of the navigation aren't working. They worked fine when they were part of the page, but now that they are separated from the page as includes the drop down menus don't appear in my test site (posted to a web server). All other content in the includes file appears and works.
I've got a global navigation document with drop down menus created using javascript saved as includes. These are posted to a web server and the pages that reference the includes display the graphics and some of the links, but not the drop down menus. They don't appear on roll-over.
I am working on the following page: [URL]. There is a news script on the right-handside which rotates news items (a kind of scroller). Locally this works without any problems, but once I've uploaded it to the hosting server this doesn't work. There is no javascript error sign. I have double checked with the hosting and they support javascript by default.
I have created a site and on one page it uses 2 divs side by side to display text information. in the left hand div it contains 8 links. these links when clicked load up text stored in separate text files and display it in the right hand div.The code below was working when i ran it from my mac but when i try to load it off the webhost it fails to execute.
I have a problem, when I load jquery.js from local, my test server is Apache 2.2.14 and PHP 5.3.1. The code is : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL]"> <html xmlns="[URL]"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>jQuery Starterkit</title> <script language="javascript" src="lib/jquery-1.4.2.min.js"></script> <script language="javascript"> $(function() { $("input").click(function(){ alert('Hello World!'); }); }); </script> </head> <body> <lable>pwd : </lable><input type="text" name="text" value="name"/> </body> </html>
The browser alert (Missing Objects) in localhost. But if I change src to '[URL]', or double click html and run in the browser, it takes effective. So I think there are some problems in my Apache conf file.
Can anyone redirect to any online tutorials, articles, code of how to upload a file using HTTP PUT method and JavaScript or VBScript to a server running Apache 2.0 that uses CGI + PERL.
How to create configuration entries in httpd.conf for supporting HTTP PUT method.
How to code with AJAX to post uploaded file content to the server using PUT method ?
I have managed to succesfully post the data to the php page... (i can see using firebug that it IS being sent) but i get a message Quote: Apache HTTP Server has encountered a problem and needs to close and the response is empty... what am i doing wrong?is possibly something to do with the space in the value of the options?
I have the following JavaScript (see below). The script requests an XML file from the server and displays it on the page.
The script works fine when the requested XML file is stored on the same server as the script.
The problem is when I try requesting an XML file from an external server such as the National Weather Service. I get an error. If I take the XML file from the National Weather Service and save it to my server it works. Why can't I use my script to request XML files stored on external servers?
Javascript Code
window.onload = initAll; var xhr = false; function initAll() { document.getElementById("makeTextRequest").onclick = getNewFile;
I'm trying to write a script that will be loaded from one server into a website on another server. This script is trying to talk (ajax) to the server that it comes from but I'm getting "Access Denied" errors. I'm well aware that cross-domain calls are not allowed for security reasons so my question is how does Google Analytics work because essentially thats what I'm trying to accomplish. I can embed a Google Analytics script into my website and it'll gather data and send it back to Google.