User Controlled Web Browser Reload

This was just a random idea but, is there a way to have a user define how many times a page should reload in a web browser?
Like have a box and a button and the user enters a number into the box, and after the button is pressed the number tells the application to reload that many times?

I appreciate all of your help with this.
I looked at the example application and kinda see parts of it that are the timer. Is the timer the part that keeps telling to bar and fake file numbers to advance?
I see I need:
on startProcessTimer_(someArgument) -- set up and start a repeating timer
if myTimer is missing value or not myTimer's isValid() then -- check if already running
set myTimer to NSTimer's timerWithTimeIntervaltarget_selector_userInfo_repeats(2, me, "process:", "process timer fired...", true) -- create
NSRunLoop's mainRunLoop()'s addTimerforMode(myTimer, thisApp's NSDefaultRunLoopMode) -- add
end if
end startProcessTimer_
Now being new to xcode, I am not sure what I need to change in order to make it reload a page a certain number of times. Better yet, I do not know how to tell the page to reload in a script.
Im sure it is something simple because all I need is for someone to enter a number in a text box and hit a button and then run the timer script with the number they typed.
Again I appreciate the help.

Similar Messages

  • Does web browser reload a page unnecessarily?

    This is an apparent feature of all Nokia web browsers I have so far used (in 6630, N80, N95, and N97): when I back off from a web page to any of the previous ones, the phone seems to reload the page again from the Internet, not just display it from the memory - at least it is apparent by the time it uses to the redisplay.
    There can be a good reason for reloading, of course. Some pages may be so volatile that the contents may have changed. Most of the pages, even news sites, do not change _that_ frequently, however.
    However, reloading from the Internet drains the phone battery. It also causes needless extra cost if you are roaming.

    You can do it in script:
    <script>
    window.setTimeout("location.href = location.href", 5000);
    </script>
    You can also use a header in the page:
    <%
    response.setIntHeader("Refresh", 30)
    %>
    or to do the same in HTML
    <META HTTP-EQUIV="Refresh" CONTENT="5; URL=http://host/path">
    Cheers,
    evnafets

  • Linking to a website and launching default web browser

    I'm nearly finished with my most ambitious game ever. I would like to link to my website where I have several of my other games. I want the button to launch the users default web browser and automatically go to my website. Any help will be greatly appreciated!
    Jeff
    P.S. If you'd like to check out some of my Director work, my website is www.sokovideo.com

    Thanks a lot!
    I used...
    on mouseUp
       goToNetPage "www.website.com", "_new"
    end
    Jeff

  • Web browser launched from B1

    hey All,
    I have done a nice bit of research on the topic of opening a web browser via the UI API in the B1 client. I cannot seem to find any examples or working code to do this. Yes there are samples of active x controls but none of them ever seem to work.
    Does anyone have some sample code or logic that I could use to launch an windows form with an active x control web browser from the B1 client?
    Any help is appreciated
    Curtis

    Hi Curtis,
    Does the following article help you at all?
    http://support.microsoft.com/default.aspx?scid=kb;en-us;Q305703
    Strictly speaking, it doesn't open a webpage in a SBO form or a windows form, it opens your default browser.
    Kind Regards,
    Owen

  • Web browser - save password prompt

    Hi,
    is it possible to disallow prompt to save name and password after login into sap portal?
    I mean globally in netweaver administrator or somewhere else (not in user's web browser).
    Regards,
    Martin

    Hello Martin,
    Per my scan, such setting is currently not available at server level  ( eg using a NWA, Config Tool, VA ).
    This has to be turned off at the client system ( eg browser ).
    ~ Dhanz

  • More than 1 user access control of vi via web browser

    Hi all,
    Currently I've a vi that need to share it with other PCs using web browser (eg: IE) I've tried using Web Publishing Tools and I noticed that only 1 pc at a time can grant access control of the vi. May I know is there any methods or other 3rd party software that could possibly able to give multiple PCs to control one vi simultaneously over the net using web browser? THANKS!!!...

    Hello,
    I’m not so sure that using VNC or remote desktop to have
    multiple users control LabVIEW is really in-line with our license policy.  I suppose if you built your program into an executable
    and had the VNC users access the exe program they wouldn't really be using the development
    environment so I suppose this would be ok…
    I found a tutorial which might help.  Check out: http://zone.ni.com/devzone/conceptd.nsf/webmain/bc79065d8b2e0d0886256c590072a454.
    Hopefully this will help out for now!  Let us know if you have questions-
    Travis M
    LabVIEW R&D
    National Instruments

  • RegisterHotKey(....) to disable hotkeys such as ALT+F4 is not working in C# Web Browser control

    Disabling hot keys like "ALT+F4" using register RegisterHotKey(..) function and wndproc(..) function in c# windows application is not working as expected in few cases. Below is the description.
    I am using C# Web Browser control in windows application to display Web Pages. We are disabling hot keys like ALT+F4 by calling the method RegisterHotKey(..) and capture the hot key message in Wndproc(..) function. Initially This is working as expected
    normally.
    But as part of new requirement, we need to set the "title of Web browser page" to its parent class(Win form) text property. when we are assigning text property of winform using below code, the hot keys could not be disabled.
    this.Text = webBrowserCustom.DocumentTitle; //this keyword refers to WinForm which loads web browser control
    If webBrowserCustom.DocumentTitle is empty then this.text is set to Empty string. In such case the hot keys are not getting disabled.
    I am not sure what is the relation between text property of winform and hot keys disabling.
    Could you please let us know why hot keys are not getting disabled when we setting empty string to Winform(which is loading Web Browser control) text property.?

    Hi,
    How did you use RegisterHotKey and winproc function in your project, could you please post the code here so that we can reproduce the problem firstly?
    If you just want to prevent the user from closing the form, you could register Form_Closing event handler, and cancel the closing behavior by the user. 
    private void Form1_FormClosing(object sender, FormClosingEventArgs e)
    e.Cancel = (e.CloseReason == CloseReason.UserClosing);
    private void btnCloseForm_Click(object sender, EventArgs e)
    this.FormClosing -= new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
    this.Close();
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Getting out of memory exception while loading images in web browser control one by one in windows phone 8 silverlight application?

    Hi, 
    I am developing a windows phone 8 silver light application . 
    In my app I am displaying images in web browser control one by one , those images are the web links , the problem is after displaying 2 to 3 images I am getting out of memory exception .
    I searched for this exception how to over come , everybody are saying memory profiling ,..etc but really I dont know how to release the memory and how to clear the memory .
    In some sites they are adding this
    <FunctionalCapabilities>
    <FunctionalCapability Name="ID_FUNCCAP_EXTEND_MEM"/>
    </FunctionalCapabilities>
    by doing this am I free from out of memory exception?
    Any help ,
    Thanks...
    Suresh.M

    string HtmlString = "<!DOCTYPE html><html><head><meta name='viewport' content='width=device-width,initial-scale=1.0, user-scalable=yes' /></head>";
    HtmlString = HtmlString + "<body>";
    HtmlString = HtmlString + "<img src=" + source +" />";
    HtmlString = HtmlString + "</body></html>";
    innerpagebrowser.NavigateToString(HtmlString);
    that image source is the web link for example www.sss.com/files/xxx/123.jpg .
    Note this link is not real this is sample and image is of size 2071X3097
    Suresh.M

  • How I make the Web Browser Control to display a PDF in Windows 8

    I have an application that run ok in previous version of windows,  Where I can load a PDF file and the web browser control automatically use the Reader OCX of Adobe,, After Install windows 8 and download the reader for windows 8 still get and (X) where the document should be displayed.  I use the following command in my program to force the windows 8 to use the same web browser (10) in my web browser control.
    WebBrowser1.Navigate(DocumentName,"",Nothing,"User-Agent:Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)")
    But still get an  (X). IF I use the URL that is in the property of the (X) and paste in my regular IE10, it open the PDF file.

    Adobe Reader Touch is a Windows Store app and does not install a browser add-on/plug-in for "in-browser" PDF viewing.
    You can either
    Install Adobe Reader XI (desktop app) which installs browser plug-ins for Microsoft IE and Mozilla Firefox
    Use Google Chrome, which has a built-in PDF viewer (enabled by default)

  • Is there a web browser control in java?

    Is there a web browser control in java?

    I'm also looking to build a java-based web controller.
    I know that using Microsoft's MFC, you can build such browser control.
    The interface in C++ that they use (for web control) is IWebBrowser2
    Having a web control embedded in your application, it enables you to:
    1- start a web browser (Netscape or IE)
    2- listen to user actions on the browser (i.e. user types in a URl and hits enter. Upon doing this, a call back method will be invoked on your application , thus allowing you to write code on what exactly you want to do when you detect that a new URL was entered in the browser. For example you may send this URL through a socket connect to another user application for the purpose of sharing the web browsing activities)
    I wonder if you can achieve this in java
    Thank you very much to whom knows and can help me here on this one..

  • How to view and control a VI remotely from a web browser

    Hello,
    I want to see and control a vi using a web browser.
    I followed the steps recommended in help and I can see and control the front panel of my vi.
    So far everything is OK.
    First problem:
    A button activates a simple window display a message (One Dialog button). The dialog box opens on the server computer but can not be seen in brouser and therefore can not be closed remotely.
    The second problem:
    Another button activates another window (vi) loaded dynamically. The VI is reentrant and is open with option 0xC0 ("Enable simultaneous calls on reentrant VIs" and "Prepare to call and forget"). By activating the button, it opens multiple instances of the VI properly and runs on the server computer, but their are not visible to the client computer.
    I created, after the same algorithm, corresponding HTML file for the dynamically loaded VI and it is saved in the same place with the main program HTML file.
    What to do as the client computer can operate main VI and adjacent windows from the browser?
    Thanks,
    Cristian
    Solved!
    Go to Solution.

    Another option would be to use something like WebSockets and have your LabVIEW application communicate with a web-page you've designed/developed with Javascript. Then you can use things like floating windows/dialogues with jQuery. It's a lot of work though as you'll need to define your websockets API for talking to your application and then develop the web-page in HTML/CSS/JavaScript for your user interface.
    Unfortunately, even browsers are moving away from pop-up windows (chrome and various addons tend to block popups and they don't play nice with mobile devices). You can have semi-dialogue-like pop-ups though with modal dialogues: https://jqueryui.com/dialog/#modal-message Note though that they are contained within the browser window.
    My advice would be to think about creating a custom UI in LabVIEW that works with a single pane / panel (you can use tab controls!) and use that with remote front panels. Then decide if you want to invest the time/effort in a WebSockets/Web Services approach with your own browser-based UI. Note as well that remote front panels don't work in Chrome properly any more.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • Why does refreshing my web browser page increment the number of users connected to my Remote Front Panel?

    Hi,
    I'm using LabVIEW 2010 and a cRIO-9118 to broadcast my RT Front Panel on the web with a Web Server.
    I successfully configured the web server to be able to control my Front Panel remotely. However, I have an issue with "Refreshing" the browser.
    When I press "Enter" to search the adress of the web server, the number of users connected seems to increment by one and then tells me that "Too many users are connected to the front panel". Once this has been done, the only way to "unlock" the web server is to reboot the cRIO.
    Is there any solution to avoid this behavior?
    My current web browser is Internet Explorer 8.
    Thank you
    Mathieu Veillette, Ing Jr.
    Solved!
    Go to Solution.

    Hi Mathieu,
    Unfortunately, there currently isn't a very good solution for the problem you are facing. It seems like this is a known issue that R&D is working on. It so happens that in addition to simply refreshing, this issue also occurs if you try to access the Remote Front Panel using a second tab in a tabbed browser. One "fix" would be to invest in a higher count Remote Front Panel license. If that's not feasible, then the current recommendation would be to avoid connecting to the Remote Front Panel from a second tab or refreshing the view in your browser. Once you exceed the number of connections to the Remote Front Panel, you will have to restart the RT controller -- there isn't a way to change this default behavior. You can track any fixes by R&D by keeping note of the CAR (corrective action request) ID for this issue, which is #202702.
    Sanjay C.
    Embedded Software Product Manager| National Instruments

  • Running web browser as separate user?

    I'm wondering if anyone does this -- in light of how many ways there are for a web browser to accidentally let something in (even when you're careful about controlling scripts and such), I've been considering it.
    The way I'm thinking of doing it is something like:
    chmod o+x ~/
    chgrp browseruser ~/.Xauthority
    chmod g+r ~/.Xauthority
    XAUTHORITY=/home/me/.Xauthority sudo -E -u browseruser opera
    ...I vaguely remember reading somewhere that there are some security implications to granting another user access to one's .Xauthority file and X session, but I don't remember what they are. Two things I can think of offhand is that the web browser would still have access to my user's clipboard and primary selection buffer, but the security risk from that is minimal.
    At any rate, even if some malicious script is robust enough to know how to attack Opera on the latest Arch Linux, I really doubt it'd be so sophisticated that it would know that it's being run as another user and break across to my account.
    Thoughts on this? I've never actually seen an exploit jump out of Opera, so I'm mostly just being paranoid for fun here.
    ~Felix.

    litemotiv wrote:I think most modern browsers sandbox sessions these days unless you explicitly override it, so the security you would potentially gain would be minimal..
    I'm also concerned about auto-handling of downloaded files, though. In the past, I've had a couple scares because non-sane defaults had changed after a package upgrade -- for instance, if you were to do a fresh install of WINE, the various MIME desktop handers, and xdg-open (the latter two of which are required by so many things it's pretty much a given that they'll be installed), .exe files would get associated with WINE automatically. Then you're one accidental click away from running Windows malware if a site manages to pop up a download dialogue for you
    (Especially because Linux browsers don't recognize .exe as a threat -- they don't have the extra layers of "this is an executable file!" that Firefox does on Windows, because .exe *isn't* an executable file -- it's a data file type associated with "some program". Trouble is, "some program" happens to be WINE.)
    I keep on top of crap like that (and it's actually quite difficult to prevent WINE from re-associating .exe's across pacman -Syu), but I frankly don't trust well-meaning upstream people not to find some other new and exciting way to give us one-click malware capability. For instance, even .desktop files are a major hazard, because they don't require chmod +x.
    WINE is just one example -- xdg-open is a total crapshoot, because it doesn't follow associations you've set up in other environments (e.g. File Associations under konqueror's settings). Since I'm not using a DE, I don't really know what xdg-open is going to choose to open something with (it picks Firefox perplexingly often, though -- PDF? ignore the MIME database; open it in FIrefox! .DOC? ignore the MIME database; open it in Firefox! etc.).
    And xdg-open is just one example, too -- like I said, I don't trust the well-meaning upstreamers who invented that not to invent something else in the future, so disabling xdg-open is again only a piecemeal solution.

  • User Authentication for subfolder not working in Web Browser

    We are using Oracle Application Server 10.1.2.3 and Database Server 10.2.0.5 for our application.
    One of the functionalities of the Application is to send emails with attachments.
    The logic is that the Application would generate the attachment file on the Application Server.
    Then a database package uses Oracle's utl_http package/procedures(more specifically utl_http.request_pieces where the single argument is a URL) to pick up the file from the Application Server via URL, attach the file and send the email.
    Exchange and Relay Server is also set in the Application.
    The problem is that the folder containing the folder which stores the attachments is having user authentication set.
    Example : The main folder is /apps/interface, this folder requires a valid user when it is accessed via URL on a web browser.
    Alias created in httpd.conf
    Alias /int-dir/ "/apps/interface/"
    The folder /apps/interface/email/ is the folder where the attachment files are generated and stored.
    Application Server : 10.12.213.21
    Database Server : 10.12.213.22
    Email Server : 10.12.213.44
    Configuration as per httpd.conf
    Alias /int-dir/ "/apps/interface/"
    <Location /int-dir/>
    AuthName "Interface folder"
    AuthType Basic
    AuthUserFile "/u01/app/oracle/as10g/oasmid/Apache/Apache/conf/.htpasswd"
    require user scott
    </Location>
    <Location /int-dir/email>
    Options Indexes Multiviews IncludesNoExec
         Order deny,allow
         Deny from all
         Allow from 10.12.213.21
         Allow from 10.12.213.22
         Allow from 10.12.213.44
    </Location>
    Using the above configuration the Application is able to attach the files and send the email, however, when we access the following URL :
    http://10.12.213.21:7778/int-dir/ - it prompts for user authentication
    However if we use the following URL :
    http://10.12.213.21:7778/int-dir/email/ - it does not prompt for user authentication, and all the files in the folder are displayed in the browser.
    I have tried so many things including AllowOverride, .htaccess, but i am not able to get user authentication for the email folder.
    Please help me if you can.
    Thanking you in advance,
    GLad to give any more information that i can.
    dxbrocky

    Thanks for your response.  I fixed the problem by selecting "full site" or "full website" at bottom of the web page.  After making this selection the zoom function returned.  Thanks again for your interest.

  • Visual Studio 2013. Viewing a PDF file via the Web Browser control in Windows 8.1

    I am writing a Windows Forms application in which I need to view PDF files via the Web Browser control. When the control is given the Navigate() command, Windows takes over and asks which program I want to open the file with. All was fine with VS 2010 and
    XP. I have un-installed "PDF Complete", which was the default PDF viewer, but I now get asked for an alternative.
    Thanks in advance.
    Mike Saunders

    Hi Mike,
    It seems that we could use Internet Explorer to open a local .PDF file if it has the Adobe Reader. I doubt that the web control would be related to it. Like the MVP's suggset in the following thread, maybe it would be related
    to certain plug-in tools in your side like the adober reader.
    Reference:
    https://social.msdn.microsoft.com/Forums/en-US/a717117e-41ae-4775-9c28-d5a1042b396e/pdf-is-not-opening-in-web-browser-control-in-vbnet?forum=vbgeneral
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Call a form by using Report Builder in 6i

    Dear All; How can I call the form from report builder in 6i Report and form?? For example: in report show customer total price: 2000 when I will click on this entry it will show me the breakup of this amount in form??? how can I do this plz help me.

  • Where are Excel Actions in Automator?

    Running Automator 2.1 and Microsoft Office 2008, but can't find a single Office action in Automator. I've seen several articles referring to beefed-up Automator support in Office '08, but a search for "Microsoft" in Automator returns nothing. Can any

  • Airtunes remote speaker names

    I recently replaced an airport express, and added another, to play iTunes from remote amplifiers-speakers in other rooms. Problem: With regard to the "Choose which speakers to use" box in the lower right corner of the iTunes. 1. I cannot remove old a

  • 4520s Won't Open 3TB Seagate External Hard Drive

    I think I have a Hardware Issue:  I have a HP Probook 4520s laptop running windows 7 Prof. 32Bit and a Seagate 3TB external hard drive. When I plug in the Seagate, my laptop auto detects it and it shows up in device manager under disk drives named "S

  • Match between two strings of which one may occur often in python

    I get a large swab of output from pacman -Qi. This output is piped using subprocess and converted to a string using str.decode. This all works. But then I would like to be able to cut a a block related to one package out of that large swap of output,