JavaScript does not unless the user double-clicks

I'm working on a redesign of a site. On the FAQ page, there is a javascript script. You are supposed to click on the Q to reaveal has. On the dev site, you have to doubleclick. This is false.

Here is the page in development:

http://mayakaimal.com/mayakaimal2/about-FAQ.html

It works on the old site:

http://mayakaimal.com/FAQ.html

Any idea is appreciated.

MOOKIE

This is because on the dev site hidden answers have all received an Afaq class that has css display: none which hides all the answers on the loading of the page. While the other site there is no class on the div of answers, but the answers have an inline style to hide.

The javascript works by changing the style inline the div to answer... the first time on the dev site it does not find any inline style therefore defines some to display none, while on the second click it starts working again!

so the easiest solution would be either to modify the javascript code to change the css class, or to remove the class and add a style inline like on the online site.

Compare the two sites with a tool like firebug for firefox and you should see the difference in the HTML markup and javascript by changing the inline style.

Jeff Logan Web solutions

http://Twitter.com/JeffLogan_WS

Tags: Dreamweaver

Similar Questions

  • In the form of domain information does not, unless the user clicks on the field?

    Hello

    I got PDFs with form fields that contain text. In the past, all the text is visible and if more text is in the more visible area, you get the scroll bar.

    The last document I received, the text does not appear, until I actually click the biox field. Once I click on the field, the text and the scroll bar appear, but once I click it disappears again? We cannot understand why?

    Anyone know how or why this happened and what is the solution?

    Thank you!!

    Babs

    This works because it gets Acrobat to redesign the appearance of the field, which is the problem. Preview does not correctly save the PDF file and field appearances can get damaged. Importing data in causes Acrobat to redesign the field, partially correct things.

  • I have photoshop cc 2015. For the last 2 days it does not open when I double click the icon. What should I do?

    I have photoshop cc 2015. For the last 2 days it does not open when I double-click the icon. What can I do to fix this?

    OK completely reboot Windows 7. When he started to look in the Task Manager under process for photoshop.exe it shouldn't be there. If it is highlighted and press the button end process. Now right-click the Photoshop icon and select run as administrator. Photoshop starts, you should see photoshop.exe in the list of running processes. When you close Photoshop it should disappear from the list.

  • How to create a guest account? I followed the instructions and it says that it does not recognize the user!

    I followed the instructions to create a guest account and it says that it does not recognize the user's address or the password.

    Hello

    1. What is the operating system installed on the computer?

    2. are you trying to create or attempt to activate the guest account?

    3. How have you tried to create the guest account?

    4. What is the exact error you get when you try to create the guest account?

    Perform the steps in the articles to create a guest account and check if the problem is solved or not.

    Turn the guest account on or off (Windows 7)

    Turn the guest account on or off (Windows Vista)

    Hope that helps.

  • Unable to connect to my profile at the start, the SCREENS ' SAYS the PROFILE SERVICE does NOT have the USER logon

    "Unable to connect to my profile when starting, SCREENS SAYS'THE PROFILE SERVICE does NOT have the USER logon"

    Profile of user could not be added

    Hello

    1st thing to try is the system in safe mode restore to before the problem

    http://www.windowsvistauserguide.com/system_restore.htm

    Windows Vista

    Using the F8 method:

    1. Restart your computer.
    2. When the computer starts, you will see your computer hardware are listed. When you see this information begins to tap theF8 key repeatedly until you are presented with theBoot Options Advanced Windows Vista.
    3. Select the Safe Mode option with the arrow keys.
    4. Then press enter on your keyboard to start mode without failure of Vista.
    5. To start Windows, you'll be a typical logon screen. Connect to your computer and Vista goes into safe mode.
    6. Do whatever tasks you need and when you are done, reboot to return to normal mode.

    If that does not solve it read more

    read the tutorial below

    http://www.Vistax64.com/tutorials/130095-user-profile-service-failed-logon-user-profile-cannot-loaded.html

    When you log on a Windows Vista-based or a Windows 7 computer by using a temporary profile, you receive the following error message:

    The user profile Service has not logon. User profile cannot be loaded.

    http://support.Microsoft.com/kb/947215#letmefixit

    Your user profile was not loaded correctly! You have been logged on with a temporary profile.

    http://support.Microsoft.com/kb/947242

    If you tried to log on to Windows and received an error message telling you that your user profile is damaged, you can try to fix it. You will need to create a new profile and then copy the files from the existing to the new profile.

    http://Windows.Microsoft.com/en-us/Windows-Vista/fix-a-corrupted-user-profile

  • the simple contact form widget does not allow the user to submit. the lunch box turns red. What should I do?

    the simple contact form widget does not allow the user to submit. the lunch box turns red. What should I do?

    Hello

    You have used a form of e-mail field to create 'Appetite' section. This is the reason for which form registers an error as its not able to recognize an e-mail here entry.

    email form field is a required field for form of Muse. Please rename back to e-mail and also to create another field in form in the widget forum (go to the Option to form and enter a single-line text field) and it should work properly.

    Concerning

    Vivek

  • Hello I just bought light Room 5, did the download and it will not open because it does not recognize the user, help please

    Hello

    Please y at - it a phone number instead this stupid box, I downloaded room five light and it has is spent FRO download downloads wouldn't work because he says he does not recognize the user, please make me a disc of any day,

  • Double-click event does not tire/triggered by double clicking on the left side of the tree node

    I have the following tree of Flex

    <mx:Tree id="Tree" left="0" right="0" top="0" bottom="0"
            
    alternatingItemColors="[#EEEEEE, white]" dataProvider="{lsEspecie}"
            
    dragEnabled="true" dragMoveEnabled="true" dropEnabled="true" labelField="item"
            
    labelFunction="tree_labelFunc" showRoot="false"
            
    doubleClickEnabled="true" doubleClick="Tree_DoubleClick(event)">
    </mx:Tree> 

    When I double click on the ICON and to the right of the side on any node, double-click event is triggered as expected. But when clicking on any part of the left side of the node double click is not triggered

    DoubleClickNotFiring.png

    Is there a way to make the double click event fire when happens on the left side of the node?

    The problem has been resolved with this class of FixedTree

    import flash.display.InteractiveObject;
    import flash.events.Event;

    import mx.controls.Tree;
    import mx.core.mx_internal;

    use namespace mx_internal;

    public class FixedTree extends Tree {

    public function FixedTree() {
          super();
       }

    override protected function createChildren():void {
          super.createChildren();

    getListContentHolder().selectionLayer.addEventListener(Event.ADDED, selectionLayerChildAddedHandler);
       }

    private function selectionLayerChildAddedHandler(e:Event):void {
          // ListBase:5790 creates a SpriteAsset for the selectionLayer but does not set mouseEnabled to false

    InteractiveObject(e.target).mouseEnabled = false;
       }

    }

  • Wireless mouse left button does not open programs when double-clicked.

    I have a new Office Tips multimedia - microsoft wireless keyboard and mouse.  Sometimes the icons on the desktop when you click the left button double does not open the program.  And there are times when the program is opened, you can use the left button to navaigate within the program.  Why is this happening?  For the desktop icons, it happens more often in Internet Explorer... Help me please!

    Hi amwash55,

    1. did you of recent changes on the computer?

    2 when was the last time it was working fine?

    Check and make sure that the mouse settings are correctly set.

    Set the double-click of the mouse speed

    http://www.Microsoft.com/enable/training/WindowsXP/doubleclickspeed.aspx

    If the mouse settings are correct, then make sure that you have installed the latest version of the drivers for the device.

    http://www.Microsoft.com/hardware/downloads/default.mspx

  • (Click two boxes) Text caption of failure that appears when the user double-clicks

    Hello

    I have two boxes a slide is clicked > the first click box is a simple click and the failure text caption is enabled > the second click box is a double click action, and the legend of the failure is not enabled.

    When a user double-clicks on the second, click on the box that the legend of the failure is displayed from the first caption text.  I'm cpatibvate is picking up the second click of the double click and so incorrect display in the first legend.

    Is there a way around this problem?  ISome contribution to this issue would be greatly appreciated:

    Double click problem.JPG

    Clickboxes are set up so that if you have the legends of failure turned on, then a click outside the click box triggers the failure criteria.  So if you have two of them on the same slide, each will be considered a failure if you click on it.

    Buttons work a little differently, then you can try to use the transparent buttons instead.

    Another alternative is to use the widget event handler, which allows to implement various widgets to listen to different mouse events.  The beauty of these widgets is that you have much more control over the criteria of rupture because you can specify events of different mouse for the success and failure on each of them.

    Find out here: http://www.infosemantics.com.au/eventhandler

  • How to integrate a pdf document in a pdf existing file so that the user double-clicks the pdf object in the PDF and openness? I looked everywhere on various forums and tried to spare part - but still does not. Thank you

    I have tried different methods but in vain. I have a pdf document and in the pdf, I want to incorporate some pdf documents so that all the user has to do is double click on the pdf inside pdf file object and it will open in a new window. I tried to use attachments for making and connecting... but nothing helps. Someone knows how to do? I use Acrobat Pro Version 11. Thank you

    The common MS Office applications "embed" functionality is not applicable to PDF (for the why and that's why PDFS make uncomfortable and read the ISO standard for PDF - ISO 32000-1: 2008).

    You can insert pages from other PDF files in any given PDF.

    You can attach files to formats supported in PDF format (of course a PDF is supported).

    You can not 'embed '. So, nothing is broken.

    Be well...

  • I have an IMAC computer and I was unable to download adobe.  I get a message that the installer does not work when I double click to get setup.

    If someone has a suggestion as to how I go to Adobe and download the installer to work, I'd appreciate any help.  I tried several times and get the same message as the installer is damaged and does not.  Thank you someone please solve this problem, help me to get Adobe downloaded?

    Hi hughb66371977,

    Restart your iMac & then try to download or install Acrobat Reader DC using this link Adobe - Adobe Acrobat Reader DC Distribution

    Kind regards
    Nicos

  • Play HTML5 video with JavaScript does not hide the overlay dimming video

    I googled this problem and found nothing useful and also checked the area of support here and still nothing. I'm creating a webpage with HTML5 video. I made a layer with the video object that is hidden with CSS, until the user clicks on a link. When the user clicks on the link, I use a JavaScript function to display and play the HTML5 video object. Works fine except that Firefox keeps the overlay in place play button while playing my video! If I click on the overlay, the video stops. Then if I click again, the overlay disappears and the video resumes playback.

    I realize there are solutions that can be pirated. But it is certainly a bug that the rest overlay in place after the start of the video via a JavaScript command. I hope that this problem finds its way to the right people at Mozilla for resolution.

    Thank you
    -DK

    Can you please update to Firefox 18.0.1 and see if the problem exists in a new profile? (13 is no longer supported)

    Use the Profile Manager to create and delete profiles Firefox

    If this happens again please give an example of site Web with the show and the screenshots of what should happen compared to what's going on

  • I'm having a problem with the email of comdast especially for the outgoing with SMPT. Does not recognize the user name or password. Erased and the exact same re-admitted and do a little work and now 2 - 3 times a week same recurrs either on iphone, ipad a

    In the last 6 months + / _ my Comcast email not send mail as the smpt said that the name and the password not recognized. I can delete them both and then re-enter on my iphone and ipad, imac and it works again. It happens now 2 or 3 times each week. Comcast.com my website does not do this and can receive and send email without problem. Their support, explains what's happening with many of their apple using the client.

    All the answers in the group. Has not happened before. This could be with apple's IOS dates as google is not not the case.

    pdeyedoc

    You should probably get a different email.

    I know this isn't much of an answer or even very applicable but everyone I know eventually loses their emails from mobile provider or cable operator sends cause unless you stick with them forever, your account is deleted after you leave them.

    Gmail, yahoo, rocket mail, and even AOL don't do that.

  • Failed Anyconnect corresponding certificate does not deny the user

    Hello

    I'm trying to implement matcing certificate when you use Anyconnect.

    I want ASA to check the issuer CN to a value.

    I have it configured, and it works.

    But when the corresponding defective certificate, the user still have access. It connects to the GRP_policy 'GroupPolicy_solbakken-any-test', but it should have failed.

    The log looks like this

    09:28:04 | 716001 | Group user IP <62.148.39.161>WebVPN session began.
    09:28:04 | 734001 | DAP: User Øystein solbakken, 62.148.39.161, connection AnyConnect Addr: following DAP records were selected for this connection: DfltAccessPolicy
    09:28:04 | 716038 | Group user IP <62.148.39.161>authentication: success, Session type: WebVPN.
    09:28:04 | 717037 | Research Group of the tunnel using certificate cards failed for the peer certificate: serial number: 2266234 A 000000000035, the name of the object: cn = Øystein solbakken, or = Brukere, OU = LUND, dc = dc = local, lund, issuer_name: cn=lund-S-TRD-AD-01-CA,dc=lund,dc=local.
    09:28:04 | 113009 | AAA recovered in group policy by default (GroupPolicy_solbakken-any-test) for user = Øystein solbakken
    09:28:04 | 717037 | Research Group of the tunnel using certificate cards failed for the peer certificate: serial number: 2266234 A 000000000035, the name of the object: cn = Øystein solbakken, or = Brukere, OU = LUND, dc = dc = local, lund, issuer_name: cn=lund-S-TRD-AD-01-CA,dc=lund,dc=local.
    09:28:04 | 717037 | Research Group of the tunnel using certificate cards failed for the peer certificate: serial number: 2266234 A 000000000035, the name of the object: cn = Øystein solbakken, or = Brukere, OU = LUND, dc = dc = local, lund, issuer_name: cn=lund-S-TRD-AD-01-CA,dc=lund,dc=local.
    09:28:04 | 725002 | 62.148.39.161 | 65223 | Complete appliance SSL negotiation with customer Internet:62.148.39.161/65223
    09:28:04 | 717028 | The certificate chain has been validated successfully with the warning, revocation status has not been verified.
    09:28:04 | 717022 | Certificate has been validated successfully. Serial number: 2266234A 000000000035, the name of the object: cn = Øystein solbakken, or = Brukere, OU = LUND, dc = lund, dc = local.
    09:28:04 | 302014 | 62.148.39.161 | 6875. 89.248.2.6 | 443. Connection TCP disassembly 2213 for Internet:62.148.39.161/6875 to identity:89.248.2.6/443 duration 0: 00:00 4448 TCP Reset bytes - I
    09:28:04 | 725001 | 62.148.39.161 | 65223 | Count of negotiating SSL client Internet:62.148.39.161/65223 TLSv1 session.
    09:28:04 | 725007 | 62.148.39.161 | 6875. SSL session with client Internet:62.148.39.161/6875 is complete.
    09:28:04 | 302013 | 62.148.39.161 | 65223 | 89.248.2.6 | 443. Built of TCP incoming connections 2214 for Internet:62.148.39.161/65223 (62.148.39.161/65223) at identity:89.248.2.6/443 (89.248.2.6/443)
    09:28:04 | 725002 | 62.148.39.161 | 6875. Complete appliance SSL negotiation with customer Internet:62.148.39.161/6875

    Can someone help me with this? I only want users successfully matching certificate to connect, all others should be rejected.

    Concerning

    Øystein

    Hi Øystein

    You can by mapping all users to a group that does not have a connection, for example:

    internal DenyAccess group strategy

    Group Policy attributes DenyAccess

    VPN - concurrent connections 0

    tunnel-group NoAccess type remote access

    tunnel-group NoAccess General attributes

    Group Policy - by default-DenyAccess

    crypto ca certificate map mymap 65535
    subject-name ne ""

    webvpn
    certificate-group-map mymap 65535 NoAccess

    hth
    Herbert

Maybe you are looking for

  • How to clear the right side of iMessage on iPad?

    How can I clear the right side of the screen to iMessage and leave the list of messages on the left side as it is? I would like to iMessage to look like the photo below. I need to remove an existing conversation when selected?

  • record movies of photo booth

    I made a video diary with my 4 year old girl and would like to try and save it to disk or any who will ensure that it is not lost on this computer dies. Can someone help with this and give me some advice? Thank you in advance :-)

  • The upgrade and reuse

    I rebuilt a computer which is now suitable for windows 7, and I want to use my front disc with windows xp on an old computer.  Can I enter a different computer with the xp disc, or could I take the hard drive with the operating system xp and put it i

  • Overview of notifications on the black (unlocked) screen - is it possible?

    Hi guys,. I googled this and checked the forums here but have not yet found a satisfactory answer. Here's what I would like my compact z5 to do: When I block my phone (the screen becomes black), if a text or by email or any other type of notification

  • MY Cp usually recognize my external hard drive

    My computer does not display the pop-up for my external hard drive and its not appearing not in my computer hard drives window.