Quick Javascript

I have the following on in a table:
<tr>
<td width="100" height="100" align="center"
valign="middle" bgcolor="#6EAB23" id="newTractorImage"><img
src="images/gif/new_tractor.gif" width="80"
height="80"></td>
<td height="100" align="left" valign="top"
bgcolor="#E6E6E6" id="newTractorText"><strong>NEW
TRACTORS</strong></td>
</tr>
When someone rolls over the ROW how would I get he two
seperate cells (td by id) to have the bgcolor change? They need to
change at the same time.
Thanks
Jan Solo

This would be close enough to the same time as to not matter:
In the head:
<script type="text/javascript">
function colorRow(myRow, color)
for(var x=0;x<myRow.cells.length;++x)
myRow.cells[x].style.setAttribute("backgroundColor",color);
</script>
In your HTML, add to your TR tag in your table:
<tr onMouseOver="colorRow(this,'#cccccc')"
onMouseOut="colorRow(this,'#ffffff')">
In the example above, the row turns a medium gray when moused
over, then
back to white when the mouse leaves. Adjust the hex color
codes to your
liking.
"Jansolo" <[email protected]> wrote in
message
news:e8beag$ktt$[email protected]..
>I have the following on in a table:
>
> <tr>
> <td width="100" height="100" align="center"
valign="middle"
> bgcolor="#6EAB23" id="newTractorImage"><img
> src="images/gif/new_tractor.gif"
> width="80" height="80"></td>
> <td height="100" align="left" valign="top"
bgcolor="#E6E6E6"
> id="newTractorText">
NEW TRACTORS</td>
> </tr>
>
> When someone rolls over the ROW how would I get he two
seperate cells (td
> by
> id) to have the bgcolor change? They need to change at
the same time.
>
> Thanks
>
> Jan Solo
>

Similar Messages

  • Passing values and calling PL/SQL process via a column link

    Hello all
    I have a report and a link on one of the columns which takes you to another page and passes data from the report to that page. That all works fine. In addition to picking up the details from the report I'd also like the link to call a page process before it goes to the next page using some of the values picked up from the report. This I can get to work by changing the link to a URL and putting in some javascript ie javascript:doSubmit('TEST_PROCESS'); By doing this I "lose" the ability to pass the info from the report via the link.
    Can anyone give me a clue as to how I can achieve both please? I'm assuming I'll need to create my own javascript function but I don't know how to pick up information from a row in a report to pass on.
    Regards
    Helen

    Lets say your link would pass 2 items P1_ITEM and P1_ITEM2 to your process. Just write a quick javascript function to do this and put it in the header:
    <script type="text/javascript">
    function doSomething(pValue1,pValue2){
      $s('P1_ITEM',pValue1);
      $s('P1_ITEM2',pValue2);
      doSubmit('TEST_PROCESS');
    </script>This will set 2 hidden items equal to whatever you pass in. Then you can use these in your after-submit process. To call this from your url, just make the url:
    javascript:doSomething(#COL1#,#COL2#);#COL1# and 2 being your report columns. This should do what you need i think

  • How to determine which item is currently in focus

    Is there a quick javascript way of determining which element on a page is currently in focus??

    You tend to complicate things :-)
    What you seem to want is: User is typing in some text field, clicks the Submit button, you would like the page to refresh and focus to return to the same text field so the user can continue typing as if nothing has happened?
    Then why do a traditional page submit? This seems like a perfect use for the AJAX stuff. Just do the stuff in the background instead of going thru all these hoops to save and restore focus.
    Also, it makes (some) sense for text fields, but what use does this feature provide for other input elements like checkboxes and radiogroups and select lists?
    What functionality are you trying to provide exactly?
    was just thinking about a quick and easy way of setting scrollbar position
    on page refreshYou mean having the page refresh and scroll down to some pre-determined point instead of at the top?
    This is best done by using named anchors. Just capture the item name that causes the page to submit in a hidden page item and add it to the same-page branch using the
    f?p=...#&P1_ANCHOR.syntax.
    Just sprinkle your region and label templates with these named anchors and you are done.
    Hope this helps.

  • Swatch panel question

    Is there a plugin or a way to print out the CMYK formulas I used in a file? I did an 80 page magazine for a client and am making myself a cheat sheet for future refrence. I would like to include the swatches as well. Just curious if anyone has heard of a way to just print the formulas out.
    Thanks,
    Jeff

    Here is a quick Javascript to list swatches and their values in the system they are defined in (CMYK, Lab, or RGB). It doesn't handle gradients or mixed inks -- should it?
    It pops up a dialog with selectable text which you can copy to any document you'd like.
    // The very useful alert_scroll function comes courtesy of Tomaxxi:
    // (http://indisnip.wordpress.com/2010/07/28/scrollable-alert/)
    swatchList = app.activeDocument.swatches;
    result = [];
    for (a=0; a<swatchList.length; a++)
              try {
                        result.push (swatchList[a].name+"\t"+app.activeDocument.colors.item(swatchList[a].name).colorValue.join(","));
              } catch(_) {}
    alert_scroll("Swatch values", result);
    function alert_scroll (title, input){
       if (input instanceof Array)
           input = input.join ("\r");
       var w = new Window ("dialog", title);
       var list = w.add ("edittext", undefined, input, {multiline: true, scrolling: true});
       list.maximumSize.height = w.maximumSize.height-100;
       list.minimumSize.width = 550;
       w.add ("button", undefined, "Close", {name: "ok"});
       w.show ();
    Message was edited by: [Jongware]
    .. or Tints, as I just noticed. (Should it?)

  • Can my iWeb '08 site be fixed,or do I need to just wait for an iWeb update?

    Ever since my "upgrade" to iWeb '08, the text in my webpages does not appear. I haven't changed any fonts or colors. I have had to put my website back to it's iWeb '06 version.
    Cyclosaurus mentioned that my "text box elements has attribute style.visibility set to hidden" and that I might be able to correct it if I were javascript saavy, I should be able to turn visibility attribute to visible with a few lines of javascript.
    How do I do this? Does anyone know any quick javascript that I could cut-and-paste, maybe within an iWeb HTML Widget, that could counteract the "attribute style.visibility set to hidden"? Perhaps I can do this until Apple fixes this Bug/Glitch in iWeb '08.
    Can my iWeb '08 site be fixed,or do I need to just wait for an iWeb update? Please help.
    Thanks.
    Wayne
    P.S. Also see the remarks under the discussions # 5663242 & # 1205196

    Starting with the release of Firefox 7, the previous versions of Firefox (4.0.x, 5.0.x, 6.0.x) are no longer maintained with Security and Stability updates. Firefox 3.6 is the last previous Firefox version that is still being maintained.
    '''''Warning:'' Firefox 3.6 will only be maintained with security and stability updates for a short period of time.'''
    If you want to Downgrade to Firefox 3.6, download Firefox 3.6 from:
    * http://www.mozilla.com/en-US/firefox/all-older.html
    -> [[Uninstalling Firefox]] - Uninstall your current Firefox
    * DO NOT SELECT TO REMOVE USER DATA AND SETTINGS
    * Restart your system
    -> [[Installing Firefox]]
    * Use the Downloaded & Saved Firefox 3.6 installer
    Check and tell if its working.

  • Need script to insert pages with specified master

    Several years ago, someone here (I think Dave, maybe Ole) helped me out by giving me a short script that when run added a blank page (with a specified master page different from the previous page) after each page of a document.
    I've had an emergency reformat of my system and have lost that script which I need constantly for work projects. I tried searching here, but it was before the current forum setup (I think around 2 years ago) and I can't find a way to get to the archives.
    If anyone can either provide me with the java script code for this or point me to the old messages about it, I'd be very appreciative.
    And, BTW, I am now using CS4 (though I'm sure the script I've been using was from an older version).
    Thank you.

    Aaahhh ... PageMaker scripting. Now there was a challenge -- I don't think I ever could write the thing I intended with that.
    This quick javascript works on CS, but I don't think the syntax has changed (much) for CS4. Yell if it doesn't work.
    Be sure to fill in the right 'blank page' name in the first line! That includes the prefix and the hyphen -- the script will alert you if you got it wrong
    //DESCRIPTION: Add Blank Master Page after each page
    masterPageName = "A-AddMe";
    masterPage = app.activeDocument.masterSpreads.item(masterPageName);
    if (masterPage == null)
    alert ('"'+masterPageName+'" is not a valid master...');
    exit(0);
    // Start at the end:
    currentPage = app.activeDocument.pages.length-1;
    while (currentPage >= 0)
    theNewPage = app.activeDocument.pages.add (LocationOptions.AFTER, app.activeDocument.pages[currentPage]);
    theNewPage.appliedMaster = masterPage;
    currentPage--;
    Copy, paste into a plain text editor (InDesign's ESTK is good) and save as "insertBlanksAfterAll.jsx" in your Scripts folder. When saved in the right folder, it will automatically become available in the Scripts Panel.

  • Question about dynamically changing image source

    hi, this might be a stupid question that i've simply never
    seen, but i have a picture on a page that, when the user clicks a
    link below, needs to change to an altered picture. probably very
    simple, i just need code that will change the image source of a
    named image by clicking a link. thanks for any help you can give
    me.

    You can use a remote rollover technique that uses css
    (nesting one or more elements inside an anchor link) and absolute
    positioning, or JavaScript.
    Here is a quick JavaScript to achieve this effect:
    xhtml code
    <head>
    <script src="external.js" language = "javascript" type =
    "text/javascript"></script>
    </head>
    <body>
    <p><a href="new_page.html" id="arrow"> New
    Page</a></p>
    <img src="images/image1_off.gif" width="100" height="20"
    id="arrowImg" alt="arrow" />
    </body>
    external JavaScript file
    window.onLoad = rolloverInit;
    function rolloverInit() {
    for (var i=0; i<document.links.length; i++)
    var linkObj = document.links
    if (linkObj.id) {
    var imgObj = document.getElementById(linkObj.id + "Img");
    if (imgObj) {
    setupRollover(linkObj, imgObj);
    function setupRollover(thisLink, thisImage) [
    this.Link.imgToChange = thisImage;
    this.Link.onmouseout = rollOut;
    this.Link.onmouseover = rollOver;
    thisLink.outImage = new Image();
    this.Link.outImage.src = this.Image.src;
    thisLink.overImage = new Image();
    thisLink.overImage.src = "images/" + thisLink.id +
    "_on.gif";
    function rollOver() {
    this.imgToChange.src = this.overImage.src;
    function rollOut() {
    this.imageToChange.src = this.outImage.src;
    There is a lot going on here but if you know a little
    JavaScript it will be failry easy to work it out. The important
    thing is to note the file layout, naming conventions and image
    constructs. Make sure the ids, etc are matched in the functions and
    html code.
    This technique shows the user what the image will become if
    they click the text when they mouse over the text link. This is
    handy for showing a preview of an image. You can alter the script
    to change the image without a preview if you don't want that
    effect.
    regards
    Nick Barling
    www.barkingweb.com

  • Do all browsers support HttpSessions??

    I have a web application that for some reason will not allow some users to use HttpSession objects and this keeps causing null pointer exceptions in my servlets.
    Are there any browser settings in modern browsers that prevent the user from using HttpSessions - as this is baffling me!! I have also heard of 'encoding the session id' into the url what does this involve??
    Cheers,
    Stuart

    the HttpSession data is stored on the Server Side. That data is keyed via a small key called the session ID. This session ID is needed for clients to repeatably get the same HttpSession object from the server as they navigate your pages. The session ID needs to be stored on the client in one of two ways: A Cookie, or URL rewriting.
    URL rewriting involves letting the server put the sessionID on requested URLS. So, you bounce a user to myjsp.jsp, and the server adds ?sessionID=123123123123.
    A Cookie means that the server creates a -1 timeout Cookie on the client's PC. That means that the session ID stays there until the browser is closed. That doesn't mean though, that the server side session wont expire as long as the browser is open.
    What you are probably seeing is browsers that have Cookies turned off.
    There a quick javascript checks that see if cookies are allowed.
    Yoda.

  • Is there a way to selectively disable "quick search" on specific websites (i.e. those which use javascript-driven keyboard shortcuts)

    Some websites use javascript (or differently) driven keyboard shortcuts - for example some google services or the tinytiny-rss feed reader. On those sites users normally don't use the "quick search" function, but it tends to get in the way of the keyboard shortcuts which tend to be pretty useful.
    So, is there a way selectively disable quick-search on some websites? Maybe there is a Addon for this?
    Thanks in advance, Kind Regards
    - NebuK

    1.SmartyPanouZe3rd,
    Sep 4, 2013 1:03 PM   in reply to SmartyPanouZe3rd
    This is a follow-up to the above question I had.
    Since i noticed people looking at the question, but no replies showing up, i contacted BC support directly with the same question.
    I got a reply.
    I did tests based on the reply.
    Here is what is going on based on the reply.
    (spoiler alert : It works... but it's not yet a perfect score.)
    All the details are posted here :
    http://www.animavdo.com/mut/ambiguity-001.html
    Hope this can help others.
    Cheers.
    PS  I still will use DW for the heavy lifting...
           But MUSE is nice for quickly putting together a mini website.
           Highly recommended App.

  • Quick apply using javascript

    How do you quick apply using javascript? I looked at the API but did not see a property or method.

    I really should stop posting when I'm tired to fully read the original message.
    My focus is on single page documents where the composer also can be an issue but I do not need the Smart Text Reflow feature, which is dependent on composition so it comes even later. Actually I have not used it in years and had to look up how to prepare a document and find out what's going on. Btw, internally the feature is called AutoFlow.
    If deleting pages is your issue, you can easily do it by script, but I understand if you prefer to utilize the builtin feature ...
    var ts = app.activeDocument.stories.lastItem(); // use your story
    if( !ts.overflows ) {
        var lastIP = ts.insertionPoints.lastItem();
        var lastTF = lastIP.parentTextFrames[0];
        for( var emptyTF=lastTF.nextTextFrame; emptyTF; emptyTF=lastTF.nextTextFrame ) {
           var emptyPage = emptyTF.parent;
           emptyPage.remove();
    Dirk

  • Quick Question About Javascript Code

    I'm trying to write some code in JavaScript so that a different image will display every time someone loads my homepage. I have come across a section called
    'imgct' what does "ct" stand for?
    Please excuse the stupid question but this is my first time!
    If anyone could point me in the right direction of how to do this aswell I would be extremely grateful!
    Thanks
    Kyra

    I'm so sorry about this, it just doesn't seem to be working, I did what you suggested but it still doesn't show up in my browser. :S
    The is the code view of my page now:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <link href="Style_sheet.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    homeImg = newArray(
    "Images/Homepage/Image1.jpg",
    "Images/Homepage/Image2.jpg",
    "Images/Homepage/Image3.jpg",
    "Images/Homepage/Image4.jpg",
    "Images/Homepage/Image5.jpg"
    ImgCt=homeImg.length;
    function swapImg() {
        if (document.images) {
            randomNum=Math.floor((Mathrandom()*ImgCt));
            document.images ["homePicture"].src = homeImg[randomNum];
    window.onload = swapImg()
    </script>
    </head> 
    <body>
    <div class="container">
      <div class="header">
    *//There is a spry menu bar that goes here//*
        <!-- end .header --></div>
      <div class="content">
      <img src="" name="homePicture" width="627" height="250" id="homePicture" /> </div>
      <noscript><img src="Images/Homepage/Image2.jpg"/></noscript>
    As you can see I have also tried to add in a 'noscript' tag incase someone doesn't have javascript enabled etc. although when I preview it in IE I see both 'Image2' and the image placholder where teh random image is meant to appear, but doesn't.
    I'm very grateful for all the help you are giving me!
    Thank you
    Kyra

  • Just had Javascript update done and now Firefox won't open,,,keeps coming up with XML Parsing error not well formed. how can I get rid of this?

    also awindow pops up NS error XPC Bad convert JS cannot convert JAVASCRIPT argument arg 4 (NSL window watcher open window)
    == This happened ==
    Every time Firefox opened
    == just today ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; (R1 1.5))

    There's a lot there, so I'll start with the parts I can answer quickly.
    The "ACL found but not expected..." messages can be safely ignored, so says this article
    http://docs.info.apple.com/article.html?artnum=306925
    (look below all the "SUID" examples)
    I had changed my Desktop image earlier but when the "Installing 1 item" window came up it changed back to the back ground that you first see on your desktop after installation.
    Leopard installs updates a bit differently. If it's simply an application that does not change system files, it installs them like before, without having to restart. If the update is to the system, then you must immediately "restart," It then goes to that stars and purple screen to perform the installation. Before, it would do the installation while you still had control of the Mac and would prompt you to restart when it finished the installation. This change probably make things more secure and reliable, because you aren't allowed to do other things on the Mac while system updates are being installed.
    Please post back with the remaining point of concern.

  • Dreamweaver 6 launch error - JavaScript error bcinit

    Hi
    I have DW6 latest version running on Win XP SP3 and am all of a sudden getting the strangest bug (I have reported it), but I am wondering if anyone else has seen it or has any ideas how to fix it?
    FYI I have already tried completely uninstalling Creative Cloud, rebooting, running the Creative Clean utility to remove all traces of any suite and then reinstalling Creative Cloud (takes hours ) and still have the same problem which is as follows below (FWIW I have never used BusinessCatalyst, either):
    I launch DW and get the following error message "While executing onLoad in BusinessCatalyst.htm, the following JavaScript error(s) occurred: In file "BusinessCatalyst": bcinit is not defined"
    When I try to open a file I get the following error message "The following translators were no loaded due to errors: ASP.NET: has configuration information that is invalid. BCDynamicTranslator.html: has configuration data that is invalid. BCStaticTranslator.html has configuration information that is invalid. XSLTransform.htm: has configuration data that is invalid"
    Once I clear the dialog DW loads. However, when I attempt to save a file I then get the message "While executing onLoad in _beforeSave.htm, the following JavaScript error(s) occurred: In file "_beforeSave": beforeSave is not defined"
    In addition, the space in the Help menu for Updates is simply blank and there is no Edit > Paste item either (just an empty space).
    One other clue is that after I reinstalled Creative Cloud and BEFORE I applied the latest updates it seemed DW ran OK (it was a quick check, so I might be wrong).
    The problems above are rendering DW unuseable to me at the moment, and it is totally bizarre they remain after a complete reinstall, so any clues on what has happened/how to fix it would be greatfully received!
    Thanks!

    Hi John
    So many thanks for that. I tried step 4 and deleted 2 WinFileCache files (neither of which were called what they said they were) and restarted DW and it now (so far!) seems to work again.
    I have no idea what went wrong, but I am up and running again, so MUCHOS thanks again for your swift repsonse!
    atb

  • On my iPad 2 I can nolonger view maps.  It says there are JavaScript errors.  How can I fix this problem?

    On my iPad 2 I can nolonger view maps.  It says there are JavaScript errors.  How can I fix this problem?

    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."

  • Get Javascript values and use them in a servlet?

    Hey
    I have a HTML which has Javascript scripts which I have to get values from (a array to be exact) and pass them to a servlet so I can process the information in a certain way. I cant seem to find a way to do this properly as the servlet is server side and Javascript is client side. How can I implement this?
    Using a quick example example I have
    C:/index.html
    C:/js/script.js
    Index.html contains:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <script type="text/javascript" src="js/script.js">
    </script>
    </head>
    <body>
    a href="javascript:void(0);" id="add"><img src="images/menunew.png" alt="plus" border="0" />
    /a>
    </body>
    </html>
    Script.js contains:
    var Script = Class.create({
    a:4,
    b:5,
    add: function(){       
    return (this.a + this.b);
    (Ignore syntaxis errors as this is a quick example I wrote up just to see if you can give me a practical example on how to read it.)
    How can from a Java servlet access a and b from the script.js file (which contains a class named Script) and also access the function add which returns that value?
    Thank you for the help
    Edited by: 902756 on 16-dic-2011 0:18

    DrClap wrote:
    902756 wrote:
    1: Yes, it seems like the logically answer but Im not too up on AJAX and even less on mixing it up with servlets. Do you mind giving me a simple add (function) sample or something similar?You are looking at it the wrong way. What you actually want to do is to have the browser send a request (which somehow contains that Javascript data) to a URL which causes the servlet to receive the data. There's no "mixing it up" going on there. The client and the server are entirely separate.
    And since that request would be an HTTP request, it's just text. There's no concept in HTTP of transmitting objects, whether they be Javascript objects or Java objects. Anything you want to transmit has to be converted into text by the sender and converted back into objects by the receiver.
    So there's no such thing as "a simple add function". You're going to have to stop thinking in that way and start thinking of client-server systems in the way they actually are.The thing is I want to start simple to grab a simple concept....
    Im trying a AJAX route and I have the following:
    /index.html
    /js/Adding.js
    Index contains:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
         <title></title>
         <script type="text/javascript" src="js/Adding.js"></script>
    </head>
    <body>
    <select name="num1">
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    </select>
    <select name="num2">
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    </select>
    <form method="get" name="adding">
    Do
    <span id="res"></span>
    </form>
    </body>
    </html>
    Adding.js contains
    var Adding = Class.create({
    x: null,
    y: null,
    add: function()
         var xmlHttp = new XMLHttpRequest();
         var value1 = document.getElementById("num1").value;
    var value2 = document.getElementById("num2").value;
         xmlHttp.open("GET", "index.html", false);
         xmlHttp.send(value1 + value2);
         var result = document.getElementById("res");
         result.innerHTML = xmlHttp.responseText;
    This shows 2 comboboxes full of numbers and link saying "Do" which calls the javascript function and adds the two numbers in the comboboxs and shows them on the screen without refreshing the page. This does not work and I would like this to work before I continue onto the bigger picture.

Maybe you are looking for

  • How do I get all my music from 3 seperate devices into one place without a computer???

    I have a new iPad. My friends old iPhone. And my old iPod. My laptop crashed and now all my music is just on my iPod. I have some downloaded music on my iPhone and iPad. All my music is in different places because my brother and sister and I share ou

  • Itunes synced with another computer after updating iTunes

    iphone 4. ios6 8Gb I was previously running ios5 onthe above phone but downloaded the new version of itunes (accidently - if it's not broke dont fix it) when I connected my new iPod shuffle. Since then I have been unable to add or remove music from m

  • Cfexchangecalendar modify question

    Hello, I am creating a meeting request in my application.  This seems to work without issue.  The functionality I need to add is when more users sign up for the meeting online, I am trying to MODIFY the existing Meeting UID by adding the additional p

  • Desktop files are gone

    My brother is working on a powerbook g4 and the problem is all of the desktop files are gone. They are not in the trash. They have just disappeared. It reminds me of when a profile gets corrupt in Windows. Does anyone have any tips on recovering the

  • Oracle 10g OLAP CWM2/AW

    Are CWM2 packages obsolute in Oracle 10g? I could not find documentation of CWM2 in Oracle 10g docs. It has only AW.