Jquery :: Linking To Tab From External Page

Oct 4, 2011

I'm trying to link to a jQuery tab (the second tab) from an external source and havent had much luck so far. I found this on the jQuery UI demo's page:
...select a tab from a text link instead of clicking a tab itselfvar $tabs = $('#example').tabs(); // first tab selected $('#my-text-link').click(function() { // bind click event to link $tabs.tabs('select', 2); // switch to third tab return false;
});

But cant figure out what I should be putting in "#my-text-link
", what is itreferringtoo?
My second tab is called '#tabs-2' so I assume that's what I place into'#example'
?

View 5 Replies


ADVERTISEMENT

Jquery :: Linking Directly To Nested Tab From External Page

Oct 17, 2010

I am trying to link to a specific nested tab fromanother page. So let's say I'm on the home page, and I want to link to: productspage > Widgets (parent tab #2) > Large Widgets (Parent tab #2's child tab #3). In other words; Directly to a non-default nested tab, from acompletely different page. Linking to the parent tabs works fine (with a standard anchor link e.g.; [URL]), but I can't figure out how to link to one of their child tabs (besides what is set as default)

Here is a stripped down version of the setup I have (I just typed most of it out, so forgive any obvious syntax errors, my pages on the site all validate):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"[URL]">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Site Title</title> .....

View 6 Replies View Related

Linking To An Image In An Array On An External Page?

Sep 5, 2011

I have put together an image gallery that contains links to each individual image, however, I would like to link to individual images on a separate html document and cannot for the life of me determine how to go about doing this.
rnmix

Code:
<html>
<head>
<script type="text/javascript">

[Code]....

View 1 Replies View Related

JQuery :: Cycle: Fx:'none' When Linking From External Control?

Jul 15, 2010

when link from first thumbnail there's no transition.. I would like that same effect when link from any other thumbnail.. i.e., fx:'none' when linking from any thumbnail.. looked in FAQ, found examples for linking from external controls, but none to eliminate transition effect when linking from any ext control..

View 5 Replies View Related

Linking External JS...

Jul 20, 2006

How do you link in external js file from a current js file? i went to do it with <script> tags and remembered i wasn't in html.

View 8 Replies View Related

Linking To External URL With InnerHTML?

Oct 18, 2011

I am trying to link to an external URL and have confirmed that the link is good (I can paste it in the address bar of my browser and it goes fine). But I need to surround the link in hyperlink tags so the user can click on it to go to the URL from my web page. Here is the code:

td.innerHTML = "<a href="http://TESTSERVER123/reportserver?/Data_Analysis/Billed_Charges_Per_Customer&rs:Command=Render&CustomerId=" + customer.TIN + "" target="_blank">" + "</a>";

I have been researching the syntax on this and from what I can gather I am probably not escaping the slashes properly in my link, but I am stumped at this point.

View 3 Replies View Related

Linking An External Js File?

Mar 16, 2011

relatively new coder here definitely new to js and I can't figure out how to get this script linked into an external file every time I try nothing shows up.

<html>
<head>
<script language="JavaScript1.1">
<!--
var slideimages=new Array()
var slidelinks=new Array()

[Code]...

do i need to break this up into 2 files or something I can't get it to work

View 2 Replies View Related

Linking To External .js File

Jun 18, 2007

I have an existing javascript menu where the user selects a meaning from a drop down box and a list of products with that meaning appear in a search results page.

I had the whole javascript pasted into one of the columns where I wanted the 'search by meaning' box to appear and it worked fine, however when I tried to validate the HTML (4.01 strict) it popped up errors left and right because it was interpreting the script as HTML.

I don't know how to write js or work arounds, so I removed the whole script from the page and saved it in a .js file, but I am doing something wrong because I cannot get the javascript to appear at all, nevermind getting it to appear in the column I want it to. Code:

View 4 Replies View Related

Link To Page Using Target Blank & Linking Page's Window Location?

Feb 16, 2011

Basically, I have a link that should open the targeted link in a blank page, and upon the link being clicked, the original page's URL should be changed. The reason for this is that the user has to browse information on another website, and then pass the information on to me via a contact form, so rather than make them click back on my tab in the browser, and then find the "Contact" page link to fill in the form, I thought it would a good feature to simply go ahead and load the "Contact" page upon them clicking the link to the external page (which of course loads in a new tab). Here is the code I have in place:

Code JavaScript:
<a href="http://www.othersite.com/" target="_blank" onclick="window.location.href='http://www.mysite.com/contactus.php';">Other Site</a>

This all works fine on my computer, regardless of the browser that I use. One of my partners on this project called me this morning and said that the link was taking him directly to the "Contact" page without opening the "Other Site." This is strange because after I put this in place, I showed it to him and it worked fine. Now, a few days later, and it does not work. He said that he cleared his browser cache, history, cookies, etc. and the problem did not go away. He uses IE8. After he told me it was no longer working, I went to test it myself, and it works fine for me no matter which browser I use (IE8 or 9, Firefox 3 or 4 Beta).

why this might have worked one day and not the next? Is it simply a problem on his computer, or could it be an issue where based on what type of browser you are using, this won't work. Also, I know this is the JavaScript forum, but is there a way to do this in PHP without using the JavaScript onclick event? Obviously, I can't use the header() function since this functionality needs to be present on a link within text of a page.

View 2 Replies View Related

Page Linking Trouble

Jul 20, 2005

How can I use Javascript to look at variables passed from another page
using the GET method( a website address) and load that website?

View 1 Replies View Related

Linking Into An Iframe On Another Page?

Aug 2, 2010

I have a simple script that will get the NWS forecast for any zip code and it opens it in a new tab. I would like it to open in an iframe on another page with in my website. I have come close, but not quite all the way yet. This will enter the forecast in an iframe on the same page as the input form. [URL]

How can it load onto this page from the form on the menubar? This menu is common on all the sites pages.

I have seen solutions posted around the internet using javascript for similar issues, but I haven't been able to get any to work in my situation. My javascript skills are - none.

View 9 Replies View Related

Linking To An Iframe In Another Page

Apr 29, 2006

i know how to use javascript to make a specific page load into an iframe but not how to make the page load into the iframe on another page. all i need to know is how to do it for one page then i think i can build the decision structure around it to make it work for more than one link (hopefully).

View 24 Replies View Related

Linking To A Page Section

Jan 26, 2011

I need the following link to automatically scroll to the top of the page when it is clicked.

[Code]....

View 5 Replies View Related

AJAX :: Linking In With PHP In One Page

Aug 11, 2010

I have 3 bits of code, 2 of which I'm pretty sure are right [i know the php works, and the ajax looks fine], but one i'm having trouble with. Basically what I'm trying to do is use a link to call php function [calls a piece of text from a database]. Which worked fine. But then I tried to incorporate AJAX into the script to make change dynamically on the page, and I'm a little confused with it all. I've got the AJAX and PHP, [and an attempted page with a link on to try and call the function with AJAX] but so far it's not doing as it should. Wondered if anyone could show me where I'm going wrong with the whole 'linking together' thing? So far everything I've tried hasn't worked. [hope this doesn't violate the forums 'don't dump your code' rule. But it's kind of all necessary]

[Code]...

View 6 Replies View Related

Linking To Function Script In Another Page

Oct 11, 2009

I have a website for tanning salon services. Salon A's page has links for 4 possible equipment choices - (diamond, platinum, gold, bronze levels) on the [I]Sunbeds page. Sunbeds page has 2 iFrames, top and bottom, that are changed by 4 functions - changediamond(), changebronze(), etc. based on the selection. I need to be able to click a link on the Salon page that will take me to the corresponding function on the Sunbeds page...

Here's what I have so far:
Salon A page
<a href="sunbeds.htm?javascript:changediamond()"><img src="images/nr_diam_sm2.jpg" alt="Diamond Level Sunbeds" /></a>
(thru)
<a href="sunbeds.htm?javascript:changebronze()"><img src="images/nr_brnz_sm2.jpg" alt="Bronze Level Sunbeds" /></a>

Sunbeds page
<SCRIPT language="JavaScript">
function changediamond() {
parent.FRAME1.location="sb_top_ct1.htm";
parent.FRAME2.location="sb_bot_ct1.htm";
}
(thru)
function changebronze()
{
parent.FRAME1.location="sb_top_ct4.htm";
parent.FRAME2.location="sb_bot_ct4.htm";
}
</script>
.
..
...
..
.
<a href="javascript:changediamond()"><img src="images/diamond_sm2.jpg" alt="Diamond Level Sunbeds" /></a>
(thru)
<a href="javascript:changebronze()"><img src="images/bronze_sm2.jpg" alt="Bronze Level Sunbeds" /></a>

The links take me to the correct page but not the function. Once I'm there I can select the functions and the iFrame change works great. I'm just at a loss for passing along the data string i.e., sunbeds.htm?javascript"changediamond()

View 3 Replies View Related

Submit Button Linking To Another Page?

Nov 15, 2009

How would I go about creating the coding for a submit button that links to another page? And I would I go about creating the coding for the reset button that resets the page? I go about creating a code to do so, but it never works. Here is the coding I have for the submit button:

<p id="pbuttons"><center>
<input type="reset" value="Reset" />
<input type="submit" value="Submit Order">
</center></p>

View 1 Replies View Related

Resolved Linking An Highlighting Text To A Page?

Jan 24, 2010

i've followed this javascript and i'd like to link the text to one of my page.How do i place the ahref tag in the script.[URL]...

View 2 Replies View Related

Linking Index Page To Load Up With Two IFrames

Mar 4, 2011

I need guideline with a script I am using for a link on my index page to load up a different page with two iFrames on it and at the same time load up different pages in each of these iFrames. I have achieved this with only one iFrame so far with this script:

1. <script type="text/javascript">
2. <!--
3.
4. function loadIframe(){
5. if (location.search.length > 0){
6. url = unescape(location.search.substring(1))
7.
8. window.frames["main"].location=url
9. }
10. }
11.
12. onload=loadIframe
13. //-->
14. </script>
15.
16. <a href="mainpage.html?about.htm"</a>

So basically when I click on Link1 on Page1 it takes me to Page2 with iFrame1 with a page loaded and iFrame2 with nothing loaded whereas I would like Link1 on Page1 to load up Page 2 with two different pages loaded in the iFrames all at the same time.

View 1 Replies View Related

Linking Template Page To Open A File In Another Window?

Sep 16, 2011

I am building a static website, and I have images in my index page each image has a title name, how do I make an image clicked to open in a different window if clicked, I have a template page designed to be used for opening an image in a different window if clicked but I don`t know how to configure everything. Secondly, I would want the image to be placed in a particular section in the template page.

View 2 Replies View Related

JQuery :: Load Div With External Page?

Feb 10, 2010

I'm using the following JQuery Popup code to make smooth popups: [URL]

I was wondering how I can use use this to load external pages into the popup?

So instead of having a hidden <div> in the page, there would be some sort of empty <div (<div id='this'></div>). The when I click a link, an external page would be loaded into this empty.

So it would function just as it does in the above tutorial, expect the popup content would be coming from an another page, not within the page

View 4 Replies View Related

JQuery :: Load External Page In Dialog Box?

Jun 8, 2011

how to load external page in dialog box with example

View 3 Replies View Related

Jquery :: Load External Div Into A Page Via When The Div Has Script

Dec 7, 2011

Hi I'm trying to load a part of a page (that has script in it) into another page using jquery. However, though the html loads in correctly, none of the script is working. I'm using code from [URL]..ie. the pages all work without java (static pages) and when java is enabled, instead of going to bio.html you get taken to ..#bio.html.

However if I've got any script I would like to be loaded .. ie. lightbox gallery or even a simple jav split and put back together email address hider. I'm not very clued up about jquery at the moment unfortunately and though I've been trying to read and learn, alot is going over my head..Not sure how best it is to show you the page as it's not live yet. Maybe if it helps I can upload a zip of the site. It's a simple 6 page musician site.Though my code is exactly like the css-tricks page, just that I have a lightbox on one page (which loads fine if there's no hash in the address - but when hash is there, it shows thumbnails, and when you click one, it just takes you to the larger .jpg destination page (no lightboxness etc).)

View 1 Replies View Related

JQuery :: Hidden URL For External Page Loading

Jan 19, 2011

I load external php page using jqury plugin . with this line:
<a href="cat.php" rel="container">Tab 2</a>
How to hidden href url ( cat.php ) for more security and not show in html source code page?
Example:
<a href="Block12" rel="container">Tab 2</a>
Block 12 is php code to generate cat.php addresse
Block 13 is php code to generate data.php addresse
etc...

View 2 Replies View Related

JQuery :: Access From External Page Loaded In Div?

Jul 9, 2009

I have a main page with a folio div that is hidden. I'm using jQuery to unhide AND load that div with an external file (keeps the main page file size low). Now that I have the external file loaded into the div, there is a link to a jQuery lightbox image gallery.

However, that jQuery call is unable to access the code and launch the slideshow. I've tried placing the <script> tags on the loaded file as well to no avail. Are there any solutions, or can an external file not pass jQuery calls to its host page?

View 1 Replies View Related

Jquery :: Load External Page On Dialog Box

Jul 23, 2010

I'm trying to load an external page inside a jquery UI dialog box and can't seem to get it ro work

Code Javascript:
function openMyDialog(){
var $link = "weh.php";
var $dialog = $('<div></div>').load($link.attr('href') + '#modBox');
$($dialog).dialog();
}
call the function:
[Code]....

The dialog opens, how do I put weh.php inside the newly created div?

View 1 Replies View Related

Jquery :: Button External Page Autoclick?

Oct 2, 2011

Button in same page can be autoclickable using trigger('click'). But how can I apply it to an external url?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved