Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > JavaScript

Reply
 
LinkBack Thread Tools
Old February 7th, 2008, 06:39 PM   #1
New Member
 

Join Date: Feb 2008
Location: Milwaukee Wisconsin
Age: 25
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 GregZimdahl is on a distinguished road
SOLVED - Spry tabbed panel- java to open diff tabs

I don't figure this should be too hard for anyone who knows java. I am working on a site with a DW CS3 Spry tabbed panel. I am including the tabbed panel from an external php page (so my index page is .php as well). I want to use a php include command for the tabbed panel for quick updating. I will have it on 5 different pages. Each page needs to open a different panel. I saw the the Adobe site has some information on open the panels with the click of a button.



The link is

http://livedocs.adobe.com/en_US/Spry/1.4/index.html

~you have to navigate a tree of links.

click

-Working with Spry widgets

Then click

-Working with the Tabbed Panels widget

Lastly click

-Open panels programatically


--Hope this will show people what I am trying to do. But rather then have the tab open from a press of a button I want the tab to open when you go to a page.

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~

This is what I have come up with so far. Maybe you can see where I am going wrong.


<!-- Start Java Tab Selection-->

<script type="text/javascript">

function load()
{
TabbedPanels1.showPanel(3);
}

</script>

<!--End Java Tab Selection-->


//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~



If I am not making sense please some one tell me. I need to figure this one out. So even a link to a tut they someone thinks might be sorta relevant would be greatly appreciated.


Thanks much.

Sincerely, Greg

Last edited by GregZimdahl; February 8th, 2008 at 05:14 PM..
GregZimdahl is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 8th, 2008, 05:14 PM   #2
New Member
 

Join Date: Feb 2008
Location: Milwaukee Wisconsin
Age: 25
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 GregZimdahl is on a distinguished road
Re: Spry tabbed panel- java to open diff tabs

Place this is head of document

//change the number one in the parentheses to the tabs tab index.



<!-- Start Java Tab Selection-->

<script type="text/javascript">


function onload()
{

TabbedPanels1.showPanel(1);
}


</script>

<!--End java Tab Selection-->
GregZimdahl is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Spry works in FF - not in IE overkil6 JavaScript 1 April 15th, 2008 11:58 AM
[SOLVED] Spry password confirmation widget in DW CS3 grandadbob Forums, Blogging and Content Management 5 November 30th, 2007 02:34 PM
Positioning Spry Menu Bar, etc. Kurt HTML, XHTML and CSS 8 September 11th, 2007 06:31 PM
I looking for Java code of ExamXML XML diff tool alapick Other Languages 0 July 7th, 2006 09:26 AM


Search Engine Optimization by vBSEO 3.2.0 RC8