473,657 Members | 2,572 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript Hyperlink Function is Called Twice

4 New Member
I am using <a href="javascrip t:someFunction( 'someValue','so meValue2')"> Click here </a>

But when i clicked on it, it actually call the "someFuncti on" function twice.
This only happen to Mozilla Browser. IE only called once.

Kindly advise what is wrong with this method?
10,000 Thank you!!

Regard,
Jason
Sep 2 '08 #1
5 1693
RamananKalirajan
608 Contributor
Hi Kai, I tried this code in IE as well as Mozilla I am getting that someFunction() called only once. can u please tell in which version of mozilla u got the call twice

Regards
Ramanan Kalirajan
Sep 2 '08 #2
kai97
4 New Member
Hi Kai, I tried this code in IE as well as Mozilla I am getting that someFunction() called only once. can u please tell in which version of mozilla u got the call twice

Regards
Ramanan Kalirajan
Hi Ramanan,

Thanks for your prompt reply!

I tried both v2 and v3 of mozilla browser and both the same.
I had google-ing about this problem and realised that it happened to others too.
[removed link]
However, i cannot find a link which provide a workable solution.
Sorry, I am still new in web application deverlopment.
Hope to hear from you again soon!
Thank you.

Regards
Kai
Sep 3 '08 #3
acoder
16,027 Recognized Expert Moderator MVP
Post the code for someFunction. As a general rule, you should put JavaScript in onclick and put a real URL in the href attribute.
Sep 3 '08 #4
kai97
4 New Member
Post the code for someFunction. As a general rule, you should put JavaScript in onclick and put a real URL in the href attribute.

Hi Acoder,

Thanks for the help, i am a very new developer for my current company.
Thus, i don't have the right to review any of my company's codes to anyone.
I am very sorry for that... however, with the help of my senior developer, we found out that the problem is not lie in the javascript but the <frame> tag.
It called itself again when we have something like <frame src="">.
We have tried to put <frame src="#"> or <frame src="dummy.htm" > but none of the solution works. We will try again with other methods.
Thanks again for everyone who have help up. :)

Regards,
Jason
Sep 12 '08 #5
acoder
16,027 Recognized Expert Moderator MVP
What does someFunction() do? Can you not just post the relevant part of the code?
Sep 12 '08 #6

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

Similar topics

4
3852
by: Nate Murray | last post by:
Hey all, I'm having a strange PHP (4.3.10) problem that seems to have something to do with javascript. This is a bit complex, so hold on to your hats. My issue is that a single function is wrongly being called twice. The weird part is that no "print" functions are being repeated, but any "lower" functions, such as fwrite or Pear::Mail::send are repeated twice. It is the strangest
4
6318
by: bboyle18 | last post by:
Hi, I am working with a table sorting script which can be found here http://www.workingwith.me.uk/articles/scripting/standardista_table_sorting This script works very nicely, but when there is a large amount of data to sort e.g > 200 then there is a slight delay in the table sort. To cater for this I want to provide some feedback to the user to inform them that the sort function is processing. My idea is to add a "sorting...." message...
1
2617
by: Blackmore | last post by:
I have tried to enhance the functionality of my website by adding some javascript functions to augment my hyperlinks. I have not removed the hyperlink as I am conscious that some browsers may have javascript disabled. So the server call needs to be retained if this is the case. However, if javascript is not disabled I would like to cancel the hyperlink. Otherwise the link will effectively do the same thing twice; once on the client side and...
1
2569
by: KRISHNA PRAVI | last post by:
the error is "runtime error object expected" here is the code....................................................................................... <script language="javascript" src="../Scripts/calender.js"></script> </HEAD> <body bgColor="white" MS_POSITIONING="GridLayout"> <form id="Form1" style="LEFT: 0px; POSITION: absolute; TOP: 0px" method="post" runat="server"> <!--<table width="100%" style="LEFT: 0px; POSITION:...
0
8425
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
8326
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
8845
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...
1
8522
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,...
0
8622
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
6177
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
5647
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();...
0
4333
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2745
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 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.