how to use js inside extjs

December 5, 2010 at 22:19:12
Specs: Windows XP
i used extjs for displaying of panels in my home page
and php to display the data from database with an external javascript inside it
but features present in the external javascript are not reflected in the home page where i used extjs can anyone help me with a solution

See More: how to use js inside extjs

Report •

December 6, 2010 at 01:20:24
Uhm, you should be able to use JS inside any ext function

Does your external JS run inside an Ext.onReady block?

If not, Ext might be replacing the object after it's initialized?

Can you post the code in question?

Report •

December 6, 2010 at 01:30:44
i used div tag inside Ext.onReady block and passed the result from the php into that div tag this is my part of extjs code
if (xmlhttp.readyState==4 && xmlhttp.status==200)


if i open my php page individually i am getting the result but when i open my home page with extjs some part of functionality regarding my php page is missing

Report •

December 6, 2010 at 01:50:06
i forgot to mention
the error shown is "unable to load javascript file"

Report •

Related Solutions

December 6, 2010 at 01:52:32
Hmm I don't see any obvious problem.

I would -

1) Check the output of the AJAX call w/ Firebug ( ) make sure it looks right & there are no javascript errors.

2) You might use the built in Ext.Ajax class for handling your Ajax communications. The xmlhttp object can be quirky between different browsers.

Report •

Ask Question