You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 269 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - How To Use This Button [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
bigboy177
Lieutenant
Lieutenant


Joined: Jun 23, 2004
Posts: 152


PostPosted: Sat Dec 25, 2004 3:02 am Reply with quoteBack to top

Is it possible to use such button to call a function in a module ??

Code:

<form><input type=\"button\" value=\"FunctionName\" onclick=\"javascript();\"></form>


Where shoul I put the function name... or maybe it should be a different button...

Thanks for help...

_________________
http://www.info-gry.info
http://www.info-gry.prv.pl
http://www.infogry.info
Find all posts by bigboy177View user's profileSend private message
madman
Support Mod
Support Mod


Joined: Feb 15, 2004
Posts: 806


PostPosted: Sun Dec 26, 2004 9:34 am Reply with quoteBack to top

bigboy177 wrote:
Is it possible to use such button to call a function in a module ??

Yes, but only to functions that actually handle submitted user inputs.

bigboy177 wrote:
Where shoul I put the function name... or maybe it should be a different button...

It's depend on the purpose. The following example will create an external image button (using POST form) that will directly download a file with id 1:
Code:
<form action="modules.php" method="post">
<input type="hidden" name="name" value="Downloads" />
<input type="hidden" name="d_op" value="getit" />
<input type="hidden" name="lid" value="1" />
<input type="image" src="images/logo.gif" alt="Download This File" style="cursor:pointer;" />
</form>

_________________
I'm Image
Find all posts by madmanView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN Messenger
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.087 Seconds - 491 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::