Note that there are some explanatory texts on larger screens.

plurals
  1. POJQuery Tab Events Triggers
    text
    copied!<p>I want to see tab No. 2 when "IF Condition" will meet the requirements. Here is my code. Please advice me how can I do this.</p> <p>Thanks Shahid</p> <pre><code>&lt;?php //Authorization / Security session_start(); ?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;title&gt;Untitled Document&lt;/title&gt; &lt;link type="text/css" href="../javascript/jquery/themes/ui-lightness/jquery.ui.all.css" rel="stylesheet" /&gt; &lt;script type="text/javascript" src="../javascript/jquery/jquery-1.4.2.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="../javascript/jquery/ui/jquery.ui.core.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="../javascript/jquery/ui/jquery.ui.widget.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="../javascript/jquery/ui/jquery.ui.tabs.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(function() { alert('main'); $("#container").tabs({ ajaxOptions: { error: function(xhr, status, index, anchor) { $(anchor.hash).html("Couldn't load this tab. We'll try to fix this as soon as possible. If this wouldn't be a demo."); } } }); }); &lt;/script&gt; &lt;?php if($_GET['action'] == "add") { ////////////////// Trigger Tab No. 2 //////////////// ///////////////// and /////////////// //////////////// change url of Tab 3 /////////////// } ?&gt; &lt;/head&gt; &lt;body leftmargin="0" topmargin="0"&gt; &lt;table width="100%" border="0" cellspacing="0" cellpadding="0"&gt; &lt;tr&gt; &lt;td colspan="2"&gt;&lt;?php include("../includes/headerone.php");?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td width="15%"&gt;&lt;?php include("../includes/leftbar.php");?&gt;&lt;/td&gt; &lt;td width="83%" &gt;&lt;div id="container"&gt; &lt;ul class="tabs-nav"&gt; &lt;li&gt;&lt;a href="add.php"&gt;&lt;span&gt;Add&lt;/span&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="edit.php"&gt;&lt;span&gt;Edit&lt;/span&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="view.php"&gt;&lt;span&gt;View&lt;/span&gt;&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="2"&gt;&lt;?php include("../includes/footer.php");?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload