Problem with bit of JavaScript that DreamWeaver is writing
I'm having a problem with the code that DreamWeaver (CS3) is written. I'm fairly certain that the problem is in a small piece of JavaScript code that is compose of DreamWeaver.It is a pretty complex problem, so patient with me.
First of all - what I'm trying to move: when a page on my site (the - oilman.com), I want a link that opens a new window in the store online at another site (AMSOIL.com). I need to leave the page on my site open and open this page "keep". Firstly that it works fine, using the 'open window' 'behaviour' in DreamWeaver. If someone wants to change windows (or tabs) and return to my page, also - leaving the window 'save' the problem is set up to occur. If back on my site, you click this account or a different link that goes back to the 'Bank' on the same page or on another page to AMSOIL.com - the "Save" window goes to the correct page, but "store" window does NOT come up on top. When they click on a link to return to the 'Bank' I need 'store' window to get to the top. If they have previously put something in the basket and come back and add something to the cart in the "store" coming from various links on my site that the 'Bank' works correctly because I leave it open all the time.
snipets of code that DreamWeaver wrote for my site (the - oilman.com):
head:
< script >
<!--
CSAct [/ * CMP * / '129AABC1'] = new Array (CSOpenWindow, / * URL * / ' http://www.amsoil.com/redirect.cgi?zo=52257 & page = store ', 'store', 0, 0, true, true, true, true, EU tr, true, true);
CSAct [/ * CMP * / '129AAC63'] = new Array (CSOpenWindow, / * URL * / ' http://www.amsoil.com/redirect.cgi?zo=52257 & page = store ', 'store', 0, 0, true, true, true, true, EU tr, true, true);
CSAct [/ * CMP * / '10D39F40'] = new Array (CSOpenWindow, / * URL * / ' http://www.amsoil.com/redirect.cgi?zo=52257 & page = storefront/sso ', 'store', 0, 0, true, true, tru e, true, true, true, true);
/
function MM_openBrWindow (theURL, winName, features) {//v2.0
Window.Open (Theurl, winName, Features);
}
->
< /script >
Code 2 different links using this script:
"" "< a href =" http://www.amsoil.com/redirect.cgi?zo=52257 & page = storefront/sso " target ="store"onClick =" MM_openBrWindow (' #', 'Bank', "") "" csclick = "10D39F40" > buy now < /a >
"" < a href = " http://www.amsoil.com/redirect.cgi?zo=52257 & page = store" title = "AMSOIL Store to AMSOIL.com" target = "store" onClick = "MM_openBrWindow ('http:www.amsoil.com/redirect.cgi?zo=52257 & amp;)" "" page = store', ' stor-e ",""")"" > on line store < /a >
I think what I need is a javascript longer. Instead of just "window.open" I need an 'if', but my knowledge of javascript is very, very limited.
I need to check if the window called 'keep' is open then 'focus', or if it is not open to open the window named "keep".
This will fix my problem? If so, please help me to write lines of code to do.
If this isn't the solution, what is the problem and the solution?
A separate but related matter: If you look at different links in the two codes, in calling one of them uses a page reference "null" and another repeat the full link of the href = attribute reference. Both seem to work, but which is the right or the preferred syntax. My guess is that there are some browsers this will give a problem, but where is the favorite.
Don Dawson
mailto:[email protected]
Thanks for the replies. I solved the problem. Because of a storm called Fay who dumped 20 "of rain here - power came out internet for days, road cut in 3 places to get out of the House - it is low priority for a week.
Yes, I have quoted wrong snipets that had some left over code Go-Live, but it was not causing my problem. I had worked in the from pages before Go-Live and new pages in DreamWeaver that all did the same thing.
The small piece of script that DW wrote that left me the problem:
function MM_openBrWindow (theURL, winName, features) {//v2.0
Window.Open (Theurl, winName, Features);
}
//-->
The necessary patch adding a line to the function (and I don't know there are a number of other ways to do it too, but this one seems the most simple):
function MM_openBrWindow (theURL, winName, features) {//v2.0
Focus on the shop window
toTheStore = window.open (theURL, winName, features);
toTheStore.focus ();
}
'Design' DW CS3 mode itself left me short. After setting up with the "Design", I have to go to the 'Code' and correct.
Thanks again to all who watched and considered my problem.
Tags: Dreamweaver
Similar Questions
-
original title: Flash Player
I have installed Adobe Flash Player on my PC (Vista), and every time I want the internet ((spécifiquement ferme ville,, sur facebook)) a box appears and tells me that there is a problem with an add-on that was installed called flash10c.ocx. How can I solve this problem? I tried everything I could think of. I deleted my cookies (and Add-ons), re-installed Adobe Flash Player and nothing works.
What browser are you using IE or Firefox or others? Sometimes special versions of Flash are required for browsers, and besides, IE 64-bit does not support modules including Flash, she, that is to say, it takes the 32-bit version, even on a 64-bit machine.
Take a look at IE / tools / manage add-ons and make sure that 'Shockwave Flash Object' is enabled.
Check that you downloaded the correct version in the first place.
-
Hello, I've just updated my Photoshop for the most recent version, Im having problems with flow tool, is - that someone is having this problem too?
Hi tonyc75479545,
Greetings.
Please check this thread - Photoshop CC 2015.1 liquefy lightens the result on the 16-bit per channel images
Concerning
Rohit
-
Original title: name of a file
Hello
I have problem with a file .iso that when I want to use I'm dealing with error "the file name is too long" and I can't use this file anywhere for example: vmvare ' untraiso and even if I cannot write to cd or make a boot USB.
I don't know how fix it.how I rename the file iso, shorter that I can use?
Please help me.
Thank you.
Right-click on the ISO > rename > give a short name
-
Had problems with Windows 8 Pro that I bought after the pre version, seems when I tried to reinstall it, kept getting no configure after installation. So I tried a full install without success. Can you please give some tips to overcome this problem? I lost the back upward with the resettlement, don't know how, but I have a QuadCore intel 9650 memory of 8 GB, 560 GTX GPU, 120 GB SSD. Can I install windows 7 ultimate, but I prefer Windows 8 Pro and don't want to pay for it again.
I suggest you reinstall Windows 7 first, then use your existing Windows 8 Pro key and reinstall Windows 8 Pro from the following link:
You can download it from there and use your product key to upgrade:
http://Windows.Microsoft.com/en-GB/Windows-8/upgrade-product-key-only
You will need to reactivate by phone:
Activation of the phone:
1. press the Windows key + X , and then click run, and then type: slui.exe 4
2. then press the ENTER"" key.
3. Select your "country" in the list.
4. choose the option "activate phone".
5. stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
6. explain your problem clearly to the support person.
-
I just paid my creative service cloud for a month, but there is a problem with the service, is that someone has the same problem?
I paid with Paypal, which is linked to my debit card and already wait two days.
Thanks to the community
Please read https://forums.adobe.com/thread/1499014
-try some steps such as changing browsers and disable your firewall
-also clear the cache of your browser if you start with a fresh browser
-check the file hosts for blocked entries https://forums.adobe.com/thread/1912777
http://myleniumerrors.com/installation-and-licensing-problems/creative-cloud-error-codes-w ip.
https://helpx.Adobe.com/creative-cloud/KB/creative-cloud-desktop-application-failed.html
http://helpx.Adobe.com/creative-cloud/KB/failed-install-creative-cloud-desktop.html
or
Your subscription to cloud shows correctly on your account page?
If you have more than one email, you will be sure that you use the right Adobe ID?
https://www.adobe.com/account.html for subscriptions on your page from Adobe
.
If Yes
Some general information for a subscription of cloud
Cloud programs don't use serial... numbers you, connect you to your cloud account paying to download & install & activate... you may need to sign out of the cloud and restart your computer and log into the cloud for things to work
Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud
-Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
-http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
-http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
-http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
-ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp
-http://helpx.adobe.com/creative-cloud/kb/license-this-software.html
.
If no
This is an open forum, Adobe support... you need Adobe personnel to help
Adobe contact information - http://helpx.adobe.com/contact.html
Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">===>
-Select your product and what you need help with
-Click on the blue box "still need help? Contact us. "
-
Error message when downloading Photoshop element 12: (I bought the license in a store)
Berthelman arvato-
Download Manager error-
Unfortunately, there is a problem with the link to that file. This problem may be due the number of users trying to download the file, or the product may no longer be available. Please as minutes of a few in. If this privilege is still not available, please contact customer service at the address [email protected] or number 604-915-5200
== > Les DEUX @ and phone number are fake!
Hi Mireille56,
The place where you are trying to download the software.
[email protected] is not an email from Adobe Support.
Please try to download Photoshop elements 12 of: http://www.adobe.com/cfusion/tdrc/index.cfm?product=photoshop_elements&loc=us&sdid=ZPQM
Kind regards
Rave
< translated="" via="" google="">
Hi Mireille56,
Where you are trying to download the software.
[email protected] is not an Adobe support email.
Please try to download Photoshop elements 12 from: http://www.adobe.com/cfusion/tdrc/index.cfm?product=photoshop_elements&loc=us&sdid=ZPQM
Kind regards
Rave
-
Problems with reset toggle buttons that show/hide captions
I have a problem with the buttons toggle that I use to show/hide a number of legends about a single slide of the reset. The rocker works very well on the first button when I click on and off to show or hide a legend. A simple click on and watch legend. One click off the coast and the legend disappears. However, if I leave a legend that is displayed and click on other buttons to show/hide the other legends, they do not show or hide in a single click. They require two clicks. It seems that something continues the read head after that first toggle is used until there is a second click. The same thing happens if I reset to enter action. If I click on a caption and leave it in place and move to another slide, it disappears when I re - get this initial slide. However, it requires two clicks, not one alone, to display the legend. I find it very strange; I learned most of my techniques from the Lilybiri blog, but this problem does not occur on his examples. I think I'm missing something obvious, but may not know what it is. Any help is very appreciated.
Yes, I use Cp6. What I wanted to say about re-use, is that I have different scenarios where a similar script could be used, if your suggestion of a model is a good. My original intention was to write it in a txt for reference. Thank you very much for all your suggestions and links. I'll keep you posted.
-
Problem with the design view in Dreamweaver CS5
Hi all
I'm having a problem with my creation mode on a page I created in Dreamweaver CS5.
The files can be found here as well as a jpeg file showing the issue I'm having.
Everything was fine until I added the three classes:
{.crproductsrightpanelheading}
Width: 186px;
top of the margin: 25px;
background-image: url (.. / images/crproductsrightpanelheadingbg.jpg);
background-repeat: no-repeat;
background-position: left;
padding-left: 28px;
do-family: Arial, Helvetica, without serif.
color: #FFF;
do-size: 14px;
line-height: 27px;
float: left;
Clear: right;
}
{.crproductsrightpanellist}
Width: 199px;
top of the margin: 5px;
padding-left: 5px;
float: left;
overflow: auto;
}
.crproductsrightpanellist li {}
do-family: Arial, Helvetica, without serif.
color: #FFF;
do-size: 12px;
list-style-image: url (.. / images/crdash.jpg);
line-height: 18px;
list-style-position: inside;
}
Now, I can hardly see what is happening.
It's good in Live View mode and also when published, but design view is like having a steering wheel towards the bottom of my pants... It's driving me crazy!
What it looks like when published can be seen here:
http://www.siltd.co.UK/new%20SI%20Site/crproducts.html
Any help telling me where I went so wrong would be appreciated.
Thanks in advance.
Andy
Run your pages through this validator and clean up any errors...
For now, you have a large number of errors that need to be addressed, about 90 altogether.
While some browsers allow to better interpereting what you wanted to do than others (IE being the absolute worst), DW is a maniac, especially in Design view. It is still displayed incorrectly in DW after you fix all the problems, after return and we can take a closer look.
-
Dear all!
I hope you can help me out here - I have a problem with a picture of icloud sorting in shared albums
We took pictures to a trip with iphone5s and iphone6 + a Nikon J5 date and time everything is OK
Loadin was don ewhilst travelling and at home, but the sorting is mixed seems to be loading date
(even only took pictures of the iphone as a reference) (all on iOS 9.3.2)
you know a way the album gets re-sync or software where I could sort the photos in
and then re - download to get the sorting so that by the time and date of the...
Thank you very much in advance - it would be a big help (gibbest album with this problem is the honeymoon ;-))
Shared albums are essentially photo streams. They will always show the photos in the order that add you them to the album. If you want your photos to appear in a specific order, you must add them to the album individually, one by one, exactly in the order of your choice. You cannot add all photos in an album at once - which will give unpredictable results.
For example, to create a new album with your photos. Then ctrl-click on the album and select "Keep arranged by Date, oldest first" to sort the album. Now add each photo from the album shared individually. There will be a lot of work.
-
I stopped using Firefox as nothing I've done has corrected this problem. I tried to close Firefox and restart it, I erased all my Add-ons and then added adblock back (it's the only one), but it still does not work. I deleted files so that I have more space - I can't think of anything that works. I talked to four of my friends with Macs and they are all having the same problem with Firefox since the Mavericks.
Cursor disappears huh? It's quite strange. All of the compatibility of the Mavericks can be followed in [Bug 883824]
Try this work around:
- Go to Firefox > Preferences > advanced > general
- Always check "use the cursor keys to navigate through the pages.
- Press OK.
Or try the Mac preferences noted here: https://discussions.apple.com/message/23542890#24471966
-
original title: + 011 phone calls
I just got a phone call from + 011 indicating that I have serious problems with my computer and they provide a Microsoft service problems. It sounds like a crowded call center and they can tell me their name and they tried to set up a remote entry on my computer. That's when I hung up. Is - this legitimate because what it really looked like a trick.
Not legitimate... do not answer the call... Mike Hall MVP - Windows Expert: consumer http://msmvps.com/blogs/mikehall/
-
Problems with HTTPS and javascript widgets
My HTTP site works fine, but when I switch to HTTPS, I get the following error...
MuseJSAssert: Error calling the function switch: TypeError: E.split is not a function
I have even tried to create a simple page with nothing else than a javascript widget, and I still get the error when you use the HTTPS version.
FYI - I upload my pages using the 'upload to the FTP host.
Muse and HTTPS is not compatible?
It is more likely a problem with your server as a problem of cross-site script because the HTTPS protocol uses a folder or a different domain and browser security mechanisms as long as the server itself remove access to the script so. If there is a specific secure folder on the server, import is your files, otherwise, you will need to set an option in the web interface to allow HTTPs and normal HTTP access to your folder.
Mylenium
-
I buy 5 Lightroom a month ago. No apparent reason, the base in the develop module Panel disappeared. I note that there are several references to similar problems on the internet. I have a problem with Lightroom of supplements. Can someone help me solve this problem please?
Right-click on the header of one of the other panels and check Basic menu drop-down.
-
Problem with the Facebook widget that extends from way below my web site
I'm having a problem with the Facebook 'like' the widget I have on my main master page footer. When I'm logged into facebook as my business the way page to hear Facebook box under page. When I am logged in as just me is not that.
The forum here doesn't let me add pictures, but here is a link, a photo of a screenshot showing the problem. I don't know if it's a bug or something I am doing wrong.
http://www.sharpphoto.com/news/wp-content/uploads/2014/03/fbmuseglitch.jpg
Here is a link to the web site
Have you tried inserting using html and then tried to resize, something being discussed here:
http://forums.Adobe.com/message/6158711#6158711
Thank you
Sanjit
Maybe you are looking for
-
iPhone IMEI number 6 stolen necessary
6 iPhone stolen from my former employer. Without box or invoices. And the various countries of the company to contact. All possible means to get the IMEI number to use to locate the iphone app for the police?
-
My ppt file is huge 80 MB, tried everything to reduce the size but nothing
There should be an easy way to reduce the size of the ppt files. Mine just growing in the ridiculous steps every time I do anything for her. Now at 80 MBbut NXpowerlite he strikes back at 2.5 MB. If it's this pig-simple, what is with you guys Mi
-
Original title: need help with the blue screen issueMy computer turns saying a blue screen: a problem has been detected and windows were shut down to prevent damage. The problem seems to be caused by the following file: NAVEXI5. SYS PAGE_FAULT_IN_NON
-
Creation of DVD Windows doesn't recognize DVD burner
I have a Pioneer DV-215 (latest firmware) DVD burner, but the creation of Windows DVD does not recognize... It it will appear in the drop-down menu at the top of the DVD maker... tried update dialog box drivers etc with no luck... All other birning p
-
black screen on my laptop\tablet of windows 8
When I open the application of monopoly which came to free stays when I got my laptop the screen just black he did this for a long time. Help, please.