Switch Tabs Without Page Going Back To Top?
Oct 4, 2010i am trying to switch tabs without page going back to top.
i am using this script.
[URL]
but i just can't stop it from the page going back to the top when you click a tab.
i am trying to switch tabs without page going back to top.
i am using this script.
[URL]
but i just can't stop it from the page going back to the top when you click a tab.
I have used this code for UI tabs.
[URL]
I tried to get back the last visited tabs after page refresh using cookies. But I failed to set cookies here.
Ages ago I created a styleswitch (from the Sitepoint CSS Anthology)to get a printable page and it worked fine on all the pages I uploaded. Now, I find that when I go to "Print this page" on the original page layout (Imprimir esta p�gina), it switches, but won't switch back. Clicking the "Print" (Imprimir) link works fine, but click the "Back" (Volver) link and nothing happens.
I don't know if this has to do with the cookies set by the Javascript, but not being much good at Javascript, I haven't been able to do much about it. I've cleared the cache of cookies, but the print page still shows.
I'm having a hard time trying to find out why the following lines don't
work in Firefox and Netscape. The idea is to change the colour of a
table row at onmouseover, and then put it back to the <body>'s original
background-image at onmouseout.
<html>
<head>
<script language="javascript">
function omo(it)
{ it.bgColor='#FFFFCC' }
function omout(it)
{ it.bgColor='transparent' }
</script>
</head>
<body background="http://www.google.com/images/hp0.gif">
<table border="1">
<tr onmouseover="omo(this)"
onmouseout="omout(this)">
<td class="c1">sometext</td>
<td class="c2">moretext</td>
</tr>
</table>
</body>
</html>
Obviously, the actual javascript works fine in all browsers. It's only
the assignment of
it.bgColor='transparent'
that results in a blue background in NS/FF. In IE6 it works fine.
I have nested tabs in jquery tabs which are pretty simple to do if we want static jquery tabsbut what if we want nested tabs that the remote page should decide what would be the tabs.or in other words i want nested tabs in a remote page (or ajaxified) For example i m calling this page(remote page) through tabs
<div id="container-2">
<ul>
<li><a href="#fragment-1a"><span>Section 1a</span></a></li>
[code]....
Has anyone been able to get back button history to work with UI Tabs.
or any way to make the back button work with previous visited tabs.
I tried using the history plug but im not sure how to make it work with ajax created tabs.
I'm using this to change some tabs around. Is there a way to add hashes to the URL too or some way that i can enable back/forward buttons functions and link to a particular tab?
$(document).ready(function(){
$(".buttons").click(function () {
if ($(this).hasClass("current_tab_button")){ //is it the tab that's already displayed
[Code]....
I am trying to write a script that uses the IF statement to see wether or not a user clicked the back button to come to a page, and then if it's true to not let the page load and kick them back X number of pages (say 4) This is what I have so far:
<script language="JavaScript"><!--
if javascript:window.history.back == 1
{
javascript:window.history.back(4);
return false;
}
//--></script>
I'm trying to get the pic to change when the mouse rolls over the button. I used this template of code and it works:
Code:
<A HREF=""
onMouseOver="document.pic1.src='menu1on.gif'"
onMouseOut="document.pic1.src='menu1off.gif'">
<IMG SRC="menu1off.gif" BORDER=0 NAME="pic1">
</a>
The problem occurs when I attempt to change a *second button* to have two buttons change on the same page. Here is how the code for two buttons looks side by side while it works:
Code:
<a href="development.html">
<img height="20" src="hXXp:\mywebsite.com/SIDE4H.png" style="border-width: 0px; margin-top: 2px; margin-bottom: 2px" width="185" /></a><br />
<a href="exhibitions.html">
[Code]...
im trying to have two links at the top of a page one is FEED and the other is INFO when the page opens it should be on feed, and if i click info it switches to info and the feed button becomes available to click again, at this time hte page content should switch as well.
View 6 Replies View RelatedHow can I set up a timer and switch to a next page also using same onclick function?
I mean I want my timer to be started as soon as submit button is clicked and simultaneously I must proceed to next page also as I have clicked on submit button.
How can I do this?
Here is my situation: <input type="button" value="Submit" onClick="main(this.form)" style="font-size:30px">
I want to add timer function also along with main(this.form),how can I do this?
I have several switch menus that are VITAL to my website's navigation. They all worked very well when I tested the pages in all browsers. However, I finally FTPed my site to the internet, now when you click a link from a switch menu, instead of staying opened due to the onLoad function in the body, they do not appear.
Strangely, the only way to get my switch menus to show is to refresh the page.
I'm using a JQuery function to slide a div into and out of visibility, but every time I toggle, the browser resets my view to the top of the web page..What I want to happen is when you click to reveal the div, the page scrolls down and the div content is in full view. When I click again to re-hide the div, I want the page to scroll back up smoothly instead of just reverting to the top of the whole page...The page url is: http:[url]....Here's my code:
Code:
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery(".content").hide();[code]......
Can JQuery toggle be use to switch divs on page load instead of having to click a button to start the action? What would I have to write in the header to make this happen if this is possible?
View 2 Replies View RelatedI'm having issues with jquery and the tabs I'm using. My tabs work but... I want some more functions and that seems to be a big problem for a Javascript and jquery newby.
My HTML:
Code:
<ul class="tabs">
<li>Tab1</li>
<li>Tab2</li>
[Code]....
I really don't know if this is correct but it works! What doesn't work is the active class. If you use one of the buttons in the first tab you go to the right tab but the tab itself has no class called active and that ruins the style.
2)
I also have one other question: lets say that all the above is my second page and I have my frontpage in which I also have buttons. I want somebody to use the button and end up in the third tab of page 2. My link is something like
Code:
page2.html#tab3
I read that using this should lead you the third tab but it's not working for me. You go to the first tab of page 2 instead.
I've been reading a LOT! Jquery for dummies, I googled, read the forum and other forums. I posted on a Dutch forum but no answer. I've added a lot of different code but it doesn't work.
I am trying to get the back button or just a go back to work with an Ajax div? here's a minimal ajax enabled bldd.nl/stackoverflow/pagination/indexMinAjax.php but i want it to be ajax enable with the back button and for this i am trying BBQ
(benalman.com/code/projects/jquery-bbq/)
bldd.nl/stackoverflow/pagination/indexBBQAjax2.php
bldd.nl/stackoverflow/pagination/indexBBQAjax3.php
But i can't get back to a resulting page after filters have been selected?
I have several boxes on one page with two tabs. But I have to copy the code for each tabbed box and change the id #showhidebox1 when I use the code below. I think there is a more simple way to do this.
$(document).ready(function() {
$(function () {
var tabContainers = $('#showhidebox1 > div');
[code]....
i have been setting up 3 rows of tabs on one page. it works fine in terms of each panel closes when another is selected but on each row there always remains one tab as selectedDo you know of anyway to ensure for example that when i click a tab on row two and it becomes selected it will also remove the selected state from the tab on any other row?i have tried this but it does not do the trick
//
$("#tabs1 ul li a").click(function(){
$('#tabs2').tabs({ selected: -1});
[code]....
I am using jQuery tabs and when I have very long content within the tabs, my browsers scroll bar reflects the content in the tab with the most content.
Example, "Tab 1" & "Tab 3" has a very long scroll bar, even though it has no content (because of Tab 2) and you can scroll down through the empty space
[URL]
Is there a way I can hide the content in Tab 2 so that my browsers scroll bar displays correctly in relation to the content in the active tab?
im new to Jquery and new to the forum as well.Ive made an web application using jquery witch several tabs. Ive declared them this way: <li class="aba"><a href="#reconhecimento"><span>Reconhecimento</span></a></li>
And im using this snipper to make this work out:
<script type="text/javascript">
$(function(){
$("#abas").tabs();
});
</script>
[Code]...
Before the tab ui is loaded, I see the content of both tabs on the front page. Is there a way to fix this?[url]...
View 2 Replies View RelatedI have got tabs working great and have set up a rotate every 5 seconds but whenever it loads a new tab (either by clicking a link or rotating to it) it moves up to the top of the page as if it was following an anchor.
View 2 Replies View RelatedSo, I'm working on a website that has tabs and nested tabs. So far they all work perfectly, there is just one thing I can't seem to figure out. There is a tab on the main site that is for members, so they click on it and it brings them to a login screen. Then when the user enters in the username and password, I want it to load another page with more tabs, but in the current tab. The page (with tabs) to be loaded is in a password protected part of the site.
View 3 Replies View RelatedI am building a web page that has tab panels that hide and show information depending on which one is selected. I am trying to make the tabs at the top of the page and go horizontal.I have had some success, however I am having two problems. The first problem is that one of the tabs doesn't work. (specifically tab 4 "videos").The other is that when you first start up the page, there are three tabs highlighted (1, 4 and 5), however there should only be 1 tab highlighted (tab1).I have included my code below.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>[code].....
Anyone have any code examples or tutorials on how to implement POST's on the pages that each of the jQuery's Ajaxified tabs loads? Mainly looking for examples of the tab content pages post'ing/get'ing params.
here's an example of the stand-alone page that functions normally:[URL]...(select Oct. 8th, 2009 to see example or POST in action)
but when popped into an Ajax jQuery tab, the POST doesnt work[URL]...As you can see, on the second example, when the page POST's, it's no longer running in the tab. How do i get it to just refresh/POST within the tab?
[edit] i reformed my question above [/edit]
I'm trying to read the substring of a url so when the page loads up, it would know if it needs toimmediatelyjump to another tab.So a user clicks a link like this:[URL] On that page, there are already functions listening for click events on objects with a class names like "gotoTab2".So all I really need is for jquery to check if there's a '#something' in the url when the page loads up, and if so execute a 'click' on that substring as if it was a class.
View 3 Replies View Related