The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Dreamweaver CS3 Spry Assets & so on . ., Dreamweaver CS3 javascript
UptonGirl
post Jan 17 2009, 05:08 PM
Post #1


Advanced Member
****

Group: Members
Posts: 142
Joined: 17-January 09
Member No.: 7,577



I'm new here -- and a user of Dreamweaver CS3.

I have the following two complaints from a client - and don't know how to fix the problems.

One is:

Double clicking, or a subsequent later click, on a link that opens a separate new window, unexpectedly opens TWO identical windows. Second and subsequent clicks on any link should open the window that's already open, not a new window.

Well, yes - it's set to "_blank" as an external link. does anyone know of a way to make the external wondiow open only once?

And TWO:

The accordion sidebar (used for navigation) reverts to the first tab each time you open a new window - rather than leaving the tab you used to navigate from open.

I am javascript illiterate (Dreamweaver does it for you) and don't know of any way to stop this form happening. The obvious solution is to create a different style of navigation bar. But, is there a way to make this work as I intended?

If you'd like to see what I'm talking about - the work-in-progress is here

Thanks,

Ev



User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Jan 17 2009, 06:55 PM
Post #2


.
********

Group: WDG Moderators
Posts: 9,661
Joined: 10-August 06
Member No.: 7



QUOTE(UptonGirl @ Jan 17 2009, 11:08 PM) *

Double clicking, or a subsequent later click, on a link that opens a separate new window, unexpectedly opens TWO identical windows. Second and subsequent clicks on any link should open the window that's already open, not a new window.

You mean new pages are opened in new windows?

QUOTE
it's set to "_blank" as an external link.

Give it a proper name value (say "foo") instead of "_blank", and it should open new pages in the same window.

QUOTE
The accordion sidebar (used for navigation) reverts to the first tab each time you open a new window - rather than leaving the tab you used to navigate from open.

I am javascript illiterate (Dreamweaver does it for you) and don't know of any way to stop this form happening. The obvious solution is to create a different style of navigation bar. But, is there a way to make this work as I intended?

Seems http://labs.adobe.com/technologies/spry/ar...rdion_overview/ section "Set the default open panel" lets you change this.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jan 17 2009, 07:43 PM
Post #3


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,732
Joined: 9-August 06
Member No.: 6



Although this is a bad idea IMO. What about people who know how to use their browser and want to open several links at once, each in their own windows?

The best is not to open new windows at all.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
UptonGirl
post Jan 17 2009, 08:29 PM
Post #4


Advanced Member
****

Group: Members
Posts: 142
Joined: 17-January 09
Member No.: 7,577



Christian J, yes, pages are opened in new windows. So - if I have a link set to a herf (url THIS PAGE)
target = _blank (url THIS PAGE)

Then, a new tab or window will open with (url THIS PAGE) as many times as I click the link. Different windows - very same page. Now, to me that's normal - but the client doesn't like it. They are also quite clear they don't want an external link opening in the same window as a page from their site.

So - sorry to sound like a noob - but by "foo" -- do you mean that I can actually come up with a name myself (Like in OOP?) And, do I need a new name for each external link? (it doesn't seem as though I should, but then a number of things have not seems as they should these past weeks blink.gif )

Thanks for the tip and the link - I'll try them out.

pandy -- well - that's an understandable point of view - but most clients I deal with don't want people to accidentally leave their site. Having an external link open in a new tab or window is pretty much SOP in my experience. What I won't do is set up those obnoxious little snippets of code that make it next to impossible to leave the site (such as reloading the page you're on when you hit "back" ) even when the viewer is deliberately trying to leave.

My own preference, as a viewer, is to have external links open in new windows. I want to navigate them separately. And, I don't want to have to do any more than click to have that happen.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jan 17 2009, 09:15 PM
Post #5


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,732
Joined: 9-August 06
Member No.: 6



Point is that everyone has different preferences.

I often go about it this way. I open a link in a new window. If the page looks interesting, I keep that window open, save it for later so to speak, and keep reading the original page. I see another promising link and open that too in a new window. Now, if a site replaces the content of my first opened window with something else, I lose track. I get pissed off. I go away.

But that's me. happy.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Jan 17 2009, 09:18 PM
Post #6


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



My preference, as a viewer, is to open new tabs/windows when I need them (without interference from web sites) and to not open new tabs/windows when I don't need them (without interference from web sites).

Your client might find it interesting that usability studies show that the back function is the second most frequently used navigation function in browsers, second only to following links. Visitors can and will return to your site, if you give them a reason to return to your site.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jan 17 2009, 09:19 PM
Post #7


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,732
Joined: 9-August 06
Member No.: 6



And yes, you can name a window almost anything. smile.gif
http://htmlhelp.com/reference/html40/values.html#frametarget
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
UptonGirl
post Jan 17 2009, 09:45 PM
Post #8


Advanced Member
****

Group: Members
Posts: 142
Joined: 17-January 09
Member No.: 7,577



QUOTE(Darin McGrew @ Jan 17 2009, 09:18 PM) *

My preference, as a viewer, is to open new tabs/windows when I need them (without interference from web sites) and to not open new tabs/windows when I don't need them (without interference from web sites).

Your client might find it interesting that usability studies show that the back function is the second most frequently used navigation function in browsers, second only to following links. Visitors can and will return to your site, if you give them a reason to return to your site.



Interesting. I'd like to know what others think of this.

As an aside - I notice that external links open in a new window from this forum, and, multiple click will open multiple windows. The links must be set as Target _blank biggrin.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jan 17 2009, 09:59 PM
Post #9


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,732
Joined: 9-August 06
Member No.: 6



That's because of IPB, the forum software. If you view source, you'll notice it also uses tables extensively. biggrin.gif

More and more forum software get the hang of it though. For example that latest version of phpBB doesn't open external links in new windows anymore. After all, the target attribute has been deprecated since 1999 IIRC...
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
UptonGirl
post Jan 17 2009, 10:15 PM
Post #10


Advanced Member
****

Group: Members
Posts: 142
Joined: 17-January 09
Member No.: 7,577



On the subject of WHICH panel should be open on WHICH page - the documentation Christian J sent me to says:

QUOTE
You can set a certain panel to be open when the page containing the Accordion widgets loads in a browser.
Set the defaultPanel option in the constructor as follows:

<script type="text/javascript">
var acc8 = new Spry.Widget.Accordion("Accordion1", { defaultPanel: 2 });
</script>


And, I'm bleary (this site, so far, has over 40 pages. Please don't shoot the messenger. I had designed it as separate sites and got overruled. ) SO - let me ask - how would you use this in a context where what you want is for the open accordion to be relevant to the page the viewer is on?

Keep in mind I am working off a modified template - and my favorite thing about it is that it handles link updates.

So, can I modify this without messing with link updates?

It may make more sense in the morning. Right now, I'm for a dumb move - a beer - and my bed!

This post has been edited by UptonGirl: Jan 17 2009, 10:16 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Jan 18 2009, 06:28 AM
Post #11


.
********

Group: WDG Moderators
Posts: 9,661
Joined: 10-August 06
Member No.: 7



QUOTE(pandy @ Jan 18 2009, 03:15 AM) *

if a site replaces the content of my first opened window with something else, I lose track. I get pissed off. I go away.

Surely that doesn't happen if you open links in new windows by your own choice (e.g. by right-clicking and choosing "open link in new window")? It will happen if you rely on the site to do open new windows for you, though.


User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Jan 18 2009, 06:42 AM
Post #12


.
********

Group: WDG Moderators
Posts: 9,661
Joined: 10-August 06
Member No.: 7



QUOTE(UptonGirl @ Jan 18 2009, 04:15 AM) *

how would you use this in a context where what you want is for the open accordion to be relevant to the page the viewer is on?

In my understanding you must add the code example on every new page, and edit the value for "defaultPanel" manually. But this should be a one-time job.

QUOTE
Keep in mind I am working off a modified template - and my favorite thing about it is that it handles link updates.

So, can I modify this without messing with link updates?

From a quick look it appears so.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
UptonGirl
post Jan 18 2009, 02:56 PM
Post #13


Advanced Member
****

Group: Members
Posts: 142
Joined: 17-January 09
Member No.: 7,577



QUOTE(Christian J @ Jan 18 2009, 06:42 AM) *


In my understanding you must add the code example on every new page, and edit the value for "defaultPanel" manually. But this should be a one-time job.




Well! I guess it's time to learn something new about modifying templates. My template doesn't want me to edit that area of the page.

GGgrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
UptonGirl
post Jan 18 2009, 04:08 PM
Post #14


Advanced Member
****

Group: Members
Posts: 142
Joined: 17-January 09
Member No.: 7,577



I've located the constructor, but it won't let me edit on a page-by-page basis. I did see a post in another forum that said "unlock your template" -- however, it seems as if the template has locked and unlocked regions - and that is that.

Is there a way to make the accordion constructor editable - by page? (the default open panel will depend upon which page the viewer is on)

EDITED TO ADD: Well, I think I've got it - but as their are two accordion area in this template - time will tell. IF this works (it was, as is often the case - a little more complicated than the documentation would have you believe it was necessary to make the widget an optional region, and then to REPLACE the accordion code with the code from the documentation, not add it. ) then I will come back and post the code with steps.

This post has been edited by UptonGirl: Jan 18 2009, 04:48 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jan 18 2009, 06:27 PM
Post #15


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,732
Joined: 9-August 06
Member No.: 6



QUOTE(Christian J @ Jan 18 2009, 12:28 PM) *

QUOTE(pandy @ Jan 18 2009, 03:15 AM) *

if a site replaces the content of my first opened window with something else, I lose track. I get pissed off. I go away.

Surely that doesn't happen if you open links in new windows by your own choice (e.g. by right-clicking and choosing "open link in new window")? It will happen if you rely on the site to do open new windows for you, though.


You are right. It works as you describe if the new window is opened by HTML with the target attribute, but I don't think many users know how to get around this. If it's done with JS there is no way around it.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 26th April 2024 - 10:48 PM