473,621 Members | 2,745 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dynamic anchor tag problem "@ OR @" causing function to failin IE

CES
All,

Could someone please look at this and tell me what's wrong... the function works properly in FireFox but in IE onmouseover it replaces the innerHTML. So the original html:

at in**@test.com Thank you for your consideration.

becomes

at mailto:in**@tes t.com:?SUBJECT= Request for additional information - Package id : /*JS var*/ Thank you for your consideration.

I know the problem is the @ sign because if I remove it the function works properly, but even encoding it doesn’t seem to work I get the same issue.

Any Help would be appreciated Thanks in advance - CES
XXXXXXXXXXXXXXX XX
function mailTO(sender){
document.getEle mentById('id_' + sender).setAttr ibute("href", "mailto:inf o" + "@" + "test.com:?SUBJ ECT=Request for additional information - Package id : ");
}

<a id="id_emailMe2 " class="noExpand Normal" href="#" onmouseover="ma ilTO('emailMe2' )">info@test.co m</a>
Jul 23 '05 #1
1 3291
> "CES" <no**@none.co m> wrote:
news:Oy******** *********@twist er.nyc.rr.com.. ..

All,

Could someone please look at this and tell me what's wrong... the
function works properly in FireFox but in IE onmouseover it replaces
the innerHTML. So the original html:

at in**@test.com Thank you for your consideration.

becomes

at mailto:in**@tes t.com:?SUBJECT= Request for additional information -
Package id : /*JS var*/ Thank you for your consideration.

I know the problem is the @ sign because if I remove it the function
works properly, but even encoding it doesn’t seem to work I get the
same issue.

Any Help would be appreciated Thanks in advance - CES
XXXXXXXXXXXXXXX XX
function mailTO(sender){
document.getEle mentById('id_' + sender).setAttr ibute("href",
"mailto:inf o" + "@" + "test.com:?SUBJ ECT=Request for additional
information - Package id : "); }

<a id="id_emailMe2 " class="noExpand Normal" href="#"
onmouseover="ma ilTO('emailMe2' )">info@test.co m</a>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 //EN">
<html>
<head>
<title>
Untitled
</title>
<script type="text/javascript">
var sucker = "mailto:in**@te st.com:?SUBJECT =Request for additional information - Package id :"
function mailTO(sender){
sender.setAttri bute("href", sucker);
}
</script>
</head>
<body>
<a href="#" onmouseover="th is.href=sucker" onmouseout=
"this.href='#'" ><span>in**@tes t.com</span></a>
<br>
<a href="#" onmouseover="th is.href=sucker" onmouseout=
"this.href='#'" >Info</a>
<br>
<a id="id_emailMe2 " class="noExpand Normal" href="#" onmouseover=
"mailTO(this)"> <span>in**@test .com</span></a>
</body>
</html>
--
BootNic Saturday, July 23, 2005 6:56 PM

I try to take one day at a time, but sometimes several days attack me at once.
*Jennifer Unlimited*

Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
5077
by: Vaca Louca | last post by:
Hello, My setup: Debian sarge on dual Pentium 4. g++ 3.3.5-3. (the other system is Windows XP with MS Visual Studio .NET 2003) I have an auto_array<T> template (based on a template taken from the Corona project hosted at SourceForge) which basically wants to implement std::auto_ptr<T> semantics for an array.
2
6058
by: Lateralus | last post by:
headers/vector3.h: In member function ‘Vector3 Vector3::operator*(Scalar)’: headers/vector3.h:13: error: no matching function for call to ‘Vector3::Vector3(Vector3)’ ‘Vector3::Vector3(Vector3)’ headers/vector3.h:10: note: candidates are: Vector3::Vector3(Vector3&) I'm a little confused as to what my problem is. I get this error for any method which calls the constructor.
3
4589
by: anurag | last post by:
Hi, Is "MERGE INTO..." statement allowed to be executed in a dynamic SQL statement, inside an SQL Stored Procedure? I am using DB2 UDB 8.1.2 on Windows. If it is not allowed (as I suspect), how do I go about converting an Oracle Procedure that dynamically executes "MERGE INTO..."? ONE RESTRICTION: My converted code has to execute faster than the Oracle SP (everything else being the same).
3
12268
by: A.C. Jetter | last post by:
I am using C# in Visual Studio.Net to create an application. The problem I am having is when the main form is moved around on the screen, the "panel" form that is displayed on the tab control does not move with the main form. How can I "anchor" them so they move together? I do not want to put the panels directly on the tab control, as I want to keep them separate to allow
2
2228
by: Paul E Collins | last post by:
I'm considering using the NetSpell spell checking engine in my application. However, NetSpell is licensed under the Lesser GPL, and I want to withhold my application's source code. The licence states that I can do this if I link to the NetSpell library dynamically (rather than compiling against it statically). How can I achieve this in C#? P.
5
1738
by: Brad | last post by:
All samples related to this see to come short of being 'truly' dynamic. For instance, after creating all the code to load/save a properties value, you turn around and save it to one you KNOW exists: foo.Height = (my loaded value)... I am trying to load and set the property on the fly - without necessarily knowing what it is. Imagine a 100 name/value pairs in a file (config, res, txt, whatever). I want to load and set those on the fly,...
6
6649
by: Richard Brown | last post by:
Ok, I celebrate and rejoice in the Anchor property. So wonderful compared to the horrible 'resize' code I had to write in VB6, there is just no end to the wonders of VB.NET..... uh, ok..... BUT... I have a form with a lot of controls side by side, etc. The Anchor is really only useful to resize 1 control on each line (and move all the others). BUT, does anyone have any articles or other ways to do this? For example, I am working on...
3
2265
by: Juha Nieminen | last post by:
Consider this code: void foo(int& i) { i += 10; } int main() { int a = 1;
3
1455
by: idorjee | last post by:
Hi, Can anyone please tell me if there is a way to hyperlink to a web page which doesn't have the anchor "name" attribute (e.g., <a name="thename">), but has tags such as, <strong>. So, my question is, is it possible to hyperlink to a tag? The only way that I know is the following: <a href="http://thepage.com/example.html#thename">The Web Link</a> Thanks a lot in advance.
0
8653
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
8597
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...
1
8306
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
8457
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
6101
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
5554
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
4150
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2587
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
1
1763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.