~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Maybe something along the lines of this (untested)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
            "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <meta http-equiv"Script-Content-Type" content="text/javascript">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="Expires" content="0"> <!-- disable caching -->
    <title>Example</title>
    <script type="text/javascript">
    timerHandle = null;
    value = null;
    function showPress(val) {
      // Set the global variable 'value' to the value which the user
      // selected. It has been kept global so that it can be used
      // by the timeOut function even when there is no user event 
      // and the displayTable is called on the latest 
      // value from drop down.
      value = val;
      
      // Firstly populate the contents of the table.
      displayTable();
    
      // Create a new timer only if one doesn't already exist which
      // would call the displayTable function at an interval of
      // 30 seconds starting now.
      if(!timerHandle) {
        timerHandle = setInterval(displayTable, 30000);
      }      
    }
    
    function displayTable() {
      // Make an ajax request using 'value' and check the status
      document.getElementById("txtHint").innerHTML = xmlHttp.responseText 
    }
    </script>
</head>
<body>
  <form id="frm" name="frm" action="#">
  <select name="eqno" onchange="showPress(this.value)">
    <option value="1" >Number 1</option>
    <option value="2" >Number 2</option>
    <option value="3" >Number 3</option>
  </select>
  </form>
</body>
</html>
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> In the experiment I am trying now, as you see, I have put the marker data directly into the
> body of the HTML.

You can definitely do it though I am pretty sure it won't be of any use as such since Javascript replaced that way won't be executed the way you are thinking it would. Plus it is craziness trying to do this client side when you can very well dynamically write out a Javascript. But since you are doing it for fun, you would be happy to know that you can grab hold of a <script> element the way you do it with normal elements by assigning it an ID.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
            "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <meta http-equiv"Script-Content-Type" content="text/javascript">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="Expires" content="0"> <!-- disable caching -->
    <title>Example</title>
    <script type="text/javascript">
    function showAll() {
      var txt = document.getElementById("targetScript");
      alert("script content: " + txt.text);
      alert("a: " + a);
    }
    function replace() {
      var oldScript = document.getElementById("targetScript");
      oldScript.text = "a = 100;";
    }
    </script>
    <script type="text/javascript" id="targetScript">
      a = 1; b = 2; c = 3;
    </script>
</head>
<body>
  <form id="frm" name="frm" action="#">
    <input type="button" value="Show All" onclick="showAll();">
    <br><br>
    <input type="button" value="Replace" onclick="replace();">
    <br><br>
    <div>Instructions: First click on 'Show All' and it will show you the 
    contents of the script. Then press 'Replace' to change the script
    contents and again press 'Show All'. Note that it still doesn't
    change the value of 'a'!
    </div>    
  </form>
</body>
</html>
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

An oversimplified example would be:

Parent.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
            "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <meta http-equiv"Script-Content-Type" content="text/javascript">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="Expires" content="0"> <!-- disable caching -->
    <title>Parent</title>
    <script type="text/javascript">
    targetElement = null;
    function makeSelection(frm, id) {
      if(!frm || !id)
        return;
      targetElement = frm.elements[id];
      var handle = window.open('Child.html');
    }
    </script>
</head>
<body>
  <form id="frm" name="frm" action="#">
    <span>Name: </span><input name="txtName" id="txtName">
    <input type="button" value="Select Name" onclick="makeSelection(this.form, 'txtName');">
  </form>
</body>
</html>
Child.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
            "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <meta http-equiv"Script-Content-Type" content="text/javascript">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="Expires" content="0"> <!-- disable caching -->
    <title>Example</title>
    <script type="text/javascript">
    function makeSelection(frm, id) {
      if(!frm || !id)
        return;
      var elem = frm.elements[id];
      if(!elem)
        return;
      var val = elem.options[elem.selectedIndex].value;
      opener.targetElement.value = val;
      this.close();
    }
    </script>
</head>
<body>
  <form id="frm" name="frm" action="#">
    <span>Names: </span>
    <select name="nameSelection">
      <option value="holly">Holly</option>
      <option value="golly">Golly</option>
      <option value="molly">Molly</option>
    </select>
    <input type="button" value="Select Name" onclick="makeSelection(this.form, 'nameSelection');">
  </form>
</body>
</html>

The code in itself is self explanatory but feel free to ask for explanations.

FireNet commented: Thanks for the javascript code, works for my needs +5
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> images[0] = new image(); images[0] = new Image();

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Or a better way would be to encapsulate all the functions which need to be executed inside a single function and call that function instead. <body onload="doAll();">...</body> > It seems that one disables the other and only one is working when previewed together.

We would have no way of knowing what the problem is unless you post some code or provide some more explanation.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You can always make two server trips and pull the required information one at a time. Another way would be to use JSON to pull in data in a single server trip by sending the data in the form: { city: ['C1', 'C2', 'C3'], state: ['S1', 'S2', 'S3'] } and interpreting it accordingly using Javascript.

All you need to know to successfully complete the above exercise is how to make an Ajax request which in itself is pretty simple; more so when using lightweight Ajax libraries like Ajax Toolbox.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> The thing that you don't see is that the object is created globally.

What? Which object? And whatever happened to scoping rules in Javascript?

> The thing passed around in the function calls is a pointer to the object, not the object itself.

You are way off the actual topic under discussion.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

My post was not meant to open up a whole new can of worms regarding the font size and the column limit currently used; the only point I wanted to make was that one of the way to do away with the frustrating experience when posting code was to use spaces instead of tabs and follow the ?? column limit Daniweb has.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

OK, let's look at things from a broader perspective. The 'replacing' which you keep on talking about is not the cause, it's the effect, an action done to produce certain result; which in our case being able to modify the contents of 'map' dynamically after the page has been loaded.

What kind of event would initiate this 'replace'? Would it be some background function which executes after fixed intervals of time or some function which is fired on a user initiated action (like a button click)?

The cod which you posted, below the //markers is nothing but adding / modifying the contents of the map variable. So, if you can effectively figure out a way of updating the 'map' after the page has completed loading, you have your solution. This I fear, depends a lot on how you are actually pulling in the data or making the external data available to Javascript. Assuming that your data is available to the program in a JSON string; you can iterate over its contents and update the contents of 'map' variable accordingly.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Just follow the golden rule of never using TABS in your source code along with following the 70/80 column limit by using good source code formatters and you should be good to go without having to rely on which algorithm is used to format/render your code.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> Usage: java FriendClient <host> <friend_port>

This means that the program expects two command line parameters; the host name / address of the person you want to chat with along with the port to which chat application will listen to on his computer.

Like it has been already mentioned rightly, you need to read some good beginner books before diving in a complicated topic like Socket programming.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

It is a bit fuzzy as to what you are trying to do here but as far as I can see, you need some way of automating the data which adds markers to the Javascript 'map' object on the fly by reading in data from some external XML file.

One way of doing this would be to dynamically write out Javascript using the server side language of your choice. Simply put; you read in the XML file using some SAX/DOM parser, run a loop which would dynamically write out the common three lines of javascript code with server side tags embedded in them so that once they are served to the client they contain the entire data you have in your XML/external file.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> UNIX and DOS use different encoding for tabs.

A tab is a tab and nothing but a tab. There is no *different* encoding. It's just the way a tab is rendered (w.r.t. the number of spaces) which differs. Plus AFAIK, it has got nothing to do with the OS as such but rather the piece of software used when visually rendering a tab.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> Ok...when i change the line this.value = this.dummy(value) to this.value =
> this.prototype.dummy(value) the code runs.

Are you sure this works, because IMO it shouldn't. Try to instantiate your object in a normal manner and see this line blow up. The prototype property of the object is not the same as the prototype property of the Constructor object. Each object created using a constructor has an *implicit* reference to it's Constructors' prototype. It works in your case because in your CREATE function you end up assigning the prototype property of the Constructor object (TestConstructor) to the prototype property of the newly created object.

The only way to make your dummy() function not blow up is to call it as TestConstrutror.prototype.dummy() and not this.prototype.dummy() for the reasons mentioned above.

As far as your issue is concerned, I think that as long as an object isn't created, the context for property lookup using the prototype chain is not set up. So when the call to dummy function inside the constructor is made, a implicit link has not been set up between the object which is *yet to be created* and the prototype property of the Constructor. This can be verified by the fact that once the Constructor exits and a new object is returned, the call to dummy() works as it should. E.g.

TestConstructor.prototype.dummy = function (value) {
  return value * 2;
};
    
function TestConstructor(value) {
  this.value = this.prototype.dummy(value);  // won't work
};

var a = …
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You can start off by reading about Hashes in general, moving on to reading the Java source for the implementation of HashMap / HashTable and finally attempting to write your own HashMap implementation. This sample data structures in Java chapter might help.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Maybe something like this: (untested)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
            "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <meta http-equiv"Script-Content-Type" content="text/javascript">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="Expires" content="0"> <!-- disable caching -->
    <title>Example</title>
    <style type="text/css">
      span {
        border: 1px solid black;
        background-color: #eeffee;
        cursor: hand;
        cursor: pointer;
      }
    </style>
    <script type="text/javascript">
    // The first click will be to disable controls
    var toEnable = false;
    function enableDisable(frmName) {
      var frm = document.forms[frmName];
      if(!frm)
        return;
      var elms = frm.elements;
      for(var i = 0, size = elms.length; i < size; ++i) {
        var elem = elms[i];
        if(!elem.disabled)
          continue;
        if(toEnable) {
          elem.disabled = false;
        } else {
          elem.disabled = true;
        }
      }
      toEnable = !toEnable;
    }
    </script>
</head>
<body>
  <span onclick="enableDisable('frm');">Click here to enable/disable form controls</span>
  <br><br>
  <form id="frm" name="frm" action="#">
    <input type="text" name="txtOne">
    <br>
    <input type="submit">
  </form>
</body>
</html>
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

AFAIK, the oncontextmenu is not supported across all browsers. But still if you want that kind of functionality, create a new HTML page which would be popped to the user when he clicks on the link. Inside that page instead of loading the XML document in a frame, load it in an iframe . That way you can have a body element inside your newly created page which can have the attribute oncontextmenu set as false .

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Considering that you already have a webspace, it's kind of silly to not use a server side language which provides you with absolute control of what you do with the submitted data (process it, validate it, mail it to yourself etc.) Plus a Javascript solution would mandate that the user has a mail client installed which would definitely be an expensive assumption.

The best way here would be to go with a server side solution. PHP isn't that difficult of a language and it's always nice to have a good reason to learn something new. :-)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Considering that you are ready to learn, you need to look at some good tutorials posted at Suns' J2EE site which has everything you need to know about JSP's and much more. They also have a sample application which will serve as a good reference. A good book like Head First Servlet's and JSP's should make you more than an expert on the topic though and is a must read once you grasp the basics.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Like it has been already mentioned, use JSP's only for presenting data and not running your database code or parsing a JSON string; use servlets instead. And as far as parsing JSON using Java is concerned, there are a lot of JSON/Java bindings out there.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Yes, except that you don't need to get the form element by ID. In the calling function, instead of passing the form ID, pass the form object. verifyForm(..., this.form);

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

A tad inefficient considering that you do the $('someId') thing again. It is in the end a call to document.getElementById() which basically traverses the entire in-memory DOM of the entire HTML document. Cache / store a reference to your Javascript objects whenever possible.

A better way of accessing form elements would be by using their name. Assuming that you need to access the value of a form control named 'txtName' , forms["formName"].elements["txtName"].value should do the trick. Make your function accept the form object as well.

Your regex trims only leading whitespaces (you can key in that regex at the Firefox error console and see for yourself). A complete regex would be yourStr.replace(/(^\s+)|(\s+$)/g, '') Other than the things mentioned above, you are good to go. :-)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

AFAIK, client side, browser embedded Javascript can't connect to a database. Use a server side language like PHP, Perl etc. for this purpose. Assuming the VBScript here runs on the client machine, the above code will work only on a Windows box and that too when the file Config.udl is preset at the given location.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> This is a little function I wrote to verify form fields, all you need is an div with the id "error" to
> take the output.

A required addition to that script would be checking whether the element really exists and trimming the form values before comparing them with an empty string so that I can't get away by keying in just a few whitespace characters.

ShawnCplus commented: almost forgot that, thanks +5
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

There is no way you can access a Javascript variable set on a page on other pages. Just pass around the JSON object to the server and persist it in the client session if you need it across pages / requests. You can even process the JSON object at the server using the server side language of your choice.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> Thank you for your help though...

Glad you could figure it out on your own.

> P.S. Hey ~S.O.S~, cool pic.....

:-)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Maybe the code before the edit and after the edit are no longer same? People tend to make such mistakes and in almost all cases, it turns out to be a silly one. Use the Error Console feature of Firefox to nail the problem.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Don't write database connectivity code in a JSP; that's not what JSP's were meant for. Push all that database logic inside a servlet. Use JSP only as a presentation technology.

And BTW, have you hosted your files on the Tomcat server? What is the URL you are using to access your HTML? What kind of error do you get? Aren't the error logs useful?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> Wasn't your status 'banned' for a while back in those days?

That was my custom title though I made a lot of people worry since both (an actual ban and my custom title) looked the same. :-)

> Well, an honorary infraction like that is a nice feather on your cap and should be
> cherished.

I get to cherish it all right; that infraction is still stuck to my Profile and will never go away though it has expired. :-)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Don't use Scanner to process the input; just use it to read entire lines and process them in a separate function. That way, most of the program complexity would be abstracted in a separate function and if the delimiters or the parsing logic changes in future, all you would need to do would be make changes to the processing function and nothing else.

Using this method, you won't need to use Regular Expressions; just running a simple loop over the entire string would get the job done swift and simple.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> What I would like to do next, is to take this modified information,
> associate it with a new variable and send it to the database to
> replace the old information - this is done after clicking a "save" button.
> (Again done with AJAX). However I'm having difficulties with this as
> I do not know how to associate the new information from the text
> input to a new variable. Perhaps there is a more intelligent way?

You would definitely need some method of identifying which row of your database be updated. If you are allowing your users to edit the content they posted, sending the user information along with the post id (a value which uniquely identifies your post) would do the job though you would need to do some security checks at the server side concerning whether the user editing the post is really the one who is logged in.

Once you have the required meta information, all you would require to do is to read the data from the text area and send it using Ajax.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Relying on Javascript to deliver the business functionality is dangerous to the business which you are trying to cater. If this is some school project, it doesn't matter anyways but if this is for real, you need to start rethinking your design and add a server side check for such critical functionality.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

How about getting started by doing a bit of simple PHP/Javascript coding, coming across real problems and then asking for help?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> Two spaces is too small - it makes it harder to line up brackets for really long code blocks.

Believe me, it's not. And I am pretty sure this is coming from you considering that you are used to 4 spaces for a tab. :-)

I am pretty sure that 2 space tabs would definitely bring down the indented mess that we get to deal everyday especially when dealing with tab-o-maniacs.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I got one when I joined Daniweb around 2 years back, though I must admit it was more along the lines of the moderator not knowing what an infraction was meant for considering the infraction feature was newly introduced. ;-)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

IMO going all the way to convert tabs into spaces using some intelligent algorithm is way too much trouble than it's worth. It is basically the responsibility of the programmer posting the code to make sure that all tabs are converted to spaces and to follow the 80 column width limit if he wants to make sure his/her code looks good.

A good solution, if possible, would be to have 2 space tabs instead of what we have now.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> - You can now view all of your reputation in your control panel.

Yay! :-)

> Removing "Posting Games" from a user's total post count would be just awesome.

However nice it might sound, it would just end up doing injustice to people who invest their time in Daniweb to make it buzzing with activity. :-)

> im up for that, then people can stop calling me spammer

You shouldn't let such small things bother you; you are what you are. And I am pretty sure that most of us who call you that do it just to poke fun at you in a playful manner, nothing else.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You can pass variable number of arguments to your function and expect it to dynamically handle them in a variety of ways. One of them would be to use the arguments property of Javascript Function object to grab hold of what was passed to your function at run-time.

[...]
function doSome() {
  for(var i = 0, max = arguments.length; i < max; ++i) {
    alert(arguments[i]);
  }
}
[...]
<body onload="doSome(1,2,3);">
</body>
[...]

Another way would be to use the Javascript object notation to enable the key-value enabled mechanism or passing parameters by name mechanism.

[...]
<head>
<script type="text/javascript">
function doSome(obj) {
  if(!obj)
    return;
  for(var key in obj) {
    alert(key + " => " + obj[key]);
  }
}
</script>
</head>
<body onload="doSome({name: 'sos', title: 'moderator'});">
[...]

The above code can also be used to set the property of a Javascript object on fly based on the property names; something like:

<head>
<script type="text/javascript">
function Person(name, title) {
  this.name = name;
  this.title = title;
}

Person.prototype.alert = function() {
  window.alert("Name: " + this.name + ", Title: " + this.title);
}

function doSome(obj) {
  if(!obj)
    return;
  var me = new Person();
  for(var key in obj) {
    me[key] = obj[key];
  }
  me.alert();
}
</script>
</head>
<body onload="doSome({name: 'sos', title: 'moderator'});">

Another way would be simply to pass an array and let the function handle the logic of looping through it and extracting meaningful data out of it. That all being said; if you have any Prototype.js or …

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

A thorough way of doing it would be:

/**
 * Checks if a given string is float or not
 *
 * @author sos
 * @param {String} val The string in question.
 */
  function isFloat(val) {
    if(!val || (typeof val != "string" || val.constructor != String)) {
      return(false);
    }
    var isNumber = !isNaN(new Number(val));
    if(isNumber) {
      if(val.indexOf('.') != -1) {
        return(true);
      } else {
        return(false);
      }
    } else {
      return(false);
    }
  }
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Yes, one such way would be to remove the same value from the second drop down so that the user never gets to select it. Another way would be to attach a 'onchange' listener to the second drop down which disallows the selection of a value present in the first drop down.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

If you guys really want to play this game, please create a new thread in the posting games forum instead of hijacking this thread.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> i dont know whether its to do with this, or a load of hotfixes i installed, but windows mobile
> PDAs no longer crash when displaying threads

It's the Hot fixes you installed, not Javascript.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I use Java at work but PHP is simple enough to be picked up by someone who doesn't have any experience with server side languages. Ruby is also a nifty and cool language worth checking out. Take a look at the code snippets written in different languages and just go with the one you are most comfortable with.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> Can i use Language like PHP ? or what ever you think that easy to learn ?

There are many languages out there like Java, Perl, PHP etc. Pick any one of them and start learning though PHP seems to be the easier choice here because of its widespread use.

> I am not sure what kind of change would be unless change like example :
> In the file2 change a background because file3 got click on his page .
> example :
> Change file3 his one element ID , because file2 and his pal file1 got name from the user .

You can do all that and much more once you start off with server side programming. These server side technologies impart dynamic nature to the otherwise static pages and so changing the background color of a page based on a click on another page and much more complicated things are possible.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> And why do you earead my info, if yesterday i saw it completly.

It was removed by one of the moderators of this forum since posting in a language other than English is against the rules.

> And if you know at least more than the half of the American Continent speaks spanish

But America doesn't mean International; you have to consider other continents like Asia, Africa, Australia, etc.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You can't store a popup window reference in a cookie as it is directly dependent on the current parent window/document which is a javascript host object.
However, if you could persist the current window to the next reload in the browser, you could also persist reference to open windows, and other objects (dependents).

Read my post carefully; I talk of persisting the child window 'information' and not the child window itself which seems to make little sense.

You could store information like the child windows' attributes like its height, width, position etc. in a cookie. On a document load, your javascript function would then check the contents of the cookies and then re-create a child window based on the flag 'recreateNeeded' which would be either true or false or 0 or 1 (the way you want it to be). Of course this means persisting the child window information at regular intervals and writing a custom mini parser which would parse the contents of the cookie at load time but yes, it's very much possible with a bit of effort .

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

This forum is basically for generic Javascript questions which don't necessarily refer to a particular library. This question would be more appropriate in the Prototype.js forums where you have better chances of getting help. :-)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Develop using Firefox. You can use a nifty feature of Firefox called the Error Console which shows you all the Javascript errors on your page (if you have any).

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> FIRST : Can I call ID from the other files who contain J.S. code with ID ?

As long as the page which includes the script has an element with the given ID and the function using that ID is called after the entire page has been loaded.

> SECOND : I have Index.html , prototype-1.6.0.2.js , and I want to make changes from
> files2.html to files3.html

Questions related to external libraries are better off in their respective forums (i.e. the prototype forum), though I am pretty sure you need a server side language of your choice depending on the kind of 'change' you need.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> it is using the innovastudio WYSIWYG editor which i have never come across.

Why not try your luck at their support forums? You would have a much better chance of getting help there.