<?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>HTML | DXSdata</title>
	<atom:link href="https://www.dxsdata.com/category/html/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>HTML | 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>HTML / PHP mailto: Link in Content mit Sonderzeichen übergebenHTML / PHP mailto: Content link with special characters</title>
		<link>https://www.dxsdata.com/2015/03/html-php-mailto-content-link-with-special-characters/</link>
					<comments>https://www.dxsdata.com/2015/03/html-php-mailto-content-link-with-special-characters/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 11 Mar 2015 14:52:36 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">http://www.dxsdata.com/?p=877</guid>

					<description><![CDATA[Scenario On your website, you want to offer a link which opens a mail client like Outlook with mail and content suggestion. The content contains a link to a file with special characters in its name, which causes Outlook to break the link, e.g. if it contains spaces or german Umlaute. &#160; Solution Using PHP, [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><!--:en--><strong>Scenario</strong></p>
<p>On your website, you want to offer a link which opens a mail client like Outlook with mail and content suggestion. The content contains a link to a file with special characters in its name, which causes Outlook to break the link, e.g. if it contains spaces or german Umlaute.</p>
<p>&nbsp;</p>
<p><strong>Solution</strong></p>
<p>Using PHP, write</p>
<pre class="lang:php decode:true">&lt;?php
$fullPath = $yourAbsoluteHttpPath . "/" . rawurlencode(rawurlencode($filename));

$mailto = "mailto:a@b.com?subject=File for you&amp;body=Your file: ".$fullPath;

?&gt;

&lt;a href="&lt;?=$mailto?&gt;"&gt;Generate Mail&lt;/a&gt;</pre>
<p>Note the double usage of &#8220;rawurlencode&#8221; function. The first one is needed for HTML output, the second one will be needed for the part when Outlook takes the link code into its mail window.<!--:--></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dxsdata.com/2015/03/html-php-mailto-content-link-with-special-characters/feed/</wfw:commentRss>
			<slash:comments>0</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>
