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 (s.substr(0,l))+i+(s.substr(l));
}
var a = insertAt("this is a test", "insertat ", 10);
alert(a);
</script>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265457
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to