I'm pretty new to JS, used to be back-end guy with strong front-end skills (HTML, CSS), learning JS now and I have a huge problem.
I'm using Windows 7, coding mostly in NuSphere PhpED, but I see it doesn't work so well for JavaScript.
What's the best tool for JavaScript coding in Windows, maybe with built-in debugger (I hope there's something else than Firebug, Dragonfly etc.) with syntax coloring, and perfectly with a feature like this one
Maybe you do know the best syntax-help Windows editor for PHP too? (PhpED is not perfect IMO). Eclipse?
BTW - if there are any OSX based front/back-end webdevs - put screens of your editors features (JavaScript & PHP preferably). I'm thinking about switching to MAC, but haven't got cash for that at this moment (and I'm kind of Apple hater, however I believe in front-end field they have no contest).
I want to know what is the best Javascript editor for Windows, that have a good syntax highlighting, IntelliSense(it's that technology of the menu when typing, like on Eclipse, but I can't remember it's correct name) and a class browser, what is very useful when you want to see the names of your classes and functions, also to browse on then.
I want to know what is the best Javascript editor for Windows, that have a good syntax highlighting, IntelliSense(it's that technology of the menu when typing, like on Eclipse, but I can't remember it's correct name) and a class browser, what is very useful when you want to see the names of your classes and functions, also to browse on then. Something like VbsEdit, but for JavaScript, because I use it to my VBScript things, but now I'm moving all to this wonderful world of JavaScript.
pValue: The object pName: Instance name of the object. Default: "input" pType: Which type to be return (text or html). Default: "text" pLevels: The max amount of levels. Useful if an object references a parent. Default: infinite
Returns:
A string with the properties
function _viewObj(pValue,pName,pType,pLevels,pObj) {
function objExists(pCurr) { for (var i=0; i<pObj.length; i++) { if (pObj[i]==pCurr) { return true; } } return false; }
pType = new String(pType).toLowerCase(); if (new String(pName) == "undefined") pName = "input"; if (new String(pType).search(/html|text/i) == -1) pType = "text"; if (pLevels == "undefined") pLevels = -1; /* Infinite */ if (typeof pObj == "undefined") pObj = []; var str=""; if (typeof pValue != "function") { // No functions / methods - just values var br=(pType == "text"? " " : (pType == "html" ? "<br>" : "")); if ((typeof pValue == "object" && !!pValue) && (pValue.length) && (!pValue.substring)) { // An array try { for (var i=0;i<pValue.length;i++) { if (pLevels==0) { str+=br+pName+"["+i+"]: "+pValue; }else{ str+=""+_viewObj(pValue[ i ],pName+"["+i+"]",pType,pLevels-1,pObj); } } } catch (e) { str+=br+pName+": "+pValue+" (Not an array)"; } } else if (typeof pValue == "object" && !!pValue && (!pValue.substring)){ // An object try { for (var prop in pValue) { if (pLevels==0) { str+=br+pName+"."+prop+": "+pValue; }else{ if (typeof pValue[prop] == "object" && objExists(pValue[prop])) { str+=br+pName+"."+prop+": [Parent Object]"; }else{ pObj.push(pValue); str+=""+_viewObj(pValue[prop],pName+"."+prop,pType,pLevels-1,pObj); } } } } catch (e) { str+=br+pName+": "+pValue+" (Not an object)"; } } else{// if (typeof pValue != "object") { // Simple value str+=br+pName+": "+pValue; } } return str; }
edit:
Avoiding never-ending loops by checking for parent objects.
Ex:
var parentObj={id: 2}; var test={id: 1,par: parentObj}; parentObj.tst=test;
According to the Sitepoint FAQs, most serious programmers debug their scripts by hand, but when my javascripts don't work , I like to be told why, the more explicitly the better.
I used to have NN4 and its debugging was fantastic (certainly more helpful than IE and Opera, although theirs aren't too bad). I was just wondering what other people think is the best browser/resource for debugging javascript. If it's Netscape, does this mean I have to download the whole browser, and does the debugging vary with version number? Which would be the best to get? (Note: I'm only interested in its debugging capabilities, not its quality as a web browser).
I have a javascript program that works fine under Firefox and on IE when running XP, but is having a problem with IE running under Windows 2000 Pro.
On my personal XP development machine I have the Microsoft Script Editor and I can set a breakpoint, step through code, inspect variables, etc... with no problem.
On a machine where I am trying to debug this problem I am running Windows 2000 Pro with IE 6. I installed the Microsoft Script Debugger. When the program hits the exception the script debugger will come up and show me the line where the error occurred.
I need to be able to inspect the variables to determine the problem. However, from what I can tell, there isn't anywhere to inspect or watch the variables in MSD?
below is clickunder code , but it open under windows when visitor click everywhere on the pagei need it be speacial for links , whenever visitor click on speacial link , it opens windows
<SCRIPT LANGUAGE="Javascript"> function PopShow3() { CookieTest=navigator.cookieEnabled; if(CookieTest)
This pops up a new window with every call. In the child window I call a parent function onbeforeunload, appClose() :
function appClose(){
if (window.opener && !window.opener.closed){ window.opener.CloseChild(getQueryString("application")); }}
This is in my frameset tag of the child code :
<frameset ... onbeforeUnload='appClose()'>
The window.opener.CloseChild() function is called perfectly when I have one child window open, but as soon as I create another child window both of the open child windows don't ever call it. They do both go into the onbeforeunload appClose() function, but do not call the window.opener.CloseChild() function inside of this routine.
Anyone have any ideas why when I have two child windows open I can't access the window.opener functions?
I have tried taking each new window out of the array and used the following code in CloseChild() :
I am working on developing a not too complex bbCode editor, the first part I want to set up is bold, italics, and underline. I have my layout set up with images for each style. How do I set my images up so when they are clicked the add a tag in the text area where the cursor is? Also, if text is highlighted, how can I set it up so opening and closing tags are wrapped around the highlighted text?
I'm on to make a rich text box for my website . I've put many tools for it as the one I'm typing in now , But there are some important problems that don't let me finish it : Which one is better for editor ? <div> , IFrame or Active X controls ?
I am looking for a Javascript WYSIWYG editor that I can include into a perl script to allow for editing a formfield, similar to what this forum offers when you make a post. Is there a script that I can use to code into the perl script to allow that to happen?
I have one web page, in it i want to get the content from user for some description.I used earlier as a text area field.Now i want to put simple HTML tags included editor.(as like we enter this description in sitepoint).
Has anyone seen a javascript image editor of any sort?
I can imagine one that allows you to load up an existing image - draw lines, place text, fill etc using something like XMLHttpRequest to work. It would be like a java image editor but lighter. It would then let you save the new drawing.
I've tried looking round but not found much except a business card designer which allows you to type text at predefined locations.
I am completely recoding my website and also planning to have a rich text composing feature. This means that I need to construct a rich text editor to make it all happen.
I have tried coding rich text editors and I know how they work, but when it comes down to browser compatibility (to some extent) and user interactivity, I fall behind.
Therefore I need to use a Rich Text Editor that is commercial, but is customizable and can be embedded easily into a website. Also if possible, some security features (outside HTML pasting, text limits, etc...).