Forum Moderators: open

Message Too Old, No Replies

Google JavaScript?

OnFocus

         

lavista4u

10:55 am on Nov 4, 2005 (gmt 0)

10+ Year Member



**Greetings**

I was looking for a javascript code similier to the one in google reply format. as soon as the user clicks on the reply text box the whole frame is loaded showing a complete window.

I have tried lot of ways..but when i use onfocus event the whole page loads, i have no idea how to use frame property in javascript.

Is there a way around, not exactly as google just the way google does it with new stuff all the time!

thanks!

technossomy

11:15 pm on Nov 9, 2005 (gmt 0)

10+ Year Member



There is no need to use frames. I once wrote a so called toggle function:

// Toggle display of divs
function toggle(categoryName) {
with (document.getElementById(categoryName).style) { display = (display == 'none')? 'block' : 'none'; }
}

example code on which it works:

<a name="abc"></a>
<a href=\"javascript:toggle('menu_abc')\">
<div class='menuCategory'> + (i++) + " (abc)</div>
</a>

You may need to rig this a little bit, I took it from a more elaborate piece of code and haven't tested the above.

Hope this helps

Tech

lavista4u

8:06 am on Nov 10, 2005 (gmt 0)

10+ Year Member



Thanks!

I need to fit this into my box..

Regards!