| View previous topic :: View next topic |
| Author |
Message |
koppel Member

Joined: 22 Jul 2002 Posts: 41
|
Posted: Tue Aug 20, 2002 7:58 am Post subject: activate javascript function from a link |
|
|
I have Writen the following code:
| Code: |
<a href="javascript:loadData();">loadData</a>
|
and I get the error:
"object expected".
* it doesn't matter what the function do because if error appear before it enter the function.
thank you. |
|
| Back to top |
|
 |
phil karras Senior Member

Joined: 15 Jul 2002 Posts: 1776 Location: MD
|
Posted: Tue Aug 20, 2002 8:28 am Post subject: |
|
|
The problem is that JavaScript can not find your function: loadData(). Remember that function names MUST be spelled identically!
LodaData is NOT loadData is not Loaddata is not LOADdata is not loadDATA etc.
Without seeing your function I can't tell you what you did wrong but that's my guess. _________________ Phil K
Circle Software Consulting
Test website: http://cs.yrex.com/
Guidelines for Posting: http://www.jsworkshop.com/posting.html
IHBAAA = It Has Been Asked And Answered
KISS: http://www.jsworkshop.com/bb/viewtopic.php?t=508 |
|
| Back to top |
|
 |
|