Debugging Simple Script Under Aptana

Sep 15, 2007

First, is this an appropriate NG for talking about debugging
JavaScript in Aptana?

Assuming it is, I'm trying to get a script to read an external text
file and display the text somehow. The script just dies in the file-
read operation, with no symptom. I tried unsuccessfully to get the
Debugger to run the HTML file.

I put up the following on my personal website:

1. The HTML file: http://home.comcast.net/~CaptQueeg/DemoFileIO.html
2. Some Aptana settings: http://home.comcast.net/~CaptQueeg/...bugSettings.jpg

Did any obvious mistakes jump out at you? Do my Aptana settings
suggest a reason why I can get anything happening under the debugger?

View 4 Replies


ADVERTISEMENT

Debugging A Simple Function - Move The Object - A Paragraph Element Node With Id Message - To The Right

Jan 18, 2010

I'm trying to attempt a simple animation, as indicated by the following code. The intention is to move the object (a paragraph element node with id message) to the right by 200 px and down 100 px, by 1 px a second.

However, there seems to be a bug or my methodology is incomplete as the browser returns the Textvalue of the paragraph without any styling.

Code:

View 1 Replies View Related

Debugging In Opera

Jun 28, 2006

I really want to make my scripts work in Opera. I really, really do.
But it seems like an uphill struggle. First of all, I can't get ANY
kind of debug output. No error messages in the "javascript console" -
but then, I have never seen ANYTHING in Opera's javascript console. Is
there some kind of voodoo I need to perform in order to make that work?

Then, when Opera doesn't like something about a script (even if it works
fine in Spidermonkey), it will sometimes refuse to load it entirely,
which means I can't even do alert() based debugging. What the hell?

Can anyone give me some insight as to how they go about making their
scripts run properly in Opera? I make a point of sticking to ECMAScript
standards (and then making per-browser exceptions where needed *COUGH
IE*), but Opera just doesn't want to cooperate.

This is in Opera 8, by the way. I haven't upgraded yet, since I don't
use it, and I think more people still use 8 than 9 so that's what I want
to target.

View 6 Replies View Related

Get IE Debugging Tools?

Mar 5, 2010

Microsoft Script Debugger has been depreciated.

What tools are recommended for debugging JS for IE? I'm only interested in IE7 and 8, but mostly 8.

There are plenty of tools for FF...

View 1 Replies View Related

Javascript Debugging How?

Jul 21, 2001

If I write a Javascript and want to debug it, what's the best way to do it. The browser just says, "error in the page!"

View 7 Replies View Related

Debugging Javascript

Oct 23, 2006

I have many bit of javascript code that does not work. Becasue I dont have a great heal of experience using javascript, Im not too sure where the code goes wrong.

Is there any good javascript debuggers that I can use that will allow me to go through line by line of that javascript code to see whats going on?

View 4 Replies View Related

Get JS Debugging Messages

Mar 4, 2010

I'm finding (like small syntax errors) in my JS/html which are sometimes hard to spot straight away. For example, when coding python on the web, I usually use try: except: and then use the error function to output what went wrong on the webpage.

View 3 Replies View Related

JavaScript Debugging Tool

Jul 23, 2005

Is there any IDE supporting javascript debugging?

View 2 Replies View Related

Debugging Remote JavaScript

Dec 4, 2006

A newly added, not-quite-wanted function of my job is remotely
debugging JavaScript errors on other people's web applications. I have
tried finding a JavaScript debugger that would allow me to do that, but
other the Microsoft Script Debugger, I couldn't find any other.

Are there such programs? Basically, what I'd like to be able to do is
trace commands step by step and view the values of certain variables.

I was unable to figure out how to get Microsoft Script Debugger to
work. I read the documentation and executed it, but I keep getting
"Syntax error" messages whenever I want to see the value of a variable.
Add to that the fact that I am not a developer and I do not know
JavaScript (other than to read it, which is enough for me to figure out
what the problem is) and you see my problem.

I have read about the option of adding message boxes all over the
place, but this would not work out for me either, since I would need to
make changes to this code on the web server, where I don't have access,
and it would be a lot more tedious.

For those skeptical as to why I still expect to be able to debug
problems:

The problems are caused in most cases by the proxy we add on their web
servers, and they are due to values being changed on the fly. I only
need to find out where the code breaks and read the values of the
variables, which gives me the solution ("do not change this variable").

View 1 Replies View Related

JQuery :: Debugging An Ajax Script?

Dec 23, 2010

I recently changed my commenting system to display comments from newest to oldest (newest first). I also moved my comment form above my comments, like in Youtube.However, I have many JQuery problems when I have 2 or more pages of comments. Here are some of them:

1. If I comment, the last page (oldest) comments are displayed when the comment is submitted.

2. If I "reply" to a comment, the comment form moves below the comments.

Code:

function setup_comment_ajax() {
jQuery(".comment-navigation a").livequery("click", function () {
$link = jQuery(this);

[code]...

View 1 Replies View Related

JQuery :: Installing, Using, And Debugging A Plugin (jqPrint)?

Jun 8, 2011

I'm looking for a little help/feedback regarding using a plugin called jqPrint. I haven't used jQuery extensively, and I am new to plugins, so please forgive any novice errors.

First of all, i see on the source page for the plugin [URL].. that it is made for 1.3.x. I assume this does not mean that mean it is incompatible with 1.4.2, which is what my project uses. I have a script with the source code, and I can access a test function. However, I'm running into several problems when trying to to use the primary function of the script.

[Code]...

I'm not quite sure what I'm doing wrong. The script is set up so I can access a test function, but the source function does not work. I would think anyone using the author's script should not need to edit it, but I can't figure out why my project cant' find the jqprint function.

View 8 Replies View Related

Debugging & Logging A Server Side Script

Aug 28, 2009

I have a couple of server side scripts that keep troubling me. So far I used Visual Studio to debug them, but for some reason I can't put in breakpoints and stuff ... So debugging like I'm used to is not possible. (I'm developing the sites in dreamweaver) I've tried adding a logging function to a flat textfile, but I've been told traditionally writing to a file is not possible in a server side script... how I can best debug such an application? Is it possible to do so in Visual Studio? Another tool?

View 2 Replies View Related

Debugging Mad Libs, Accessing Text From Input Boxes

May 19, 2011

I've been playing around with a madlibs exercise while trying to learn simple javascript. I have three input boxes and a button display an alert containing the input from the boxes.

Am I right to be assigning variable names to the values from the text boxes and then referencing those variables in my alert?

I've been working on it for hours and can't get past this point.

Inset a name:
<input type="text" id="textbox1" size="10"/>
</br>
Insert a verb :

[Code].....

View 1 Replies View Related

Simple Javascript

Jul 23, 2005

I have a form1 with two fields, field1 and field2. I want the contents of field1 to be transferred to field2 onBlur, but with some changes. I want the contents of field1 to have its spaces replaced with Dashes, and all punctuation removed, so this can happen:

FIELD 1 value:
Today's rate is 15%, & the outlook is good.

onBlur should then create a value of:

FIELD 2 value:
todays-rate-is-15-percent-and-the-outlook-is-good

Notice that the "&" was converted to "and", the "%" to "percent". The comma
was deleted and all spaces replaced with Dashes. The second field should
only every contain alphabetic letter, dashes, and numbers.

View 3 Replies View Related

Simple Replace

Feb 20, 2006

I want to replace all occurences of this ),( in my string with a comma .....

statement=statement.replace("),(",",");

This only does the first. I've been reading about adding "/g", but haven't
got it to work. I've messed about with no luck. Any quick pointers?

View 2 Replies View Related

Simple Ajax

Oct 2, 2006

i look for a simple ajax, for a beignner, able to send a request for a text file and show its content in a <div />.

View 6 Replies View Related

Simple Bookmarklets

Mar 18, 2003

Here's a small collection of bookmarklets for disecting your own (or other people's!) websites. They do things like, show all TABLE elements with a red border, hide non-link images, and so on...

View 23 Replies View Related

Simple Counter

Oct 26, 2005

i need a 5 second counter to start when the page loads. basically the usage is I want people to click a link, and if the page has been loaded for more than 5 seconds, do thisFunction().. if not, do nothing.

so basically

<script type="text/javascript">

window.onload --> start the counter
// when the counter hits 5 seconds, set var done = true;

function thisFunction() {
if (done = true) { proceed with function)
else {do nothing}
}
</script>

...

<a href="linkyPoo.html" onclick="checkCounter">OO oOO, click me!</a>

View 8 Replies View Related

Simple Validation

Jun 13, 2003

I'm trying to write some validation for a field called Propid, in a form called qSearch. Basically if there's nothing in Propid, or it is says "ref no.", I want to alert the user, otherwise, I want the form to submit.

Here's what I have at the moment:

Code:


<script>
function checksearch()
{

if (qSearch.Propid.value!="ref no." )
{
alert ("Select reference number" );
qsearch.Propid.focus();
return;
}
if (qSearch.Propid.length != 0)
{
alert ("Select reference number" );
qSearch.Propid.focus();
return false;
}
}
}

View 6 Replies View Related

Simple Settimer

Aug 11, 2004

PHP Code:

<!--
function submitForm()
{
window.setTimeout(document.email_inner.submit(),5000);
}
//-->

im trying to submit my forum after 5 secounds of viewing the page and i have no knowlege of java wat fo ever but ey told me this is the onlyway to do such a thing ... this i wat i have so far in hte header .... it dose nothing at all

View 5 Replies View Related

Simple Regexp

Apr 18, 2005

im tired of working all day...
please how to delete the value with regexp...
i tried this

bla.replace('value="/.+/"', '');

it wont work...

View 5 Replies View Related

Simple Animations

Apr 14, 2006

Just a few questions about simple animations (that aren't Flash). I've searched around but haven't been able to find anything really concrete about alternatives to JS. Basically in terms of simple animation, is JS the be-all-end-all? What other options are there in terms of simple animated menus (besides Flash & animated GIFs)?

Something like the above Quick Links menu; would something like that be possible in only Javascript? Or would there be an alternative?

View 4 Replies View Related

Simple Countdown

Aug 21, 2002

I'm looking for a javascript that will do a 3 minute countdown and display it on the screen, preferably not in a textbox, but i'm not picky.

Here is how it works. Someone will make a selection from a form. The date/time of that selection is then stored in a database. I want to use the date time stored in the database as my starting time and then countdown 3 minutes. After 3 minutes I would like a message saying Times Up, please make a selection.

View 3 Replies View Related

Simple JS Link

Nov 9, 2002

How do I use JavaScript instead of using this " <a target="_blank" href="http://www.OtherWebsites.com">Other websites</a> " if I want to use a list of JavaScript links?

View 3 Replies View Related

Simple Check If Odd Or Even

Aug 31, 2009

Heres my code:

<html>

View 7 Replies View Related

Simple 0 To 13 Loop ?

Sep 20, 2011

I have a rather simple question. It's been four long years since I last dealt with JS and although I remember the basic concepts behind loops I don't remember how to actually implement them.

This is my current code:

What's bothering me is how redundant it is. I would much rather simplify it into a few lines where i increments by 1 from 0 to 13 in the case of image[i] and cover[i]. Is this possible? And if so, how would I go about articulating it?

View 10 Replies View Related







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