Go Back   Science Forums > Physical Sciences Forums > Computer Science and Technology
Reply
 
LinkBack Thread Tools
Old 01-08-2009   #1 (permalink)
codecruiser9999's Avatar
Curious


Location:
Philippines
 
codecruiser9999 is an unknown quantity at this point
Send a message via Yahoo to codecruiser9999
 



Not Ranked  0 score     
Php Methods

Is there a way in to show and hide the form like being done in visual basic creating an object and instantiating its properties and methods.For instance MyForm.Show and MyForm.Hide i just want to create this for security reason just when u want someone to login in your login form when his /her information is right when authenticating i will show the form or appllication he/she must use by instantiating the method .show.What i want to know if theres a way in PHP doing this or just use function require to the same thign for this.Any enlightment abou this will be greatly appreciated thank you.
Reply With Quote
Old 01-08-2009   #2 (permalink)
Tormod's Avatar
Hypographer

Administrator
Senior Editor
Editor
Dev Team Member

Location:
Oslo, Norway
 
Tormod has a reputation beyond reputeTormod has a reputation beyond reputeTormod has a reputation beyond reputeTormod has a reputation beyond reputeTormod has a reputation beyond reputeTormod has a reputation beyond reputeTormod has a reputation beyond reputeTormod has a reputation beyond reputeTormod has a reputation beyond repute
 



Not Ranked  0 score     
Re: Php Methods

You would use DOM scripting and CSS visibility for that.

for example
Code:
<script type="text/javascript">
<!--
    function toggle_visibility(id) {
       var e = document.getElementById(id);
       if(e.style.display == 'block')
          e.style.display = 'none';
       else
          e.style.display = 'block';
    }
//-->
</script>
You call this function like this:
Code:
<a href="#" onclick="toggle_visibility('foo');">Click here to toggle visibility of element #foo</a>
<div id="foo">This is foo</div>
Source: Toggle Visibility - Show/Hide Anything | Movalog Blog: Making Movable Type Jump Through Hoops


----------------
Your Friendly Neighborhood Administrator

Want to lose the advertisements? Become a Sponsor!

Join our Facebook group or follow us on Twitter

Science is not only compatible with spirituality; it is a profound source of spirituality.
- Carl Sagan
Reply With Quote
Old 01-08-2009   #3 (permalink)
alexander's Avatar
Dedicated Smart-ass

Senior Moderator
Gallery Curator
Dev Team Member

Location:
Just before 0xAA55
 
alexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond repute
Send a message via AIM to alexander
 



Not Ranked  0 score     
Re: Php Methods

php is a server-side language, it deals with processing data, not displaying it...


----------------
Microsoft, the leader in using innovative tactics to promote irksome experience, coupled with antiquated technology that's held together by a pyramid of makeshift afterthoughts.

Apple, the leader in using irksome tactics to promote innovative experience, coupled with an antiquated core that's enhanced by state-of-the-art afterthoughts.

Linux, the leader in not using any tactics to promote user-defined experience, coupled with state-of-the-art core enhanced by innovative afterthoughts.

Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Expansion Methods LJP07 Physics and Mathematics 81 01-08-2007 10:11 AM
Execution methods... Boerseun Medical Science 28 06-06-2006 09:55 PM

» Advertisement
» Current Poll
Who's the sexiest man alive? Johnny Depp or Robert Pattinson?
Johnny Depp - 27.27%
3 Votes
Robert Pattinson - 0%
0 Votes
Someone else (please specify) - 45.45%
5 Votes
I'm too macho to think a guy is sexy - 27.27%
3 Votes
Total Votes: 11
You may not vote on this poll.


All times are GMT -8. The time now is 07:13 PM.

Hypography?

Hypography [n.]: A combination of "hyperlink" and "bibliography" - ie, a list of links to electronic documents. Comparable to discography and bibliography, but not cartography.

We have been online since May 2000, and aim to be the best place to find and share science-related content of all kinds.

Share the love!

Please add more science to your life. Use our RSS feeds on your blog, your portal, or your favorite feedreader!


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
Copyright © 2000-2009 Hypography
Part of the Hypography - Science for Everyone Network