Small javascipt issue

Hi,
from an HTML page(fram6.htm), I'm calling a javascript function on click by passing one number (just 1,2,3..) parameter. What the javascript should do, check whther a <div> tag (named r_div_1, r_div_2 etc) in another frame(frame7.htm) is enabled or not. If enabled (currently being shown) disable (not show) it and vice versa. I have a plan to put 40 such div tags.
I'm trying to do something like this.
function ShowRDetail(number)
alert("div id = r_div_"+number);
     var div_id = "r_div_"+number;
     if (parent.frames.frame7.+div_id+.style.display == "")
          parent.frames.frame7.+div_id+.style.display = "none";
     else
          parent.frames.frame7.+div_id+.style.display = "";
But this comes out with a Javascript error at line "parent.frames.frame7.+div_id+.style.display ". How can I concatenate this?
or any other way around of achieving this.
thanks much

HEY,
u have to use eval funstion
var div_id = eval('r_div_'+number);
frm7 = eval(parent.frames.frame7.+div_id+.style.display);
and use frm7 in condition.. and similarly for others..
KM
Hi,
from an HTML page(fram6.htm), I'm calling a javascript
function on click by passing one number (just 1,2,3..)
parameter. What the javascript should do, check whther
a <div> tag (named r_div_1, r_div_2 etc) in another
frame(frame7.htm) is enabled or not. If enabled
(currently being shown) disable (not show) it and vice
versa. I have a plan to put 40 such div tags.
I'm trying to do something like this.
function ShowRDetail(number)
alert("div id = r_div_"+number);
     var div_id = "r_div_"+number;
if (parent.frames.frame7.+div_id+.style.display ==
parent.frames.frame7.+div_id+.style.display =
= "none";
     else
          parent.frames.frame7.+div_id+.style.display = "";
But this comes out with a Javascript error at line
"parent.frames.frame7.+div_id+.style.display ". How
can I concatenate this?
or any other way around of achieving this.
thanks much

Similar Messages

  • Small DNS issue; www resolution

    I'm investigating a few small issues with our server and started with DNS. When I type "host X5.testdomain.com", I get the following response:
    X5.testdomain.com is an alias for testdomain.com
    testdomain.com has address 216.58.x.x
    testdomain.com mail is handled by 10 filter01.mailISP.net
    So, why isn't this resolving to the server, instead of the outside IP, which is where the companies website is externally hosted?
    Now, a little self-confession. I'm sure it has to do with there is no forwarding in the DNS section of Server Admin, so the only way I could set it up so that employees could get to the company website was to list "www" and the external IP in the "Machines" tab of DNS setup. Was this correct?
    How do I get the resolution of the host command correct?

    How do I get the resolution of the host command correct?
    It's not clear to me that it isn't correct.
    So, why isn't this resolving to the server, instead of the outside IP, which is where the companies website is externally hosted?
    Have you configured it to do so? Do you have an 'x5' host entry in your domain's zone? What does it point to. In short, why do you expect this to point to some external address (other than the external address it's already pointing to, that is)?
    the only way I could set it up so that employees could get to the company website was to list "www" and the external IP in the "Machines" tab of DNS setup. Was this correct?
    That's correct. since you're hosting testdomain.com you need to list every hostname in that domain, regardless of whether it's internal or external.

  • BC Individual Product - Small Template issue

    I am trying to customized the e-commerce individual product -small template to include the descrition tag with only 35 characters showing. I am modifing the tag to read {tag_description, 35} but it is not limiting the characters.  here are a couple screen shots
    What am I doing wrong?? Help please!!

    Hi,
    The issue here is that tag_description for product layout doesn't not have a character limiting parameter at this stage.
    - http://kb.worldsecuresystems.com/134/bc_1342.html#main_eCommerce
    You might be confusing this with web apps which offers this additional parameter. 
    - http://kb.worldsecuresystems.com/134/bc_1342.html#main_Web_Apps_Layout
    The "tag reference" page list all the available tags + parameters that you can use. 
    - http://kb.worldsecuresystems.com/134/bc_1342.html
    Kind regards,
    -Sidney

  • Dreamweaver and small font issues on high res laptops

    This is in regard to this thread: http://forums.adobe.com/message/5999089
    I just purchased a new Windows 8.1 laptop which high res screen (3200x1800).
    I installed Dreamweaver CS 5.5.  When using Dreamweaver the UI upper nav bar and tab text is very, very small - unreadable.
    Is there a way to fix this issue?

    This is a user-to-user forum.  I don't work for Adobe so you're preaching to the chorus here.
    Min-requirements for CS5.5 -- 1280x800 display
    http://helpx.adobe.com/x-productkb/policy-pricing/system-requirements-dreamweaver.html#id_ 55336
    Feel free to submit a feature request below. The more people who ask for this, the better chance it has of being implemented in a future release of DW.   Unfortunately, CS5.5 is no longer supported.
    Feature Request Form
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Nancy O.

  • SMALL IPHONE ISSUES AS I SEE THEM: Phone, Mail, iChat, Safari, iPod

    I love this phone; however, I agree there are some real opportunities for improvement in the software. Many of these (I hope) can be addressed with Software Updates, which Apple has used very well in the past.
    PHONE:
    1) While in a call I can see my contacts, mail, the net, music, but I can't see my RECENT CALLS. I need to be able to see this.
    2) CUSTOM RINGTONES would be so cool, but as some have mentioned, not while I am listening to music. If the phone can be programed to know when I am rocking out and fade out to a beep this would be great. Ringtones would be a major + at all other times when the phone is in any other app but iPod and ready to ring.
    3) VOICE DIALING would also be swell. I hope this can be addressed with software as the touchscreen makes the whole drive and dial thing a little unsafe. Voice search would be cool for iTunes too, as drive and decide on a song is not to easy on the touch screen.
    4) AT&T ***** if you live in the sticks (like me), but we knew this too.
    Besides this, I feel the phone is amazing; but, when it comes to the bottom line, this isn't a phone, its a handheld computer that happens to also have cell phone and music capabilities.
    MAIL:
    1) I want to type in LANDSCAPE MODE in Mail like I can in Safari on the iPhone. It would be much easier to type with 2 thumbs this way.
    All in all, mail is amazing, especially with it being covered under the unlimited data plan. Sending pictures this way is a big plus, but...
    ICHAT:
    1) I wish I could send photo messages to OTHER MOBILE DEVICES besides iPhones running full-fledge email systems.
    2) Again, LANDSCAPE MODE, lets get this incredible feature into iChat as well, as 2 thumbs really only works this way in my experience.
    3) AIM, AIM, AIM. Enough said... well, not yet; but soon I hope! Yes you can forward them from AIM, but with only 200 texts (standard) and a pretty steep upgrade for unlimited texts when we have UNLIMITED DATA, I thing we should get this; ESPECIALLY if we have to suffer with EDGE. I think AT&T should provide the support for this within our data plans.
    SAFARI MOBILE:
    1) WOW. Safari on iPhone is the real deal.
    2) ADOBE FLASH would be a cool upgrade, but there is still a lot of quicktime.
    3) Lets ditch the mobile site stuff (Bank of America is the one I have noticed). If I can look at the Apple and CNN websites like I can on my computer and even write a review of the iPhone from my iPhone on CNET, why won't sites like BOA let me see, for instance, how much I spent on the iPhone on the 29th on the REAL and MUCH EASIER TO USE SITE when I can look at the real versions of other sites. Well, on second thought, maybe I don't want to see how much I spent on this, but in the future it would be cool to track purchases.
    4) I wish I could use something like TABS on Safari (Apple Button + Click Link). It would be cool if I could hold down on the Multiple Window Button (Bottom right hand corner) and click a link and have it start a new page. We have multi touch capability: I've seen it, used it and loved it in Pictures, so lets get this going here too.
    IPOD:
    1) WOW (again)
    2) If I am looking at an artist, a genre, or a playlist even in standard mode and I flick it into landscape mode I have to see all of the covers in my entire library. This used to be a problem in earlier versions of iTunes so I hope they correct it so I only see the covers of the content in the selected list (artist, genre, playlist, etc.
    3) I wish I could scroll a little faster through coverflow sometimes, but this is small.
    4) I really, really wish that I could download songs from iTunes.
    5) Voice search would be cool if they do get around to voice dialing for the phone.
    OVERALL:
    Apple got it VERY good. The device itself is gorgeous, the interface and the apps are genius, and how it all works to together is the best part. Really, Apple just needs to expand on the wonderful features (especially Landscape in Mail and iChat and Multi Touch for multiple windows in Safari), add some more apps (VOICE, AIM, FLASH, ITUNES), and fix some small oversights (especially the coverflow deal in iPod, because if I am looking at the classic rock genre and I switch to coverflow and see 2pac, its kind of weird).
    Really though, I love it.

    I agree with you and I just posted a few other items titled "what's missing"

  • Small Network Issue

    I have a small network with Time Capsule TC and two Airport Express bases AX.
    Everything seems to be working fine, but it makes me crazy to see the Status light of the AXs blinking constantly.
    In Airport utility all the base stations show Green Status light, but in the actual AX bases the Status light is blinking yellow, it has wireless Security WAP2.
    In other words: what can I do to have AX light solid green?
    Thank you

    #!/bin/bash
    export BROWSER=firefox-aurora
    export DE=xfce
    exec ck-launch-session dbus-launch openbox-session
    openbox autostart makes no references at all

  • Converting Capital Letters to Small Letters issue

    Half of this program works, meaning it does convert capital letters to small, but then when the letter is already small in the array as shown in the array list, I am having problems printing that out...I am confused.
    public class TesingEx3
         public static void main(String[] args)
              char[] arrayLetters = {'A', 'B', 'c', 'D', 'e', 'f', 'G', 'H'};
              // 65 = A, 90 = Z, 97 = a, 122 = z 
              for (int index = 0; index < arrayLetters.length; index++)
                   if (arrayLetters[index] >= 65 || arrayLetters[index] <= 70)
                        int letter = arrayLetters[index] + 32;
                        char convertLetter = (char) letter;
                        System.out.print(convertLetter);
                        System.out.println();
                   else
                        System.out.print(arrayLetters[index]);
                   and then here is my OUTPUT:
    ----jGRASP exec: java TesingEx3
    a
    b
    d
    g
    h
    ----jGRASP: operation complete.

    ravindra.alld wrote:
    why we make String when we do it with the help of int or byte.
    this is more memory efficient.When memory efficiency becomes a legitimate concern, we'll consider it. Until then, the choice is between using a method whose name says exactly what we're trying to accomplish, or treating characters as if they were numbers and doing arithmetic on them with the aid of magic numbers. Let the simple stuff be simple, and save your ingenuity for the hard stuff.

  • Add widget to small app issues...

    I'm trying to add widget to the small apps list, when I tap the + sign and choose add my own widget, it tries to load the widget list but before it is done, an error message said "Unfortunately, Small App Widget has stopped."
    What should I do? I tried to clear the cache / data, stop the app, reboot the Small App Launcher, but it still doesn't work.
    With many thanks.
    Solved!
    Go to Solution.

    Boot the phone in safe mode,see if the same occurs:
    http://talk.sonymobile.com/t5/FAQ/How-to-boot-your-phone-into-safe-mode/m-p/348008
    All we have to decide is what to do with the time that is given to us - J.R.R. Tolkien

  • Two small possible issues?

    Hi All,
    So last night I installed a new 500gb WD Scorpio Blue HD. I'm assuming I installed everything ok. Took me a moment to seat the drive, might not of screwed in one of the screws all the way.
    Installed SL (retail disc, not up to date one). Install went flawless (even got a full 499gig out of the drive before the install .. wahoo). I had two minor problems though, and I'm wondering if I should worry or not.
    First problem, I ran a sudo command to open up TextEdit to modify the /etc/hosts file. I saved it out and closed TextEdit, but it still remained open in the taskbar. I opened up a terminal and did a kill -15 on the process. Didn't seem to do that the second time, but could that just of been a SL quirk?
    Second issue was when I plugged in my FW 800 enclosure, the OS didn't give me an error or anything but it didn't mount the drive at all. So I unplugged it and replugged it back in and mounted fine. Could I of just not plugged it in good the first round? (This drive I used perfectly in Leopard for Time Machine).
    I might just be overly paranoid I'm sure, but figured I would ask the community
    Thanks all!

    Thanks for the reply,
    The Logitech mouse driver said there were no updates available so I figured the expose had something to do
    with the new OS system since it now said expose and spaces, which Leopard never had spaces.
    So what I did was figured out how to just set it up with the F keystroke and it worked!
    When I link my Mac Book Pro to my tv, I use an external keyboard which is more up to date with the quick f keys up top and the arrangement is set up differently [ such as the volume keys are now f 10 and 11 instead of f 3 and 4 or something like that] Hopefully when my mbp is linked to this the keystroke I have set for expose still works. I believe it will.
    And as for the desktop bg, after unplugging my tv I notcied it still stayed on the space theme. So I believe I know what may be the issue. I set that bg off of a picture on an external hd, and never saved the image on my computer hd. So I'm assuming it saved the desktop picture in some cache thing or something and once it got linked to an external monitor it got refreshed.
    I now how that image on my computer and set, so hopefully the next time I link my computer to the tv, it'll stay.
    Thanks!

  • How can I get around Javascipt issue with keyboard events?

    Javascript issue: keydown, keypress, keyup events cause quick search to initiate with the division key on the keypad and slash key on the keyboard. I am trying to program a graphic representation of a 10 key pad and the division (/) sign is problematic for roll over and processing based on key events. How can I get around this? further notes: Safari also has problems with key events and the division key(s) but no search function connected. Thankyou for time and attention

    A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.<br />
    See http://forums.mozillazine.org/viewforum.php?f=25

  • Solved(?): small ACPI issue

    Hi!
    I am a newby with Arch but I am very pleased with this clean distro.
    One question regarding ACPI - not necessarily specific for Arch:
    I use a P4-M in a laptop (HT support, self compiled SMP vanilla Kernel 2.6.10) and ACPI. I noticed that if I _turn on_ the computer, the fan works continueously without any change in speed. If I _reboot_ then ACPI seems to notice that the CPU is cool enough and slows down/speeds up the fan according to load/heat.
    So I have the feeling I always have to reboot to get ACPI fan control to work. Is there a way out? BIOS settings? "Restart" ACPI?
    Thanks for any comments!
    Blind

    Ok...I have googled around a lot concerning this issue. Maybe this helps others, too (at least the german people around):
    http://www.iaccarino.de/silvio/linuxnb.htm
    NB: Take a look at the scripts. I find them VERY useful for my notebook. As to my very problem from above: it seems you have to turn the fans on (although they are roaring like hell) before ACPI really controls them. So you could use the script 'fan' or 'silence' (maybe you have to make some modifications) to do that after (re-)booting. Works well for me now.
    Cheers,
    Blind

  • At the urging of an Apple Store employee, I upgraded to OS Lion X.  However, Excel does not recognize the hard drive and I cannot save any work.  I understand there is a small compatibility issue - any suggestions ?

    I need some direction on fixing an issue with excel and lion x which has a compatibility issue - can't save my work to a hard drive.

    If you made a backup before installing lion, now would be a good time to restore that backup.... Ok, well you can always boot into lion recovery menu.... shut down your mac, hold down the option key and restart your computer..... Select recovery from the disk startup menu and go to disk utility... select the OSX disk, you can try repairing your permissions and repairing the disk.... If you lucky enough, it will fix it.... If not, and you have a decent internet connection, click the reinstall LION OSX after exiting disk utility. Your mac will now REDOWNLOAD LION OSX and reinstall it.... did you happen to make a backup before?
    Also, did your mac originally have Leopard? Just curious... Because LION is entirely 64bit now where as Snow leopard had support for 32 bit as well, but the problem may be that some of your older apps where 32 bit.... This is just a guess though I'm not sure.... Because I've had numerous problems and crashes with my CS 4 stuff and final cut pro 7 and aperature.... Not sure if it's totally related to the whole 64 bit thing, but the thing is that the crashes are only occuring on my 32 bit apps.... otherwise the computer runs great.... To remedy, I had previously made an OSX lion USB drive so that I could do a fresh install of LION. I backed up all my data and files, installed a new SSD and my Macbook is SCREAAAAAAMING fast.... Sorry about the gloating but I'm sure we'll get to the bottom of your problem.... 

  • ICal Small View Issue!

    Hi All,
    Is there any way where iCal (New Event) view could be enlarge ? as I am using iMac & MacBook Pro.
    Thanks

    Hi,
    I do not think there is.
    This is a user to user forum. By posting here you are not guaranteed someone from Apple will read it. If you'd like ask Apple for this feature I suggest you send them feedback.
    Best wishes
    John M

  • Big Eudora problem, small Finder issue-- related?

    I use Eudora for my email, and unfortunately my big Eudora problem is not getting solved in the Eudora message board; after half a day of Eudora quitting unexpectedly and then working fine but just for a few minutes if I restarted my computer, now when I launch Eudora, my Finder crashes-- everything disappears but the background image, and the computer is frozen.
    The reason I'm posting here is that before it reached this stage, there were other weird things that didn't relate to Eudora: I would try to launch Flash, and Flash couldn't open a new blank file. I would try to launch something else, and an error message would say that some component in a Library wasn't found. All of these things are not happening anymore; as far as I know, only Eudora is misbehaving, but one odd feature remains: every finder window is showing, next to the search field in the upper right, a large question mark, and next to that there is a folder icon. If I click on the folder icon, I'm taken to one particular folder in my HD that has no significance to anything that I can tell. If I click on the question mark, I get "the item can not be found." (Hence the question mark, I guess). But what are those doing there in every finder window? Is there supposed to be a folder icon at the middle-top-right of every finder window? I don't remember one there.
    I have done an archive-and-install of OS 10.4.6, but the finder window business is still the same.
    The hardware test CD that came with my PowerBook says all hardware is okay. Disk Warrior finds no problems. Disk Permissions are okay in Disk Utility. I ran Clam Xav, and it found four copies of viruses: three (called Email.Ecard-6) in my In box and in two mailboxes with older In messages, and one (called Email.Phishing.Pay-8) in my Out box. I put all of these files in the trash and restarted my laptop, launched Eudora and the finder crashed. I reinstalled Eudora and the same thing happened, although I had put the infected boxes back in place before reinstalling Eudora.
    I don't know where the problem is.
    Any advice, please?
    Paul

    Ciao Von Stripes,
    I've just found the solution:
    Open - System Preferences, then open - Spotlight
    There is a list of categories.
    Find - Files on the list, then click, drag and drop to the position number 1 and "voilá"
    I hope it works for you too... 

  • 890FXA-GD65 Small memory issue.

    Hello, I am having some difficult getting my memory to run at rated speeds when I try tweaking my bios settings I cannot get to to read at 1600, they default to 1333 1.5v so i changed the voltage in the bios to 1.666 reason i used 1.666 instead of 1.65 is because MSI control reads 1.65 as a lower voltage and 1.666 as 1.653. My first question is should I go by bios voltage or trust msi control in windows.
    After changing my voltage my speeds stayed at 1333 so i changes the ratio when changing the ratio i can only set it to 1333, 1500, or 1800. So this brings me to my second question, why cant I get my memory to run at 1600.
    Third question, should i just run my memory at 1800 and try CL 8 instead of 1600 and going for CL 7. Currently I have my memory running at 1500 with CL7 since i cant get it to 1600.
    I'm a bit new to this so if I am missing so info on how memory speeds adjust please let me know
    "I just really wanna run them at least at rated speeds lol"
    Windows 7 Ultimate x64
    Mobo: 890FXA-GD65
    CPU:   1090T
    RAM:   Mushkin SilverLine DDR3 1600 CL 7
    http://www.mushkin.com/Memory/Silverline/996947.aspx

    Hi Scooter31,
       Go into Bios and then enter Cell Menu. Before doing this if you are using any oc utility turn them off. After entering cell menu check CPU FSB, it should be at 200.(I suspect it is at 225). If you want to run cpu at 3.8 put fsb at 200 and set cpu multiplier at 19.
      Next go to memory and enter fsb/ratio, should then see 1:2, 1:2.66, 1:3.33, 1:4. Enter the 1:4 and exit this category. Line below fsb/ratio should read 800 which being DDR is x2=1600!
      Possibly move this topic to OCing and Modding.
    Hope this helps.

Maybe you are looking for

  • Problem calling a EJB Java Client from Java Activity Agent

    Hi, We have a wrapper java class that calls to an EJB through a JNDI lookup. The wrapper class is called from a workflow. The problem is that the call fail with the following message error: Error : getRemoteHome Lugar: ServiceLocator NamingException

  • Update or modify  statment is not working in the method for workflow

    hi friends, i am facing with a problem. one of my requiremetn is i need to update the ztable with update or modify statement in the method. when i run  by manually it is wokring fine(updating the ztable ) and  binding every thing is fine. however the

  • Overflowing one line after my main window box

    hi, in my form in main window i designed a box and it holds 24 lines . after the end of the box in first page another one line is showing that means i want that 25 th line should go to the next page .how to do it??? because here by default in my firs

  • Photoshop won't open GIF files.

    I'm running Photoshop CS5 64-bit and I can't open GIF files. I don't know why or where to start searching for an answer. Anyone with some ideas on what I might do to try and resolve this problem will be much appreciated. Mike

  • How do I find & replace a single character?

    Am using Adobe Acrobat Pro.... The find/replace box pull down has "Whole Words Only" checked and I cannot uncheck it.  How can I find and replace a single character throughout a document?