<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JavaScript | DXSdata</title>
	<atom:link href="https://www.dxsdata.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dxsdata.com</link>
	<description>Software &#124; Network &#124; Administration</description>
	<lastBuildDate>Tue, 21 Feb 2017 20:51:01 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://www.dxsdata.com/wp-content/uploads/2023/08/cropped-logo-32x32.jpg</url>
	<title>JavaScript | DXSdata</title>
	<link>https://www.dxsdata.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>[:de]jQuery val() bleibt leer[:en]jQuery val() stays empty[:]</title>
		<link>https://www.dxsdata.com/2017/02/jquery-val-stays-empty/</link>
					<comments>https://www.dxsdata.com/2017/02/jquery-val-stays-empty/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 21 Feb 2017 20:51:01 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<guid isPermaLink="false">http://www.dxsdata.com/?p=1633</guid>

					<description><![CDATA[[:en]If you use jQuery to fetch the current value of a field like var myvar = $('#myfield').val(); you might encounter issues, even if this syntax is correct. E.g. if a number is entered, it works. If a special char is entered, you might get an empty string. Solution A possible cause could be the HTML [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>[:en]If you use jQuery to fetch the current value of a field like</p>
<pre class="lang:js decode:true ">var myvar = $('#myfield').val();</pre>
<p>you might encounter issues, even if this syntax is correct. E.g. if a number is entered, it works. If a special char is entered, you might get an empty string.</p>
<p><strong>Solution</strong></p>
<p>A possible cause could be the HTML input tag attributes.</p>
<p>This one works not for special characters or letters:</p>
<pre class="lang:xhtml decode:true">&lt;input type = "number" name = "myvar" id = "myvar"&gt;</pre>
<p>Using a number type, letters stay in the field (optically), but do not seem to be saved as the value indeed, and jQuery seems to consider that.</p>
<p>Use special input types only if you really need them. In the example above, a value like 1234 works, but not &#8221; 1234&#8243; (with a space) or &#8220;=1234&#8221; or &#8220;1+2&#8221; etc.</p>
<p>The following should always work:</p>
<pre class="lang:xhtml decode:true">&lt;input type = "text" name = "myvar" id = "myvar"&gt;</pre>
<p>If you still encounter issues, you might have indeed no value in the input field. Try .html() or .text() for testing purposes.[:]</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dxsdata.com/2017/02/jquery-val-stays-empty/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>[:de]Bootstrap Navigations-Tabs mit Dropdown-Menüs: Weiter-Button implementieren[:en]Bootstrap navigation tabs with dropdown menus: How to implement Next button[:]</title>
		<link>https://www.dxsdata.com/2016/09/bootstrap-navigation-tabs-with-dropdown-menus-how-to-implement-next-button/</link>
					<comments>https://www.dxsdata.com/2016/09/bootstrap-navigation-tabs-with-dropdown-menus-how-to-implement-next-button/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 27 Sep 2016 10:12:48 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<guid isPermaLink="false">http://www.dxsdata.com/?p=1231</guid>

					<description><![CDATA[[:en]There are many projects on Github which implement wizard-like Next and Previous buttons for Bootstrap tabbed menus. Unfortunately, they seem not to consider there can be dropdown menus inside the tabs, which leads to errors. So here is some code to show one way how to implement the Next button. Assuming you have some tabs [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>[:en]There are many projects on Github which implement wizard-like Next and Previous buttons for Bootstrap tabbed menus. Unfortunately, they seem not to consider there can be <a href="http://getbootstrap.com/components/#nav-dropdowns">dropdown menus inside the tabs</a>, which leads to errors.</p>
<p>So here is some code to show one way how to implement the Next button.</p>
<p>Assuming you have some tabs like those:</p>
<pre class="lang:xhtml decode:true">&lt;ul class="nav nav-tabs"&gt;
	&lt;li role="navigation" class="active dropdown"&gt;
	&lt;a class="dropdown-toggle" data-toggle="dropdown" href="#"&gt;
	    Main 1
	    &lt;span class="caret"&gt;&lt;/span&gt;
	&lt;/a&gt;
	&lt;ul class="dropdown-menu"&gt;
	    &lt;li class="active"&gt;&lt;a data-toggle="tab" href="#tab1"&gt;Sub 1&lt;/a&gt;&lt;/li&gt;
	    &lt;li&gt;&lt;a data-toggle="tab" href="#tab2"&gt;Sub 2&lt;/a&gt;&lt;/li&gt;
	    &lt;li&gt;&lt;a data-toggle="tab" href="#tab3"&gt;Sub 3&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	...

&lt;div class="text-right"&gt;
  &lt;button id="next-tab" class="btn btn-default right"&gt;
  &lt;span class="glyphicon glyphicon-chevron-right"&gt;&lt;/span&gt;
    Next                
  &lt;/button&gt;
&lt;/div&gt;</pre>
<p>Use this JS / JQuery code:</p>
<pre class="lang:js decode:true ">$('#next-tab').click(function (e) {
    
    var activetab = $('.nav-tabs &gt; .active');   
    children = activetab.find('li');
    var activeHref;

    if (children.length &gt; 0) { //dropdown menu
        var activeSubtab = activetab.find('.active');
        activeHref = activeSubtab.find('a')[0].hash;
    }
    else { //common tab
        activeHref = activetab.find('a')[0].hash;
    }

    var tabIndex = activeHref.replace("#tab", "");

    tabIndex++;
    var nextTabname = "tab" + tabIndex;

    var activeHref = $('a[href$="' + nextTabname + '"]').trigger('click');
  
    e.preventDefault();
});</pre>
<p>&nbsp;[:]</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dxsdata.com/2016/09/bootstrap-navigation-tabs-with-dropdown-menus-how-to-implement-next-button/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>JQuery funktioniert nicht nach Wechsel von HTTP auf HTTPSJQuery not working after changing from HTTP to HTTPS</title>
		<link>https://www.dxsdata.com/2015/06/jquery-not-working-after-changing-from-http-to-https/</link>
					<comments>https://www.dxsdata.com/2015/06/jquery-not-working-after-changing-from-http-to-https/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 08 Jun 2015 08:37:06 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<guid isPermaLink="false">http://www.dxsdata.com/?p=921</guid>

					<description><![CDATA[Scenario You might use a local web server for testing your websites and scripts. Usually, there is no need to use SSL. After deploying to your HTTPS production environment, some features like JQuery AutoComplete etc. might not work any more, but they do work if you call them via common HTTP. Have a look at [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><!--:en--><strong>Scenario</strong></p>
<p>You might use a local web server for testing your websites and scripts. Usually, there is no need to use SSL.</p>
<p>After deploying to your HTTPS production environment, some features like JQuery AutoComplete etc. might not work any more, but they do work if you call them via common HTTP.</p>
<p>Have a look at the Firefox F12 Debug Console, there could be also messages that some content was blocked on page load.</p>
<p><strong>Reason</strong></p>
<p>Many JavaScript/CSS libraries like JQuery or Bootstrap offer a current version of their files for direct integration into your code. This is quite comfortable, because you do not have to manage them locally. But if you refer e.g. to <strong>HTTP://</strong>code.jquery.com/ui/1.10.1/themes/base/jquery-ui.css in your code and your site is an SSL site, the browser does not load it, because it could be unsafe.</p>
<p><strong>Solution</strong></p>
<p>You replace the http:// string with https:// in your code.</p>
<p>Better method, which I recommend: Delete the string &#8220;http:&#8221;. Example:</p>
<blockquote><p>//code.jquery.com/ui/1.10.1/themes/base/jquery-ui.css</p></blockquote>
<p>Of course, the site provided has to be accessible via HTTP and HTTPS.<!--:--></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dxsdata.com/2015/06/jquery-not-working-after-changing-from-http-to-https/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>JavaScript / JQuery: Fehler &#8220;Das Objekt unterstützt die Eigenschaft oder Methode addEventListener nicht&#8221;JavaScript / JQuery: Error &#8220;addeventlistener object doesn&#8217;t support this property or method&#8221;</title>
		<link>https://www.dxsdata.com/2015/02/javascript-jquery-error-addeventlistener-object-doesnt-support-this-property-or-method/</link>
					<comments>https://www.dxsdata.com/2015/02/javascript-jquery-error-addeventlistener-object-doesnt-support-this-property-or-method/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 19 Feb 2015 15:15:36 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<guid isPermaLink="false">http://www.dxsdata.com/?p=786</guid>

					<description><![CDATA[This error might appear if you have developed a website in your local testing environment which uses JS utilities like Bootstrap, JQuery, Prototype or Scriptaculous, after you have published it e.g. to your local company intranet. Cause JQuery and similar utils don&#8217;t seem to like IE compatibility mode, which is enabled by default. Additionally, there [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><!--:en-->This error might appear if you have developed a website in your local testing environment which uses JS utilities like Bootstrap, JQuery, Prototype or Scriptaculous, after you have published it e.g. to your local company intranet.</p>
<p><a href="https://www.dxsdata.com/wp-content/uploads/2015/02/jquery-addeventlistener.jpg" rel="attachment wp-att-788"><img decoding="async" class="alignnone size-medium wp-image-788" src="https://www.dxsdata.com/wp-content/uploads/2015/02/jquery-addeventlistener-300x109.jpg" alt="jquery addeventlistener" width="300" height="109" /></a></p>
<p><strong>Cause</strong></p>
<p>JQuery and similar utils don&#8217;t seem to like IE compatibility mode, which is enabled by default. Additionally, there might be some &lt;meta&gt; content missing.</p>
<p><strong>Solution</strong></p>
<p>In most cases the following line solves the problem. Insert it between your &lt;head&gt; tags.</p>
<pre class="lang:xhtml decode:true">&lt;meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"&gt;</pre>
<p>What you also can do is to disable compatibility mode for intranet sites in Internet Explorer. Open Settings -&gt; Compatibility View settings -&gt; uncheck the &#8220;intranet&#8221; checkbox.</p>
<p>&nbsp;<!--:--></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dxsdata.com/2015/02/javascript-jquery-error-addeventlistener-object-doesnt-support-this-property-or-method/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
	</channel>
</rss>
