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 :seriesdetails=open('http://www.cinema.ucla.edu/calendar/calendardetails.aspx?details_type=2&id=123','_blan k','menubar=no,scrollbars=yes,resizable=yes,width= 600,height=450');seriesdetails.focus(); 7 3476
"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 :seriesdetails=open('http://www.cinema.ucla.edu/calendar/calendard
etails.aspx?details_type=2&id=123','_blank','menub ar=no,scrollbars=yes,resiz
able=yes,width=600,height=450');seriesdetails.focu s();
This is in the "href" of an "a", right? See http://www.jibbering.com/faq/#FAQ4_24
What happens is the variable "seriesdetails" 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_type=
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
"alberta soranzo" <al************@earthlink.net> schrieb im Newsbeitrag
news:5e**************************@posting.google.c om... 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 :seriesdetails=open('http://www.cinema.ucla.edu/calendar/calendard
etails.aspx?details_type=2&id=123','_blank','menub ar=no,scrollbars=yes,resiz
able=yes,width=600,height=450');seriesdetails.focu s();
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
In article <40***********************@news.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
"kaeli" <ti******@NOSPAM.comcast.net> schrieb im Newsbeitrag
news:MP************************@nntp.lucent.com... In article <40***********************@news.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=open('url','_blank');
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
In article <40***********************@news.easynet.ch>, derernst@NO#SP#AMgmx.ch enlightened us with... So is the syntax
seriesdetails=open('url','_blank');
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
kaeli wrote: In article <40***********************@news.easynet.ch>, derernst@NO#SP#AMgmx.ch enlightened us with...
So is the syntax
seriesdetails=open('url','_blank');
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. ;)
seriesdetails = window.open('URL','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 myHumptyDumptyWindow as
the name, other than when used as the target attribute of a link.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/
Markus Ernst wrote: "alberta soranzo" <al************@earthlink.net> schrieb im Newsbeitrag news:5e**************************@posting.google.c om...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^ [...] the links are all like this:
javascript:seriesdetails=open('http://www.cinema.ucla.edu/calendar/calendard etails.aspx?details_type=2&id=123','_blank','menub ar=no,scrollbars=yes,resiz able=yes,width=600,height=450');seriesdetails.focu s();
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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:...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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...
|
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,...
|
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...
|
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...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |