473,803 Members | 3,637 Online
Bytes | Software Development & Data Engineering Community
+ 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 2342
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
4091
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 dependant on data collected in the code behind on the server. I have set AutoPostback to false for the controls and added lines such as cboMyCombo1.Attributes.Add("onchange", "MyCombos_OnChange('1')"); in the Page_Load event, which is rendered OK...
8
1994
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 no longer works. Can someone explain why this is happening? How can I fix this so that the JS is generic enough to work on every aspx to be included in the external JS file? The external JS file looks like this right now function...
6
1622
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
1393
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 namespace? Is this possible? I'm sure it must be? Assuming it is....
23
1775
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 protorype.js should be splitted into small pieces of the js scripts with groupped functionality
38
4035
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 single <scripttag, but have that external JS file insert into ITSELF the contents of five others? Something like: /*start external.js*/
1
1610
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" SRC="../js/SpellCheckForm.js"></SCRIPT> <SCRIPT LANGUAGE="JavaScript1.1" SRC="/js/SpellCheckForm.js"></SCRIPT>
7
1766
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 http://www.netflix.com/ -- a page that looks great with or without JS. Then there is https://www.agedwards.com/ageconnect/Login -- which looks like it was put together by a kid unless JS is enabled. I've looked at the source for both pages, but I'm...
1
1416
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 http://straxus.javadevelopersjournal.com/creating_a_mozillafirefox_drag_and_drop_file_upload_script_p.htm and http://straxus.javadevelopersjournal.com/creating_a_mozillafirefox_drag_and_drop_file_upload_script_p_1.htm Since the pages which require this privilege are dynamic,...
0
9703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9564
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10548
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10316
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10069
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7604
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6842
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4275
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 we have to send another system
3
2970
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.