<?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>Wacdesigns &#187; Ajax</title>
	<atom:link href="http://www.wacdesigns.com/category/javascript/ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wacdesigns.com</link>
	<description>What about Creativity ?</description>
	<lastBuildDate>Fri, 02 Dec 2011 11:50:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Retrieving anchor value from URL</title>
		<link>http://www.wacdesigns.com/2008/01/16/retrieving-anchor-value-from-url/</link>
		<comments>http://www.wacdesigns.com/2008/01/16/retrieving-anchor-value-from-url/#comments</comments>
		<pubDate>Wed, 16 Jan 2008 10:08:39 +0000</pubDate>
		<dc:creator>jf</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.wacdesigns.com/2008/01/16/retrieving-anchor-value-from-url/</guid>
		<description><![CDATA[Lately i have been trying to get a grasp of the anchor value from the URL using ASP.NET. From what i learned from the forum (This might be wrong since there is a way in PHP(http://www.php.net/manual/en/function.parse-url.php) to get the anchor value.) Case study: e.g http://www.somesamplebigsite.com/product.aspx?q=123&#38;u=09#description The url above send the user to a page product [...]]]></description>
			<content:encoded><![CDATA[<p>Lately i have been trying to get a grasp of the anchor value from the URL using ASP.NET.  From what i learned from the forum (This might be wrong since there is a way in PHP(<a href="http://www.php.net/manual/en/function.parse-url.php" target="_blank">http://www.php.net/manual/en/function.parse-url.php</a>) to get the anchor value.)</p>
<p><strong>Case study: </strong></p>
<blockquote><p>e.g <a href="http://www.somesamplebigsite.com/product.aspx?q=123&amp;u=09#description" target="_blank">http://www.somesamplebigsite.com/product.aspx?q=123&amp;u=09#description</a><br />
The url above send the user to a page product and then your browser interpret the anchor and scroll down way to the description anchor. But the question is why the heck would i want to get the anchor since it&#8217;s just an anchor ? There might be several reasons for that. Here is 2 of them:</p>
<ul>
<li>You might not want to pass an extra parameter in your URL query string because of Referencing issues</li>
<li>You would like to perform an action when the page reaches the anchor: Example open an AJAX popup or load some information or Execute a JavaScript in the Description Section of the product.</li>
</ul>
<p>There might be several other reasons, but these two give you and idea of what is to be achieved.</p></blockquote>
<p>You can&#8217;t get access to the anchor value using server side ASP.NET, it will neither be seen in the <strong>Request.Url</strong> nor the <strong>Request.RawUrl</strong>. Therefore those who are trying in vain to get access to this information, don&#8217;t bother anymore. You can just use a simple javascript that will do that, and then if you want afterward to either make a new submit to the server or do it in AJAX.</p>
<pre lang="javascript">var anchorValue;
var url = document.location;
var strippedUrl = url.toString().split("#");
if(strippedUrl.length &gt; 1)
anchorvalue = strippedUrl[1];</pre>
<p>With these few lines of javascript you will be able to determine the value anchor that has been sent in your URL.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wacdesigns.com/2008/01/16/retrieving-anchor-value-from-url/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>BUG: Error message when you visit a Web page or interact with a Web application in Internet Explorer: &#8220;Operation aborted&#8221;</title>
		<link>http://www.wacdesigns.com/2007/05/29/bug-error-message-when-you-visit-a-web-page-or-interact-with-a-web-application-in-internet-explorer-operation-aborted/</link>
		<comments>http://www.wacdesigns.com/2007/05/29/bug-error-message-when-you-visit-a-web-page-or-interact-with-a-web-application-in-internet-explorer-operation-aborted/#comments</comments>
		<pubDate>Tue, 29 May 2007 05:27:47 +0000</pubDate>
		<dc:creator>jf</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Internet Explorer Bug]]></category>

		<guid isPermaLink="false">http://www.wacdesigns.com/2007/05/29/bug-error-message-when-you-visit-a-web-page-or-interact-with-a-web-application-in-internet-explorer-operation-aborted/</guid>
		<description><![CDATA[Here is a bug that i came to recently while working with: var d = document.createElement(&#8220;div&#8221;); document.body.appendChild(d); This bug is only on IE and it&#8217;s really annoying one. There is a fix provided by Microsoft, you can take a look at it here. It is a pretty comprehensive and complete article but there is one [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a bug that i came to recently while working with:</p>
<p>var d = document.createElement(&#8220;div&#8221;);<br />
document.body.appendChild(d);</p>
<p>This bug is only on IE and it&#8217;s really annoying one. There is a fix provided by Microsoft, you can take a look at it <a title="Bug Fix" href="http://support.microsoft.com/default.aspx/kb/927917" target="_blank">here</a>.</p>
<p>It is a pretty comprehensive and complete article but there is one thing missing in there. The state that the problem is caused</p>
<blockquote><p>This problem occurs because a child container HTML element contains script code that tries to modify the parent container element of the child container. The script code tries to modify the parent container element by using either the <strong>innerHTML</strong> method or the <strong>appendChild</strong> method.</p></blockquote>
<p>The solution is</p>
<blockquote><p>To work around this problem, write script blocks that only modify closed containers or that only modify the script&#8217;s immediate container element. To do this, you can use a placeholder to close the target container, or you can move the script block into the container that you want to modify.</p></blockquote>
<p>That&#8217;s a pretty good solution, but what if i don&#8217;t want to do that, or can&#8217;t handle a code that would generate something like that in the body, e.g When developing in ASP.NET using Master Pages. You must develop some specific module to have a handle in the master page body to be able to call your javascript in the body text itself.</p>
<p>Here is a quick fix that works pretty fine and easy to implement.</p>
<p>In your  Page where you want to call the javascript create  a DIV element in the body/content ( &lt;div id=&#8221;ie_fix&#8221;&gt;&lt;/div&gt; )<br />
With this done you can now modify your javascript to be like that:</p>
<p>var d = document.createElement(&#8220;div&#8221;);</p>
<p>if(is_ie) //This is a browser check have to code <a title="Utimate Javascript Sniffer" href="http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html" target="_blank">here</a>.<br />
{<br />
var ie_fix = document.getElementById(&#8220;ie_fix&#8221;);<br />
ie_fix.appendChild(d)<br />
}else<br />
document.body.appendChild(d);</p>
<p>This is a quick fix that should help you waste/avoid unnecessary recoding. This has been Tested on IE 7 &#8211; Running on Windows Vista.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wacdesigns.com/2007/05/29/bug-error-message-when-you-visit-a-web-page-or-interact-with-a-web-application-in-internet-explorer-operation-aborted/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  www.wacdesigns.com/category/javascript/ajax/feed/ ) in 0.80692 seconds, on Feb 4th, 2012 at 10:01 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 11th, 2012 at 10:01 am UTC -->
