I have this strange error - the page on the site will sometime show up as source (e.g. pure html) when the "back" button is pressed..
This is happening with Rails app..
Any ideas why that would be happening?
Thanks
it happens with Passenger. If I go to the page, then press back and then forward I get the source..
I am not sure what you mean by ajax sudo navigation.. there is a script which checks through ajax the contents of the controller (and depending on results renders the page), otherwise it is classic MVC.. model/show/ etc..
please let me know if I need to add some more info.. thanks!
Related
I have the following problem with one of my current projects.
I would like to achieve that when you click on a link which is on a secondarly page, it sends you to the home page but, not at the top of the homepage (by default), I would like that it sends you where a specific ID is.
At the moment I have the following URL in this special link but it doesn't work
link
I have tried different ways I saw in this community but I didn't have luck. At the moment when you click it send you to the homepage but at the top and my ID is almost at the end of the page
How can I fix it please?
Thanks
Kindly use below code on page load. make sure you call this once DOM is loaded. This will scroll the page to this anchor.
location.hash = "#contact-anchor";
I need to view all source HTML in plain text in one place. I need it from an already loaded page. CTRL+U (View Source) refreshes the page. The page I'm trying to view can only be accessed via proper form submit. What I really want is for CTRL+U to not refresh the page.
I need the HTML source of an already loaded page added to my clipboard.
I think none of the other answers really answer your question.
You want the exact response from the server, not the current DOM, and you want it with the exact request headers that was sent the first time.
To do so, open the Chrome Dev Tools and select the "Network" tab.
The very first request should be the page you requested. Click it and select the tab "Response" on the right side to get the exact response the server gave you.
Right click-> inspect element anywhere you want to see the html, it still show the code of all the page ans you can modify the value of html/css directly in it.
The only answer is the one Dor1000 provided himself in a comment:
dev tools, elements tab, right click html tag, copy, copy outer html.
He wants the current HTML (after javascript or any other modifications, not the original source HTML).
A weird thing has been happening in my ASP.NET website. There is an asp:HyperLink on the ASPX page whose NavigateURL is set to the page Portal.aspx. The page gets rendered correctly, the link gets rendered as <a href = 'Portal.aspx'...
The weird thing is that when in Firefox I click the link that is supposed to take me to the page Portal.aspx, I get redirected to another page (the website's error page). I checked everything as I suspected an exception was sending me off to that page and to my surprise, no server side code ever gets executed when the link is clicked.
I asked Fiddler what was going on, and it seems that when I click the link to Portal.aspx, Firefox is asking the server for Error.aspx.
Anyone knows why is Firefox behaving this way? Is caching responsible for any part of this? How do I tell Firefox to request Portal.aspx and not the wrong page?
EDIT: I know the page is there, and it works fine for some time. There is no error anywhere because no server-side code even gets executed. But if the session expires and that page displays an error once, from then on - according to Fiddler - Firefox won't even ask for Portal.aspx. Clicking the links sends a request with URL 'Error.aspx" to server. I am convinced this is a caching issue.
Here is the page in question: https://www.matejkadesign.com/pricing.php
When you click on the "what's this" icons, an exitable modal popup should fade in on the same page. It has been broken since 2 days ago (It does not pop up in any browser). Has there been some browser/coding upgrade done to disable my code? I checked with my Web-host, and they cannot help me.
If you view page source, you will find the code for my Modal boxes at the bottom, and you'll be able to see where they are linked to for activating them.
I would appreciate it if somebody could look into it. I'm half expecting people to say something like "but the modal boxes work for me, it must be just your computer." It would be great if that were the case, I have no way of knowing.
thanks.
According to the console, https://code.jquery.com/jquery-latest.pack.js returns 404. When the "what's this" is clicked, the Console shows the error $ is not defined, which also tells us that jQuery never loaded.The https version of the page currently has an incorrect security certificate, so if you use http://code.jquery.com/jquery-latest.pack.js, you'll be fine.
The problem is with the jquery web-site. I would just put these into your page:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>
Which come from google.
How I can get source code of iframe but to show all web site code who is in iframe when I click in my browser (right click/source code)...
Here is my code: http://jsfiddle.net/XWgnU/
UPDATE: What I'm need is to put URL in text field enter Submit and show the page with they source code below. Is it possible?
You can't run JavaScript on a third party page loaded in my browser, with my cookies, my ip address and anything else that site might use to authenticate me.