JavaScript syntax in IDE Page properties

In 'ordinary' HTML I have e.g. a form with name="form1"
a Submit button (name="submit") and radiobutton group:
<input type="radio" value="1" name="answer" onClick="form1.submit.disabled = false">
<input type="radio" value="2" name="answer" onClick="form1.submit.disabled = false">
<input type="radio" value="3" name="answer" onClick="form1.submit.disabled = false">
If I write "form1.submit.disabled = false" for onClick in Creator the Submit button doesn't get
enabled when making a (click) choice of a radio button. What's the correct syntax?
I cannot find any hints in this forum or in the Creator help. /dan

Hi,
Try the following:
1. Drag and drop the following components - button, radioButton, textField and staticText
2. Click on the button; in the properties sheet check the disabled property
3. Double click on the button to go to the button1_action method in the java source
4. Eneter the following line of code
staticText1.setValue("I have been clicked");
5. Click on the radioButton; in the properties sheet click on the ... button next to the onClick property
6. In the window that pops up enter the following lines of code
document.getElementById("form1:button1").disabled = false;
document.getElementById("form1:textField1").value = "Hello";
Save and run the application. On trying to click the button we can see that nothing happens as the button is disabled. Now click on the radio button and you will the textField is populated with the string Hello. Now click on the button and the static text displays "I have been clicked".
As can be seen the button has been enabled. Unfortunately though the appearance of the button makes it look like it is still disabled. I have filed a bug for the same.
Hope this helps
Cheers
Girish

Similar Messages

  • How can I access xml document from javascript whithin a JSP page

    how can I access xml document from javascript whithin a JSP page?
    I have a JSP that receives an XML document from a JavaBean, so I can access it within the entire JSP, but I need to access it from the javascript inside the JSP... and I have no idea how i can do this.
    Thanks in advance!

    The solution would only work on MS IE browsers, as other browsers do not support an XML DOM.
    It can be done, but you would be stuck with using the Microsoft broswer. If that is acceptable, I have some example code, and a book recommendation.

  • Page Properties Panel and CSS

    In the Property Inspector I open the Page Properties dialog
    box and expect to see within the category list : Appearance, Links,
    Headings, Title/Encoding, and Tracing Image. All I see is
    Appearance. Titel/Encoding and Tracing Image. Under Appearance
    again I would expect to be able to select a page font, and it
    attributes but it starts right off with background image and its
    attrbute. Any ideas why the font info is missing?

    Can you try again, please?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Marianne POST" <[email protected]> wrote in
    message
    news:evh6mb$nam$[email protected]..
    > In the Property Inspector I open the Page Properties
    dialog box and expect
    > to
    > see within the category list : Appearance, Links,
    Headings,
    > Title/Encoding, and
    > Tracing Image. All I see is Appearance. Titel/Encoding
    and Tracing Image.
    > Under
    > Appearance again I would expect to be able to select a
    page font, and it
    > attributes but it starts right off with background image
    and its attrbute.
    > Any
    > ideas why the font info is missing?
    >

  • Can i hide "Open Web Part Page in maintenance view" link when editing wiki page properties

    I am working on an Enterprisewiki site collection inside SP 2013, and currently when contributor users edit the wiki page properties by going to "Page Option >> Edit Properties" , then will find the following link, named "Open Web Part
    Page in maintenance view" which sound strange :-
    so can anyone advice what is the purpose of this link and how i can remove it ?

    Hi,
    If someone wants to open a wiki page in Web Part maintenance view then they can directly use this link to switch into the view and can directly delete problematic webparts from there.
    To remove this link, you can try below jquery code in Content Editor webpart on Editform.aspx of wiki page library.
    <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.1.min.js"></script>
    <script>
    $(document).ready( function (){
    $("a[id$='WebPartMaintenancePageLink']").hide();
    $("a[id$='WebPartMaintenancePageLink']").parent('td').parent('tr').hide();
    </script>
    Thanks. Please mark it as an answer if it helps.

  • Page Properties

    I have clicked on something that is making my page properties
    keep reverting to the default. I used to be able to go to the page
    properties and set them but now I set them and as soon as I click
    back on the area that I want to modify it automatically reverts
    back to the default font and the text color changes back to the
    original. Any ideas on what I have done? Thanks in advance!

    Please start with creating a new page.
    I need to know exactly what you have on that page before you
    try to set the
    page properties.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "cupcake379" <[email protected]> wrote in
    message
    news:eq4t1v$m34$[email protected]..
    >I am not clear on what other steps that I can give. I try
    to modify my
    >page
    > and go to page properties. I click on the font and set
    it to Times New
    > Roman
    > then set the size to 80 then set the font color to
    white. As soon as I
    > click
    > on the Layout Cell it automatically reverts back to the
    default font, size
    > and
    > color. I did find out that when I preview in my browser
    it actually shows
    > the
    > settings that I have set but it isn't showing up in my
    DW page as I am
    > creating
    > it.
    >

  • How do you allow access to Page Properties for a page via Permissions.

    I've been trying to figure out how to setup permissions for a user or group to allow them to have access to the Page Properties dialog and view it's contents.
    So far the user/group in question has read/modify/create/delete access to the entire /content/<site_name>.  These people can right click on a page in Websites and select the Page Properties option but some of the page properties, custom ones, are empty, or showing but their respective content (housed under /content/<site_name>/<page_name> is missing/empty.

    The location of the folder is important. If it is inside a subfolder of your Home folder, then nobody else will be able to see it no matter what sharing options you set.
    Put it in the /Users/Shared folder.
    As leroydouglas pointed to, go to the Sharing preferences and add that folder.
    You'll also need to give them a login to that Mac. You can create a "Sharing Only" user which is a login for file sharing users.
    In Users & Groups, Add a new User account and set it to Sharing Only.
    Give it a username and password for them all to use (which can be saved in their keychains).
    Go back to Sharing and Add that new Sharing Only user. Give them Read Only access. If they all have normal logins on that Mac, you can just add those user names and they will log in just as if they were sitting at the Mac.
    Marking of a folder as Shared will only share it with users that can log into that Mac and only if they have permission to see through all the intervening folders.
    EDIT: You could also set up Guest access and allow guests to access file sharing. You could then share the folder to everyone: read only.
    Also see here: http://support.apple.com/kb/PH14189
    You used to be able to create a Sharing Only user from that preference pane, but it appears they've modified that to allow you to create a Sharing only user from your Contacts list.

  • How to create a new tag in page properties in the sidekick of geometrrix page

    how to create a new tag in page properties in the sidekick of geometrrix pagesame as basic, advanced, blue print??

    Hi prachi,
        Is it tag OR Tab ? Seems like you are looking for Tab. Look at [1] & overlay to custamize per your need. Or define at your page component.
        [1]   /libs/foundation/components/page/dialog/items/tabs/items
    Thanks,
    Sham

  • How do you make the font of a link different to the link font in Page Properties?

    In my case, I've designated links as Century Gothic, 16, black in Page Properties. I want most of the links on my page to be like that. However, there is one link that I'd like to look different (I want it to be size 12). How would I change that without changing the other links?

    Hi Bob,
    If the link change is only going to be happening on a single page, you might
    want to take a look at using an internal style sheet or using a inline style to
    achieve the look you seek.
    Below is a link to perhaps help you to understand the use of css.
    http://www.w3schools.com/css/css_howto.asp
    Leonard B

  • "Page Properties" grayed out in Acrobat Professional XI

    I create PDF fact sheets and newsletters from Adobe InDesign CS 6. I am using Acrobat Professional XI. I am tasked with making these PDFs accessible to assistive reading technology.
    I carefully set up tags and reading order in InDesign, but in order to import that structure into the PDF, I need to access Page Properties in the Options menu of Page Thumbnails.  But Page Properties is grayed out. It is not accessible to me.
    I checked to be sure the Acrobat Accessibility plug-in is loaded. It is not loaded.
    Need to know how to
    Enable Page Properties in Acrobat Pro 11.0.9
    Load the Accessibility.api plug-in

    Answer is to select all pages in the Pages thumbnail. Got it from an Adobe video on accessible PDFs from InDesign Preparing Accessible PDFs with Adobe InDesign CS5.5: Part II | Accessibility @ Adobe | Adobe TV

  • A question about page properties

    I am new to dreamweaver going through tutorial.
    In the book it tells me to modify page properties. The pop up window on my computer shows up differently than in the book. see attachment of screen shot from my computer
    In the book it is different.
    1. Category - Appearance has controls for typography, that is not on mine
    2  Category also shows access to Links and Headings between Appearance and Title/Encoding
    I am working in dreamweaver 8 but have also opened up dreamweaver CS3 and it comes up the same way.
    I use a Macbook Pro OS X.4.11.
    Help !

    I'm wondering if somehow toggling the HTML/CSS preferences might get your dialog box to match the one you see in the book. See this Help page for more info, make the switch, and then open the dialog box again to see if that works.
    http://livedocs.adobe.com/dreamweaver/8/using/13_page9.htmhttp://livedocs.adobe.com/dreamweaver/8/using/wwhelp/wwhimpl/js/html/wwhelp.htm

  • Page Properties- Background Color Change

    Can anyone help me here? I know how basic the subject sounds
    but for some reason it does cause me trouble here today.
    We recently had a company design our site and now we are
    using contribute to edit pages etc. Now, we have admin access so
    that isnt an issue. But when we want to start a BRAND NEW PAGE
    outside of any templates, we cannot change the background color. It
    is greyed out when you go to Format- Page Properties- Appearance.
    Its frustrating. It should be as easy as changing it, but no can
    do. Any thoughts?

    It's good then that you have adminstrator rights, because the
    solutiojn is in the role settings. You will have to edit the role
    settings to your needs.
    In the menu pick Edit, Administer websites, Choose your
    website.
    Choose Users and roles, Edit role settings
    Choose Styles and fonts
    I think you'll find all the options you need here, check the
    ones you want and of you go again!
    grtz.
    Hayo

  • Problem with Page properties window

    In Page properties window,the window is too small some part
    are invisible,example: in apearance i cant access right
    margin,bottom margin,page font exept if i use tab,but i cant see
    what i type in the box.Where I can post picture coz picture is
    milion words?Please help me.

    Page Properties is not resizable. Sounds like the user has
    their system
    fonts set to large.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "SnakEyez02" <[email protected]> wrote in
    message
    news:fl1qqc$p7o$[email protected]..
    > Just upload the picture to some web space and post a
    link.
    >
    > If I am understanding your question correctly though,
    can you not just
    > drag the bottom right corner to make the window bigger?

  • DW CS3 Page Properties problem - I don't have font, repeat  options

    I have been following some online tutorials and they are also in CS3, DW but my page properties layout and options are different within the program.
    Is there something that needs updating/ downloading turning on in an advanced option? I have looked over the web and can find others with the same problem but not a solution.
    Hope you can help.
    The link below at the bottom of the page on the left has a thumb nail of the properties page which matches mine, note no repeat, font and other options are missing compared to others and I imagine yours.
    http://forums.macrumors.com/showthread.php?t=361918
    thanks

    I had the same problem although it was a previous update rather than this one that caused the problem. Just hadn't got round to doing something about it - was using Bing images instead.
    I searched for some answers this morning and seemed like most suggestions were a nuisance to try. Couldn't find 'Preferences button of HTTPS-Everywhere' as suggested above. Decided to check if No Script was blocking it. Sure enough. So problem is solved.
    Thought I'd put it out there in case it helps someone else. Appreciate that people are so helpful on here.

  • Page properties don't show in IE or Firefox

    Hi Guys, I'm very new to this so sorry if I come across as a
    bit of a numpty..
    I have built a site, and uploaded it to the net via my ftp
    server. I went back to dreamweaver to change a few of the page
    properties such as link colours and background images. I have done
    this using the page properties button at the bottom of the design
    view. All properties look as I want them in DW's design view. I
    have not attached any CSS style sheets to the site (don't know how
    to do this yet).
    now when I 'put' the updated pages to the server, everything
    goes fine, but when I view the site online neither IE or firefox
    displays the style changes I have made. I know the old pages have
    been overwritten by the new ones as if I make changes that are not
    stuyle related (eg add an extra word to a block of text) this shows
    in the browser as having been updated.
    Why aren't my page properties being updated? any body know?
    http://www.evoffshore.com/Elmo%20Cam/Index.htm
    this page has a grid background, which should appear throughout the
    whole site, but doesn't. There is also the default blue link border
    around the blue page header (top frame) though in DW I have set the
    link colour of that page to be white.
    Any help would be HUGELY appreciated!!
    Thanks!
    Beth

    PS. when I view the site in firefox some of the table
    proportions are squiffy, any way I can stop this happening?
    Cheers!
    Beth

  • Is there a way for my images that are links NOT to be denoted by whatever color i set my links to be in my page properties?

    Hi there.
    i have set my links to be black in my page properties.  i have somes images that i am using for links and i do not want the to have a black box tracing their outline.  it's messing up my design and tables.  is there a way for my images that are links NOT to be denoted by whatever color i set my links to be in my page properties?
    see attachment.
    thanks for sharing your knowledge with me.
    gina

    If you would like your NON-linked images to have a border, and only remove the border from linked images then this css:
    a img { border:none; }
    E. Michael Brandt
    www.divahtml.com
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    Standards-compliant scripts and Dreamweaver Extensions
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

Maybe you are looking for