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.
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?
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").
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 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'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.
IE browser (even IE8) is giving warning when I open a webpage with JavaScript in it. I can of course close the warning but since I am developing webpages that will be deployed and used by customers, customers will get the warning messages too. How do I design webpage that don't popup ActiveX warning message on customer browser when they open pages with JS in it?
I was wondering if it was possible to have a variable count down in a window.confirm dialog box. Like the type of message some systems have to log users out automatically.
E.g "You will be logged out in x seconds. Do you want to stay logged in. Yes No"
where the x value would count down and if they didn't press yes then they would be redirected to another page to log then out.
how can I make it hold only X amount of messages then after X amount of messages it just removes the last one.This isn't all the code but I figure it has to be something within this code that I have to change. If you want to look at the source code to go [URL] and take a look there.
//Function for initializating the page. function startChat() { //Start Recieving Messages.
I'm trying to make a prompt where if a person types in their username, according to the name it will play a hello message with their name and have their own background.
The script so far looks like this, but I'm trying to make it work.
<script language="JavaScript"> name=prompt("Please Enter Your Name""); if (name == "Ex1") { document.write("<html><head><title>Welcome " + name + "</title></head><body><EMBED src="sound1.ram"><h1>Hello, " + name + "</body></html>"); } if (name == "Ex2") { document.write("<html><head><title>Welcome " + name + "</title></head><body><EMBED src="sound2.ram"><h1>Hello, " + name + "</body></html>"); } if (name == "Ex3") { document.write("<html><head><title>Welcome " + name + "</title></head><body><EMBED src="sound2.ram"><h1>Hello, " + name + "</body></html>"); } //etc } </script>
'Error On Page' messages, IE only.. I need badly to get rid of these error messages. i'm showing my sites to potential employers. When clicking on the ! icon, the so-called 'Details Page' is too cryptic to be of help usually. the line numbers do not correspond to the JS's line numbers (i'm using BBEdit).
I am trying to fadeIn error message received from the server.Here is the code:$("#" + RowID + "> TD:nth-child(4)").append("<err class='error'>" + err.Message + "</err>").fadeIn(1000);But the fadeIn() does not seem to work, it shows the message straight away ..off courseI am missingsomethinghere, probably the append() and fadeIn() do not go hand in hand.
When I have this form loading its loading both messages when I told it to hide it and don't know why. I looked inside the source code of the form and it's not saying the jquery function is involved.
I have 2 java Servlet files EmpRecord & Delete. Employee has a button of delete, on clicking it....page will be redirected to Delete.java Here the record will be deleted. Now, I want to redirect Delete.java back to EmpRecord.java where the message "Record deleted" will be displayed. How can I pass the message from Delete.java to EmpRecord.java to display the message?
Looking to have a div on my page that will give the user some tips or help for that specific page.There should be a "dont show me again button" so the div will dissapear and the user wont see it again..What is the best way to approach this?Ajax calls, cookies, session variables, storing info in mysql?. Im developing in PHPIve heard a lot of different ways but looking for the best way..