468,541 Members | 1,809 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,541 developers. It's quick & easy.

Calling Javascript Function from file loaded using Ajax

24
Dear All,

I'm loading php file called details.php into my main webpage called main.php using Ajax.

The loaded php file (details.php) contains a link. When clicking it, it calls a javascript function.

Expand|Select|Wrap|Line Numbers
  1. <a onClick="call_function();">
  2.  
This function body exists in the main webpage (main.php):

When I click the link, the page shows this error:
Expand|Select|Wrap|Line Numbers
  1. Error: 'FLD' is undefined
  2.  
and there is no varaible called FLD in my code.

I searched the net and many people say that I should use EVAL function.

Expand|Select|Wrap|Line Numbers
  1. <a onClick="EVA(call_function());">
  2.  
but, also it dosen't work.

Could you please help me?

Thanks alot.
Nov 22 '11 #1
3 1609
Dormilich
8,651 Expert Mod 8TB
When I click the link, the page shows this error:

Error: 'FLD' is undefined

and there is no varaible called FLD in my code.
the error surely points to a line in your code throwing that error. 'FLD' is supposed to be there.
Nov 22 '11 #2
goodamr
24
Thanks Dormilich for replying.

FLD dosen't exist in the whole both pages.
Nov 22 '11 #3
Rabbit
12,513 Expert Mod 8TB
Let's see the code.
Nov 22 '11 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by Krishna | last post: by
4 posts views Thread by Martin Feuersteiner | last post: by
2 posts views Thread by moralbarometer | last post: by
2 posts views Thread by kimberly.walker | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.