open link in new window

D

david

Here is how I wrote one link:
<a target=â€_display†href=â€http://lingrealty.comâ€>Link Text</a>

The browser tries to go to this address ill-formed instead:
http://lingweb.com/index_files/â€http://lingrealty.comâ€

Here is another link I wrote:
<a target=â€_blankâ€
href=â€http://realtytimes.com/rtnews/nlpages/buyersadvice.htm?open&Vol=c&ID=davidlingâ€>Link Text</a>

and, the browser shows this as the address which of course does not exist
http://lingweb.com/index_files/â€ht...es/buyersadvice.htm?open&Vol=c&ID=davidlingâ€

David




David Bartosik said:
You need to write your link correctly.
Evidently you are writing the link to point to the file locally rather than
use it's URL on the web server.

David Bartosik - [MSFT MVP]
www.publishermvps.com
www.davidbartosik.com

david said:
I did exactly what is described at
http://www.publishermvps.com/Default.aspx?tabid=30

I got an error message like so:
Cannot find
'file:///C:Documents%20and%20Settings/myname/Local%20Settings/Temporary%20/Internet%20Files/Cont.MSO/PubWebPagePreview/pub2716.0/index_files/"http://mylink".
Make sure the path or Internet address is correct.

What do I need to do to solve this?
David
 
D

David Bartosik [MSFT MVP]

Both links are written properly.
Therefore it's a question of why Pub codes it wrong.
To date I've only seen one thing that causes that issue.
The use of a Master Page in the publication.
If that is the case here then stop using the Master Page in the publication.

David Bartosik - [MSFT MVP]
www.publishermvps.com
www.davidbartosik.com

david said:
Here is how I wrote one link:
<a target="_display" href="http://lingrealty.com">Link Text</a>

The browser tries to go to this address ill-formed instead:
http://lingweb.com/index_files/"http://lingrealty.com"

Here is another link I wrote:
<a target="_blank"
href="http://realtytimes.com/rtnews/nlpages/buyersadvice.htm?open&Vol=c&ID=davidling">Link
Text</a>

and, the browser shows this as the address which of course does not exist:
http://lingweb.com/index_files/"http://realtytimes.com/rtnews/nlpages/buyersadvice.htm?open&Vol=c&ID=davidling"

David




David Bartosik said:
You need to write your link correctly.
Evidently you are writing the link to point to the file locally rather
than
use it's URL on the web server.

David Bartosik - [MSFT MVP]
www.publishermvps.com
www.davidbartosik.com

david said:
I did exactly what is described at
http://www.publishermvps.com/Default.aspx?tabid=30

I got an error message like so:
Cannot find
'file:///C:Documents%20and%20Settings/myname/Local%20Settings/Temporary%20/Internet%20Files/Cont.MSO/PubWebPagePreview/pub2716.0/index_files/"http://mylink".
Make sure the path or Internet address is correct.

What do I need to do to solve this?
David
 
D

david

I went through every page and make sure no Master page is applied.
It does not work. So master page is not the problem.
David

David Bartosik said:
Both links are written properly.
Therefore it's a question of why Pub codes it wrong.
To date I've only seen one thing that causes that issue.
The use of a Master Page in the publication.
If that is the case here then stop using the Master Page in the publication.

David Bartosik - [MSFT MVP]
www.publishermvps.com
www.davidbartosik.com

david said:
Here is how I wrote one link:
<a target="_display" href="http://lingrealty.com">Link Text</a>

The browser tries to go to this address ill-formed instead:
http://lingweb.com/index_files/"http://lingrealty.com"

Here is another link I wrote:
<a target="_blank"
href="http://realtytimes.com/rtnews/nlpages/buyersadvice.htm?open&Vol=c&ID=davidling">Link
Text</a>

and, the browser shows this as the address which of course does not exist:
http://lingweb.com/index_files/"http://realtytimes.com/rtnews/nlpages/buyersadvice.htm?open&Vol=c&ID=davidling"

David




David Bartosik said:
You need to write your link correctly.
Evidently you are writing the link to point to the file locally rather
than
use it's URL on the web server.

David Bartosik - [MSFT MVP]
www.publishermvps.com
www.davidbartosik.com

I did exactly what is described at
http://www.publishermvps.com/Default.aspx?tabid=30

I got an error message like so:
Cannot find
'file:///C:Documents%20and%20Settings/myname/Local%20Settings/Temporary%20/Internet%20Files/Cont.MSO/PubWebPagePreview/pub2716.0/index_files/"http://mylink".
Make sure the path or Internet address is correct.

What do I need to do to solve this?
David
 
D

David Bartosik [MSFT MVP]

You are welcome to submit the file to me at (e-mail address removed) for my review
and testing.

David Bartosik - [MSFT MVP]
www.publishermvps.com
www.davidbartosik.com

david said:
I went through every page and make sure no Master page is applied.
It does not work. So master page is not the problem.
David

David Bartosik said:
Both links are written properly.
Therefore it's a question of why Pub codes it wrong.
To date I've only seen one thing that causes that issue.
The use of a Master Page in the publication.
If that is the case here then stop using the Master Page in the
publication.

David Bartosik - [MSFT MVP]
www.publishermvps.com
www.davidbartosik.com

david said:
Here is how I wrote one link:
<a target="_display" href="http://lingrealty.com">Link Text</a>

The browser tries to go to this address ill-formed instead:
http://lingweb.com/index_files/"http://lingrealty.com"

Here is another link I wrote:
<a target="_blank"
href="http://realtytimes.com/rtnews/nlpages/buyersadvice.htm?open&Vol=c&ID=davidling">Link
Text</a>

and, the browser shows this as the address which of course does not
exist:
http://lingweb.com/index_files/"http://realtytimes.com/rtnews/nlpages/buyersadvice.htm?open&Vol=c&ID=davidling"

David




:

You need to write your link correctly.
Evidently you are writing the link to point to the file locally rather
than
use it's URL on the web server.

David Bartosik - [MSFT MVP]
www.publishermvps.com
www.davidbartosik.com

I did exactly what is described at
http://www.publishermvps.com/Default.aspx?tabid=30

I got an error message like so:
Cannot find
'file:///C:Documents%20and%20Settings/myname/Local%20Settings/Temporary%20/Internet%20Files/Cont.MSO/PubWebPagePreview/pub2716.0/index_files/"http://mylink".
Make sure the path or Internet address is correct.

What do I need to do to solve this?
David
 
D

David Bartosik

This problem is due to your layering html code fragment objects.

You can't do that. I've never seen a customer do that.

No idea why you did that. Nor why you made the fragment objects several
times larger then the link code takes up. A fragment should be sized to
roughly the size of the resulting html output.

But anyway..

Ideally though multiple links would not even be in separate fragments, no
reason for it. Look on your page that I revised and you'll see I removed the
3 fragments and replaced it with one that contains all 3 links.

That resolves your inquiry.

However upon closer review I found your bottom nav bar was corrupted.
Additionally I found that your vertical nav bar has a link to a external (not
part of the publication) hyperlink. That is incorrect, all nav bar links must
be internal to the publication, they link to a page of your file. Fact is I
have no idea how you even did that.

It's apparent to me that the nav bar corruption stems from that. I was
unable to correct the nav bars nor rebuild them correctly.

As a result I recommend you create a new publication file and paste in your
page elements into the new file and start off with a clean nav bar.

This file is in my opinion unusable due to the nav bar corruption.

David Bartosik - [MSFT MVP]
www.publishermvps.com
www.davidbartosik.com
 
D

david

Hi David,
For a while I still had a hard time duplicating what you did.
I copied the code using "cut and paste" from
http://www.publishermvps.com/Default.aspx?tabid=30
I made the code looks just like yours, but yours worked, mine would fail.
Then I found out why, after much trial and error.
The culprit is the double quote character copied from the link mentioned
above.
When I type the double quote character using my keyboard, the code fragment
works. When I use "cut" and "paste" to copy the double quote chracter, the
code fragment would fail everytime.
In other words,
this works:
<a target="_display" href="http://www.domain.com">Link Text</a>
But this would fail:
<a target="_display" href="http://www.domain.com">Link Text</a>
Anyone reading the above may not discern the difference.
As I am composing this email, the two lines above appear identical.
Don't let that misled you.
Bottomline is: Type the double quote using your keyboard.

David
 
D

david

I forgot to mention that the code you've seen from me were not "written" by me.
They were generated by Publisher's wizard.
The code fragment were added by clicking "Insert", followed by "HTML code
fragment".

I have some follow up questions to my original question for how to open a
new window when clicking on a hyperlink.
(i) how to make the new window appear "in front" of the original window so
it is visible when opened;
(ii) how to make the new window opened at the location of say, 1 inch to the
right and 0.5 inch below where the original window is located.
I am new to html and have just acquired a book on HTML with XHTML and CSS.
If anyone could tell me what html keywords to read up that would be very
helpful.
Thank you.

David
 
D

David Bartosik [MSFT MVP]

You can't control those items. That is at the OS level. As for the first -
window focus - a Windows customer can install Microsoft Windows PowerToys
(download from microsoft.com) and one of the PowerToy features is the option
to have some control over when your windows get focus.
That said, you can however implement JavaScripting to deploy the much hated
"pop-up's", which can be controled and made to be 'pop-under' or 'pop-over'.
Pop-up's should not be confused with browser window instances. If you pursue
JavaScripting you'd need to reference sites that deal with that versus this
forum.

David Bartosik - [MSFT MVP]
www.publishermvps.com
www.davidbartosik.com
 
D

david

Thanks for the info.
One final question for this case.
Is there another way to modify the html code generated by Publisher other
than inserting the html code frament (i.e. Menu: INSERT -> HTML CODE
FRAMENT) ?

In other words, while in Publisher, is there a way to open the source code
for edting? I couldn't find anyway after searching around within Publisher.

I would like to know how to modify the raw publisher html code directly, and
still get the code to behave normally on subsequent editing using the
Publisher program.

David



David Bartosik said:
You can't control those items. That is at the OS level. As for the first -
window focus - a Windows customer can install Microsoft Windows PowerToys
(download from microsoft.com) and one of the PowerToy features is the option
to have some control over when your windows get focus.
That said, you can however implement JavaScripting to deploy the much hated
"pop-up's", which can be controled and made to be 'pop-under' or 'pop-over'.
Pop-up's should not be confused with browser window instances. If you pursue
JavaScripting you'd need to reference sites that deal with that versus this
forum.

David Bartosik - [MSFT MVP]
www.publishermvps.com
www.davidbartosik.com

david said:
I forgot to mention that the code you've seen from me were not "written" by
me.
They were generated by Publisher's wizard.
The code fragment were added by clicking "Insert", followed by "HTML code
fragment".

I have some follow up questions to my original question for how to open a
new window when clicking on a hyperlink.
(i) how to make the new window appear "in front" of the original window so
it is visible when opened;
(ii) how to make the new window opened at the location of say, 1 inch to
the
right and 0.5 inch below where the original window is located.
I am new to html and have just acquired a book on HTML with XHTML and CSS.
If anyone could tell me what html keywords to read up that would be very
helpful.
Thank you.

David
 
D

David Bartosik [MSFT MVP]

No.

The html code doesn't exist yet!

Hence how could you edit it.

Pub is not an html editor like FrontPage.

FrontPage and other web design tools write the html code in real time with
the design.

Publisher doesn't generate the html code until it's creating the html files
which it does when you "save as/export as/publish as" a web.

If you choose to edit the output'ed html files in an editor the changes will
be lost the next time you save the publication and Publisher replaces the
html files.

Come to think of it I'm pretty sure I have this in the faq -
http://www.publishermvps.com/Default.aspx?tabid=30

David Bartosik - [MSFT MVP]
www.publishermvps.com
www.davidbartosik.com


david said:
Thanks for the info.
One final question for this case.
Is there another way to modify the html code generated by Publisher other
than inserting the html code frament (i.e. Menu: INSERT -> HTML CODE
FRAMENT) ?

In other words, while in Publisher, is there a way to open the source code
for edting? I couldn't find anyway after searching around within
Publisher.

I would like to know how to modify the raw publisher html code directly,
and
still get the code to behave normally on subsequent editing using the
Publisher program.

David



David Bartosik said:
You can't control those items. That is at the OS level. As for the
first -
window focus - a Windows customer can install Microsoft Windows PowerToys
(download from microsoft.com) and one of the PowerToy features is the
option
to have some control over when your windows get focus.
That said, you can however implement JavaScripting to deploy the much
hated
"pop-up's", which can be controled and made to be 'pop-under' or
'pop-over'.
Pop-up's should not be confused with browser window instances. If you
pursue
JavaScripting you'd need to reference sites that deal with that versus
this
forum.

David Bartosik - [MSFT MVP]
www.publishermvps.com
www.davidbartosik.com

david said:
I forgot to mention that the code you've seen from me were not "written"
by
me.
They were generated by Publisher's wizard.
The code fragment were added by clicking "Insert", followed by "HTML
code
fragment".

I have some follow up questions to my original question for how to open
a
new window when clicking on a hyperlink.
(i) how to make the new window appear "in front" of the original window
so
it is visible when opened;
(ii) how to make the new window opened at the location of say, 1 inch
to
the
right and 0.5 inch below where the original window is located.
I am new to html and have just acquired a book on HTML with XHTML and
CSS.
If anyone could tell me what html keywords to read up that would be
very
helpful.
Thank you.

David


:

I did exactly what is described at
http://www.publishermvps.com/Default.aspx?tabid=30

I got an error message like so:
Cannot find
'file:///C:Documents%20and%20Settings/myname/Local%20Settings/Temporary%20/Internet%20Files/Cont.MSO/PubWebPagePreview/pub2716.0/index_files/"http://mylink".
Make sure the path or Internet address is correct.

What do I need to do to solve this?
David
 
D

david

That explains it!
Thank you for illuminating.
David

David Bartosik said:
No.

The html code doesn't exist yet!

Hence how could you edit it.

Pub is not an html editor like FrontPage.

FrontPage and other web design tools write the html code in real time with
the design.

Publisher doesn't generate the html code until it's creating the html files
which it does when you "save as/export as/publish as" a web.

If you choose to edit the output'ed html files in an editor the changes will
be lost the next time you save the publication and Publisher replaces the
html files.

Come to think of it I'm pretty sure I have this in the faq -
http://www.publishermvps.com/Default.aspx?tabid=30

David Bartosik - [MSFT MVP]
www.publishermvps.com
www.davidbartosik.com


david said:
Thanks for the info.
One final question for this case.
Is there another way to modify the html code generated by Publisher other
than inserting the html code frament (i.e. Menu: INSERT -> HTML CODE
FRAMENT) ?

In other words, while in Publisher, is there a way to open the source code
for edting? I couldn't find anyway after searching around within
Publisher.

I would like to know how to modify the raw publisher html code directly,
and
still get the code to behave normally on subsequent editing using the
Publisher program.

David



David Bartosik said:
You can't control those items. That is at the OS level. As for the
first -
window focus - a Windows customer can install Microsoft Windows PowerToys
(download from microsoft.com) and one of the PowerToy features is the
option
to have some control over when your windows get focus.
That said, you can however implement JavaScripting to deploy the much
hated
"pop-up's", which can be controled and made to be 'pop-under' or
'pop-over'.
Pop-up's should not be confused with browser window instances. If you
pursue
JavaScripting you'd need to reference sites that deal with that versus
this
forum.

David Bartosik - [MSFT MVP]
www.publishermvps.com
www.davidbartosik.com

I forgot to mention that the code you've seen from me were not "written"
by
me.
They were generated by Publisher's wizard.
The code fragment were added by clicking "Insert", followed by "HTML
code
fragment".

I have some follow up questions to my original question for how to open
a
new window when clicking on a hyperlink.
(i) how to make the new window appear "in front" of the original window
so
it is visible when opened;
(ii) how to make the new window opened at the location of say, 1 inch
to
the
right and 0.5 inch below where the original window is located.
I am new to html and have just acquired a book on HTML with XHTML and
CSS.
If anyone could tell me what html keywords to read up that would be
very
helpful.
Thank you.

David


:

I did exactly what is described at
http://www.publishermvps.com/Default.aspx?tabid=30

I got an error message like so:
Cannot find
'file:///C:Documents%20and%20Settings/myname/Local%20Settings/Temporary%20/Internet%20Files/Cont.MSO/PubWebPagePreview/pub2716.0/index_files/"http://mylink".
Make sure the path or Internet address is correct.

What do I need to do to solve this?
David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top