473,484 Members | 1,613 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

EXT js-javascript library

24 New Member
i am using ext js - javascript library. i wrote a program using ext class. when i was executing it, it was giving error, that ext class is not found. then how can i set the path of ext class. or there is any other way to implement this js file?
Feb 14 '08 #1
3 2316
gits
5,390 Recognized Expert Moderator Expert
hi ...

please post the code you have and how you have included the ext-lib.

kind regards
Feb 14 '08 #2
SagarDoke
24 New Member
hi ...

please post the code you have and how you have included the ext-lib.

kind regards
Expand|Select|Wrap|Line Numbers
  1. Ext.onReady(function(){
  2.     var win;
  3.     var button = Ext.get('show-btn');
  4.  
  5.     button.on('click', function(){
  6.         // create the window on the first click and reuse on subsequent clicks
  7.         if(!win){
  8.             win = new Ext.Window({
  9.                 el:'hello-win',
  10.                 layout:'fit',
  11.                 width:500,
  12.                 height:300,
  13.                 closeAction:'hide',
  14.                 plain: true,
  15.  
  16.                 items: new Ext.TabPanel({
  17.                     el: 'hello-tabs',
  18.                     autoTabs:true,
  19.                     activeTab:0,
  20.                     deferredRender:false,
  21.                     border:false
  22.                 }),
  23.  
  24.                 buttons: [{
  25.                     text:'Submit',
  26.                     disabled:true
  27.                 },{
  28.                     text: 'Close',
  29.                     handler: function(){
  30.                         win.hide();
  31.                     }
  32.                 }]
  33.             });
  34.         }
  35.         win.show(this);
  36.     });
  37. });
  38.  
this is my code. when i clicked on button, then will not be executed. where can i put this file or how can i execute it?

here, the code is to use open a dialog, implemented in html file

[HTML]<div id="hello-win" class="x-hidden">
<div class="x-window-header">Hello Dialog</div>
<div id="hello-tabs">
<!-- Auto create tab 1 -->
<div class="x-tab" title="Hello World 1">
<p>Hello...</p>
</div>
<!-- Auto create tab 2 -->
<div class="x-tab" title="Hello World 2">
<p>... World!</p>
</div>
</div>
</div>[/HTML]
Feb 14 '08 #3
gits
5,390 Recognized Expert Moderator Expert
did you include the ext.js in your html-page? something like:

[HTML]<script type="text/javascript" src="ext.js"/>[/HTML]
kind regards
Feb 14 '08 #4

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

Similar topics

4
4067
by: Zeebra3 | last post by:
Here goes: I have a web form with several asp:dropdownlists, with which, when selection is changed I want to fire an event defined in some clientside js. The content of the clientside code is...
8
1969
by: Flip | last post by:
I have a website that's using Master pages (very cool). But when I put JS on there (to close the browser for example) coming from an external file, when I navigate away from the first page, the JS...
6
1607
by: petermichaux | last post by:
Hi, Is there a way to determine the name of a JavaScript file from inside the very same file? Thanks, Peter
1
1370
by: steven.harms | last post by:
Hi gurus, 1. foo.html has a script tag to reference'foo.js' 2. foo.js wants to use the handy datadumper.js routines 3. How does foo.js become aware of functions in the datadumper.js...
23
1725
by: Dautkhanov | last post by:
Hello ! Does anybody have cutted version of prototype.js with the AJAX functionality only? I am a new in prototype.js topic, so I think this task should be done by other developers. Maybe...
38
3961
by: Neo Geshel | last post by:
I am seeking a method to load one JS file directly into another, *without* having to dynamically write <scripttags. Is there any method whereby I can call only one external JS file using a ...
1
1580
by: leenadiwan | last post by:
Friends, Im having problem with accessing a JS file placed in another folder from a JSP popup. I tried all the following: <SCRIPT LANGUAGE="JavaScript1.1" ...
7
1746
by: whitesmith | last post by:
I know that discussions of handling the user experience of those who elect not to enable JS go back years, so I'll focus on two sites that handle it in different ways. First of all, there is...
1
1387
by: lavie | last post by:
I need to do drag and drop in FF - from the browser into a file. This requires the UniversalXPConnect privilege. I based my solution on the eample to be found at ...
0
7082
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6953
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
7105
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
7214
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4845
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4529
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3046
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1359
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
235
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.