473,405 Members | 2,187 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Apostrophe's within Apostrophe's - Quickie

Thank in advance for your help...

I have the following javascript:

document.write(' <a class="whitenav"
href="javascript:window.external.AddFavorite
('http://www.mydomain.com','Welcome to MyDomain.com')">Bookmark
Site</a> |');

where the problem arises with the apostrophe's in:

'http://www.mydomain.com','Welcome to MyDomain.com'

Due to the fact that there are already apostrophe's opening and
closing the statement...

Can anyone tell me how to get round this?

Regards

----------------------------------------------
Posted with NewsLeecher v2.0 Beta 5
* Binary Usenet Leeching Made Easy
* http://www.newsleecher.com/?usenet
----------------------------------------------

Jul 23 '05 #1
2 1635
\'
InvisibleMan wrote:
Thank in advance for your help...

I have the following javascript:

document.write(' <a class="whitenav"
href="javascript:window.external.AddFavorite
('http://www.mydomain.com','Welcome to MyDomain.com')">Bookmark
Site</a> |');

where the problem arises with the apostrophe's in:

'http://www.mydomain.com','Welcome to MyDomain.com'

Due to the fact that there are already apostrophe's opening and
closing the statement...

Can anyone tell me how to get round this?

Regards

----------------------------------------------
Posted with NewsLeecher v2.0 Beta 5
* Binary Usenet Leeching Made Easy
* http://www.newsleecher.com/?usenet
----------------------------------------------

--

e michael brandt
michael at valleywebdesigns.com
www.valleywebdesigns.com ::: home of justso picturewindow & photoalbum

--
Jul 23 '05 #2
InvisibleMan wrote:
Thank in advance for your help...

I have the following javascript:

document.write(' <a class="whitenav"
href="javascript:window.external.AddFavorite
('http://www.mydomain.com','Welcome to MyDomain.com')">Bookmark
Site</a> |');

where the problem arises with the apostrophe's in:

'http://www.mydomain.com','Welcome to MyDomain.com'

Due to the fact that there are already apostrophe's opening and
closing the statement...

Can anyone tell me how to get round this?


Read the group FAQ, thoroughly. The answer to your question (among other
tidbits of information) are covered there. The FAQ also explicitly
discusses the href="javascript: pseudo-protocol and it's limitations.

And when you finally do get it to work, test your link in any browser
but IE.....

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #3

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

Similar topics

2
by: Michael Sterling | last post by:
i'm using delphi 7 and have a query in which i'm trying to find names that have an apostrophe in them, i.e. "o'mally". my problem is that when i write my select statement i can't get the quotes...
1
by: Joel | last post by:
I realize there are many ways to handle Apostrophes in sql statements. The problem I'm having is comparing a string with an Apostrophe entered by the operator against the field in the DB (ie Field:...
2
by: AGB | last post by:
Hi all, I am calling a web service that returns the characters ' wherever an apostrophe occurs in my xml results. This is through SharePoint. For instance, if I have the text Today's News I...
13
by: Richard Hollenbeck | last post by:
To prevent future apostrophe bugs and errors, isn't it just simpler to forbid an apostrophe from being entered into a text field? For example, couldn't "Alice's Restaurant" be changed to "Alices...
1
by: Rose | last post by:
Hi all, I'm trying to create a clickable link, but the pesky apostrophe is preventing the link from getting displayed properly. I'm displaying the contents of a folder (with contains the...
0
sashi
by: sashi | last post by:
Apostrophe Have you ever tried to send a string variable to MS Access that had apostrophes embedded within an SQL Statement? If YES you will get a run time ERROR. Here is your solution, a function...
12
by: Johnny BeGood | last post by:
Hi All, When a user enters an Apostrophe into a text area field on a form, i.e. didn't, it mucks with odbc as follows Syntax error (missing operator) in query expression ''didn't', Whats...
9
by: Thomas 'PointedEars' Lahn | last post by:
Jukka K. Korpela wrote: IBTD. For example, in English it is customary (and AIUI expected) to use the character that ’ represents should be used to delimit a quotation within direct speech...
3
by: Alan Mailer | last post by:
Ok, I've looked for an answer for this, because I'm sure it's been asked a thousand times... but no luck... so here goes. Imagine I want to create a NodeList based on an XPath statement. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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...
0
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,...
0
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...
0
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...
0
agi2029
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,...

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.