RSS Forums RSS
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1220 | Replies: 6 | Solved | Thread Tools  Display Modes
Reply
Join Date: Jun 2008
Location: Dhaka
Posts: 10
Reputation: iqbalhosan is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
iqbalhosan iqbalhosan is offline Offline
Newbie Poster

How to call a javascript function other than form

  #1  
Jul 31st, 2008
hellow

i make a javascript function. i can call it via onLoad attribute and via form input. but there must be someother way to call the function, i mean from script.

can anyone help me out here.

thanks in advance - iqbal
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2008
Location: Sweet India
Posts: 993
Reputation: Shanti Chepuru is on a distinguished road 
Rep Power: 2
Solved Threads: 90
Shanti Chepuru's Avatar
Shanti Chepuru Shanti Chepuru is offline Offline
Posting Shark

Re: How to call a javascript function other than form

  #2  
Jul 31st, 2008
  1. <a href="javascript:del('passing variable')" >JS function</a>
Be intelligent, But Don't try to cheat.. Be innocent But Don't get cheated..
Reply With Quote  
Join Date: Jun 2008
Location: Dhaka
Posts: 10
Reputation: iqbalhosan is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
iqbalhosan iqbalhosan is offline Offline
Newbie Poster

Re: How to call a javascript function other than form

  #3  
Jul 31st, 2008
i want to call the function dynamically from a php or anyother script. like
if(true)
{
<script>
startFunction();
</script>
}
Last edited by Tekmaven : Jul 31st, 2008 at 6:34 am. Reason: Code tags
Reply With Quote  
Join Date: Jul 2008
Location: Sweet India
Posts: 993
Reputation: Shanti Chepuru is on a distinguished road 
Rep Power: 2
Solved Threads: 90
Shanti Chepuru's Avatar
Shanti Chepuru Shanti Chepuru is offline Offline
Posting Shark

Re: How to call a javascript function other than form

  #4  
Jul 31st, 2008
heloo try this:
if(true)
{
	echo '<script language="javascript">startFunction();
</script>';

}
Be intelligent, But Don't try to cheat.. Be innocent But Don't get cheated..
Reply With Quote  
Join Date: Jun 2008
Location: Dhaka
Posts: 10
Reputation: iqbalhosan is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
iqbalhosan iqbalhosan is offline Offline
Newbie Poster

Re: How to call a javascript function other than form

  #5  
Jul 31st, 2008
i have tried this shanti. doesnt working. could u tell me, how to call a js function automatically other than onload attribute.
Reply With Quote  
Join Date: Jul 2008
Location: Sweet India
Posts: 993
Reputation: Shanti Chepuru is on a distinguished road 
Rep Power: 2
Solved Threads: 90
Shanti Chepuru's Avatar
Shanti Chepuru Shanti Chepuru is offline Offline
Posting Shark

Re: How to call a javascript function other than form

  #6  
Jul 31st, 2008
Tell me in which purpose ,your are doing this requirement....then we will go to another way...
Be intelligent, But Don't try to cheat.. Be innocent But Don't get cheated..
Reply With Quote  
Join Date: Jun 2008
Location: Dhaka
Posts: 10
Reputation: iqbalhosan is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
iqbalhosan iqbalhosan is offline Offline
Newbie Poster

Re: How to call a javascript function other than form

  #7  
Aug 3rd, 2008
i am going to make an online exam site by using fusebox technology.i can't use body onLoad attribute to call a js function. however, i have to call the function dynamically from script.but the question is how?
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



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

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 8:13 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC