Safari Pop up buttons / javascript

I want to be able to select a specific item in a list of a pop up button in safari, i can do it by using a repeat statement and get value of button, with key codes simulating down arrow. This is tediously slow to the say the least. When i go view source of the page there is an identifier for the option i want, option value="f724". Is there a way to set the value of the pop up button to this number, i cant seem to do it. I was reading around the forum and found some mentions of the term do javascript but i have no idea how to implement it in this case, or if it at least possible.

My search_replace(x, y, z) subroutine was a very basic attempt at encoding the URL properly. As it happens omitting the handler entirely and just setting keyword to text returned of result works the same in this case. The spaces get replaced with %20 by default, and the Discussions search app doesn't seem to mind.
This style of search & replace is known as a "text item delimiters" or TIDs for short. You may have heard of a tab-delimited file. These contain cells of information separated by tabs. In the case of AppleScript's text item delimiter, we can set it to tab or any other character, and then ask for a string's "text items" provided in list form. So the steps taken by the handler in pseudo code are:
1. Pass the text returned of the display dialog command to the search_replace handler, along with the search string "space" and the replace string "+"
result: {"yellow fever", space, "+"}
2. save whatever the current value of text item delimiters is
This is to avoid potential conflicts with other code that may be using the delimiters property.
result: {"[… anything]", ""}
3. change the value of text item delimiters to space
By defining " " (space) as a delimiter, we are effectively stripping every occurrence of the space character out of our string. This is because it can now be seen as a special delimiter character, as opposed to a literal one.
4. get the text items of our string as a list
result: {"yellow", "fever"}
5. change the value of text item delimiters to the + symbol
While our text string is a list, we are going to be sneaky and change the delimiter property from space to plus sign, like the one found in our original URL at Apple Discussions.
6. coerce the list of text items back to a string
When AppleScript coerces a list into a string, it automatically inserts the delimiter character you have defined in between each item.
result: "yellow+fever"
7. set the delimiter back to the way we found it in step 2
The way I've written all this in actual code is highly abbreviated. To help read it easier remember that I'm addressing a reference to the delimiters, so every time you see the word "contents," that is referring to the text item delimiters. Also note that
set {a, b} to {"a", "b"}
is the same thing as
set a to "a"
set b to "b"
The only difference is that the former is written in one line, and the latter is written on two lines.

Similar Messages

  • Safari pop-up button invisible

    I have an original iPad. I am viewing a pop-up that looks different on my iPad than my friend's iPad. The popup had a list of text with two buttons at the bottom of the pop up. On mine, the buttons will show. On my friend's, the buttons are simply not there. We have the same verision ipad, same firmware, same OS, but using ATT, not wireless. The browser settings are the same for both devices. Any ideas why this would happen?

    Thanks for your response, I did it but doesn't work. I try to catch the web direction from those  pages but they gone faster. Any idea?

  • How to use same actions for differ pop-up buttons

    Hi gurus,
    I am using 2 popup in a view.same popup's having same buttons 'Yes', 'No'.when i use 1st one i have to create an action for that Yes button where i put my code for that particular Action.
    But when i used 2nd one the action define for that is not acceptable with differ name.it takes only standard one.
    Now my Query is : How to use same actions for differ pop-up buttons with in a similar view?Where i put my code.
    Plz sugges me.
    <b>Points will be sured.</b>
    Sanket sethi

    Hi ,
    u can use the method SUBSCRIBE_TO_BUTTON_EVENT of the IF_WD_WINDOW interface ... to handle the event fired by the popup .....used this method after creating the popup window ...
    regards
    Yash

  • Pop-up button issue: Mac vs PC

    Hello-
    I'm creating an interactive form for my company and having an issue when the pdf is used on a PC. 
    Here's the run down:
    First off, this is my first attempt at creating an interactive pdf so please forgive any incompetence on my part. 90% of the form was created in InDesign and the rest finished in Acrobat on a Mac.
    The form itself has many roll-over and pop-up features so that definitions or additional information can be accessed by hovering the cursor over particular fields. I have gone over the tab order in detail and am certain that all pop-up buttons have been set up so that they do not interfere with any text fields.
    Here is the form when first opened:
    And here is how the roll-over function works (without issue on my Mac):
    Note that the trigger in this case is also a text field where the project name is typed.
    Now, when the pdf is opened on a PC (using Acrobat Pro 9 on a Windows 7 machine) this is what happens:
    The text that appears in the pop-up button then appears in the following "submitted by" text field and will not go away—it cannot be selected, deleted or otherwise modified.
    I have tested this form extensively on my Mac and have not had any issues. Any suggestions or ideas as to why this would be a problem when the same pdf is opened on a PC?
    Any help would be greatly appreciated!
    Trevor

    Hello-
    I'm creating an interactive form for my company and having an issue when the pdf is used on a PC. 
    Here's the run down:
    First off, this is my first attempt at creating an interactive pdf so please forgive any incompetence on my part. 90% of the form was created in InDesign and the rest finished in Acrobat on a Mac.
    The form itself has many roll-over and pop-up features so that definitions or additional information can be accessed by hovering the cursor over particular fields. I have gone over the tab order in detail and am certain that all pop-up buttons have been set up so that they do not interfere with any text fields.
    Here is the form when first opened:
    And here is how the roll-over function works (without issue on my Mac):
    Note that the trigger in this case is also a text field where the project name is typed.
    Now, when the pdf is opened on a PC (using Acrobat Pro 9 on a Windows 7 machine) this is what happens:
    The text that appears in the pop-up button then appears in the following "submitted by" text field and will not go away—it cannot be selected, deleted or otherwise modified.
    I have tested this form extensively on my Mac and have not had any issues. Any suggestions or ideas as to why this would be a problem when the same pdf is opened on a PC?
    Any help would be greatly appreciated!
    Trevor

  • Safari pop up that won't go away

    Ok so just like the title says I have a safari pop up that wont go away. I restored my iPhone and it still wont work. I saw a post describing this problem on the computer communities but I can't find anything to do with this on the iPhone community. The post I was talking about is here Popup on Safari that will not go awayunknown

    I found the answer so I will link the post with the answer in case anyone stumbles on this with the same question just received online-apple-issue.com safari alert on iphone  5s.  to fix it please call support for apple 1 866 580 8458 immediately

  • Safari copy url button doesn't work

    I just upgraded from an ipad2 to an iPad air 2. Before, if I wanted to copy and paste a url I'd use the copy button. Now,on the new iPad air 2, the copy button just wipes out whatever I've previously copied, and doesn't copy the url.

    You tap and hold down in the URL field until you get the option to select all. Then you choose the option to select all. An option to Copy appears and you select that and then you should be able to paste that URL into a text field.
    Safari copy url button doesn't work
    I Realize that you must know the steps but I am just double checking. If that is not working for you, and you are not having copy and paste issues elsewhere in other apps, I would try clearing Safari, force close it and then reset your iPad.
    Go to Settings>Safari>Clear History and Website Data
    Now force close Safari. In order to close apps, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Next, reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Safari pop up a news webpage to App games every time I trying to read.I have a iPhone 6 iOS 8.1..3.  Thanks for your help.

    Safari pop up a news webpage to App games ( Oz, some Jelly Candy and a Panda. Those 3 only! Sorry I'm not a game person) every time I trying to read.I have a iPhone 6 iOS 8.1.3. Any help, Thanks!

    Thanks for your response, I did it but doesn't work. I try to catch the web direction from those  pages but they gone faster. Any idea?

  • Vertical column pop-up button-"OPEN"-with left " " appears-bottom right corner Firefox screen-Independent of web-site visited-Am "secured" against virus-Have not touched button: "Danger, Will Robinson." Appreciate any help. Thnx. DanDeren

    Occasionally and sporadically - I cannot reproduce this issue - a small vertical column-ed pop-up button appears in the lower right corner of my (Firefox) browser screen. It is not clear what causes this - I thought perhaps that it had something to do with Google's new gmail format which I have, so far refused to adopt, although when it forces me to do so, I Accept and then re-configure back to the old look. I don't think the problem is with gmail, though since tonight I was accessing the New York Time subscription web-site. However, tonight - 31JAN2012 - this button popped up, stuck around for maybe 30 seconds and then went away. It is small - about a quarter inch wide; perhaps one-half to three quarters of an inch tall. It displays on the top of the button the "<" followed underneath by the word "OPEN" (displayed vertically). I know better than to push an OPEN button whose function is absolutely opaque to me - fool me once... My desktop has the latest version of Firefox - 9.0.1 and I just loaded the latest update. I am running Windows XP Version 5.1 (Build 2600.xpsp_sp3_gdr.111025-1629 : Service Pack 3). Further info re. operating system: Microsoft Windows XP Home Edition Service Pack 3 - that was probably pretty clear from the Version and Build info above. Hardware: ACER-42041E6643 - ACPI Multiprocessor PC - Chip/Processor: Intel Atom CPU 230 @ 1.60 GHz (2 of these). I can provide more system and configuration information, as necessary. As it is, I go to System Info and it will not let me copy all of the system info above - I had to copy it brute-force manually. I have managed tech support organizations in the past. The first question you ask the user is: "What changed?" or perhaps "What did you change?" Like every other user with an issue, my response is: Nothing of which I am aware. I certainly am not going to push this button - perhaps it toggles between something and something else - more than like so - or it opens "something" - I will not find out what since I refuse to push it. I am guessing this is some benign "feature" of which I am unaware. Any assistance with this will be greatly appreciated. Thanks and best, Dan Deren.

    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    Use a compressed image type like PNG or JPG to save the screenshot and make sure that you do not exceed the maximum file size (1 MB).

  • Issue with Safari's back-button, swipe, and scrolling

    After installing the recent security and iTunes update (12.0.1) I installed this morning, I've noticed that Safari's back-button, back mouse-swipe, and mouse scrolling will stop working on occasion. When this happens I can open a new tab or restart the browser and things are OK for a while. Safari's keyboard controls continue work when this happens. Mouse controls in other apps are fine.
    I'm running:
    - OS X 10.9.5 (13F34)
    - MacBook Pro, 13-inch, Early 2011
    Any ideas?

    The site you visited (with the trailer in it) uses a redirect script. When you hit the "Back" button, you are going back to the redirect page, which then redirects you back to the trailer, lol! What you want to do is to press and hold down the "Back" button, then go back two (sometimes more) pages and avoid the redirect.
    It's a common occurrence on many sites. It's not a Safari glitch. I agree it is annoying.

  • Reset pop up button

    Hi
    I have two pop up buttons that when"theMachine" and "theEnve" are selected it will after "info" is clicked display a text field with information in it, the pop up buttons have titles that I wish to have reset to their opening state, after the the "info" button is clicked.
    I cant locate much to do with pop up buttons especially when trying to reset them, is their a way to do this?
    on clicked theObject
    if name of theObject is "info" then
    tell window "main"
    set theMachine to name of current menu item of popup button "theMachine"
    set theEnve to name of current menu item of popup button "theEnve"
    (* Information Results *)
    if (theMachine is "1") and (theEnve is "A") then
    set content of text field "myDialogText" of window "myPanel" to "BLAH"
    end if
    end tell
    end if
    end clicked
    Cheers
    Budgie

    if you meant reset to the first item of the pop up buttons, then you can do:
    set current menu item of popup button "theMachine" to first menu item of popup button "theMachine"
    set current menu item of popup button "theEnve" to first menu item of popup button "theEnve"

  • Disabling Safari Pop-Up

    How can I disable the following Safari pop-up:
    "Are you sure you want to send this form again?"
    I am a seller at Amazon and have opened and closed Safari three times over the last 5 years because of that pop-up. When editing my listings, I need to back space three times each one is completed and this pop-up really slows things down. It does not happen at Mozilla or Internet Explorer but I need another site to work on a specific project. I really like Safari but not with this annoying feature.

    There is an extension called Safari AdBlock that may work for you.
    It's located in the Productivity category in Safari > Safari Extensions...
    Very hand as you are aware. you can toggle the extension on/off easily from Safari > Preferences - Extensions.

  • I click a box on a website and nothing happens. When I hover over the button "javascript:void(0); appears on the left"

    I click a box on a website and nothing happens. When I hover over the button "javascript:void(0); appears on the left"

    same issue

  • Safari displaying blurred buttons on MacBook Pro

    Safari is displaying buttons on web pages as blurred squares. For example, whilst typing in this comment box, the formatting option buttons are showing up blurred, as shown in the picture below. The same issue is also occurring on the Facebook 'log in' page. The problem stopped after a re-start but has since continued.

    Start up in Safe Mode.  http://support.apple.com/en-us/HT1564
    Reset PRAM.   http://support.apple.com/kb/PH18761
    If this doesn't help:
    Safari > Preferences > Extensions
    Turn those off and relaunch Safari to test .
    Turn those on one by one and test.

  • Pop-List button

    Hi,
    I am generating Forms application (iAS).
    I would like to change view of pop-list button from arrow to "...".
    I know that there is something Jinitiator.
    How can I do that ?
    regards,
    Cezary

    Set app.ui.lovButtons to false. Then add a button to the canvas right next to the item. Set iconic to Yes and the Icon Filename to the name of your .gif file that contains the icon that you want to display on the button. For example, if your filename is list.gif, you would set IconFilename to list.
    To deploy the icon file, there is some configuration that must be done on the middle tier. There is a white paper on OTN that explains how to do it: http://www.oracle.com/technology/products/forms/pdf/webicons.pdf.
    If you want to have the button only visible when navigating to the text item, you can use Pre-Text-Item and Post-Text-Item triggers on the text item to make the button visible/not visible.

  • I want to push message pop up button use keyboard

    Hi; 
    I have a problem. I want to controlled message pop up button use keyboard. Is it possible? 

    Thanks, that explanation helps. It does sound like you want to be able to press buttons on the message popup with your keyboard.
    The Message Popup step was created to provide simple, quick display and response functionality for use in test sequences, and has a limited feature set compared to writing a custom code module. The only built-in way to do this is with the feature I mentioned previously, which would make your buttons something like "Alt+A" "Alt+B" and so on. It sounds like this is probably not exactly what you want.
    I believe your best option for achieving this is to create a simple code module in a language of your choice (LabVIEW, .NET, etc) to display the dialog and listen for keyboard input. Once the user presses a key, the code module can return the desired value to TestStand. 
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

Maybe you are looking for

  • Frequent kernel panics since upgrade to 10.8.5

    Hi I bought myself a new iMAC recently and since the upgrade to 10.8.5 I've been getting a kernal panic almost every day.  The dealer took it back to run lots of diags and came back with 'no problem with the hardware' so I'm looking for something els

  • Organizer preview seems slow?  Is 2-3 seconds per picture normal?

    Hi, Wondering what normal render time is for a JPG in organizer when at maximum thumbnail size (i.e. 1 photo on the screen at a time). e.g. When browsing photos in organizer right now I find it takes about 2.5 to 3 seconds for an image to go from 'bl

  • Camera connection kit works not with iPad 2, but still with iPad 1

    Since I have my iPad 2 i can't import my photos by the kit in the iPad 2, but still works on iPad 1. I don't know why, because no error messages are displayed or something else. In both cases I used the same accessories (SD-Card) and the iPads are th

  • ITunes 10 is killing me.

    Before i had ever updated to itunes 10 everything was fine and dandy. Now that i have installed iTunes 10 iTunes never even wants to open up for me. If it does open up it freezes 3 seconds after it had been up. I've tried everything i could in the tr

  • Cannot create MOLAP dimension - already exists

    Hi, I am trying to deploy a dimension but OWB seems to think it still exists. I get the following error :- "Cannot create dimension STOCK_CODE.DIMENSION. AW dimension with logical name STOCK_CODE alredy exists in schema DW." If I try to drop the dime