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?
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
hi ...
please post the code you have and how you have included the ext-lib.
kind regards
- Ext.onReady(function(){
-
var win;
-
var button = Ext.get('show-btn');
-
-
button.on('click', function(){
-
// create the window on the first click and reuse on subsequent clicks
-
if(!win){
-
win = new Ext.Window({
-
el:'hello-win',
-
layout:'fit',
-
width:500,
-
height:300,
-
closeAction:'hide',
-
plain: true,
-
-
items: new Ext.TabPanel({
-
el: 'hello-tabs',
-
autoTabs:true,
-
activeTab:0,
-
deferredRender:false,
-
border:false
-
}),
-
-
buttons: [{
-
text:'Submit',
-
disabled:true
-
},{
-
text: 'Close',
-
handler: function(){
-
win.hide();
-
}
-
}]
-
});
-
}
-
win.show(this);
-
});
-
});
-
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]
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
Sign in to post your reply or Sign up for a free account.
Similar topics |
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...
|
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...
|
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
|
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....
|
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
| |
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*/
|
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>
|
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...
|
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,...
|
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...
|
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,...
| |
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...
|
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...
|
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...
|
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...
|
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();...
|
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
| |
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...
| |