473,788 Members | 2,715 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

link won't open correctly in email (mac and win)

i'm trying to send a mass-email using microsoft's list builder
(http://www.bcentral.com/products/lb/default.asp).
my html file is clean and the javascript links work fine in all
browsers.
when the emails are received though, clicking on the links opens two
browser windos: one --on top -- displays the content correctly. the
other one - always on the bottom -- displays "[object]".
is there something i should change in the links to make them work in
outlook/mail/entourage?
thanks,

alberta

the links are all like this:

javascript:seri esdetails=open( 'http://www.cinema.ucla .edu/calendar/calendardetails .aspx?details_t ype=2&id=123',' _blank','menuba r=no,scrollbars =yes,resizable= yes,width=600,h eight=450');ser iesdetails.focu s();
Jul 23 '05 #1
7 3506
Ivo
"alberta soranzo" wrote
i'm trying to send a mass-email
Oh no!
using microsoft's list builder
(http://www.bcentral.com/products/lb/default.asp).
my html file is clean and the javascript links work fine in all
browsers.
Javascript in email is not a good idea. According to conservative hearsay
estimates, 70% of users have script turned off in their email client. If
there are a few more like you, the other 30% will follow shortly.
when the emails are received though, clicking on the links opens two
browser windos: one --on top -- displays the content correctly. the
other one - always on the bottom -- displays "[object]".
is there something i should change in the links to make them work in
outlook/mail/entourage?
What is not working in the current situation? I assume that this "[object]"
bothers you, but you don't say what this second window should display.
thanks,
alberta

the links are all like this:

javascript:seri esdetails=open( 'http://www.cinema.ucla .edu/calendar/calendard
etails.aspx?det ails_type=2&id= 123','_blank',' menubar=no,scro llbars=yes,resi z
able=yes,width= 600,height=450' );seriesdetails .focus();

This is in the "href" of an "a", right? See
http://www.jibbering.com/faq/#FAQ4_24
What happens is the variable "seriesdeta ils" is returned from the javascript
evaluation, and the browser tries to display it. This the the "object" that
you see. If you add "void('');" after the focus command, any return value is
suppressed.

BUt to take a step back, what is wrong with a normal and ordinary link, like
<a
href="http://www.cinema.ucla .edu/calendar/calendardetails .aspx?details_t ype=
2&id=123">
Apart from the window size which would be the reader's current or favourite
window size instead of your hardcoded 600x450 (how does that compare on
800px resolution or 1600 resolution), everything would work the same.
I must be crazy helping people script in email.
Ivo
Jul 23 '05 #2
"alberta soranzo" <al************ @earthlink.net> schrieb im Newsbeitrag
news:5e******** *************** ***@posting.goo gle.com...
i'm trying to send a mass-email using microsoft's list builder
(http://www.bcentral.com/products/lb/default.asp).
my html file is clean and the javascript links work fine in all
browsers.
when the emails are received though, clicking on the links opens two
browser windos: one --on top -- displays the content correctly. the
other one - always on the bottom -- displays "[object]".
is there something i should change in the links to make them work in
outlook/mail/entourage?
thanks,

alberta

the links are all like this:

javascript:seri esdetails=open( 'http://www.cinema.ucla .edu/calendar/calendard
etails.aspx?det ails_type=2&id= 123','_blank',' menubar=no,scro llbars=yes,resi z
able=yes,width= 600,height=450' );seriesdetails .focus();

You focus a window called 'seriesdetails' , but there is none, as the window
you create is called '_blank'. So your e-mail client might think it should
create one, another one might not...

For the rest see Ivo's post. Why use Javascript in an e-mail? I am not a
very suspicious person, I don't use popup blockers and stuff like that, but
I would _never_ allow scripting in e-mails.

--
Markus
Jul 23 '05 #3
In article <40************ ***********@new s.easynet.ch>,
derernst@NO#SP# AMgmx.ch enlightened us with...

For the rest see Ivo's post. Why use Javascript in an e-mail? I am not a
very suspicious person, I don't use popup blockers and stuff like that, but
I would _never_ allow scripting in e-mails.


The only people I know who DO allow scripting are newbies using Outlook.
The first virus they get, they disable scripting.

However, if this is for an intranet application where you know your
users have script, go for it. Try using window.open instead of just
open. If that doesn't do it, change the target of _blank to _self in the
open.
That's all I can think of. :)
--
--
~kaeli~
Suicide is the most sincere form of self-criticism.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #4
"kaeli" <ti******@NOSPA M.comcast.net> schrieb im Newsbeitrag
news:MP******** *************** *@nntp.lucent.c om...
In article <40************ ***********@new s.easynet.ch>,
derernst@NO#SP# AMgmx.ch enlightened us with...

For the rest see Ivo's post. Why use Javascript in an e-mail? I am not a
very suspicious person, I don't use popup blockers and stuff like that, but I would _never_ allow scripting in e-mails.


The only people I know who DO allow scripting are newbies using Outlook.
The first virus they get, they disable scripting.

However, if this is for an intranet application where you know your
users have script, go for it. Try using window.open instead of just
open. If that doesn't do it, change the target of _blank to _self in the
open.
That's all I can think of. :)


So is the syntax

seriesdetails=o pen('url','_bla nk');

creating a window with the name "seriesdetails" ? I thaught that would make
seriesdetails a variable with the value true if window is opened, and the
name of the window was '_blank'... But I am really not sure about that.

--
Markus
Jul 23 '05 #5
In article <40************ ***********@new s.easynet.ch>,
derernst@NO#SP# AMgmx.ch enlightened us with...

So is the syntax

seriesdetails=o pen('url','_bla nk');

creating a window with the name "seriesdetails" ? I thaught that would make
seriesdetails a variable with the value true if window is opened, and the
name of the window was '_blank'... But I am really not sure about that.


A new window will be created with the window.open command. The variable
seriesdetails will point to it. I haven't seen any other code, so if
open (without the window in front) is defined in other code, it may or
may not function the same.
I also don't know what happens, really, when you name your window a
reserved (?) target name like _blank. Seeing that makes me think what
would normally be the name of the window in the standard window.open
command is actually a target in a user defined open command. The OP was
using a microsoft tool to create this, so all bets are off. ;)

--
--
~kaeli~
Why do they lock gas station bathrooms? Are they afraid
someone will clean them?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #6
kaeli wrote:
In article <40************ ***********@new s.easynet.ch>,
derernst@NO#SP# AMgmx.ch enlightened us with...
So is the syntax

seriesdetails =open('url','_b lank');

creating a window with the name "seriesdetails" ? I thaught that would make
seriesdetai ls a variable with the value true if window is opened, and the
name of the window was '_blank'... But I am really not sure about that.

A new window will be created with the window.open command. The variable
seriesdetails will point to it. I haven't seen any other code, so if
open (without the window in front) is defined in other code, it may or
may not function the same.
I also don't know what happens, really, when you name your window a
reserved (?) target name like _blank. Seeing that makes me think what
would normally be the name of the window in the standard window.open
command is actually a target in a user defined open command. The OP was
using a microsoft tool to create this, so all bets are off. ;)


seriesdetails = window.open('UR L','WindowName' ,'properties')

WindowName will be what the OP is after. AFAIK, open and window.open
work the same, perhaps not in some strange browsers that I have not run
across. Using _blank is no different than using myHumptyDumptyW indow as
the name, other than when used as the target attribute of a link.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/
Jul 23 '05 #7
Markus Ernst wrote:
"alberta soranzo" <al************ @earthlink.net> schrieb im Newsbeitrag
news:5e******** *************** ***@posting.goo gle.com... ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^
[...]
the links are all like this:

javascript:seri esdetails=open( 'http://www.cinema.ucla .edu/calendar/calendard
etails.aspx?det ails_type=2&id= 123','_blank',' menubar=no,scro llbars=yes,resi z
able=yes,width= 600,height=450' );seriesdetails .focus();


You did not wrote that as the quotation level would indicate, but Alberta
did. Please take heed of both <http://got.to/quote> and, as for your munged
e-mail address, <http://gerlo.de/falsche-email-adressen.html>.
You focus a window called 'seriesdetails' , but there is none, as the window
you create is called '_blank'. So your e-mail client might think it should
create one, another one might not...


You confuse window name and object reference identifier. Apart from the
misguided "javascript :" label that should be removed, the first statement
assigns the result of window.open() to the global `seriesdetails' to refer
to the created window. In the second statement that reference is used to
call a method of Window objects. The internal name of that referenced
window, however, is chosen to be "_blank" via the second argument of
window.open(). (One can do that to prevent the window being re-used, as
"_blank" is a key value for the "target" attribute of the "base" and "a"
elements in HTML. Nothing is syntactically or logically wrong with this.
However, I doubt anyone would deliberately allow scripts to execute in
their e-mail client and it is likely that web-mail software will disable
that script as well.
PointedEars
Jul 23 '05 #8

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

Similar topics

6
2796
by: Ben Sharvy | last post by:
I'm using Netscape 7.02 for Mac, and observed the same problem on some version of Mozilla under Red Hat. Netscape won't load the stylesheet for this page: http://www.efn.org/~bsharvy/ecolibparty.html Strangely, it loads the exact same stylesheet as linked here: http://www.efn.org/~bsharvy/dummies.html So, the problem isn't with the stylesheet since it loads correctly for
4
7707
by: J Fisk | last post by:
Hi, I've been banging my head on the wall over this for about two days now so any thoughts are much appreciated. I have a static .svg file with embedded onclick="open()"'s all over. The svg is <embed>ded in a minimal .html file. The onclick's work fine in IE w/Adobe SVG viewer 3: click and a new
2
4193
by: cschang | last post by:
I have a form containing a link next to an input box. I include a javascript function in the input by using the onblur='fuc()'. I used this function to open another ASP page to do something and then close the window. There was no problem if I just clicked other place on the form. everything was working as charm. However, If I want to click the link next to it after I moved out the input box, I always have to click twice in order to...
29
5031
by: wayne | last post by:
Hey there... I'm having some problems passing url parameters with an open.window command. I'm not terribly familiar with java script but here is the code below. When executed it opens the window properly but does not pass the parameter. (this is part of a coldfusion template) <a href="##"
6
3636
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a list of all of my webs, however if I attempt to open a site under and web other than localhost I receive the message: "Unable to open the Web 'http://localhost/anywebappname'. The Web 'http://localhost/anywebappname' does not exist" Obviously...
4
1504
by: Amanda H. | last post by:
I need some help with testing, guys. The script I'm using for style sheet switching for my website doesn't seem to work in all browsers correctly. In most Mac browsers, it updates the page automatically, but in Opera & IE it will not change. I checked and it is sending the cookie, but it isn't sticking for some reason. Also, it does not automatically refresh in IE6/Win. Any guesses? Amanda H.
26
3006
by: Nospam | last post by:
I am trying to open a link in a new template window : <a onclick="windowopen('example.html','example');return false;" href="http://www.example.com" target="_blank"example link</a> such that clicking on the example link will open it in a new window in an already saved template/site/ called example.html
7
1983
by: Ben Amada | last post by:
Hi ... I have an HTML page containing a bunch of <alinks. Some of the links redirect the visitor to a page at a different website in a new browser window (target=_blank) and other links are "mailto" links. What I want to do is record a little information when they click on a link (mainly which link they are clicking on). I can put together a server side webpage that can receive this information and store it in a DB. I'm just not...
5
1754
by: plumba | last post by:
Ok, the title might not make it clear. I have a javascript code which generates an email. The page is on our corporate intranet so I know it will fire up the email ok. the code looks something like this: var ct9000 = document.getElementById("ct9000").value; var enddate = document.getElementById("105end").value; var fileloc = "file:///S:\folder1\folder2\folder - 3 \document.doc'"; var body_message = "Please run "+job+", details as...
0
9656
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
9498
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
10173
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
9967
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
7517
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
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4070
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
2
3674
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
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.