Make the focus to the spry tab

Hello

I know this has been asked before and I was able thorugh positions day after day trying to figure out their but I don't encounter any chance at all.

Would be grateful someone in the know by looking at my code and pointing me in the right direction...

I have an admin section of my site, which contains 8 Spry tabs, each containing a form that I can sue for update my database. I try to get the "Submit" button to get to the tab I was working on that but so far, either get returnd to the default page or the tabs stop working... Each separate tab will have its own application and up to this impossible to get even a to work . Can someone advise please... code below for my admin page. The code I inserted about the Spry tabs, I placed here "BOLD"...

Any help will be greatly appreciated...

Kind regards

gyesdahl

*****************  CODE*************

<? php require_once('.. / Connections/la.php');? >
<? PHP

If (! function_exists ("GetSQLValueString")) {}
function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

$theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

Switch ($theType) {}
case 'text ':
$theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
break;
case "long":
case "int":
$theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';
break;
case "double":
$theValue = ($theValue! = "")? « " ». doubleVal ($TheValue). "" "": "NULL";
break;
case "date":
$theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
break;
case "set":
$theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;
break;
}
Return $theValue;
}
}

$editFormAction = $_SERVER ['PHP_SELF'];
If (isset {}
$editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);
}

If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == "form2")) {}
$insertSQL = sprintf ("INSERT INTO days (name) VALUES (%s)", ")
GetSQLValueString ($_POST ['day'], "text"));

////////////  MY INSERT //////////////////////
$tabToShow = 7; 2 = 3rd tab
//////////////////////////////////////////////


@mysql_select_db ($database_la, $la);
$Result1 = mysql_query ($insertSQL, $la) or die (mysql_error ());

$insertGoTo = 'admin.php ';
If (isset {}
$insertGoTo. = (strpos ($insertGoTo, '?'))? "" : "";
$insertGoTo. = $_SERVER ['QUERY_STRING'];
}
header (sprintf ("location: %s", $insertGoTo));
}

@mysql_select_db ($database_la, $la);
$query_days = "SELECT days.name FROM days ';
$days = mysql_query ($query_days, $la) or die (mysql_error ());
$row_days = mysql_fetch_assoc ($days);
$totalRows_days = mysql_num_rows ($days);
? > <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
"< html xmlns ="http://www.w3.org/1999/xhtml"> <!-InstanceBegin template="/Templates/sub.dwt.php ' codeOutsideHTMLIsLocked = 'false'->
< head >
< meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
<!-InstanceBeginEditable name = "doctitle"-->
< title > Untitled Document < /title >
<! - InstanceEndEditable - >
<!-InstanceBeginEditable name = "head"->
"" < script src = "... / SpryAssets/SpryTabbedPanels.js" type = "text/javascript" > < / script >
"< script type =" text/javascript"src ="... / SpryAssets/SpryURLUtils.js "> < / script >"
"" < link href = "... / SpryAssets/SpryTabbedPanels.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" >
Grab the values of the parameters of the URL of the current URL.
var params = Spry.Utils.getLocationParamsAsObject ();
< /script >
<! - InstanceEndEditable - >
< style type = "text/css" >
<!--
@import url("..) ("/ la.css");
{body
background-color: #000033;
do-family: "Times New Roman", Times, serif;
do-size: 12px;
color: #CC6666;
}
. Style1 {make-size: 12px}
.links {color: #CCCC66}
->
< / style >
< link href = "backup/styles.css" rel = "stylesheet" type = "text/css" / > "

< / head >

< body >
< table width = "65%" height = "430" border = "3" align = "center" bordercolor = "#666666" bgcolor = "#FFFFFF" >
< b >
< td valign = "top" > < table width = "100%" height = "134" border = "0" align = "center" bordercolor = "#FFFFFF" bgcolor = "#FFFFFF" >
< b >
"" < td width = "523" height = "72" align = "center" valign = "top" > < div align = "left" > < img src = "... / pictures/thanks ' width = '259' height ="72"/ > < / div > < table >
< td width = "1" height = "72" > < table >
< td width = 200 «»
"height ="72"border ="2"bordercolor ="#000033"> < div align ="center"> < img src =" images / the <? PHP echo rand (1,10);? ' > .jpg "width ="159"height ="72"/ > < / div > < table >
< /tr >
< tr align = "center" valign = "top" >
"< td height ="23"colspan ="3"bgcolor ="#993300"> < div align ="center"class ="links"> < a href ="... / index.php "> home < /a > |" Who are we | Contact us | Guided tours | Air Charter | Managed properties
< div align = "right" style = "" are-size: 8pt; ">"
< div align = "center" > < b > <? PHP echo date ("j M Y l");? > < / b > < / div >
< / div >
< / div > < table >
< /tr >
< tr align = "center" valign = "top" >
"< e height ="17"colspan ="3"background="backup/images/sub_feature.jpg "> < /th >
< /tr >
< /table >
< hr align = "center" width = "100%" size = "2" class = "brown" / >
< table width = "100%" border = "0" cellspacing = "0" cellpadding = "0" >
< b >
< td align = "left" > < table >
< /tr >
< /table >

< table width = "100%" border = "0" cellspacing = "0" cellpadding = "0" >
< b >
< td width = "610" valign = "top" > <!-InstanceBeginEditable name = "Sub_main"->
< div id = "TabbedPanels1" class = "TabbedPanels" >
< ul class = "TabbedPanelsTabGroup" >
< class li = "TabbedPanelsTab" tabindex = "0" > view towers < /li >
< class li = "TabbedPanelsTab" tabindex = "0" > turn create < /li >
< class li = "TabbedPanelsTab" tabindex = "0" > delete turn < /li >
< class li = "TabbedPanelsTab" tabindex = "0" > add country < /li >
< class li = "TabbedPanelsTab" tabindex = "0" > Inclusions < /li >
< class li = "TabbedPanelsTab" tabindex = "0" > Exclusions < /li >
< class li = "TabbedPanelsTab" tabindex = "0" > money < /li >
< class li = "TabbedPanelsTab" tabindex = "0" > days < /li >
< /ul >
< div class = "TabbedPanelsContentGroup" >
< div class = "TabbedPanelsContent" style = "display: none" > content 1 < / div >
< div class = "TabbedPanelsContent" style = "display: block" > Content 2 < / div >
< div class = "TabbedPanelsContent" style = "display: none" > 3 content < / div >
< div class = "TabbedPanelsContent" style = "display: none" > 4 content < / div >
< div class = "TabbedPanelsContent" style = "display: none" > content 5 < / div >
< div class = "TabbedPanelsContent" style = "display: none" > 6 content < / div >
< div class = "TabbedPanelsContent" style = "display: none" > 7 content < / div >
< div class = "TabbedPanelsContent" style = "display: none" >
< do action = "admin.php" method = "post" name = "form2" id = "form2" > "
< table align = "center" >

< tr valign = 'of basic">
< td nowrap = "nowrap" align = "right" > date: < table >
< td > < p >
< input type = "text" name = "day" value = "" size = "32" / > "
< /p >
< p >
< input type = "submit" name = "button" id = "button" value = "Submit" / >
< /p > < table >
< /tr >
< tr valign = 'of basic">
< td nowrap = "nowrap" align = "right" > < table >
< /tr >
< /table >
< input type = "hidden" name = "MM_insert" value = "form2" / >
< / make >
< p > < / p >
ontents 8 < / div >
< / div >
< / div >

< div align = "center" > < / div >
< script type = "text/javascript" >

TRIED BOTH CODES WITH NO RESULTS BELOW. EITHERE RETURNS TO DEFAULT TAB (0) OR THE TABS STOP WORKING

<!--
var TabbedPanels1 = new Spry.Widget.TabbedPanels ("TabbedPanels1", {defaultTab: <? php echo ($tabToShow);? >});
->
< /script >
< script type = "text/javascript" >
<!--
var TabbedPanels1 = new Spry.Widget.TabbedPanels ("TabbedPanels1", {defaultTab: (params.panel? params.panel: 7)});
->
< /script >
<!-InstanceEndEditable--> < table >
< /tr >
< /table >
< p > < /p > < table >
< /tr >
< b >
< td valign = "top" > < div align = "center" class = "style1" > Copyright © 2009 leisure Africa - all rights reserved < / div > < table >
< /tr >
< /table >
< p > < / p >
< / body >
<! - InstanceEnd - > < / html >
<? PHP
mysql_free_result ($Days);
? >

The Spry URLUtils work only with the values passed by the query string. If you have data for insertion into a database, you must use the POST method.

The simple way to do what you want is to put a hidden field in each of your forms indicating the number of tab (starting from 0). For example, put it in the form in the second tab:


In PHP at the top of the page, use a conditional statement to see if $_POST ['tab'] exists:


Then use the value of $tabToShow to initialize the Spry tabbed panels:


Tags: Dreamweaver

Similar Questions

  • Width of the Spry tabbed panels

    The width of the tabs at the top of the Spry tabbed panels appear to be about 70% of the width of the Panel. Adding additional tabs can wrap around to create a new line of tabs.

    How is it possible to extend the first line of tabs at 100% of the width of the Panel to avoid the film?

    Thank you very much.

    I had a quick glance at your pages using the URL you provided private.

    The width of the tabs is affected by the style of #content ul rule that starts at line 242 of style.css. It sets the width of the bulleted lists in the content

    75%. The tabs of a group of Panel tabs are actually an unordered list that's why tabs are affected.

    To resolve this issue, remove the width of #content ul or add this new rule of style:

    #content ul. {TabbedPanelsTabGroup}

    Width: 100%;

    }

    This will make the tabs fit into a single line in two of your pages. The other page was always three lines of tabs (one on the last row), but you can fix this by reversing the order of Customer-centric competitive positioning"and"focus group interviews.

  • a link to the Spry tabs Panel

    Hello
    I need help connecting a tab in the Spry tabs Panel, the second tab in this Panel is "details", I want to create a link in the homepage to this tab, so clicking on the link will take you to the Board page where the second tab is opened and displayed. How can I do this?
    Thank you

    Check out this tutorial by David Powers, I used it a few days ago and it works perfectly.

    http://foundationphp.com/tutorials/spry_url_utils.php

  • How to select an item in the Spry tabs Panel?

    I have a Pannel with Spry tab on my site and I'm having a very difficult time selecting div individual and images in the content. Whenever I click on the site, it selects all. Is there a way to get around this? It is combersome having to return to the code all the time.Screen Shot 2013-01-14 at 1.56.55 PM.png

    In this picture, it seems that I purposely chose the entire page, but I just have to click on the image.

    This is probably caused by overflow: hidden somewhere in your CSS code.  This property is often used to control elements floated.

    A few things to try:

    • Double-click in the content area.
    • Or, right-click in the content area > select View > select full.
    • Or, disable CSS by going to view > Style rendering > uncheck display Styles.
    • Alternatively, use a Sheet of Style to design time while editing.

    Nancy O.

  • Delete lines of liaison on the spry tabs

    My apologies if this question is posted in the wrong forum.

    I use the function of panels to Spry tab. How can I remove the link onClick that apprear lines when you click on a tab?

    Thanks for your time.

    Thanks for trying but I found the answer. I hope this helps others with the same problem.


    • TAB 1

    • TAB 2

    • TAB 3

  • When I click on a new tab, how to make the new tab the common provision of seaches for the page?

    OK, I was stupid and downloaded this file that has changed all my Firefox settings. Now, when I click on the new tab button, search for Funmoods page comes up and I really want to get rid of it and I do not know how do I go back to my original the new tab page that shows my best sites.

    Hello angewa95, please remove all the extensions that refer to funmoods in firefox > addons > extensions & then install the addon searchreset (despite its name, it will also recover the new tab the page by default).

  • Make the page tabs to come back on the same page after deletion

    I have a page with three tabs.
    When the user clicks on Delete on any page. A warning page comes. And after the user selects Yes or no on the warning page,
    original page is displayed. But he's always the first tab. I want to keep the tab also.

    How can I do?

    I used setForwardUrl to move between pages.

    Hello

    When delete event is raised, in the PFR capture the details of the selected tab

    tabBean.getSelectedIndex (pageContext);

    store it in session

    then

    send to the warning dialog page.

    view the results of the calling page warning page

    in the request form of the calling page process capture the event

    use

    tabBean.setSelectedIndex (pageContext, value)

    get value from session

    pageContext.getSessionValue () API

    Concerning
    Ivar

  • How to make the CURRENT TAB or NO CURRENTS dynamically according to REQUIREMENT

    Hello

    I have following 2 tabs

    TAB 1
    TAB 2

    for these two tabs... the page is Page 1
    so when the control is on the Page 1... by default the two tabs a... TAB 1 & 2 of the TAB are current...

    I want to... based on some condition... only a tab should be updated...

    so... for Condition 1 Page 1... Tab1 should be CURRENT (TAB2 should be NON - CURRENT)
    .. .to condition 2 on Page 1... Tab2 should be CURRENT (TAB1 should be NON - CURRENT)

    Can do us it dynamically?


    Thank you
    Deepak

    Hello

    Yes, you can create a copy of the page in issue 3 of the page and have this one to create only on records. Page 3 should have its own tab and page 2 (Edit page) uses the same tab that the report page. Thus, the user can never go directly to the edit page (they should go to the report page) but they can go directly to the registration page.

    Andy

  • Make the spry data in a hyperlink?

    I use a Spry data set that uses a doc xml created by another program.  What I want to do is make this: < td > {name} < table > wise into a hyperlink like www.somesite\name\anotherpage.htm where the name is taken from repeating data in line with the table...?

    Any suggestions?

    TIA!

    In the markup, use the anchor tag as in

    http://www.somesite/name/ {name} .htm "> {name}"

  • make the new tab open to the home page

    When I open a new tab with the button '+' I get a blank page. I want my new tab opens automatically to my home page I put in Google. That's how IE8 it.

    New TabURL: https://addons.mozilla.org/en-US/firefox/addon/newtaburl/

  • Is it possible to make the start tab 3 7 essential in android, while it is plugged?

    We need our shelves Lenovo tab 3 7 Essentials automatically start Android, when they are charged. Is this possible?

    We are trying to get a build for the kernel environment facing up and running, but we are unable to get this to work. "Open Source Code" in the section download Lenovo packages do not contain the ".config" file

    Any ideas?

    Are there not a copy of the config on the Tablet? /System/data/Misc/ProjectConfig.MK or something? Or maybe it's another file...

    Anyway, rebuild the kernel probably wouldn't help in this case. The initialization string of a device like your MediaTek is based:

    Boot ROM-> Preloader-> Bootloader (LK, small core)

    The bootloader analyzes the reason of priming and decides how proceed, for example stay in the boot loader (for the off-mode charge and Fastboot mode), or the recovery of startup or boot Android OS mini. The kernel sources are published is the Linux kernel used by recovery and Android, but is not yet executed until start/LK is done.

    Fortunately, modern MediaTek bootloaders usually have an option to toggle "" mode"stop charge." The Fastboot client is used to connect with the bootloader.

    First, you must start your tablet in Fastboot mode. That can usually be done like this:

    Completely turn off the tablet. Then hold the power button + volume up key for about 10 seconds, until the tablet will turn on. The tablet should now display a small menu, "Normal recovery, Fastboot '. Select Fastboot.

    Then connect the tablet to your PC via the USB port.

    Then run the Fastboot client with this command: "fastboot getvar all. This will show a bunch of info, so "off-mode-load" is at home, you're in luck.

    Just run the command "fastboot oem off-mode-load 0.

    This command allows to disable "" mode"stop load", i.e. the Tablet no longer starts to load when you plug the USB power when turned off. Instead, he's going to start Android, which is what you want.

    To reactivate the off-mode charging, just run this Fastboot command again with a '1 '.

  • MAKE THE FIELD TAB AUTO SHAPE

    So I have this PDF form with several fields. The form I'm working with is used as a record of vehicle sheet and the area concerned is the section of the vehicle identification number (VIN). A wine is 17 digits and I have 17 different fields limited to a number max of 1, what the problem is when I use a standard JavaScript code in the document

    function goNext (article, event, cName)

    {AFNumber_Keystroke (0, 0, 0, 0, "", TRUE);}

    If (event.rc & &)

    AFMergeChange (event) .length is event.target.

    charLimit)

    item.getField (cName) .setFocus ();

    }

    and in the properties of the field, I selected the tab format

    Custom format category

    Custom script from typo: goNext (this, event, "Vin2");

    My problem is I can use only numbers and if I try to use a normal wine as 1cg745bs743825167 he was going to let me use the letters. Also I'm trying to figure out how to click on the first form field for the first character of the wine, then press Ctrl + V to paste the WINE and it won't let me someone for directions on how to do these two things happen?

    [Ask in the correct forum allows... Left non-technical Forum Lounge for forum specific program... MOD]

    The AFNumber_Keystroke requires or allows only numeric values to be enterefd. The sample form has been to enter digital data like SSN.

    This approach has been used before 'comb' fields become available. You should be able to use a field of comb with a user writes the validation script and a charater of 17 characters limit.

  • Is there a way to make the Panel tabs (tabs) heading downstairs be?

    Hi guys,.

    Im having problems with tabbed panels.

    1. I want them down.

    2. I need to move the tabs positions separately.

    In response to questions:

    1. you can rotate the widget

    2. No, we cannot separate the positions. You must use separate panels.

    Thank you

    Sanjit

  • Send a link to the text in a spry tab?

    Hi people, I am building several pages that will have tabbed sections to the breast. This is an example: http://www.tatlerprime.co.nz/tabbed_spry2.html

    I would like to send links to specific sections of this page. Named anchors do not work. Is there a simple way to insert a link that I can send it?

    The example above is made with the Spry Tabbed Panel 2 widget, but I also have the jQuery tab widget, which seems easier to put a link.

    Thanks in advance,

    JO

    I'll make it easy for you.

    1. Add the following to the head section of your document


    2. change the default tab for the highlighted line

    3. in the email link to the 3rd tab in the page as http://yoursite.com/yourpage.html?tab=2

    That's all

    GRAMPS

  • Spry tabs IE6 - text scrolls but the links don't

    Hello
    I'm having a problem with the Spry tabs. If I put in place a div in a Spry tab content area and insert text with a few links and auto-scroll on the div when I scrolling in IE6 the normal text scrolls very well, but the links do not move even if it the link is in the middle of a line of text. Works fine in FF, IE7, and IE8. Someone had a problem like this?

    Thank you

    Thank you for letting me know about the conflict between IE, spry and the png, I had not heard about it.

    As you say when IE6 is finally obsolete, this will be a step forward in the sea of design and development. It always amazes me when people say that they need to support this browser (with 15% share of the browser and the decline) and then do not have their site accessible to people with disabilities (15-20% of the population).

    PZ

Maybe you are looking for