JQuery :: Externally Link To A Second Tab Open State?
Nov 2, 2011
I am using Jquery Tools Tabs andI want to be able to link from an external page to an open state on tab 2.(External Link to tab 2 --> tab 2 open)Here is my html:
<ul class="tabs">
<li><a href="#tab1" id="tab1">tab1</a></li>
<li><a href="#tab2" id="tab2">tab2</a></li>
[code].....
View 4 Replies
ADVERTISEMENT
Jul 21, 2011
To say I'm new to JavaScript is a bit of an understatement so bear with me. I have a site set up with a variety of layers of toggles. When you enter the site all of the items are collapsed and you click the headings to expand. Each of the toggle-able items have ids. It works great for users who start at the homepage.
However, when I send people to any of the inner topics, all they see is the initial collapsed state of the site. I want to be able to provide a URL that will set the toggle to open, and show all of the content for that section on entry.
Here is my code and js, can anyone point me in the right direction?
[Code]....
View 2 Replies
View Related
May 24, 2011
I have jquery issue, Kindly see my jquery code:
[Code]...
My .toggle_container is first time hidden, its good. BUT when I click on the link inside .toggle_container and navigate to another page or when page is load then my .toggle_container become hidden. I want to make it visible/open state. Can you please provide me any solution?
View 4 Replies
View Related
Oct 5, 2010
I have an accordion effect setup on a a nested list. The effect is working great however, I want to retain the menu state (e.g. which section is open) when a user clicks a particular link and the site loads a new page.How do I do this with jQuery?Here is the jQuery I have currently:
$(document).ready(function(){
$('.boxCategories ul > li ul')
.click(function(e){
[code]....
View 10 Replies
View Related
Oct 6, 2010
I have been using the Sitepoint book jQuery from Novice to Ninja. I'm still very much a novice but I'm making some progress...I have a jQuery accordion effect set-up on a a nested list. The effect is working great, however, I want to retain the menu state (e.g. which section is open) when a user clicks a particular link and the site loads a new page. I'm thinking I must need to use a cookie or similar but have no idea how to implement this. Here is the jQuery I have currently:
Code JavaScript:
$(document).ready(function(){
$('.boxCategories ul > li ul')
[code]....
View 1 Replies
View Related
Nov 1, 2011
I used the code from the following article...[URL]
$(function() {
$('img[data-hover]').hover(function() {
$(this).attr('tmp', $(this).attr('src')).attr('src', $(this).attr('data-hover')).attr('data-hover',
[code]...
why does the rolled over image's src return to the original value when the user rolls back off it?
View 1 Replies
View Related
Mar 19, 2010
Here is an example of what is done so far: [URL].
When you mouse over the b&w images you will see the image change to color.
When you mouse over the links on the left they will have a rollover and also change the image on the right to color.
What I would also like is mouseover the image to change the rollover state of the link on the left. Here is my code so far..
PHP Code:
<style type="text/css"><!--/* ================================= *//* ====== Subject Matter Rollovers ======
*/#menuButton1{height: 41px;width: 133px;
overflow: hidden;background:
url(images/content/buttons/subjectmatter.png) top left no-repeat;
display: block;text-decoration:none;line-height:2.5em;color:#000000;}
#menuButton1:hover{color:#FFFF00;
I thought the following might work (2nd image)
Code:
document.getElementById('link2').class='menu_hover';
But as you see no it does not.
View 5 Replies
View Related
Sep 6, 2011
If you are using cleditor you know that the CLeditor hides your original textarea en represents its hidden content in an iframe. I have an external imageSelector that appends code to the end of the textarea's content.
$("##pageItem_content_0#rc.cleditorId#").val($("##pageItem_content_0#rc.cleditorId#").val()+insertUrl);
Although this works perfectly, the image does not show unless I toggle the HTML view source button on the cleditor's toolbar.
So my question is: How do I call for a refresh of the text area, so the inserted image is visible immediately? The call has to be made from whithin the (POPUP) <DIV that has been instructed to load my imageSelection page
I have tried the following without results.
// $refresh(pageItem_content_0#rc.cleditorId#);
// $("##pageItem_content_0#rc.cleditorId#").refresh(editor);
// $("##pageItem_content_0#rc.cleditorId#").refresh();
// updateFrame(pageItem_content_0#rc.cleditorId#);
[Code].....
View 2 Replies
View Related
Feb 2, 2011
I am attempting to make a menu that has a background image that changeswhen you rollover or click a menuitem. I've got the hover effect working fine with CSS, but am trying to implement the click event via jquery with the following:
CSS:
div.SustainResourcesMenuTabs
{ background-image: url('/images/departments/commdev/sustainability/menu_tab.jpg');
}[code]....
My process is to reset the entire menu to the inactive state, then switch on the active state for the item that was clicked. Eventually, the item that was clicked will display its corresponding body section as well. I've tried using the CSS pseudo-class "active", but since the entire div is the link, that is unavailable. I've also tried multiple variations of addClass/removeClass, toggleClass, and setAttribute/removeAttributebut nothing hasworked so far.
View 2 Replies
View Related
Oct 24, 2010
Another quick question re. the JQuery sidebar I have on my Google map. I would like to link to individual markers from different websites or via email, so would like to convert for example, the 'javascript:myclick(7)' link on the menu to an external URL that will click to the marker and info box containing the video. Is this possible?I have tried something like [URL].. but that doesn't seem to work. Does someone know of anotherwayto do this?[URL]...
View 4 Replies
View Related
Jan 29, 2011
I have an external script that looks for a specific id. Right now (im a noob to scripting btw) id have to have a version of this script in my header for each id or create an external script per id. I would like to have the script use a placeholder where "1stID" is, so that when i call the external script i can just say what the id is.
myscript.js (truncated)
<script>
var v = getelementbyid("1stID");
</script>
I want to call it like: <script src="myscript.js" #ID </script>
View 36 Replies
View Related
Jan 12, 2011
I have the following:
$(".buy_icon").click(function () {
window.location = "http://www.theuntappedsource.com/results.php?category=422"
});
Which opens the url in the current window when the icon is clicked.How would I open the url in a new tab?I should mention that I can't simply use an anchor tag.
View 2 Replies
View Related
Aug 5, 2010
I have used jquery modal window JS for creating Modal box. By clicking respective link modal Box opens in all the browser. But in Ie6 that behaves differently. In My webpage I have some Form controls, like( Input field, checkbox, Dropdownlist etc.) When I click the mentioned hyperlink the modal box opens in ie6 correctly but the Form controls operlaps the Modal box. Please check the attached screen. How to fix such issue for IE6.
View 1 Replies
View Related
Dec 16, 2010
i have made a small accordion on a sub page on my site, when you come to the site all areas are closed (as the shud bee.on my frontpage i have some links to the accordion, that when clickd takes you to the page with the accordion and shud oppen the coresponding accordion area. I can get it to work for all the links except for the one to the first accordion area.
i link to the accordion page like this<a href="news.html#0" title="News 1">
<a href="news.html#1" title="News 2">
<a href="news.html#2" title="News 3">
link 2 and 3 opens the accordion as the shud but link it wont open the accordion the script for the accordion looks like this
$('#scrollbar1').tinyscrollbar({ sizethumb: 10 });
var newsNum = parseInt(window.location.hash.slice(1));
$("#newsfolders").accordion({ autoHeight: false, collapsible: true}).accordion('activate', newsNum );
How do i get the first link to open the accordions first area?
View 1 Replies
View Related
Aug 29, 2011
i know it sounds like a simple thing to do, but for the life of me
View 12 Replies
View Related
Jan 27, 2011
How to open a specific tab via an external link?
View 3 Replies
View Related
Dec 14, 2010
Im trying to get a link one one page to activate/open a specifik accordian but i cant get i to work
my accordion looks like this
<div id="newsfolders">
<h1><a href="#">NEWS 1</a><span class="newsdate">21/10/1969</span></h1>
<div>
<p>Curabitur massa mauris, feugiat ut consectetur eu ullamcorper eget quam.</p>
[Code].....
View 2 Replies
View Related
Jun 1, 2010
How can I preserve the session state of a SharePoint browser state using javascript?
View 2 Replies
View Related
Oct 23, 2011
I have a member search component that I've built that uses AJAX to update results on search filter change.Each result has a link with it to add that member as a friend, when you click the link it fires a modal window (colorbox) with the member data and add and cancel buttons.
Everything seems to work ok, except you have to click the link twice for the modal to fire. Is there something I can do to prevent having to click this twice to load?
View 10 Replies
View Related
Jun 30, 2009
I was guessing if it was possible, using jQuery, to have a link that, when clicked, opens the relative url and sends to it a post request. I'm trying to do this with the $.post function, but i found the problem that the request is sent, but the page isn't opened.
This is my code:
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
[Code]....
View 1 Replies
View Related
Jul 20, 2011
I have an image that has been resized via CSS to show as 100x100px on an HTML page. When clicked, I want to open the image in a colorbox - so the user can see the non resized/squashed version as it will normally appear. I've worked out how to set the path of the href to itself (so this doesn't have to be changed every time) (see below), although not sure how to get the colorbox part working - I tried changing 'each' to 'colorbox' - as per how you would normally assign the colorbox, and it opens, it just doesn't load the image in it.
<div class="logoImage"><img src="../tym_img_shared/background-2.jpg" alt="Your company logo" /></div>
$(document).ready(function(){
$('div.logoImage img').each(function(){
var $this = $(this);
$this.wrap('<a href="' + $this.attr('src') + '"></a>');
});
});
Thinking about it, perhaps it would be easier to also set the 're' attribute of the link whist setting the source?
$(document).ready(function(){
$('div.logoImage img').each(function(){
var $this = $(this);
$this.wrap('<a rel="gallery" href="' + $this.attr('src') + '"></a>');
});
});
Doesn't work for some reason - but it does if I hardcode the URL and rel?
View 6 Replies
View Related
Nov 17, 2010
Having a bit of trouble with this. I'm not a JQuery novice, but can't seem to understand why the Triggerhandler isn't working for this particular PHP site I'm working on. I've used the same type of code in a Drupal site successfully.
I can't seem to find a plugin that can help with either.
View 2 Replies
View Related
Feb 17, 2011
i have a website where i have on the left side a button menu and on the right side an accordion menu. how can i get it to work, that when a user clicks on a button in the left menu, the associated entry in the accordion menu will open?
View 1 Replies
View Related
Apr 23, 2009
I'm trying to open a div that holds several images when the user clicks on a link. Each clicked link will open the div and display a specific pic. Plus each time a link is clicked the div should close before opening the div with the appropriate pic. Since I'm new to jquery I'm a bit lost on this one.
[Code]...
View 1 Replies
View Related
Apr 22, 2011
I'm trying to get a external javascript function to execute using php. I have
[Code]...
I am just testing the execution of the function call with an alert(), once the alert fires, I can then test the function itself. I got an alert to execute from the webpage using PHP Code:
[Code]...
But I can't get the alert to execute externally.
View 1 Replies
View Related
Oct 31, 2006
i was searching for that script in this forum, but it seems to be lost or removed?
that script was kinda using activex or vbscript
it writes a .txt or a file to be saved to a location in the hard disk...
(it's not server-side)...can anyone repost that script?
View 6 Replies
View Related