Navigating To A Bookmark Within An IFrame
Nov 2, 2005
I load an Iframe within html page contained within another page and from the hosting page I would like to scroll to a given bookmark within the page loaded within the iframe without causing it to reload. How do I do this? I have tried:
function navIContent(bm)
{
IContent.src=bm
return
}
called by :
onclick='navIContent("../content.htm#test")'
but it doesn't seem to work!
View 3 Replies
ADVERTISEMENT
Mar 14, 2011
We have an html page which brings in content dynmically using Ajax. So the page starts out with certain content, and when a particular link is clicked, the content is swapped out with new content. With this approach, the back button on the browser does not work, because the URL didn't actually change. How could a user bookmark the new page with the second set of content? Is this even possible?
View 2 Replies
View Related
Aug 25, 2010
if this is long and complicated. Maybe there is an easy way to do this, but I'm not figuring it out.
Sample html:
<div class="story">
<h4>
<p> (several)
<div class="pullquote">
<p> (several)
[Code]...
I want to hide the p and h4 in the stories, leave the pullquote and append a button to the pullquote that says "Read more". I can do this, so far.
Clicking the button will show all the p and h4 in the story, and also hide the button. I can find the parent div.story, but I can't seem to go back down the DOM to select all the p and h4 below.
View 2 Replies
View Related
Nov 9, 2001
I guess because IE once again has its own variations this works or Netscape isn't following the dom I don't know which but I was hoping this type of navigation was going to be dom compliant with the newest versions of Netscape
If you have a table with the id "bob" (I like dumb names sometimes) you should be able to navigate down the table via bob.firstChild.childNodes[1].innerHTML. This does not work in netscape but does work in IE. I find this troubling because of how much easier things would have been if it worked in both. I really just wish the browsers would become equal.
The dom specification is here (outdated I believe)
http://www.w3.org/TR/1999/CR-DOM-Lev...roduction.html
Thats the specification and how it supposedly works. I am going to keep playing and figure out if maybe Netscape 'changed' it. for an example try this Code:
View 8 Replies
View Related
Apr 24, 2006
I have a servlet which accepts a url as a parameter and does something with it. I need to pass the parameter via POST.
I want to write a bookmarklet which takes the URL of the current page and invokes the servlet with that URL via POST.
I tried to achieve this in many ways. But no success.
View 1 Replies
View Related
Nov 3, 2005
Yahoo! has launched a beta of it's new mapping application:
http://maps.yahoo.com/beta/
It's based in Flash, but it uses JavaScript. I'm curious about one
feature, though - when you pan about the map, the URL in the address
bar of your browser changes to match your current location. How have
they done this? I thought calling window.location.href = "etc"; would
reload the page, navigating away from the current URL. Yahoo! have
managed to do this without the page changing. This is a very useful
technique for DHTML/AJAX/Flash technology and I'd love to know how
they've done it.
View 3 Replies
View Related
Jun 19, 2006
I have a web application that has basic authentication turned on (IIS).
What I would like to accomplish is detect whether user is navigating
away from the site or simply going to the different page using
JavaScript. I am aware that it is easy to detect where you came from
(referrer), but I haven't been able to find a way to where you're going
to. I did my fair amount of research online, but I couldn't find a
solution for this.
However, my boss told me that he has seen a website that detects the
fact that you're navigating away from your site. Does anyone know
anything about this?
View 7 Replies
View Related
May 31, 2007
Is there a way in javascript to scroll to or otherwise change the position of the currently selected row in a table?
View 4 Replies
View Related
Dec 2, 2002
I have ran into some sites that must have an AUTO bookmark feature. After I visited it added a bookmark automatically. It only worked in IE 5.5 Do you know a script to do this if so where can I find a way to stop it.
View 2 Replies
View Related
Mar 21, 2011
I am using O'Reilly's book on building apps with HTML, CSS, and Javascript,It uses jQuery.Chapters 4 & 5 show us how to use a database. It really works well! I'm making small changes to fit my own mobile application. I've run into one problem: The page has <li>'s to link to anchors on the same page, like this:
<li class="arrow"><a href="#dates">About</a></li>
However, I want to link to another html page. I find I'm unable to do so. The following attempts don't work; that is, clicking on them will make the row change color, but won't change the page:
<li class="arrow"><a href="about.html">About</a></li>
<li class="arrow"><a href="/about.html">About</a></li>
<li class="arrow"><a href="www/about.html">About</a></li>
[code]....
View 12 Replies
View Related
Sep 23, 2010
I use the script below to adjust the size of the frame. It works nicely for me. The only problem is, the frame initially jumps to the bookmark, and then on the reload, jumps to the top of the page.
how to keep the frame at the bookmark in the web page, instead of jumping back up to the top??
<script>
<!--
function resize_iframe(){
if ( window.frames["MainWindow"].document.body.scrollHeight=0 )
[Code]....
View 1 Replies
View Related
Jun 14, 2006
At the top of www.cheatstomb.com there is a link to bookmark the page but it doesnt do anything when I press it. What I did wrong and how can I fix it?
View 2 Replies
View Related
Apr 24, 2007
I need a script to create a 'Bookmark this site' link. However I only found scripts that let you configure the URL that is bookmarked.
But I'd like to have one that just bookmarks the site on which the link is so I cna use the same script and link on different pages but the user could bookmark that exact page he is on.
View 2 Replies
View Related
Jul 23, 2005
I am developing a framed site. I'd like to utilize javascript "mousevoer" to change images that are used for navigating the site. Where to find something like that?
View 1 Replies
View Related
Aug 17, 2006
I have a question about using embedded Google Videos on my site. Does
anyone have tips for allowing user to switch between videos (5) on the
same page? The caveat is that only one would be showing at a time. I
imagine it would require javascript coding. If so, would you have any
examples?
View 3 Replies
View Related
Mar 24, 2011
I am checking if a form on a jQuery tab is changed, and if it has, the user should get a popup warning when they navigate away from the tab with the form or click any other link on the page for that matter. So I setup this code:
$('a').bind('click', function(event) {
if (formChanged == true) {
event.preventDefault()
[code]....
in the $(document).ready() function. I can see the code is executed, but the click on the link still comes through and the form is lost. I've tried .click() and .live('click') as well but that doesn't work either.
View 2 Replies
View Related
Jul 12, 2010
I am trying to display an alert message when the user is in the middle of editing and clicks accidentally on some other link.
I want to display this error message for certain link and not for others.
I thought of using 'window.onbeforeunload', parse the url to find the link that was clicked. However, when I try to use the string functions (split, substring, lastindexof, etc.) inside 'onbeforeunload', they do not work.
View 5 Replies
View Related
Jul 23, 2011
I want to have a combobox with bookmark options. After you select a value from this combobox you can bookmark it with a push button. This should popup a bookmark dialog from the browser bookmark dialog.
Lets say we have 3 options in the value's. Google, Yahoo, Bing When you select Google and you push Place bookmark you should get a browser bookmark dialog with a title "Google search site". The url would be just [URL]
I also want Yahoo with the url [URL] and the bookmark title Search at Yahoo! and Bing with the url [URL] and the title Search at Bing
View 4 Replies
View Related
May 9, 2006
I have a javascript function for creating an 'add bookmark' link on my pages. For firefox it uses window.sidebar.addPanel to add the bookmark
function addBookmark(title, url) {
if (window.sidebar) { // firefox
window.sidebar.addPanel(title, url,"");
[code]....
View 4 Replies
View Related
May 19, 2011
I'm a total novice with scripts but I've managed to get halfway with something. I want to create a bookmark that grabs the current url and adds the date to the url in the format: [URL] I've got so far: javascript:location.href=(location.href)+'/nocache='; But I can't work out how to add the date to the end, is it possible?
View 1 Replies
View Related
Mar 30, 2001
Does anyone know how sites (e.g. Sitepoint) show up with a smal iconn next to their name inmy Favourites menu (in IE)?
I'd like to do that for my site but am unsure how to go about it.
View 3 Replies
View Related
Aug 13, 2005
I want to add a link to my site's homepage where viewers can click on a link to automatically "add to favorites" or "bookmark" the page.
Does anyone know anything about this?
View 12 Replies
View Related
Mar 21, 2006
First, with AJAX I will get a remote web page into a string. Thus, a
string will contain HTML tags and such. I will need to extract text
from one <span> for which I know the ID the inner text.
Is it possible to access in this way "string variable".getElementByID()
somehow?
PS: Just thinking of a proper/efficient way to extract the information
from such a string. I am open to other ideas. I could load that page in
IFRAME and get my access to DOM that way, yet probably it is not an
eligant solution.
View 3 Replies
View Related
Oct 5, 2010
I have designed a data entry form in HTML. In all I have upwards of 16 data entry elements (varying from edit boxes, '<input>', drop down controls, check-boxes, etc)
I know by setting the tabIndex of every data entry element user can navigate easily with the Tab key. But, even if it is non-standard, can the navigation be done with the 'Enter' key instead (it is the users, non functional requirement)
View 1 Replies
View Related
Jun 1, 2009
I have a site where I'm using a home-grown social bookmarking tool. The user has an option to "Bookmark this page" to their browser.
My code works, but the problem is that when I dynamically grab the document.title, the browser (both IE and FF) tries to resolve any spaces or special characters so that when the favorite is stored in the browser, the bookmark reads:
"This%20Site%20Bookmark"
instead of:
"This Site Bookmark"
I feel like there must be a simple function to resolve spaces, but I'm coming up blank, no pun intended...:)
View 3 Replies
View Related
Sep 22, 2009
The code is just a blue table with a bookmark option. When I remove the javascript code for the bookmark the blue table disappears.
<html>
<body>
<table width="95%" align="center" cellpadding="0" cellspacing="0" bgcolor="#3399ff">
<tr bgcolor="#3399ff">
[Code]....
This is the code exactly how it was sent. I am trying to remove the bookmark option but keep the table the way it is.
View 5 Replies
View Related