<?xml version="1.0" encoding="UTF-8" standalone="yes"?><rss version="2.0"><channel><title>Java, PHP, MySQL, Ruby, and more at Sagewire.org</title><link>http://www.sagewire.org/</link><description>Blogs and forums for Java, PHP, MySQL, and more.</description><language>en</language><item><title>Question on JAVAScript as a programming language</title><link>http://www.sagewire.org/javascript-programming/Question-on-JAVAScript-as-programming-language-1999765.aspx</link><description>Hello,

I was thinking of trying out JAVAScript and learn it on my own.

I had a few questions though.

Is it still popular with businesses today?

Is JAVAScript bad for search engine opt. (SEO)?

Any other help'd be appreciated.

I have tried som PHP stuff and now want to move on to something else.</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/Question-on-JAVAScript-as-programming-language-1999765.aspx</guid><author>rss@sagewire.org</author><pubDate>Sun, 28 Oct 2007 18:41:27 GMT</pubDate></item><item><title>Possibly OT. IE6 and background colors..</title><link>http://www.sagewire.org/javascript-programming/Possibly-OT-IE6-and-background-colors-1997175.aspx</link><description>Another extremely weird feature from iE6

I have a site, whose predominant colors are green background with white 
writing.

There is a style sheet with many styles, of which all either specify a 
green background, or do not specify any. Body defaults to green.

At the customer site, some [code]&amp;lt;INPUT type=&amp;quot;TEXT&amp;quot;&amp;gt;[/code] elements showed up with a 
white background on one machine running IE6. I did not have a chance to 
investigate further. Highlighting the white on white entered text s...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/Possibly-OT-IE6-and-background-colors-1997175.aspx</guid><author>rss@sagewire.org</author><pubDate>Sun, 28 Oct 2007 18:32:55 GMT</pubDate></item><item><title>JS equivalent of VBScript "Rnd"?</title><link>http://www.sagewire.org/javascript-programming/JS-equivalent-of-VBScript-Rnd-1999684.aspx</link><description>Can someone show me the JAVAScript equivalent
to the following VBScript?  Thanks in advance.

    Randomize
    For I = 0 to 15
        intRnd = Int((16 * Rnd) + 1)
    Next

Perhaps the follwoing is a start?

    var Rnd = Math.floor(Math.random() * 16);
    for (i=0; i&amp;lt;16; i++) {
//        ?
    }</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/JS-equivalent-of-VBScript-Rnd-1999684.aspx</guid><author>rss@sagewire.org</author><pubDate>Sun, 28 Oct 2007 18:23:30 GMT</pubDate></item><item><title>Scrolling a div</title><link>http://www.sagewire.org/javascript-programming/Scrolling-div-1997315.aspx</link><description>We've a table within a div whose overflow-x is scroll.  It is a long
table, so the width of the div is 800px, giving us a scrollbar at the
bottom.  When users tab from cell to cell, the cells that contain
select elements that were out of the visible viewing area acquire the
focus, but they are still visually off the scrolling region.  So, the
user has to manually move the scrollbar to bring the element into
view.

Is there a way we can manipulate the scrollbar (or whatever) to move
that...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/Scrolling-div-1997315.aspx</guid><author>rss@sagewire.org</author><pubDate>Sun, 28 Oct 2007 18:18:38 GMT</pubDate></item><item><title>How to flag onclick() and confirm() using DOM</title><link>http://www.sagewire.org/javascript-programming/How-to-flag-onclick-and-confirm-using-DOM-1998820.aspx</link><description>Hi,

I have an session application where the user logs out via a simplt
logot link.  The code to do this is:
[code]&amp;lt;a id=&amp;quot;logout&amp;quot; title=&amp;quot;Log out&amp;quot; href=&amp;quot;logout.php&amp;quot; onClick=&amp;quot;return
confirm('Do you really want to log out?')&amp;quot;&amp;gt;[/code]Logout[code]&amp;lt;/a&amp;gt;[/code]

So if the user answers YES to the confim, logot.php is run and the
user is logged ot.  If the user answers NO, they remain on the page.

I removed the onClick() and tried to use DOM but I find that with my
code, the user gets logged o...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/How-to-flag-onclick-and-confirm-using-DOM-1998820.aspx</guid><author>rss@sagewire.org</author><pubDate>Sun, 28 Oct 2007 17:41:03 GMT</pubDate></item><item><title>Recommendations for JAVAScript drop-down menu code</title><link>http://www.sagewire.org/javascript-programming/Recommendations-for-JAVAScript-dropdown-menu-code-1951021.aspx</link><description>I'd appreciate recommendations for JAVAScript code that implements
drop-down, hierarchical menus. Are there high quality libraries for
this, or is it more typical for people to roll their own?

My preference is for open source code, but royalty-free commercial
code'd be acceptable as well.

Ideally, the code'd:
* Allow configuring horizontal or vertical menus
* Allow configuring the delay for closing the menu after mousing out
of the menu
* Provide a mechanism for playing well with ex...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/Recommendations-for-JAVAScript-dropdown-menu-code-1951021.aspx</guid><author>rss@sagewire.org</author><pubDate>Sun, 28 Oct 2007 17:40:27 GMT</pubDate></item><item><title>In memory row selection</title><link>http://www.sagewire.org/javascript-programming/In-memory-row-selection-1984467.aspx</link><description>I want to implement a in-memory row selection function. Specifically,
given a table

Name    Zip    Phone
Tony     98034 127xxxxx
Mike    10023  271xxxx
Jame   10023  253xxxx

and a text box, I want the table automatically show relevant rows and
hide others. Say I type 10023,
only row 2&amp;amp;3 should be shown. Any existing package for doing this?</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/In-memory-row-selection-1984467.aspx</guid><author>rss@sagewire.org</author><pubDate>Sun, 28 Oct 2007 17:06:27 GMT</pubDate></item><item><title>How do I convert old onclick() code to DOM if a PHP variable is involved?</title><link>http://www.sagewire.org/javascript-programming/How-do-convert-old-onclick-code-to-DOM-if-1999166.aspx</link><description>Hi,

I have created a table where the header columns link to an AJAX function
which calls a PHP file and returns content - the purpose is to sort
the table on the heading.

The code snippet is:
[code]&amp;lt;th scope=&amp;quot;col&amp;quot;&amp;gt;[/code][code]&amp;lt;a href=&amp;quot;JAVAscript:;&amp;quot; onclick=&amp;quot;loadBookingContent('&amp;lt;?
php echo $SERVERPAGE_URL . SORT_BY_BOOKING; ?&amp;gt;[/code]','innerhbl')&amp;quot;&amp;gt;Booking[code]&amp;lt;/
a&amp;gt;[/code][code]&amp;lt;/th&amp;gt;[/code]

[code]&amp;lt;th scope=&amp;quot;col&amp;quot;&amp;gt;[/code][code]&amp;lt;a href=&amp;quot;JAVAscript:;&amp;quot; onclick=&amp;quot;loadBookingContent('&amp;lt;?
p...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/How-do-convert-old-onclick-code-to-DOM-if-1999166.aspx</guid><author>rss@sagewire.org</author><pubDate>Sun, 28 Oct 2007 15:19:27 GMT</pubDate></item><item><title>Passing MULTIPLE values using URL string</title><link>http://www.sagewire.org/javascript-programming/Passing-MULTIPLE-values-using-URL-string-1954032.aspx</link><description>NG,

I got the following issue;

Would like to transfer multiple values from a fill-in form to a second 
page using strings in the URL.

Have got it worked out for one value allready;

On page with form (using ASP)
this script; http://www.rhi.nl/temp/contact.txt (view source)

I use the following;
 
Response.Redirect(&amp;quot;bedankttr.htm?&amp;quot;+Trouwdd.Value+&amp;quot;&amp;quot;);

Of course I can edit this to 
Response.Redirect(&amp;quot;bedankttr.htm?&amp;quot;+Trouwdd.Value+&amp;quot;&amp;quot;+Naam.Value+&amp;quot;&amp;quot;);

But can not make it work o...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/Passing-MULTIPLE-values-using-URL-string-1954032.aspx</guid><author>rss@sagewire.org</author><pubDate>Sun, 28 Oct 2007 13:45:40 GMT</pubDate></item><item><title>Simultaneous pressing of left and right mouse buttons</title><link>http://www.sagewire.org/javascript-programming/Simultaneous-pressing-of-left-and-right-mouse-butt-1998584.aspx</link><description>Hi there,

I am trying to detect whether my IE6 users have pressed both right and
left mouse buttons simultaneously in my JAVAscript code, by using:

if(event.button==3) {alert(&amp;quot;Both right and left mouse buttons
pressed&amp;quot;);}

I am calling the above code on mousedown or mouseup events.

But it doesn't seem to work. :,(

The if condition isn't satisfied even on pressing the left and right
buttons simultaneously.

Is there something that I am missing?

Best,
Shocky</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/Simultaneous-pressing-of-left-and-right-mouse-butt-1998584.aspx</guid><author>rss@sagewire.org</author><pubDate>Sun, 28 Oct 2007 13:44:05 GMT</pubDate></item><item><title>Date field in DD/MM/YYY</title><link>http://www.sagewire.org/javascript-programming/Date-field-in-DDMMYYY-1998138.aspx</link><description>Dear all

I have a date field on a HTML form where the user is asked to key in
dd/mm/yyyy
However, when that is written to MySql it is either not accepted or
another value is tored in the database.

Is there any way to change value of this field back to yyyymmdd format
as accepted correctly in sql. ? The change should preferably be when
user click on submit.
Does anyone know of any code/function that does this ?

I'm using PHP and HTML

Thanks
Jesmond</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/Date-field-in-DDMMYYY-1998138.aspx</guid><author>rss@sagewire.org</author><pubDate>Sun, 28 Oct 2007 13:08:35 GMT</pubDate></item><item><title>innerHTML works, but DOM does not - Please Help</title><link>http://www.sagewire.org/javascript-programming/innerHTML-works-but-DOM-does-not-Please-Help-1999275.aspx</link><description>Hi

I'm creating a very basic Ajax &amp;quot;Suggest&amp;quot; type script. I have the
server side OK, and the response gets back OK. I have had to use
responseText, as for some reason xmlResponse does not seem to work if
more than one [code]&amp;lt;message&amp;gt;[/code] element is present. But that is not the point
of this post, so I'd better get to that.

Once I have the list of values that match the user's search term, I
display them as a list in a [code]&amp;lt;div&amp;gt;[/code]. When the user clicks on one of the
list, that...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/innerHTML-works-but-DOM-does-not-Please-Help-1999275.aspx</guid><author>rss@sagewire.org</author><pubDate>Sun, 28 Oct 2007 11:21:40 GMT</pubDate></item><item><title>Question, need expert help pre-loading images properly (IE + FireFox), thank you :)</title><link>http://www.sagewire.org/javascript-programming/Question-need-expert-help-preloading-images-proper-1996357.aspx</link><description>Dear group,

I am seeking a easy to maintain and more importantly *working* way to
pre-fetch images, so the pages I develop load smoothly without seeing
the images kick in flicker as they usually do.  Important - I need
this to work on Internet Explorer 6.0+ and FireFox.

I am presently using at the head of the page,

pic100= new Image;
pic100.src=&amp;quot;./imageme.gif&amp;quot;;

However, it does not seem to work on FireFox at all.  I have tried
different combinations with the URL path, but I do n...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/Question-need-expert-help-preloading-images-proper-1996357.aspx</guid><author>rss@sagewire.org</author><pubDate>Sun, 28 Oct 2007 08:57:45 GMT</pubDate></item><item><title>Iterating through checkboxes using JAVAScript</title><link>http://www.sagewire.org/javascript-programming/Iterating-through-checkboxes-using-JAVAScript-1979161.aspx</link><description>G'day all

I apologise in advance for the newbiness of this question, but the
answer has eluded me for 3 days now - hopefully one of you gurus out
there might be able to help .......

I have a page that dynamically draws checkboxes and am attempting to
use the following code to iterate through each text box, see if it's
checked - if checked, change a combo box to match the number typed in
a checkbox. Here's the code that calls the functions, and the
functions themselves......

**Code...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/Iterating-through-checkboxes-using-JAVAScript-1979161.aspx</guid><author>rss@sagewire.org</author><pubDate>Sun, 28 Oct 2007 05:52:37 GMT</pubDate></item><item><title>best way to load arrays with large amounts of data?</title><link>http://www.sagewire.org/javascript-programming/best-way-to-load-arrays-with-large-amounts-of-1998303.aspx</link><description>I'm working on an application that requires a lot of internal data -
short texts, numbers, switches etc. At the moment the only way I have
of loading these is long lines of Array[1,2,3 etc]=The Data. In the VB
version I read data in from text files - is there a similar feature in
JAVAScript - or at least soem thing mroe flaxible than lines and lines
of assignments?

Marshal</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/best-way-to-load-arrays-with-large-amounts-of-1998303.aspx</guid><author>rss@sagewire.org</author><pubDate>Sun, 28 Oct 2007 03:18:42 GMT</pubDate></item><item><title>Taking a class that may suck?</title><link>http://www.sagewire.org/javascript-programming/Taking-class-that-may-suck-1979974.aspx</link><description>I am a college student getting ready to take a JAVAscript class.  From
what I hear it is pretty lame and I want to learn more about
JAVAscript than what the class offers.  While I am taking the class, I
thought it'd be a good time to take my studies to the next level
and learn more things about it on my own.

If you had the chance to design and teach a class on beginner &amp;amp; mid-
level JAVAscript, what'd you cover?  What do you think is
important for people to know about coding in JAVAscrip...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/Taking-class-that-may-suck-1979974.aspx</guid><author>rss@sagewire.org</author><pubDate>Sat, 27 Oct 2007 22:28:45 GMT</pubDate></item><item><title>Current JSON Proposal in ES4</title><link>http://www.sagewire.org/javascript-programming/Current-JSON-Proposal-in-ES4-1990150.aspx</link><description>JSON
We all know what it is.

In ECMAScript 4, there's a JSON proposal:

  Object.prototype.toJSONString
  String.prototype.parseJSONThe current proposal, String.prototype.parseJSON, returns an object.
This is very poor design. It's worse than Date.parse(s), which returns
a Number (not a Date).

The current proposal, Object.prototype.toJSONString, complicates
objects with responsibility that they shouldn't necessarily have. It
will be easy to misuse. It'll conflate Object.prototype w...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/Current-JSON-Proposal-in-ES4-1990150.aspx</guid><author>rss@sagewire.org</author><pubDate>Sat, 27 Oct 2007 22:28:38 GMT</pubDate></item><item><title>HAI</title><link>http://www.sagewire.org/javascript-programming/HAI-1996446.aspx</link><description>HAI AL FIRST TIME</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/HAI-1996446.aspx</guid><author>rss@sagewire.org</author><pubDate>Sat, 27 Oct 2007 20:33:05 GMT</pubDate></item><item><title>getting date/time from JAVAscript</title><link>http://www.sagewire.org/javascript-programming/getting-datetime-from-JAVAscript-1997715.aspx</link><description>I have a page where I need to display the unix time (seconds) upon
page load.  I have found many complex examples that auto update, count
live, etc., but I need to just display the time at the time of page
load.  I think it has something to do with getTime, showDate, or maybe
loadTime, but I can not quite seem to get the syntax.
Could someone provide the exact syntax and usage within the html to
make this work?

Thanks!</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/getting-datetime-from-JAVAscript-1997715.aspx</guid><author>rss@sagewire.org</author><pubDate>Sat, 27 Oct 2007 19:41:06 GMT</pubDate></item><item><title>adding rows to a table</title><link>http://www.sagewire.org/javascript-programming/adding-rows-to-table-1997066.aspx</link><description>I have a script which adds rows to an HTML table. However, the script
functions only for Firefox and not for Internet Explorer. Here is a
test case which works on Firefox 2.0.0.8 but doesn't work on Internet
Explorer 6.0.

Can anyone explain why this doesn't work, and is there a way to make
it work with Internet Explorer?

What bothers me is that modifying the script slightly to change the
table to a [code]&amp;lt;ul&amp;gt;[/code] and the [code]&amp;lt;tr&amp;gt;[/code] to a [code]&amp;lt;li&amp;gt;[/code] does work with Inter...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/adding-rows-to-table-1997066.aspx</guid><author>rss@sagewire.org</author><pubDate>Sat, 27 Oct 2007 17:04:38 GMT</pubDate></item><item><title>How to Pass an Operator e.g., * / + -</title><link>http://www.sagewire.org/javascript-programming/How-to-Pass-an-Operator-eg-1998447.aspx</link><description>function operator(a, b) {
  return a + b;
}

without the use of eval, how'd you change the + operator into say
* ? If you cannot pass operators in any form what'd be the best
thing to do here or'd the best thing to do in this case is use
eval?</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/How-to-Pass-an-Operator-eg-1998447.aspx</guid><author>rss@sagewire.org</author><pubDate>Sat, 27 Oct 2007 14:34:11 GMT</pubDate></item><item><title>regex match function does not return any output</title><link>http://www.sagewire.org/javascript-programming/regex-match-function-does-not-return-any-output-1998446.aspx</link><description>I'm trying to write a little script that reads the searchterms from
the document.referrer. But when I run it, I get no alerts. What am I
doing wrong? All help is appreciated :-)
-----------------------------------------------------
detectSearch(&amp;quot;http://www.google.com?q=dattum&amp;quot;);

var sniffs = {
  '/google\./i' : 'q',
  '/yahoo\./i' : 'p'
}

function detectSearch(uri) {
  for (var sniff in sniffs) {
    if (uri.match(sniff)) {
      alert(getArg(uri, sniffs[sniff]));
    }
  }
}...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/regex-match-function-does-not-return-any-output-1998446.aspx</guid><author>rss@sagewire.org</author><pubDate>Sat, 27 Oct 2007 14:26:17 GMT</pubDate></item><item><title>F1 key to go to a link</title><link>http://www.sagewire.org/javascript-programming/F1-key-to-go-to-link-1997788.aspx</link><description>Hi,

I'm new to JAVAscript and what I want to do is when user press F1 key,
it'll show the help page. Can anyone show me the JAVAscript code.
The link of the help page is help/work/Default_CSH.htm#messageBar
Thanks.</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/F1-key-to-go-to-link-1997788.aspx</guid><author>rss@sagewire.org</author><pubDate>Sat, 27 Oct 2007 11:44:42 GMT</pubDate></item><item><title>InnerHTML doesn't return Onmouseover</title><link>http://www.sagewire.org/javascript-programming/InnerHTML-doesnt-return-Onmouseover-1997591.aspx</link><description>I am dynamically updating the contents of cells to achieve a scrolling
effect, like this:

[code]&amp;lt;html&amp;gt;[/code]
[code]&amp;lt;body&amp;gt;[/code]
[code]&amp;lt;script lang=JAVAscript&amp;gt;[/code]
function scroll(){
	var firstrowcell1 = document.getElementById('1-1').innerHTML;
	var firstrowcell2 = document.getElementById('1-2').innerHTML;
	for (var x = 1; x [code]&amp;lt; 3; x ++)
	{
	document.getElementById(x+'-1').innerHTML = document.getElementById((x
+1)+'-1').innerHTML;
	document.getElementById(x+'-2').innerHTM...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/InnerHTML-doesnt-return-Onmouseover-1997591.aspx</guid><author>rss@sagewire.org</author><pubDate>Fri, 26 Oct 2007 21:45:10 GMT</pubDate></item><item><title>Hide IE toolbars, menubar after page has loaded</title><link>http://www.sagewire.org/javascript-programming/Hide-IE-toolbars-menubar-after-page-has-loaded-1997964.aspx</link><description>Hello,
I am launching a webage with my url. Then in JAVAscript I want to hide
the toolbars and menubar. Is this possible after the page has
launched.

I know window.open() does this but because of the way our application
is I have to do it once page has loaded.

Thanks.</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/Hide-IE-toolbars-menubar-after-page-has-loaded-1997964.aspx</guid><author>rss@sagewire.org</author><pubDate>Fri, 26 Oct 2007 21:41:10 GMT</pubDate></item><item><title>ECMAScript 4+ Date proposals</title><link>http://www.sagewire.org/javascript-programming/ECMAScript-Date-proposals-1995101.aspx</link><description>In current JAVAscript, the handling of date and time, whilst powerful,
has some minor flaws and several omissions.  In particular, while the
lack of ISO 8601 support can be dealt with in code, it's often done
inefficiently or wrongly.Date-handling suggestions for ECMAScript 4 or 5 :-

document.sourceDateHeader
        A string copying, exactly, the data part of the Last-Modified
        header.  Require that new Date(string) shall always read it
        correctly (it probably always comp...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/ECMAScript-Date-proposals-1995101.aspx</guid><author>rss@sagewire.org</author><pubDate>Fri, 26 Oct 2007 20:46:22 GMT</pubDate></item><item><title>Forcing a browser to re-render an image from its URL location andnot from the browser's cache</title><link>http://www.sagewire.org/javascript-programming/Forcing-browser-to-rerender-an-image-from-its-URL-1992960.aspx</link><description>Is there a way in JAVAscript, or perhaps in HTML, to force a browser to 
re-render an image on an HTML page after a round-trip between the client 
and the server ?

In my particular case, the image is changing on the server although the 
URL for it remains the same, but the browser is still displaying the old 
image from its cache rather than the new image from its URL location.</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/Forcing-browser-to-rerender-an-image-from-its-URL-1992960.aspx</guid><author>rss@sagewire.org</author><pubDate>Fri, 26 Oct 2007 20:18:08 GMT</pubDate></item><item><title>JAVAscript behaves differently when opened as file:// vs. from local web server</title><link>http://www.sagewire.org/javascript-programming/JAVAscript-behaves-differently-when-opened-as-file-1995334.aspx</link><description>I have been tasked to figure out a way to communicate from a
JAVAScript /XUL client to a server, but without using a web server.I have been researching different possibilities, and I have come upon
[code]&amp;lt;a href = &amp;quot;http://aflax.org&amp;quot;&amp;gt;[/code]aflax[code]&amp;lt;/a&amp;gt;[/code], which is a library for
imbedding flash in JAVAScript.  So far I have been able to get it to
connect, but only if the server script is running locally along with
the flash content and client.  I am using the example of a chat
progr...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/JAVAscript-behaves-differently-when-opened-as-file-1995334.aspx</guid><author>rss@sagewire.org</author><pubDate>Fri, 26 Oct 2007 19:33:02 GMT</pubDate></item><item><title>Why does thisn't fully work? [code]&lt;Textarea&gt;[/code] + DIV + InnerHTML</title><link>http://www.sagewire.org/javascript-programming/Why-does-thisnt-fully-work-codeTextareacode-DIV-In-1997499.aspx</link><description>[code]&amp;lt;form name=theform&amp;gt;[/code]
[code]&amp;lt;textarea onkeydown=&amp;quot;whynowork()&amp;quot; ID=&amp;quot;inputbox&amp;quot; cols=25 rows=5&amp;gt;[/code][code]&amp;lt;/
textarea&amp;gt;[/code]
[code]&amp;lt;/form&amp;gt;[/code]

[code]&amp;lt;div id=divtag&amp;gt;[/code][code]&amp;lt;/div&amp;gt;[/code]

[code]&amp;lt;script&amp;gt;[/code]
function whynowork(){
document.getElementById(&amp;quot;divtag&amp;quot;).innerHTML =
document.forms['theform'].elements['inputbox'].value
}
[code]&amp;lt;/script&amp;gt;[/code]

Hello
Can someone please explain what I am doing wrong here?  When you enter
something into the textarea, it ...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/Why-does-thisnt-fully-work-codeTextareacode-DIV-In-1997499.aspx</guid><author>rss@sagewire.org</author><pubDate>Fri, 26 Oct 2007 17:58:03 GMT</pubDate></item><item><title>IE doesn't load image when it is specified from JS</title><link>http://www.sagewire.org/javascript-programming/IE-doesnt-load-image-when-it-is-specified-from-1992826.aspx</link><description>Ok this is more then strange but this is how the following code works
in IE:

[code]&amp;lt;html&amp;gt;[/code]
  [code]&amp;lt;head&amp;gt;[/code]
    [code]&amp;lt;meta http-equiv=Content-Type content=&amp;quot;text/
html;charset=windows-1251&amp;quot;&amp;gt;[/code]
  [code]&amp;lt;/head&amp;gt;[/code]
  [code]&amp;lt;body&amp;gt;[/code]
    [code]&amp;lt;script&amp;gt;[/code]
    function reloadImage() {
       var oImg = document.getElementById(&amp;quot;myImage&amp;quot;);
       oImg.src = &amp;quot;http://www.google.com/images/nav_logo3.png&amp;quot;;
    }
    [code]&amp;lt;/script&amp;gt;[/code]
    [code]&amp;lt;img id=&amp;quot;myIma...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/IE-doesnt-load-image-when-it-is-specified-from-1992826.aspx</guid><author>rss@sagewire.org</author><pubDate>Fri, 26 Oct 2007 17:31:27 GMT</pubDate></item><item><title>viewable coordinates of an element</title><link>http://www.sagewire.org/javascript-programming/viewable-coordinates-of-an-element-1997392.aspx</link><description>i have an INPUT element inside a scrolling DIV.initially the element's
position is off screen or off the viewable part of it
and has coordinates as follows X=223 Y=2225.
Is there a way to like when I scroll the DIV to this element,
calculate the &amp;quot;viewable&amp;quot; coordinates if the element with respect to
the page.
example: when I scroll to it I would expect a Y (if vertically ) value
&amp;lt;= page height but I always get the offscreen
coordinates
thanks</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/viewable-coordinates-of-an-element-1997392.aspx</guid><author>rss@sagewire.org</author><pubDate>Fri, 26 Oct 2007 17:08:06 GMT</pubDate></item><item><title>Long JAVAScript processes prevent animated GIFs animation</title><link>http://www.sagewire.org/javascript-programming/Long-JAVAScript-processes-prevent-animated-GIFs-an-1997316.aspx</link><description>Hello,

I am working on some JAVAScript, that amongst other things does
searches in an index. The search can take a couple of seconds, and I
would like to disable the form button that the user clicked to trigger
the search. In addition I'd like an animated GIF to appear,
visualizing that a search process is ongoing.

My problem is: While the procedure that implements the search is
executed, the browser window isn't refreshed. The button stays in
&amp;quot;down&amp;quot; mode, the gif freezes.

Is ther...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/Long-JAVAScript-processes-prevent-animated-GIFs-an-1997316.aspx</guid><author>rss@sagewire.org</author><pubDate>Fri, 26 Oct 2007 15:38:27 GMT</pubDate></item><item><title>'undefined' is null or not an object JAVAscript</title><link>http://www.sagewire.org/javascript-programming/undefined-is-null-or-not-an-object-JAVAscript-1995017.aspx</link><description>Hello
I have the above JAVAscript error on filling in mandatory fields and
submitting the form below:

http://www.wildwoodbushcraft.com/voucherformtest.htm?course_name=Bushcraft+Weekend+course&amp;amp;price_code=SWC

This error only occurs in IE not firefox and I can not see anything
wrong with the functioning of the form.

I have been tearing my hair out on this one and'd be very
gratefulf for any help.
All the best
Redge
P.S. Please reply to this group rather than by email - thanks.</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/undefined-is-null-or-not-an-object-JAVAscript-1995017.aspx</guid><author>rss@sagewire.org</author><pubDate>Fri, 26 Oct 2007 12:39:25 GMT</pubDate></item><item><title>find largest frame</title><link>http://www.sagewire.org/javascript-programming/find-largest-frame-1986614.aspx</link><description>Hello,

What'd be the easiest way to find the largest displayed document
within a frameset? Here are the steps I'd like to take in
designing the algorithm:

1. Attempt to find a top level 'body' element of XHTMl document.  If
found, return element.
2. No 'body' found, so attempt to find a 'frameset'.
3. Found 'frameset', so now find largest frame within 'frameset'.
4. Found largest frame within frameset, return 'body' element of
frame.
5. If largest frame contained no 'body' element ...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/find-largest-frame-1986614.aspx</guid><author>rss@sagewire.org</author><pubDate>Fri, 26 Oct 2007 10:18:07 GMT</pubDate></item><item><title>Clarifying scope of literals</title><link>http://www.sagewire.org/javascript-programming/Clarifying-scope-of-literals-1996356.aspx</link><description>Hi

I have seen some code similar to the following and'd like to confirm
my understanding. I assume the object literal created in the return
has access to the enclosing scope which includes the variable age,
effectively creating a closure over it when created, and that this is
what enables the assignment to moon.age? Is this considered good style
and is there any particular reason for using that approach as opposed
to the clearer (in my opinion) declaration of age within the object
lite...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/Clarifying-scope-of-literals-1996356.aspx</guid><author>rss@sagewire.org</author><pubDate>Fri, 26 Oct 2007 08:56:09 GMT</pubDate></item><item><title>Looking for a code snippet: forms etc.</title><link>http://www.sagewire.org/javascript-programming/Looking-for-code-snippet-forms-etc-1995771.aspx</link><description>Hello,

I am looking for a code snippet that'd help me improve my web page. I
have a limited JAVAscript understanding, so that I'll hopefully
be able to implement an idea if someone sketches the outline of the
solution.

Here is my problem:  I have a cgi (Perl) that creates a form.  In the form,
there is a popup menu showing a number of databases.  The information about
this databases resides in a text config file, is being read by the script
and processed; that is, the popup menu is d...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/Looking-for-code-snippet-forms-etc-1995771.aspx</guid><author>rss@sagewire.org</author><pubDate>Fri, 26 Oct 2007 00:56:31 GMT</pubDate></item><item><title>Elementary question I suppose,  using the parameters.</title><link>http://www.sagewire.org/javascript-programming/Elementary-question-suppose-using-the-parameters-1991997.aspx</link><description>I'm new to JAVAscript and I have run into a problem I bet someone here
can help me with. I have a little web page that includes this call to
another html file with two parameters:

[code]&amp;lt;a href=&amp;quot;car.html?chevy.jpg|nameone&amp;quot;&amp;gt;[/code]
[code]&amp;lt;img src=&amp;quot;slides/chevythumbnail.jpg&amp;quot; &amp;gt;[/code]
[code]&amp;lt;/a&amp;gt;[/code]

So when I click on the chevythumbnail image, it brings up the car.html
page with the parameter string. I have figured out how read and parse
the parameter string in the car.html file so i...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/Elementary-question-suppose-using-the-parameters-1991997.aspx</guid><author>rss@sagewire.org</author><pubDate>Fri, 26 Oct 2007 00:18:16 GMT</pubDate></item><item><title>can a panel be added ad a node in a tree?</title><link>http://www.sagewire.org/javascript-programming/can-panel-be-added-ad-node-in-tree-1994902.aspx</link><description>hello,

I'm very new to JAVAscript and seem to be taking a lot of time getting
things to work :( I have to use YUI to build a page. Basically when
the page loads, it has a list of elements from the server. It then has
to show each of these elements in a panel along with other attributes
of the element. Each of these panels should've a button to allow the
user to obtain more detailed info about the element. So when th euser
clicks on this button, another request if sent to the server for ...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/can-panel-be-added-ad-node-in-tree-1994902.aspx</guid><author>rss@sagewire.org</author><pubDate>Thu, 25 Oct 2007 23:31:54 GMT</pubDate></item><item><title>setTimeout - clearTimeout - Why Does not This Work?</title><link>http://www.sagewire.org/javascript-programming/setTimeout-clearTimeout-Why-Does-not-This-Work-1996582.aspx</link><description>Hey guys I have some js code as follows...

-------

var SessionTimer;

function StartSessionTimer()
{
   SessionTimer = setTimeout('RedirectToSessionTimedOutPage(),60000)
}

function RestartSessionTimer()
{
   clearTimeout(SessionTimer);
   StartSessionTimer();
}

function RedirectToSessionTimedOutPage()
{
   window.location = '/SessionTimedOut.html';
}

-------

When I load the page and call StartSessionTimer(), I know it works
because the page redirects after ten minu...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/setTimeout-clearTimeout-Why-Does-not-This-Work-1996582.aspx</guid><author>rss@sagewire.org</author><pubDate>Thu, 25 Oct 2007 22:21:17 GMT</pubDate></item><item><title>Browser Printing Configuration in JS</title><link>http://www.sagewire.org/javascript-programming/Browser-Printing-Configuration-in-JS-1994531.aspx</link><description>Hello,  is there a way to access (hopefully also set) the brower
printing configuration in JAVAScript?
TIA</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/Browser-Printing-Configuration-in-JS-1994531.aspx</guid><author>rss@sagewire.org</author><pubDate>Thu, 25 Oct 2007 20:16:46 GMT</pubDate></item><item><title>multiple prely fields</title><link>http://www.sagewire.org/javascript-programming/multiple-prely-fields-1996239.aspx</link><description>Hi there,

I am trying to add a comment functionality to my webapp that includes
a reply possibility on each comment. Like on digg for example. I am new 
to AJAX, but'd like to take this oportunity and to jump into cold 
water with that task now.

My goal is to use JQuery to show and hide a dialog box which contains 
the form to reply on the comments.
Basicaly I managed to do this, but now I have a general understanding 
problem. Let's say there are 100 comments there and I want to hav...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/multiple-prely-fields-1996239.aspx</guid><author>rss@sagewire.org</author><pubDate>Thu, 25 Oct 2007 19:18:35 GMT</pubDate></item><item><title>create a simple link</title><link>http://www.sagewire.org/javascript-programming/create-simple-link-1996238.aspx</link><description>In HTML:  [code]&amp;lt;A HREF=&amp;quot;webpage.htm&amp;quot;&amp;gt;[/code][code]&amp;lt;IMG SRC=&amp;quot;myimage.jpg&amp;quot;&amp;gt;[/code][code]&amp;lt;/A&amp;gt;[/code]

How'd I write that in JAVAscript....

.... and is there a site where I could have found that an answer, such a basic
tutorial site. I did look, I could not find this anywhere.

Thanks</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/create-simple-link-1996238.aspx</guid><author>rss@sagewire.org</author><pubDate>Thu, 25 Oct 2007 18:43:50 GMT</pubDate></item><item><title>Does JAVAscript allow the following?</title><link>http://www.sagewire.org/javascript-programming/Does-JAVAscript-allow-the-following-1995405.aspx</link><description>Hi All,

I wanted to know whether any of the following is possible using
JAVAscript and/or Ajax :

1. Creating new frames at runtime (may be using document.createElement
or existingFrame.cloneNode() or anything else). I tried this but was
not successful (It gave some runtime exception)

2. I want to do a file upload via a POST request. However, in my case,
the server doesnot generate any response - it simply returns a unique
identifier for the file.  (It is a php code which does an &amp;quot;e...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/Does-JAVAscript-allow-the-following-1995405.aspx</guid><author>rss@sagewire.org</author><pubDate>Thu, 25 Oct 2007 18:17:51 GMT</pubDate></item><item><title>Is there a correct place to put JAVAscript within a html file?</title><link>http://www.sagewire.org/javascript-programming/Is-there-correct-place-to-put-JAVAscript-within-ht-1986266.aspx</link><description>I ask this because only today I read advice telling me to put it
within the [code]&amp;lt;head&amp;gt;[/code] element. This is the same advice I have always been
given but no one ever explained why.

Last week I was told to put it at the bottom of the html just before [code]&amp;lt;/
body&amp;gt;[/code]; the reason being that html won't start rendering until all the
script files have downloaded and if they're all in the head ...  Right
now I'm putting all my JAVAscript at the end of the html file seems
like the sen...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/Is-there-correct-place-to-put-JAVAscript-within-ht-1986266.aspx</guid><author>rss@sagewire.org</author><pubDate>Thu, 25 Oct 2007 16:50:02 GMT</pubDate></item><item><title>If Statement</title><link>http://www.sagewire.org/javascript-programming/If-Statement-1995282.aspx</link><description>I want to find a way so that if the JAVAscript is in a certain HTML
document it'll write one code and a different document a different
code and so on.

I'd like for it to just get the file name of the html document it
is in but if that isn't possible I was thinking make a variable for
each document.

Basically im gonna have a nav bar that will be different for some
pages but I like to have it all in one document.</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/If-Statement-1995282.aspx</guid><author>rss@sagewire.org</author><pubDate>Thu, 25 Oct 2007 15:48:06 GMT</pubDate></item><item><title>Do DIVs have a onblur handler?</title><link>http://www.sagewire.org/javascript-programming/Do-DIVs-have-onblur-handler-1993393.aspx</link><description>Hi,

What handler'd I set on a particular DIV if a user mouses out of
that DIV or clicks outside of that DIV?

Thanks, - Dave</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/Do-DIVs-have-onblur-handler-1993393.aspx</guid><author>rss@sagewire.org</author><pubDate>Thu, 25 Oct 2007 15:30:36 GMT</pubDate></item><item><title>asynchronous alert?</title><link>http://www.sagewire.org/javascript-programming/asynchronous-alert-1994903.aspx</link><description>Hi,

I am using AJAX and Cold Fusion, and am having trouble getting some
alerts to work.  I am using the http object in JAVAscript:
var url=&amp;quot;add_item.cfm&amp;quot;
oXmlHttpadditem=GetHttpObject(addStateChanged);
oXmlHttpadditem.open(&amp;quot;GET&amp;quot;,url,true);
oXmlHttpadditem.send(null);

then, in add_item.cfm, I am just using:
[code]&amp;lt;script type=&amp;quot;text/JAVAscript&amp;quot;&amp;gt;[/code]window.alert(&amp;quot;Hello World\n&amp;quot;);[code]&amp;lt;/script&amp;gt;[/code]

but the alert is not being displayed.  I assume this has to do with
client-side...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/asynchronous-alert-1994903.aspx</guid><author>rss@sagewire.org</author><pubDate>Thu, 25 Oct 2007 10:35:02 GMT</pubDate></item><item><title>400 Bad Request Newbie error</title><link>http://www.sagewire.org/javascript-programming/400-Bad-Request-Newbie-error-1992704.aspx</link><description>I have a frameset like this :

[code]&amp;lt;FRAMESET FRAMEBORDER =&amp;quot;no&amp;quot; scrolling =&amp;quot;no&amp;quot; COLS=&amp;quot;30%,*&amp;quot;&amp;gt;[/code]
[code]&amp;lt;FRAME name =&amp;quot;frameA&amp;quot; scrolling =&amp;quot;no&amp;quot; SRC=&amp;quot;NHXNWI017b.jsp&amp;quot;&amp;gt;[/code]
[code]&amp;lt;FRAMESET FRAMEBORDER =&amp;quot;no&amp;quot; scrolling =&amp;quot;no&amp;quot; ROWS=&amp;quot;15%,85%&amp;quot;&amp;gt;[/code]
[code]&amp;lt;FRAME scrolling =&amp;quot;no&amp;quot; SRC=&amp;quot;NHXNWI017a.jsp&amp;quot;&amp;gt;[/code]
[code]&amp;lt;FRAME name =&amp;quot;frameB&amp;quot; noresize=&amp;quot;noresize&amp;quot; scrolling =&amp;quot;no&amp;quot; SRC=&amp;quot;../
pathjsp/map_36.html#C3&amp;quot;&amp;gt;[/code]

In  NHXNWI017b.jsp there is a :

[code]&amp;lt;table width=&amp;quot;40%&amp;quot; class=&amp;quot;color&amp;quot; borde...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/400-Bad-Request-Newbie-error-1992704.aspx</guid><author>rss@sagewire.org</author><pubDate>Thu, 25 Oct 2007 09:57:59 GMT</pubDate></item><item><title>IE 7 memory leak when you remove an element from page, or Drip bug?</title><link>http://www.sagewire.org/javascript-programming/IE-memory-leak-when-you-remove-an-element-from-1994272.aspx</link><description>Hi.
I have a [code]&amp;lt;td&amp;gt;[/code] element, with [code]&amp;lt;a&amp;gt;[/code] in it and [code]&amp;lt;span&amp;gt;[/code] inside [code]&amp;lt;a&amp;gt;[/code], all
created statically (e.g. poresent in HTML when the page loads).
Later I execute the code that adds reference to td in question to a JS
object.
Then, when I remove TD from DOM tree, I set js object field to null.
When the page is unloaded the td leaks.

I tried all kinds of tircks but to no avail; what's more interesting
is that if you detach A from TD they both leak w...</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/IE-memory-leak-when-you-remove-an-element-from-1994272.aspx</guid><author>rss@sagewire.org</author><pubDate>Thu, 25 Oct 2007 08:46:49 GMT</pubDate></item><item><title>JAVAscript file parser</title><link>http://www.sagewire.org/javascript-programming/JAVAscript-file-parser-1994084.aspx</link><description>does JAVAscript can parse text-based files, same as vbscript do? I
want do a sorting of large massive of eml files stored in folder: just
to arrange(sort) eml files inside that folder by recipent email (&amp;quot;To:&amp;quot;
field) (there is different data in &amp;quot;To:&amp;quot; field  due different senders)
Just want that script parse eml files, looked for specified emails
address or name in 'To' field and arrange this emails at the top. This
probably will require ActiveX.

Regards,
santander</description><guid isPermaLink="true">http://www.sagewire.org/javascript-programming/JAVAscript-file-parser-1994084.aspx</guid><author>rss@sagewire.org</author><pubDate>Wed, 24 Oct 2007 22:59:31 GMT</pubDate></item></channel></rss>