<?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 Archives - toSKYsoft</title>
	<atom:link href="https://www.toskysoft.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>รับแก้เพจ Facebook ปิดการมองเห็น รับทำเว็บไซต์ตามสั่ง เว็บไซต์สำเร็จรูป PHP Wordpress</description>
	<lastBuildDate>Thu, 27 Oct 2016 13:39:50 +0000</lastBuildDate>
	<language>th</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://www.toskysoft.com/wp-content/uploads/2020/01/cropped-logo-toskysoft-xs-75x75.png</url>
	<title>Javascript Archives - toSKYsoft</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>location.href ไม่ทำงานเพราะ # (hashtag)</title>
		<link>https://www.toskysoft.com/javascript/location-href-not-working-because-hashtag/</link>
		
		<dc:creator><![CDATA[toSKYsoft]]></dc:creator>
		<pubDate>Thu, 22 Sep 2016 14:44:37 +0000</pubDate>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[javascript]]></category>
		<guid isPermaLink="false">https://www.toskysoft.com/?p=634</guid>

					<description><![CDATA[<p>ไปเจอปัญหาแปลกๆ มา 1 อย่างตามหัวเรื่องเลย เพราะอยู่ดีๆ  [&#8230;]</p>
<p>The post <a href="https://www.toskysoft.com/javascript/location-href-not-working-because-hashtag/">location.href ไม่ทำงานเพราะ # (hashtag)</a> appeared first on <a href="https://www.toskysoft.com">toSKYsoft</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>ไปเจอปัญหาแปลกๆ มา 1 อย่างตามหัวเรื่องเลย เพราะอยู่ดีๆ ลูกค้าก็แจ้งมาว่าไม่สามารถเข้าสู่ระบบได้ หลังจากเช็คดูก็ปกติดี จนกระทั่งเหลือบไปเห็นว่า ที่ Url ของลูกค้ามี #login แปะท้ายเข้าไปด้วยอยู่ ตัวอย่าง https://www.toskysoft.com/@kanexkane#login</p>
<p>ทำให้ตอนสั่ง window.location.href ระบบมันก็นิ่งไปเฉยๆ เลย แถมตอนแรกนึกว่าอะไรรู้ป่ะ วันนี้เป็นวันแรกที่อัพเกรด macOS Sierra</p>
<p><img fetchpriority="high" decoding="async" class="alignnone wp-image-751 size-full" src="https://www.toskysoft.com/wp-content/uploads/2016/09/macos-sierra.png" alt="macos-sierra" width="949" height="291" srcset="https://www.toskysoft.com/wp-content/uploads/2016/09/macos-sierra.png 949w, https://www.toskysoft.com/wp-content/uploads/2016/09/macos-sierra-300x92.png 300w, https://www.toskysoft.com/wp-content/uploads/2016/09/macos-sierra-768x235.png 768w" sizes="(max-width: 949px) 100vw, 949px" /></p>
<p>&nbsp;</p>
<p>ก็สงสัยก่อนเลยหรือตัว macOS มันทำอะไรอีก 555 เพราะลูกค้าก็ใช้ Macbook เราก็ไปลองกะ Safari ก่อนเลย โคตรเขิน</p>
<p>หลังจากที่หาเจอแล้ววิธีแก้ปัญหาก็ง่ายๆ แค่ทำให้มันไม่มี #login ติดอยู่ตอนสั่ง window.location.href ก็พอ คำสั่งก็จะออกมาเป็นแบบนี้</p>
<p>&nbsp;</p>
<p><code>window.location.href = "https://www.toskysoft.com/@kanexkane#login".replace(location.hash,"");</code></p>
<p>&nbsp;</p>
<p>เรียบร้อยแล้ว แก้บั๊กง่ายๆ ที่หายากไปอีก 1 จุด ที่บอกว่าหายากเพราะว่าไม่เคยคิดว่ามันจะเป็นนี่สิ!</p>
<p>The post <a href="https://www.toskysoft.com/javascript/location-href-not-working-because-hashtag/">location.href ไม่ทำงานเพราะ # (hashtag)</a> appeared first on <a href="https://www.toskysoft.com">toSKYsoft</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
