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?
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.
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.
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?
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.
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").
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);
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.
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?
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 :
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.
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...
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>
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.
<!-- 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
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?
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.
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?
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?