jQWidgets Forums
jQuery UI Widgets › Forums › Navigation › Tabs › Tab Init question
Tagged: Tab init
This topic contains 2 replies, has 2 voices, and was last updated by Peter Stoev 12 years, 11 months ago.
-
AuthorTab Init question Posts
-
I am trying to debug a problem with jqWidgets tab component and a jqGrid component. I am using an event from jqGrid onGridComplete but I ran into an issue only when it is inside of the jqWidgets tab component were the onGridComplete event is fired twice.
Does the jqWidgets tab component reload or init twice?
$(document).ready(function () {
var theme = “classic”;
$(‘#jqxTabs’).jqxTabs({ width: ‘100%’, height: 620, position: ‘top’, theme: theme, collapsible: false, showCloseButtons: false});
$(‘#tabList li’).each(function(index) {
if(‘Create Bid’ === $(this).text()) {
$(‘#jqxTabs’).jqxTabs(‘select’, index);
}
});
});just tried this test using your tab default example with on modification in the first tab. The included javascript fires twice… Is there anyway around this?
file insert.php
$(document).ready(function () {
alert(“ok”);
});file tab.php
The jqxTabs is breaking the content into multiple sections.
You can populate it from ‘UL’ for the tab titles and ‘DIV’ for it’s contents.$(document).ready(function () {
var theme = getTheme();
// Create jqxTabs.
$(‘#jqxTabs’).jqxTabs({ width: 580, height: 200, position: ‘top’, theme: theme });
$(‘#settings div’).css(‘margin-top’, ’10px’);
$(‘#animation’).jqxCheckBox({ theme: theme });
$(‘#contentAnimation’).jqxCheckBox({ theme: theme });
$(‘#animation’).bind(‘change’, function (event) {
var checked = event.args.checked;
$(‘#jqxTabs’).jqxTabs({ selectionTracker: checked });
});$(‘#contentAnimation’).bind(‘change’, function (event) {
var checked = event.args.checked;
if (checked) {
$(‘#jqxTabs’).jqxTabs({ animationType: ‘fade’ });
}
else {
$(‘#jqxTabs’).jqxTabs({ animationType: ‘none’ });
}
});
});Node.js
JavaServer Pages
Active Server Pages
Python
PerlJavaServer Pages (JSP) is a Java technology that helps software developers serve
dynamically generated web pages based on HTML, XML, or other document types. Released
in 1999 as Sun’s answer to ASP and PHP,[citation needed] JSP was designed to address
the perception that the Java programming environment didn’t provide developers with
enough support for the Web. To deploy and run, a compatible web server with servlet
container is required. The Java Servlet and the JavaServer Pages (JSP) specifications
from Sun Microsystems and the JCP (Java Community Process) must both be met by the
container.ASP.NET is a web application framework developed and marketed by Microsoft to allow
programmers to build dynamic web sites, web applications and web services. It was
first released in January 2002 with version 1.0 of the .NET Framework, and is the
successor to Microsoft’s Active Server Pages (ASP) technology. ASP.NET is built
on the Common Language Runtime (CLR), allowing programmers to write ASP.NET code
using any supported .NET language. The ASP.NET SOAP extension framework allows ASP.NET
components to process SOAP messages.Python is a general-purpose, high-level programming language[5] whose design philosophy
emphasizes code readability. Python claims to “[combine] remarkable power with very
clear syntax”,[7] and its standard library is large and comprehensive. Its use of
indentation for block delimiters is unique among popular programming languages.
Python supports multiple programming paradigms, primarily but not limited to object-oriented,
imperative and, to a lesser extent, functional programming styles. It features a
fully dynamic type system and automatic memory management, similar to that of Scheme,
Ruby, Perl, and Tcl. Like other dynamic languages, Python is often used as a scripting
language, but is also used in a wide range of non-scripting contexts.Perl is a high-level, general-purpose, interpreted, dynamic programming language.
Perl was originally developed by Larry Wall in 1987 as a general-purpose Unix scripting
language to make report processing easier. Since then, it has undergone many changes
and revisions and become widely popular amongst programmers. Larry Wall continues
to oversee development of the core language, and its upcoming version, Perl 6. Perl
borrows features from other programming languages including C, shell scripting (sh),
AWK, and sed.[5] The language provides powerful text processing facilities without
the arbitrary data length limits of many contemporary Unix tools, facilitating easy
manipulation of text files.Enable Select AnimationEnable Content AnimationHi DavidSimmons,
Unfortunately, I don’t know why the document.ready function is executed twice. When I debug it on my side, it is executed just once and the jqxTabs is initialized once. If you invoke your ‘tab.php’ file multiple times, it is possible that it is loaded multiple times, too.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.