Easy Debug Question?

Jul 23, 2005

I know this has to be easy, but I can't seem to figure it out. I'm debuggin' someone elses code...

x="hello";
+x+"world"

....and I don't get it! What does the "+x+"world" do? If I alert(x) the only thing that comes out is "hello". I also wondered why it doesn't error without the ";" at the end of the line.

View 3 Replies


ADVERTISEMENT

Best Way To Debug Javascript

Jul 23, 2005

What is the best way to debug javascripts? Do it in Visual Interdev? Or just look at if any errors come from browsers.

View 2 Replies View Related

Should Be Easy - Variable To Email?

Jul 23, 2005

This is a novice question, but I'm stumped. I have a variable with a bunch
of text assigned to it. Now I want to email the value of the variable. I
have a simple form that asks for their name and emails that, but how do I
add the variable result?

View 3 Replies View Related

How Do I Validate / Debug A Javascript?

Aug 3, 2005

When you write html or css then the validation proces is a good way of
finding errors. I get some syntax error / code: 0 errors in IE, how can
I figure out what the problem is. The thing is - it works - but it does
not look good when IE says the page is done with errors...

View 4 Replies View Related

Debug Javascript In A JSP Web Application?

Sep 29, 2005

Is there any way to debug javascript in a web application? When I
develop JSP pages, and it has the javascript code in it. The problem is
the debugger in Java IDE (WSAD in my case) can only debug Java code but
not Javascript code.

What should I do to debug javascript code?

View 2 Replies View Related

Easy To Use Vertical Scroller?

Mar 17, 2011

I know nothing of js yet, I'm still studying CSS & PHP. So I'm just looking for a ready made script for vertical scrolling. I found one that does exactly that, but all the css styling is done in the javascipt, so I was completely lost. I want to be able to just enter the html (into the js array if neccessary, I can do that much lol) and have it scroll upwards, simple as that. The nearest thing I could find to what I want is this Creating a vertical content scroller using DHTML I can style my div & images myself, then all I need to do is enter the html and away it goes, but it functions just like the marquee tag in that it waits for the entire content to clear before it starts scrolling again.

View 5 Replies View Related

Debug To See Which Values Take Variables?

Nov 21, 2011

Can I debugge Javascript code to see which values take my variables?

If so, How can I do it.

View 13 Replies View Related

Easy Regex Question

Dec 4, 2003

How do I add blank space as acceptable in this expression?

//checks for numbers, - or space only
function checkPhone(frm,fld){
obj = eval("window.document."+frm+"."+fld);
tstval = obj.value;
re = /^[0-9-]+$/;
if(!tstval.match(re)) {
alert("Numbers or dashes only please.");
obj.focus();
return false; }
else { return true; }
}

View 4 Replies View Related

Debug The Calculate Function?

Dec 2, 2007

debugging the calculate function

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!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">

[code]....

View 2 Replies View Related

Debug In Classic Asp Pages?

Mar 6, 2010

I just started a job doing classic asp and only have experiance with asp.net and no java scrpt

How can i debug javascript in classic asp pages?

i have no clue so If you know, please give baby steps that are idiot proof :thumbsup:

View 3 Replies View Related

BoxOver - Easy To Use Floating Captions

Jul 23, 2005

I just finished developing a javascipt component allowing floating
captions to appear over HTML elements....

View 3 Replies View Related

Easy Form Validation With Javascript!

Feb 24, 2006

Form validation using JavaScript has never been as easy and simple! We
have developed a free generic form validation script that can validate
any form with very little JavaScript required in form!

For example:

A normal HTML form with out validation:

View 2 Replies View Related

JQuery :: How To Debug Syntax Error

Sep 11, 2010

I keep getting a syntax error on line 3 and 4 of this very simple script. Normally firebug would give me enough info to fix this but jQuery escapes me. I can see no reason for the errors.
<script type="text/javascript">
$(".shipping-switch[name='shipping_switch']").click(function(){
var selector = "div#sub-address";
if($(this).val() === "1"){
$(selector).slideDown("fast");
} else {
$(selector).slideUp("fast");
}});
</script>

View 2 Replies View Related

Easy Way To Configure A Message Box To Resemble?

Feb 23, 2010

I was wondering if there was an easy way to configure a message box to resemble that of a login form.It would preferably have two text fields for username/password and OK and Cancel buttons as well.I currently have a normal login form on my website designed using PHP but it does not figure into what we need to do now. I'm not sure about going about this and I have tried looking for quite sometime for an example of this but cannot find one.

View 5 Replies View Related

Debug Js File That Will Not Show In Broswer

Nov 14, 2005

I'm learning to make JS files and using the tutorials, but I only get a blank screen. Can you tell me what I'm doing wrong. Code:

View 5 Replies View Related

Debug Error From Script Coding?

Jan 7, 2010

I have to debug the error for eleave system for a company. when i do the testing i define that having an extra day for the service length at the system. i don't want you to settle the problem for me, just tell me where can i find the source to know where is the problem? at least i know where the souce it, so i can repair it.

View 1 Replies View Related

Easy-to-use And Free Script IDEs?

Nov 9, 2010

Can anyone recommend any easy-to-use and free JavaScript IDEs?

View 5 Replies View Related

Easy Site Update Form

Jan 12, 2006

Is there a way to change a javascript's output on a website without directly manipulating the source code? Just by entering some info in a form, then hitting submit. Then it automatically changes the content of a website.

What I want to happen is to change some text (specifically a news ticker) on my javascript, located in between the head tags, just by inputting new information on a form which automatically replaces the old one.

View 3 Replies View Related

Debug Script That Works OK In Firefox And Not In IE?

Jan 22, 2011

I have a couple of problems with my site related to javascript

These areas of the site use jquery and they work fine in Firefox and Chrome but not in IE

First problem is related to tablesorter and pager (jquery plugins) that give a properly paginated list of members in Firefox but gives all the returned members in one big list using IE (and usually a complaint that 'this script is taking too long' as well)

The other problem is related to the member search age, it has these expandable areas where the user can select further search criteria - they use jquery 'slider' to reveal the collapsed areas, again this works fine in Firefox or Chrome but looks messy in IE

To compound the problem the only javascript debugger I have is a plugin for Firefox called Venkman which I find pretty useful to find problems with AJAX etc, but seeing as the jquery/javascript stuff works OK in Firefox it's difficult to fix what isn't wrong there!

So really, how do I go about even beginning to understand these problems so I can fix them?

View 9 Replies View Related

Easy Way To Write Non English Chars?

Aug 6, 2011

I'm kind of new to js, I wanted to write some non english chars inside an array, and it only seems to work if I write unicode notation, e.g. "u1234" per char. I was wondering if there is some easier way to do this, maybe somehow specify to the browser that the js file is utf8-encoded or something similar, but I'm not sure how to do that.

View 3 Replies View Related

Debug Updating Hidden Field?

Feb 13, 2011

what i want this to do is take the x_cityid and add it to teh hidden field with the id of citiesid (I will do an ajax call before this but my simple javascript is not working)what am i doing wrong?

function addtocitylist() {
var x_cityid = document.getElementById('x_cityid');
var x_areaid = document.getElementById('x_areaid');

[code]....

View 22 Replies View Related

JQuery :: Debug Scripts That Are Loaded With GlobalEval()?

Aug 19, 2010

I have a piece of code that I dynamically load using globalEval(). But I am not able to debug this piece of code, specifically in IE, even when I place a "debugger;" statement.

View 3 Replies View Related

Debug In Microsoft Visual Studio 2005?

Mar 8, 2009

How can I debug JavaScript and use intellicence in JavaScript in Microsoft Visual Studio 2005.

View 1 Replies View Related

Easy Slider Numeric Navigation Not Working IE6?

Jan 18, 2011

I have inserted the easy slider code into my web page to make a sliding gallery. I attempted to modify the code so that numeric navigation AND arrow navigation (next, previous) could toggle slides BUT I can't see the number navigation in IE6. Every other browser I have tested (mac Safari, Firefox, and Google Chrome as well as IE7,8) work perfectly. Since I modified the original, I assume the error is in my javascript code OR in my CSS.Here is the Javascript:

/*
* Easy Slider 1.7 - jQuery plugin
*written by Alen Grakalic
*http://cssglobe.com/post/4004/easy-slider-15-the-easiest-jquery-plugin-for-sliding[code]....

View 2 Replies View Related

Auto Div Refresh And Easy User Changability

Jul 1, 2010

I need to make a website that will be used as a traffic light system. So i will have a page with loads of divs starting red, that will change to green when clicked once, and back to red if clicked again, so on, so on. These changes will need to be viewable live on another computer, so changes need to save and will also need to automatically refresh without distrubing the rest of the page.

View 22 Replies View Related

Javascript Canvas Manipulation Showing Error / Debug It?

May 20, 2011

I am trying to make a canvas element display an image with some text on using canvas.drawImage and canvas.fillText. Only problem is my code is generating a very odd and hard to debug error.

View 2 Replies View Related







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