Web App Not Working Properly When Uploaded To Server

Mar 10, 2009

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.

View 4 Replies


ADVERTISEMENT

Working Locally But Not When Uploaded To Hosting Server?

Oct 23, 2011

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.

View 3 Replies View Related

Script Working Locally But Not When Uploaded To Hosting Server

Oct 23, 2011

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.

View 3 Replies View Related

Code Working On Local Server But Not When Uploaded To Webhost?

Mar 5, 2010

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.

$(document).ready(function() {
$("#mc").click(function() {
$("#innertext").load('mc.txt');

[code].....

View 6 Replies View Related

Get Date File Was Uploaded To Server?

Nov 4, 2010

I would like to create a script that behaves differently according to the date it was uploaded to the webserver. Meaning - if I send the script to my friends and each one uploads it to his server on a different date - each one will get a different behavior.

Something like:uploaddate=getuploaddate();
if uploaddate between Jan 1...Jan15, 2010
do this1;
elseif uploaddate between Jan 16...Jan31, 2010

[Code]...

View 2 Replies View Related

Menu Works Locally But Not When Uploaded To Server.

Jul 23, 2005

I have created a site with menu, it is working fine locally but when i
upload it on the server it dosen't work. When I click on submenu under
"Company" or "Products",It will show the actual url in the address bar
but it gives a error "405 - resource not allowed". Kindly check and
let me know the solution for this. If you know any other simple script
similar to this let me know.

View 2 Replies View Related

JQuery :: Doesnt Work When Uploaded To Server?

Jun 30, 2011

it was working fine when i viewed it using my local host but when i uploaded it to the server it doesn't want to work anymore. i made sure all the files are in the proper folder and so on..still no progress. Then uploaded the original or "demo folder" i got from this site and it works, but my site doesnt. I combined 2 jquerys btw, one apycom jquery and one booklet jquery. Both works in local host but in my site, only the apycom works. pls help me out..[URL]...

View 1 Replies View Related

Jquery :: Not Running Properly On Apache Server

Aug 3, 2011

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?

View 7 Replies View Related

Open Window Not Working Properly In Firefox But Is Working In IE

Feb 6, 2009

The Open Window in Javascript is not working properly in Firefox but is working in IE. What could the reason be?

[Code]...

View 1 Replies View Related

PasteHTML Not Working Properly

Aug 9, 2005

I'm running this line of code:

oTarget.pasteHTML(formattedHtmlText);

where oTarget is a text range object.

When formattedHtmlText is, say, "<STRONG><BUTTON
class=placeHolder>[[ContAmt]]</BUTTON>&nbsp;text</STRONG>" the HTML is
pasted properly and the UI is changed accordingly.

However, if formattedHtmlText is "<BUTTON
class=placeHolder>[[ContAmt]]</BUTTON>&nbsp;text" the HTML is not
pasted and there is no change in the UI.

View 2 Replies View Related

Onload Not Working Properly

Sep 1, 2007

I am having two divs with ids nav and navLinks, that contain unordered lists of hyper links. I am calling a onload function named displayID that accepts div's id as a argument/parameter (nav and navLinks) twice with different parameters. the function is firing only once with the parameter that i first specify, even though i call the function twice. Am i doing anything wrong in calling the same function twice with different parameters? Code:

View 1 Replies View Related

Countdown Not Properly Working / What To Do?

Apr 14, 2009

I found the script from..

Here is my code (it is in a phpBB3 page) code...

On a normal HTML page it works, so I'm stumped

If anyone knows what could be going on here, or knows of another simple countdown script

View 1 Replies View Related

JQuery :: Code Not Working Properly In IE?

Mar 22, 2010

i have a select dropdown list working fine in firefox...but in IE it is not dynamically changing.i am using Jquery 1.32here is my code

$(function() {
$(document).ready(function() {
$('#provider').load("ajax/order.php?atask=getallproviders", {

[code]....

View 1 Replies View Related

JQuery :: Nth-child(5n) Is Not Working Properly?

Jul 6, 2010

[URL] why the 4th elements are getting selected by

$(".entry-summary:nth-child(5n)").addClass("last");

You can try the following code in Firebug console to debug:

$('.entry-summary').removeClass('last');
$('.entry-summary:nth-child(5n)').addClass('last');

View 2 Replies View Related

OnChange Event Not Working In IE Properly / Fix It?

Aug 19, 2009

I have the following code which works fine in FF but not in IE. code...

In FF, when you change the Fund dropdown to be Romanian Floods, the location dropdown disappears and the location_box text box appears which displays the second part of the value (Romania). If you select another value from the Fund dropdown again, this box disappears and the location dropdown box would appear again. This is exactly what I need it to do.

In IE, whenever you select anything in the Fund dropdown (doesn't matter whether it is Romanian Floods or anything else), the value in the Fund dropdown disappears and thus when I press submit it doesn't work!

View 2 Replies View Related

MooTools Not Working Properly / Sort It?

Jun 7, 2010

I had to switch to Mootools, because the current company I am working for uses MooTools. Till thus far I haven't had any problems with MooTools until about 10min ago.

I am using a plug in called noobSlide, You can check it out here code...

My problem is that for some or other reason it displays 5 images instead of 4 images(the amount I am using), leaving the lastly displayed image blank. code...

View 5 Replies View Related

Sorting Function Not Working Properly?

Nov 14, 2010

I am having a problem where the sorting function I have designed is supposed to sort an array of records into descending order in terms of each record's "score" value, I would expect the below code to alert 2,1,0 in that order but it's as if the code didn't even sort it.

var g=[{score:0,index:0},{score:2,index:1},{score:1,index:2}]
function sortScores(scoreRecs){
var swapped;

[code]....

View 5 Replies View Related

Script Not Working Properly In Firefox

Aug 18, 2011

I am having an issue with some javascript that works fine in IE, but in FF is not working properly. The script is used to display a list of check boxes, the user can expand, which can checked to enable a users selection of products.

This is the script:
<script type="text/javascript">
var xcNode = [];
// m = Parent UL ID
// c =
function xcSet(m, c, q, isCompletedLength) {
if (document.getElementById && document.createElement) { .....

Works fine in IE, but not in Firefox where the expanded list is not showing the current number of items (checkboxes), it shows 34 check boxes in IE but only 17 in firefox.

View 9 Replies View Related

Add / Remove Row Buttons Not Working Properly

Dec 14, 2011

I have 2 tables with Add/Remove Row buttons. The first table's Add Row button adds a row that belongs in the second table, and the Remove Row button gives me an Object Error. The second table works properly. The JavaScript for both tables is identical except for the ID's. When the tables are put into seperate html files both of the Add buttons work properly, but the remove row button from table one is still giving me the Object Error.

[Code]...

View 2 Replies View Related

Lightbox Script Not Working Properly

Jun 8, 2009

I'm working on adding a gallery to a client website.URL... And I just can not seem to get lightbox going on this site at all.

View 13 Replies View Related

Tree Structure Not Working Properly

Dec 16, 2010

Let me explain the scenario. I have a main html (e.g. main.html) page, which includes a link to inner.html page. Clicking this link will load the inner page, containing a tree structure. [URL] The loading method is such that only the body content from inner page is loaded to the main page, without refreshing the main page.I believe this method is called partial rendering of pages.

[Code]...

View 11 Replies View Related

Jcarousel Is Not Working Properly At Site?

Jun 27, 2011

We have jcarousel on our forum site which rotates automatically. It is vbulleting forum. In fact originally it was working fine with old design and rotating images automatically in horizontal direction with a set of 5 images visible at a time and total 12 images in set.

But we have upgraded our forum design in last week and I started getting issues with Jcarousel scroller.

Our site URL is [URL]

While old site design is still active at Parenting Forums - Natural Parenting Forum

At new design when we implemented jcarousel scroller it is showing only one image in a horizontal row at jscroller and it disappears immediately and after 3-4 min it do reappear again. When I inspected it using firebug I have noticed that other images are coming below vertically not horizontally, really strange. Also I noticed another thing is that it is not updating width at element.style in firebug for UL tag. It is showing fix width 220 px all time. I think due to that all images appearing vertically one after one rather than horizontally.

Code:
<style type="text/css">
.jcarousel-skin-tango .jcarousel-container {
-moz-border-radius: 0px;
background: transparent;

[Code].....

View 3 Replies View Related

Binding A Value To Textbox Not Working Properly In IE?

Sep 28, 2009

While i am binding a value to a text box using java script. It will properly in all browsers other than IE. In IE the value bind as 'undefined' in the text box . so please provide solution for this one. The code sample is given below.In this "Flight Search " is the text box id . I have to bind that value from the previous page selected value.

function SelectAirport(val) {
var id = val + "_lnkCity";
var lnk = document.getElementById(id);

[code].....

View 1 Replies View Related

JQuery :: Buttonset() Span Not Working Properly With IE7?

Jul 19, 2011

I'm using the lastest version of jquery and I themed a list of checkbox with it. Im IE7 every time a user clicks on the buttonset span(which is pretty much the whole button as far as the users are concerned) the page gets scrolled up about 600pixels up.

This is really not a good thing, especially since those radios are located pretty far down a page with a scrolling bar, can you image the users who want to select 60 options? Having to scroll back down every time? How do I stop this infernal Jquery behavior? I literally use nothing else but this to these my radios:

$(".prettyme br").replaceWith(''); //fix RadioButtonList Bug
$(".prettyme").buttonset();

I really need some help on this, I spent hours trying to fix this.

View 4 Replies View Related

JQuery :: Date Picker Not Working Properly In IE 7?

Oct 18, 2010

The Date J query Date Picker Not working properly in IE 7

View 1 Replies View Related

JQuery :: Images Resizing Not Working Properly?

Apr 20, 2011

I have a lot of images on a page and the have to be a little bit larger, so i dont want to change all of the css.I have made a couple of lines of code which doesn't give the right values back.The images have all diffrent sizes.

$('.imgbox').each(function(){
var getX = $(this).width();
var getY = $(this).height();[code]....

there's probably some thing wrong because it gives me very big values back.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved