Note that there are some explanatory texts on larger screens.

plurals
  1. POproblem executing javascript function on a php page
    primarykey
    data
    text
    <p>I have a php file as given below. The page generates html content which is actually made of 3 html pages. I am using jquery tabs to put the three html pages in to tabs. The tab generation takes place in a function "loadtabs" which is called inside script tags at the bottom of the page. The problem i face is that the function i use to generate tabs is not executing in the php .Kindly help me figure out the problem.</p> <p>editor.php</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;link type="text/css" href="../../css/ui-lightness/jquery-ui-1.8.14.custom.css" rel="Stylesheet" /&gt; &lt;link type="text/css" href="./methodeditor.css" rel="stylesheet" /&gt; &lt;script type="text/javascript" src="../../js/jquery-1.5.1.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="../../js/jquery-ui-1.8.14.custom.min.js"&gt;&lt;/script&gt; &lt;script&gt; function loadtabs() { $( ".tabs" ).tabs(); method = &lt;? echo $method; ?&gt;; mode = &lt;? echo $mode; ?&gt;; $("#oven").load('oven.php'); $("#detectors").load('detectors.php'); $("#inlets").load('inlets.php'); } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;form id="editor" action="method.php" method="POST" &gt; &lt;div class="editor"&gt; &lt;div class="tabs"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#oven"&gt;Oven&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#detectors"&gt;Detectors&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#inlets"&gt;Inlets&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;div id="oven" &gt;&lt;/div&gt; &lt;div id="detectors" &gt;&lt;/div&gt; &lt;div id="inlets"&gt; &lt;/div&gt; &lt;/div&gt; &lt;script&gt; loadtabs(); &lt;/script&gt; &lt;/form&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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