How to create a link to web page? - ruby-on-rails

I would like to create a link to http://localhost:3000 so that when clicked,
Firefox will be opened on that page. How should I do this ?

You create this link as with any other:
Link to localhost
Of course this links to the localhost of whoever accesses the page; so the result of my clicking the link is a very different location/event than if you click the link (assuming we're not using the same computer, obviously).
If we're talking about a desktop shortcut (and I'm assuming Windows XP, here):
Right click your desktop and go to New -> Shortcut.
In the program location, enter the location of Firefox (something like C:\Program Files\Mozilla Firefox\firefox.exe)
Once the shortcut is on your desktop, right click it and go to properties.
In the "Target:" field, append links with spaces between each:
Link to quoted answer.

Related

Docker Desktop - Set "Open in Browser" default page

When you click on the "Open In Browser" button, the site opened is localhost:port.
Is there any way to change this to open a specific page? (like localhost:port/swagger/index.html )
I'm creating the images using docker-compose in VS 2019 and have the default page set to swagger, and upon compiling it opens, but when clicking from Docker Desktop it doesn't
VS Code Docker Plugin has the same feature and I assume it would mirror the functionally.
It is implemented in this commit however the URL never sets a page only a port so it looks like it is not possible.
const url = `${protocol}://${host}:${mappedPort.HostPort}`;

Edge developer window automatically pops up

I am doing some web development using Blazor Wasm framework.
I use Edge for debugging. For some reason the browser automatically pops up the following dev page, meanwhile the startup page is in loading status for 20-30 seconds.
Did you experience anything like this or can you suggest anything for fix?
Perhaps when you choose a browser to debugger the Application, you are adding the arguments to open the devtools.
For example, I'm using visual studio 2019, click the down arrow to the right of "IIS Express", and select the "Browse With..." option. The "Browse With" dialog box will open. Click the "Add" button.
Then, in the Program field, enter the path to Microsoft Edge. In the Arguments field, enter the command line switch to open devtools, --auto-open-devtools-for-tabs. In the Friendly Name field, enter something descriptive, for example, Edge Bate w/ DevTools.
After that, when we select this option to browse the website, it will open the website with devtools, like this:
So, check your Visual Studio, and try to re-add the browser without arguments.

URL Redirection Issue in DNN

In my local environment of a particular site, when i click on a particular link ,it redirects to the same page but in the url it shows that the page has been visited.Again when i click on the link, it will direct me to that page. Any reason as to why this happens and what could be the possible solution.
For example: My sites name is abc.com. It has pages like help, contact etc. When i am on my homepage and click on help it redirects me back to my home page but in my browser the URL is shown as abc.com/help.
When i click on help again , it redirects me to the help page(URL in browser is abc/help/Help) on the second click.
This can happen if the cache or system index has been corrupted. The best solution is to typically stop & start the application and see if it comes back.
If it is still an issue and you are on an older version of DNN, make sure that the PortalAlias table doesn't have a trailing / on your portal alias.
If this isn't the case, it is possible that a custom URL impacted this, but doubtful.

Rails, iframe login doesn't work IE9

I am using Rails 2.3.5
What I am trying to do is, by using iframe, I am embedding another website's log in screen into my own website.
Problem is starting when I try to "log in" the website inside the iframe. It is working perfectly fine in Chrome and Mozilla bu not in IE (what a surprise).
To be clear: I am able to see the website inside the iframe only thing that I couldn't do is logging in.
Possible problem: I made an extensive research and I learned because the IE doesn't remember my session (doesn't set cookies) I am not able to log in the site inside the iframe.
p.s : using divs probably won't work for me because if I use div and then log in (hit submit button of that website) then I will end up the website inside my div (inside my iframe right now). I need to stay in my own website.
I am going to band my head against the wall, so waiting for you comments.
(please comment if you need to see some code source or sth. else)
Thanks.
That's worked for me:
"Internet Explorer > Settings > Internet Options > Privacy > Sites" and then I added the name of the website inside my iframe, done.

opening default browser with delphi at specific position

I want to open a web page at default browser at a specific position and also open another webpages at that one, not new task of that browser. maybe user opens new task of that browser but by clicking a button in my delphi program the selected web page have to open at first one. is that possible? my company wants me to program such thing BUT I do not know how to do. I really appricate any help. thanks.
There are instructions here to open the default browser, but you may even be able to "run" a url, as you can from the Windows run command. You then need to retain the handle of that process so that you can do something with it.
To open a web page at a particular point you would ideally use a named anchor in the page, ie, the bit after a hash: http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_a_name If you don't have control of the page and there are no named anchors you could try scrolling: How to scroll the scrollbar in external application via WinAPI?

Resources