Archive

Archive for November 13, 2009

Cfwindow

November 13, 2009 ppshein Leave a comment

I’ve read some good information from www.coldfusionjedi.com. I found that’s just like jQuery Dialog box. It has a lot of built-in functions like draggable, resizeable and so on. I’m now testing on it. That’s why I don’t have much of explanation about cfwindow. Check it out for example from

 

http://www.coldfusionjedi.com/index.cfm/2007/6/20/ColdFusion-8-AJAX-UI-Windows

 

setInterval Javascript

November 13, 2009 ppshein Leave a comment

Like gmail, you can use auto fresh your page with setInterval funtion of javascript.

<script>
<!–
intervalID = window.setInterval(“alert(‘Hi’)”,  1000);
–>
</script>

Cflayout

November 13, 2009 ppshein Leave a comment

I didn’t notice cflayout tag is just like DIV before. It’s not much different between cflayout and DIV. Sometimes, it just like iframe. But, we should know this tag will be useful for future. Here is example for cflayout.

 

<html>
<head>
<script type=”text/javascript” charset=’utf-8′>
function CF_RunContent(src){
setTimeout(function(){document.getElementById(‘Center’).innerHTML = src;},5);
}
</script>
</head>
<body>
<a href=”#” onclick=”ColdFusion.navigate(‘mybio.cfm’,'Center’);”>Bio</a>
<cflayout type=”border” name=”layoutborder”>
<cflayoutarea name=”Center” position=”top” style=”width:500px;height:200px” maxSize=”200″>
Welcome
</cflayoutarea>
</cflayout>

</body>
</html>