I understand that it is possible to hide the url in the browser status bar by using javascript, but with this method, the url can be seen when the source is viewed from the browser.
how to hide URL from downloadlink?
We are using PHP Laravel.
I would like to know how to create a link button so that the user does not see the url. I am assuming that this might need to be implemented at the server (controller) side not a view side.
I would like to know the easiest way.
There are basically three different ways to hide links in HTML.
The first way is to use the tag without the href attribute. This hides the link from the HTML reader, but the link will still be clickable in the browser.
The second way is to use the tag with the href attribute, but place the entire link inside a span tag.
The third way is to place the entire link inside a span tag, and then you can use CSS to hide that span tag.
Whichever way you choose to hide the link, your link will still be clickable. When the link is clicked, it will still open in the browser window. Hiding links is very easy in HTML.
Related
I'm doing a website that is a more actual menu than the actual one, and I'm just using iframes to organize the content.
When you click on an item of the menu, it has a link to the same webpage with a get parameter, where there is a switch option that read the param and print the correct iframe.
The problem is that when I go to some menu and this menu has different options, it is printed the first menu with some link and, when I clik on one of these links, I'm redirected to correct website but in a new window. Is it possible to be always in the same window?
I have just tried with or "_self" but it is not working. The server is the same for both websites but they are located on different folders, so I'm using absolute paths because is easier (My idea is to implement it and later improve step by step).
Thanks!
If you want to update what is inside an given iFrame, than the iFrame needs a name (be sure to use a unique name) and the link that's supposed to update your iFrame needs a target.
Here's an example:
<iframe src="demo_iframe.htm" name="iframe_a"></iframe>
<p>W3Schools.com</p>
If you want to update the parent page (the one, that has the iFrames in it), then use target="_parent" within the <a>-tag.
_self is the frame or window, that the link is called from.
I need to display content that was posted from the previous page within iframe. Is it possible?
The content will have HTML tags.
The reason why I need iframe, because it will also have reference to CSS. If I just echo it on page, then it will make problems with CSS style of the main webpage. The only sollution I have found is to use iframe.
Why not just correct your CSS?
FWIW, I don't think you are able to POST data to anything inside an iFrame, especially if you don't have control over the iFrame content.
Iframes link to a URL.
So if you can save the post data into a file on your server and then use ajax or refresh the page to inject the url to that file on the iframe, then you will be sorted.
I am trying to use Iframes and or PHP to hide a link that is dynamically created. The link is being created in php. But when I try to access that link from within an iframe it takes over the whole page. The site loads, but the idea is that if it was in an iframe the url could be hidden and the user could click multiple items with out having to enter all their form data in every time.
I've tried using the link as a header and using php commands like:
$remote = fopen( $URL, "r");fpassthru($remote);
where $URL was my link.
a sample of the link is:
http://fb-zc-0.cafe.zynga.com/current/iframe//mfs_sent.php?ids=2&tab_clicked=All&request_id=236973056431070&gid=3014&today=1&time=3&ref=gift_today&cafe_token=OAlF7gSlMbQxAtBhvnprTzNhIww8H7Aq2z9i3KJwGWmJzUQfxZ8b9/kFWMVqN62JUihQA06VtuuoKoxmosK6JIPKWTMl0oQecLb+0e0HSAk3S32f5BCI7xhYB9SflOnN&from_page=SUNRISE_BREAKFAST_1&kingdom=quest&phylum=baklava&uid=342&sendkey=8e4aa1a75594c47cc61aee301efff90e$$ccF(NUP,67jiH3QM7!nspE0W8d8KprzD5,Za77bp34G*S_ST)*ilx)F7Y)acC4xj971Kkswxx2OM3eij3z1h0M3eij3z1h0&mode=quest_asking&quest_key=SUNRISE_BREAKFAST_1&mfs_time=3&snood=1&ajax=true&limiter_channel=rsvp&limiter_type=build_a_carnival3+5
Any help would be appreciated.
If you have links outside of this iFrame and want them to load into that iFrame on the same page, you'll have to give it a name, then target the named iFrame within your link's href.
<iframe src="http://google.com" name="myframe" hieght="100" width="100"></iframe>
<br/>
Test.
However, if you're loading a page into your iFrame that's loading links with target="blank", then those will go to a new window; unless you don't have access to those pages, you won't be able to change the links (short of writing JS to dive into your iFrame, etc).
I want a link to load into an iframe when the user clicks it. I have tried the following code, but unfortunately that did not work. I want to do this without using Javasvript or JQuery. I have the jquery code that can do this task, but I want to do this in simple html. Moreover, I aslo want to get the ID of the element on which the user clicked before generating the frame.
Any help will be appreciated
Thanks
clickme
<iframe src="login.html" name="frame"></iframe>
You can "popup" into a new window/tab by using the target attribute of the <a> tag. However if you want a popup window inside the same browser window, you will need to use javascript.
If all you mean is "load into an iframe" then you just need to use the "target" attribute of the link. This will load the href into the iframe (though any "popping out" would have to be handled in js). The link should look like:
clickme
<iframe src="login.html" name="frame"></iframe>
Use a dom parser, and rebuild the HTML with the links as an iframes
or use some nasty str_replace calls to make anchors iFrames
$url=str_replace("<a ","<iframe ",$url);
$url=str_replace("</a> ","</iframe> ",$url);
I wouldn't do that tho. I would use js or jquery to rebuild them or create a lightbox with the iframe upon clicking the link. Good luck!
You cant get a popup in simple Html any way.Your idea of refering to another frame is good,but it will not popup .please read the Query http://www.codingforums.com/archive/index.php/t-45236.html
Here's the situation.
I have a site where clicking hyperlinks within a certain div makes a jQuery function get the content of a div from a separate page. Because of this, the URL don't change. I need it to change as well as writing an entry in history.
My pages are setup like this (not sure this is the smartest way of going though)
access.php (main logon)
new-user.php
forgot-pass.php
index.php
controlpanel.php
etcetc. Now, all of these pages are reachable on their own and are mainly identical and all contain a div called "container". When clicking links, the content from this div gets erased and the content from the coresponding div (container) gets loaded from the file of the URL (href). I'm terrible at explaining..
So basically, what I need is some javascript that picks up the href link address and just pastes it in the url bar at the same time as it creates an entry in history so the back and forth buttons work.
I plan on extending this in a while as well, translating query strings as well. But there are a few constant static pages I need to take care of first. Any help would be very appreciated! :)
You are not allowed to change the entire URL by JavaScript but you can use URL hashes. I recommend you the browser history plug-in. You can simply register a handler to react on URL changes and load your corresponding content via ajax.
Have you looked at the jquery address plugin? Look at the examples. Is this similar to what you want?
It's not possible with "normal urls" (we must wait for a new generation of browsers...)
But there is a "trick": playing with anchors.
A link like "same_page.php#anchor" does not reload the page, but act on both the history and the adress bar.
So, if instead of having url like "page.php?param=lorem", you could have "page.php#param=lorem", you have your solution :)