473,387 Members | 3,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 1749
Dormilich
8,658 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,516 Expert Mod 8TB
Let's see the code.
Nov 22 '11 #4

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

Similar topics

5
by: Krishna | last post by:
Hi all, Can i call my javascript functions from the web controls.Any appropriate site which will be tell more on this will be helpfull. Regards.., Krishna
4
by: Martin Feuersteiner | last post by:
Dear Group I'm using VB to write an aspnet application. I would like to call a javascript function from within a VB Sub or VB Function, is it possible? My code is something like this: VB...
1
by: lwhitb1 | last post by:
I have been trying to load a javascript function from the body onload html tag, but I only want the function to load the first time the page is loaded: I have investigated but haven't found...
2
by: moralbarometer | last post by:
Hallo, I intend to have an html file generated with xsl. i want to have this line below in the html file. <a id="1" href="#" onclick="makeRequest('VALUE INSERTED USING XSL FROM XML')" test</a>...
2
by: kimberly.walker | last post by:
I have a piece of code that calls the clientside it works ok when no values are passed ie window.alert ('this is a test'). But I have a value from a textbox example: function openemail() { var...
0
by: ajitgoel | last post by:
Hi; We have a Javascript function which I have been tasked to move to a CSharp class. This javascript function uses Regular expression extensively. This function has a string input parameter and...
0
by: kloppie | last post by:
Hi there, im using ASP.NET AJAX to update a GridView, using the UpdatePanel and the Timer. What I would like is to update a Label on the page with the last time of update. But it should be the...
3
by: kksandeep | last post by:
i am using this three files to uplod file. i got this file from net but i think these have some error. i am new to this field plz help the script i found is some helpful but not too that i need ...
1
by: archcool | last post by:
hi iam new to php and i need help in my php file i have written php code and as well javascript code.the php code displays a form and i need to validate the fields present in the form calling a...
2
by: baburk | last post by:
Hi all, when I call the javascript method from code behind file of the same page it works fine. ScriptManager.RegisterClientScriptBlock(this, Page.GetType(), "Scroll",...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.