Working But Erratic And Messy?

Feb 4, 2011

I have sort of got it working....... The javascript seems to be very erratic though. Sometimes it just won't bother executing it's commands!! For example, I've asked it to reload the page after it has completed it's job. And also to output the result so I can see what's happening. Sometimes, even though it does the database part, it doesn't bother to let me know or to reload the page!Also, sometimes, it will let me know it's done it's job, and then it will reload the page, but then I will find it hasn't actually done anything in the database! I can't understand why a script can appear to have a mind of its own!!

The other thing I'm bothered about is the messy look of my script. Because I have 3 forms, one to add a category, one to remove a category, and one to rename a category, I have had to duplicate the javascript function 3 times, giving each one a unique name to be called by the relevant form.Here's the full script.

Code:
<script type="text/javascript">
function remove_category()
{[code].....

View 2 Replies


ADVERTISEMENT

Erratic Behaviour OnMouseDown?

Sep 6, 2010

I have 9 boxes which I can drag around an invisible grid however when the onMouseDown function is called for the first time on each of the boxes, they behave erratically, then once all boxes have been clicked once, the entire script works as it should. I've tried using default values when declaring the variables however it doesn't seem to do anything.

<html>
<head>
<script language="javascript">[code].....

View 6 Replies View Related

JQuery :: Menu SlideUp Is Very Erratic?

May 11, 2009

I've inherited some unfinished code for a menu system (previous developer left the company before he could finish it). The menu worked fine until the client wanted some nested lists, which is when the height was being set incorrectly. I had a fiddle and I can get the height to report correctly, but it's extremely erratic as to when it will actually drop down. I've stripped the code out into a file on its own, complete with a lovely colour scheme. the code I added can be streamlined somehow. I'm only just getting to grips with JavaScript & jQuery. Test version:[URL]..

View 3 Replies View Related

SetTimeout Erratic - Some Times It Show 20 Mins Has Passed When Only 6 Has In Reallity?

Aug 22, 2009

The JavaScript below behaves erratically - sometimes the timing is perfect, at other times it show 20 mins has passed when only 6 has in reallity - quite some gain - I'm baffled!

Public Function SessionTime(ByVal DivName As Panel) As String
Dim vTime As String = "var sessionTimeout = 19; " & vbCr
vTime += "function ReadCookie(cookieName) " & vbCr[code]....

View 3 Replies View Related

AJAX :: Insert A MySQL Record To A Database - Not Working In FF /C Hrome - Working In IE

Mar 11, 2011

I've the following AJAX code:

[Code]...

This code works to insert a MySQL record to a Database using AJAX. It works fine on IE, but it's not working on FF or Chrome. When I test it on FF/Chrome, i just get the text "Just a second..." and it doesn't advance from there.

View 8 Replies View Related

XmlHttp.responseText Is Not Working In IE, Working Fine In Firefox And Google?

Mar 3, 2009

All Code Working fine in Firefox and Google Chrome, But in IE nothing happened Ajax Function IN MAIN PAGE

<script language="javascript">
var xmlHttp
function showBabyId(str)
{
xmlHttp=GetXmlHttpObject();

[Code]...

View 4 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

DHTML Events Not Working In IE But Working In Firefox And Chrome?

May 10, 2010

I am working on a Javascript application and i am facing a strange behavior of the application in IE. I am creating a table at runtime using DHTML and registering event for the table row click. When i deploy this application on web server and browse the application, the events fires in firefox and chrome but in IE the events are not fired. If i browse the application from the server with localhost, the application triggers the events and fails when i use machine name.

The following is the source code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>

[Code]....

View 4 Replies View Related

Working With Select Boxes - Code Is Not Working?

May 3, 2009

I am trying to create 3 boxes with 2nd select box content to be uploaded on the basis of value selected in first box and third box list should be uploaded on the basis of value selected in 2nd box.i have written coding for that as below but it is not working .

<html>
<head>
<title>Search Website</title>[code].....

View 1 Replies View Related

JQuery :: 1.2.6 Was Working Version 1.4.2 Not Working?

Mar 24, 2010

I was using JQuery 1.2.6 but after I downloaded the version 1.4.2 I get the following error on FireFox: uncaught exception: Syntax error, unrecognized expression: .

View 1 Replies View Related

JQuery :: Working With FireFox But Not Working With IE

Nov 28, 2010

I have are created dynamically buttonset toggle radio button with following code. All is working okay but just I have added onclick function which is doing window.location which is working with FireFox but not working with IE and google chrome.

<script type="text/javascript">
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
$(function () {
$('#btnSet').buttonstrip();

[Code]....

View 1 Replies View Related

Not Working With Firefox It Is Working Fine With IE?

Aug 30, 2009

hereis the html file and javascripton click of this button a

[Code]...

View 1 Replies View Related

Jquery.load() Only Working Once (working With PHP)

Mar 13, 2009

I have an input text field with an add/submit button - it's purpose is to add tags to an article created in a CMS. Whenever a tag is entered

1) I am using a click listener on the submit button

2) and am calling Jquery.load() to perform some checks/validation and

4) add the tag to the database

5) then retrieve the new set of tags for that article and inject them into the DOM.

Therefore there are two click listerners in my header:

1 for the submit button:

$('#tags_submit').click(function() {
var tag = document.getElementById('tags_search').value;
var article_id = document.getElementById('a_id').value;
$('#tags_results').load(submit_link, {tags_search: tag, a_id: article_id});

[Code].....

View 2 Replies View Related

Not Working Locally In IE But Is Working Live?

Apr 10, 2009

I just realized that it seems like Internet Explorer doesn't get Javascript to work locally but only on a live site how can I get Internet Explorer to work locally? as well as live? For testing purposes. Everything runs right in Mozilla Firefox.

View 8 Replies View Related

JS Settimeout Is Not Working In Mozilla But Working In IE?

Sep 28, 2010

JS settimeout is not working in Mozilla but working in IE

View 3 Replies View Related

$.ajax Working With Firefox But Not Working In IE

May 14, 2010

I have a jQuery code to allow users to login using a lightbox [URL] and immediately start downloading files, without being redirected or having the page reloaded. It's perfectly working in Firefox but Internet Explorer keeps showing the login box until I reload the page

[Code]...

View 1 Replies View Related

DOM Code Not Working In IE, Tested And Working In FF?

Feb 23, 2009

I have a website that lists the movies I have on my computer and then when you click on a link for that movie, it retrieves information from IMDB. The code is in testing but for the most part it works.I was wondering if anyone knew why the following JavaScript would work on Firefox but not in IE. I develop on Linux, and I know there are IEs available for Linux, and I have used them before. I will be sure to track down the issue later, but from the resources I've been using, this should work in both major browser types (standards compliant and microsoft).The code is very dirty, and I have started an object oriented rewrite, but if I don't have the proper DOM skills for IE in this spaghetti code then I doubt anything is going to change putting it all into Objects.

JavaScript Code:
Original
- JavaScript Code

[code].....

View 1 Replies View Related

Usually-Working Hover Not Working On 2 Of The Images?

Jan 7, 2010

Let me say ahead of time I haven't the slightest clue how to write JavaScript, I've been copying and pasting for 12 years the same code and it's always worked.Right now, I'm having an issue with 2 of the 4 button graphics not doing the hovering effect they're supposed to. I DID do a search for this and couldn't find it so please forgive me if it is indeed here somewhere.Again, to be clear, 2 of the 4 images ARE going to the 2nd image when hovered over. 2 aren't and I can't figure out why. I've tried JavaScript validators linked from this very site but what they tell me is Greek to me.It's images 3 and 4 that aren't doing their hover effectsHere's the code: (I PRAY I posted this code right. If not, I'll try to fix.)

Code:
<SCRIPT TYPE="text/javascript" language="JavaScript">
<!--

[code].....

View 11 Replies View Related

Close Through Browser Close Button Code Working In IE Not Working In FireFox

Nov 16, 2009

Suppose,closing the browser through Browser Close Button(Top Right Corner cross(x) button), i have to execute some ASP script , for that, in body onUnLoad Event calling a fucntion called CloseWin(e,frm), it is working in Internet Explorer successfully , But in FireFox not working. how to solve this problem. or any other way to get the co-ordinates of browser close button( code for both IE and Firefox).

code follows

function CloseWin(e,frm)
{
//frm required for my program
var bButtonClicked = false;

[Code]....

View 1 Replies View Related

JS Not Working In FF?

May 28, 2009

Have JS that works in Safari, IE but not FF.Very simple code:

<script>
function callFunction()
{
if (eb.TobaccoProds.checked == true)

[code]...

When user clicks (or doesn't click) checkbox in form, the JS sends them to either page above.FF error console tells me that eb is not defined.eb isn't a var, so should not be defined.

View 9 Replies View Related

Not Working In IE7 But Working In IE8?

May 23, 2011

I managed to get my code working finally to automatically populate one dropdown list when the value in another is changed using the following code:

[Code]...

View 1 Replies View Related

Working In IE But Not In FF?

Jun 20, 2009

function AppClose()
{
self.close();
}

i have the above code in asp.net application t close the applcation on a button click
it works in IE but not in FF

View 2 Replies View Related

Not Working In IE

Nov 12, 2004

I have (what I thought was) a simple little JavaScript snippet that changes the <label> of an <input> field from bold to normal upon the entry of text in the <input> field. The code below functions in FF but not in IE. Any ideas why? And, if so, how this script can be made x-browser? Code:

View 6 Replies View Related

Submit Working Only In FF

Jul 23, 2005

I have little problem with this code:

<a href="javascript:;" title="Edit"
ent.formularz.submit()">Edit&nbsp;&laquo;</a>

It's working fine only in Firefox 0.9, but why not in IE or Opera ?
Where is the bug ?

View 3 Replies View Related

Onmouseout Not Working

Jul 23, 2005

Does anyone know why the onmouseout isn't working in the following?
I've just started the script (tho I'm sure I've spent over 40hrs on
this problem alone) and am trying to get just 2 buttons working before
I add the other 4. I'm absolutely mystified by the sticky onmouseout.

I've combined a couple of scripts that I've found in the newsgroup to
accomodate the mouseovers and "active" button action. Only 1 button
can be active at a time. Code:

View 5 Replies View Related

OnBlur Not Working !

Jul 23, 2005

I cannot seem to get these two events to work together. If I change
them to say onmousedown and onmouseup, they seem to work fine. In this
case, the onclick appears to work properly but onblur does not kick
in.

<a href="javascript:submitCheck();"><img border="0" alt="Next"
name="btnNext" src="Resources/SurveyButtons/Next.gif"
onclick="this.src='Resources/SurveyButtons/Wait.gif'"
onblur="this.src='Resources/SurveyButtons/Next.gif'"></a>

Any ideas? am i doing something wrong?

View 5 Replies View Related







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