String.insertAt is not a function

2007-01-01 Thread Andrew Grosset
I can't understand why this produces the javascript error String.insertAt is not a function (firefox), tried IE and opera to. script type=text/javascript //example from http://www.webreference.com/js/column63/6.html. var a = String.insertAt(Doc JavaScript is a leading source for JavaScript

Re: String.insertAt is not a function

2007-01-01 Thread Andrew Grosset
I put a test page here: http://www.macrodate.com/test/test1.cfm Andrew. ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2

Re: String.insertAt is not a function

2007-01-01 Thread Barney Boisvert
Perhaps because those examples are for WMLScript, not JavaScript? cheers, barneyb On 1/1/07, Andrew Grosset [EMAIL PROTECTED] wrote: I can't understand why this produces the javascript error String.insertAt is not a function (firefox), tried IE and opera to. script type=text/javascript

Re: String.insertAt is not a function

2007-01-01 Thread Jim Wright
Andrew Grosset wrote: //example from http://www.webreference.com/js/column63/6.html. According to this link, this is an example for WMLScript, a variation of javascript for use with wireless devices. I don't see a insertAt method in another reference on javascript...

Re: String.insertAt is not a function

2007-01-01 Thread Andrew Grosset
Jim, Thanks for pointing that out(WMLScript), is there a way to insert a string within another using javascript? Andrew Andrew Grosset wrote: //example from http://www.webreference.com/js/column63/6.html. According to this link, this is an example for WMLScript, a variation of javascript

Re: String.insertAt is not a function

2007-01-01 Thread Jim Wright
Andrew Grosset wrote: Jim, Thanks for pointing that out(WMLScript), is there a way to insert a string within another using javascript? Andrew Not something I've done before, so this isn't tested well or anything... script function insertAt(s,i,l){ return

Re: String.insertAt is not a function

2007-01-01 Thread Andrew Grosset
Thanks Jim, that works perfectly! the revised test can be seen here: http://www.macrodate.com/test/test1.cfm Andrew. ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2