I have created an ascx control and I am calling
registerclients criptblock. The path to the js file is relative to the
aspx page and not the ascx file. The function runs fine in IE7 but in
Firefox the error console says that the function is not defined. I
tried making a very basic js file to get it to work and I am having
the same problem. My js file is as follows
function testjs()
{
alert("test fired");
}
I look at the page source in Firefox and it looks correct
<script src="/JavaScript/test.js" type="text/jscript"></script>
My page that i am running is /test.aspx and the js file is located in /
JavaScript/test.js. I put an <inputon with onclick="testjs ();" and
firefox says testjs is not defined. I am at a loss as to why this
won't work but works fine in IE. I am not doing any specific IE
functions. 2 9138
I think it should be
<script src="/JavaScript/test.js" type="text/javascript"></script>
(Note jscript --javascript). JScript is IE-specific stuff, so Firefox
probably ignores it because of the type
--
Teemu Keiski
AspInsider, ASP.NET MVP http://blogs.aspadvice.com/joteke http://teemukeiski.net
"Altman" <ba*****@easy-automation.comw rote in message
news:11******** **************@ m58g2000cwm.goo glegroups.com.. .
>I have created an ascx control and I am calling
registerclients criptblock. The path to the js file is relative to the
aspx page and not the ascx file. The function runs fine in IE7 but in
Firefox the error console says that the function is not defined. I
tried making a very basic js file to get it to work and I am having
the same problem. My js file is as follows
function testjs()
{
alert("test fired");
}
I look at the page source in Firefox and it looks correct
<script src="/JavaScript/test.js" type="text/jscript"></script>
My page that i am running is /test.aspx and the js file is located in /
JavaScript/test.js. I put an <inputon with onclick="testjs ();" and
firefox says testjs is not defined. I am at a loss as to why this
won't work but works fine in IE. I am not doing any specific IE
functions.
On Feb 14, 9:11 am, "Teemu Keiski" <jot...@aspalli ance.comwrote:
I think it should be
<script src="/JavaScript/test.js" type="text/javascript"></script>
(Note jscript --javascript). JScript is IE-specific stuff, so Firefox
probably ignores it because of the type
--
Teemu Keiski
AspInsider, ASP.NET MVPhttp://blogs.aspadvice .com/jotekehttp://teemukeiski.net
"Altman" <balt...@easy-automation.comw rote in message
news:11******** **************@ m58g2000cwm.goo glegroups.com.. .
I have created an ascx control and I am calling
registerclients criptblock. The path to the js file is relative to the
aspx page and not the ascx file. The function runs fine in IE7 but in
Firefox the error console says that the function is not defined. I
tried making a very basic js file to get it to work and I am having
the same problem. My js file is as follows
function testjs()
{
alert("test fired");
}
I look at the page source in Firefox and it looks correct
<script src="/JavaScript/test.js" type="text/jscript"></script>
My page that i am running is /test.aspx and the js file is located in /
JavaScript/test.js. I put an <inputon with onclick="testjs ();" and
firefox says testjs is not defined. I am at a loss as to why this
won't work but works fine in IE. I am not doing any specific IE
functions.
OMG I cannot believe I didn't see that. Guess I need to pay more
attention to intellisense. I never used the jscript before I don't
know how I missed it now. Thanks. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: LRW |
last post by:
(Sorry if this is a repost...my newsreader keeps crashing on the
posting--I don't know if the message going out or not)
For some reason this javascript just won't work in Firefox. It works
fine in
IE, though.
I know, IE is a bit more permissive than IE, and sometimes lets errors
work
when they shouldn't. But from what I can see, I just don't see what's
wrong.
|
by: David Hayes |
last post by:
I've made tooltips work in Firefox*, but tooltip doesn't appear at the
specified location until the SECOND time that the user passes the mouse over
the location with the mouseover event. What I want is for the user to be
able to put the mouse over text that gives a year (e.g., "(1932)", "(1946)"
and "(1923)") and see the tooltip to the right and slightly beneath the
year.
(For the record -- this needn't concern the debugging effort --...
|
by: Dominic Tocci |
last post by:
I'm searching for a way to use window.open on my web page to open a window
in firefox that allows the sidebars to work (bookmarks, history, etc).
When I use the following:
var
popWindow=window.open('http://www.yahoo.com','','width=600,height=400,toolbar=1,location=1,menubar=1,resizable=1,titlebar=1,directories=1,status=1,scrollbars=1');
the sidebars are disabled. I click on the buttons for bookmarks and history
and they do nothing. I...
|
by: niconedz |
last post by:
Hi
The following code works fine in IE but not Firefox.
It's a little script that zooms an image and resizes the window to fit.
Can anybody tell me what's wrong?
Thanks
Nico
== btw.. sorry for the long post ==
|
by: ranger7419 |
last post by:
I'm trying to figure out why this script will work in IE 6 but not
Firefox, and so I need someone here with a far better grasp on
javascript to explain this. Basically, I have a page with several
thumbnails. Above these thumbnails I placed a large picture with text
next to it to describe what the picture is about. So, when you click a
thumb, the large pic AND text change dynamically to reflect the
thumbnail -- see...
| |
by: minnesotti |
last post by:
Hi there,
I subscribed to a photographic pictures-hosting website which is heavy
on JavaScript. My preferred latest browser Mozilla Firefox does not
work with it -- no pictures are displayed and no buttons react to
clicking. The website's helpdesk says it should work with Firefox, and
could not offer any more advices. The JavaScript Console shows that
there are numerous errors occuring. It looks like the web browser does
not recognise...
|
by: 80s.arcade |
last post by:
Hi.
Please take a look at this page:
http://tinyurl.com/s2l8w
In IE6, putting the mouse on each of the two items highlights the word
in a blue (different image) and shows a tool tip. In Firefox(1.5.0.6),
nothing shows when mouse goes over it. Please view the source of that
simple page (with some JavaScript) to see if you know how I can get
this to look in Firefox like it does in IE?
|
by: Andre |
last post by:
With Firefox 1.5+, I used the following code to close a window/tab:
===
<html><head>
<script language="javascript" type="text/javascript">
function closeWindow() {
window.open('','_parent','');
window.close();
}
closeWindow();
</script></head><body></body></html>
|
by: SAL |
last post by:
Hello, I did google this issue and found some stuff related to BrowserCaps
section of either web.config or machine.config but it didn't work.
It seems that most pages in my webapp are okay but a couple of the Firefox
is munging up.
So, on my information page there is a gridview in the content section of the
page. The masterpage contains searching capabilities for the gridview. The
masterpage has controls contained in a panel control,...
|
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: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |