<?xml version="1.0" ?><rss version="2.0" xmlns:ec="http://www.eggheadcafe.com"><channel><title>eggheadcafe.com JavaScript Unanswered Messageboard Posts</title><link>http://www.eggheadcafe.com</link><pubDate>Thu, 06 Jun 2013 06:51:03 GMT</pubDate><description>EggHeadCafe - The .NET developer's portal of choice</description><language>en-us</language><item><title><![CDATA[Modify querystring values]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10473966/modify-querystring-values.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10473966/modify-querystring-values.aspx]]></link><description><![CDATA[This is the page url: http://localhost:612/abcd/Index?DID=1650&amp;SID=9965<br />
<br />
Once the page loaded successfully, would like to modify query string value, i.e. SID value 9965 to 3322 without page reloading....<br />
would like to achieve the same thing on click of button through javascript or jquery..<br />
<br />
Regards<br />
Lokesh.&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10473966/modify-querystring-values.aspx" target="_self">read more</a>]]></description><pubDate>Fri, 24 May 2013 05:30:25 GMT</pubDate></item><item><title><![CDATA[How to print Html page with image using Jquery]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10473722/how-to-print-html-page-with-image-using-jquery.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10473722/how-to-print-html-page-with-image-using-jquery.aspx]]></link><description><![CDATA[Hi,<br />
My application is in asp.net MVC3 coded in C#.Net, I have a certain view with the requirement to print the complete Html of a div in that view.<br />
<br />
Suppose&nbsp;
<div class="reCodeBlock" style="border: 0px solid #7f9db9; overflow-y: auto;">
<div style="background-color: #ffffff;"><span style="margin-left: 0px !important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">div</code> <code style="color: #808080;">id</code><code style="color: #000000;">=</code><code style="color: blue;">"Printable_Div"</code> <code style="color: #000000;">&gt;</code></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">div</code><code style="color: #000000;">&gt;</code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">img</code> <code style="color: #808080;">id</code><code style="color: #000000;">=</code><code style="color: blue;">"First_Image"</code> <code style="color: #808080;">src</code><code style="color: #000000;">=</code><code style="color: blue;">"Source of my Image"</code><code style="color: #000000;">&gt;</code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">div</code><code style="color: #000000;">&gt;</code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">table</code><code style="color: #000000;">&gt;My table data</code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">table</code><code style="color: #000000;">&gt;</code></span></span></div>
<div style="background-color: #ffffff;"><span style="margin-left: 0px !important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">div</code><code style="color: #000000;">&gt;</code></span></div>
</div>
<br />
Im trying the following code but not working
<div class="reCodeBlock" style="border: 0px solid #7f9db9; overflow-y: auto;">
<div style="background-color: #ffffff;"><span style="margin-left: 0px !important;"><code style="color: #006699; font-weight: bold;"> var</code> <code style="color: #000000;">w = window.open();</code></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;</code><span style="margin-left: 3px !important;"><code style="color: #000000;">w.document.write($(</code><code style="color: blue;">"#Printable_Div"</code><code style="color: #000000;">).html());</code></span></span></div>
<div style="background-color: #ffffff;"><span style="margin-left: 0px !important;">&nbsp;</span><code style="white-space: pre-wrap; background-color: #fff; font-size: 10pt;">&nbsp;</code><span style="background-color: #fff; font-size: 10pt; margin-left: 3px !important;"><code style="color: #000000;">w.print();</code></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp; </code><span style="margin-left: 3px !important;"><code style="color: #000000;">w.close();
Also i have tried using the <strong>jquery printElement.js</strong>
<div class="reCodeBlock" style="border: 0px solid #7f9db9; overflow-y: auto;">
<div style="background-color: #ffffff;"><span style="margin-left: 0px !important;"><code style="color: #000000;">$(</code><code style="color: blue;">"#Printable_Div"</code><code style="color: #000000;">).printElement();</code></span></div>
</div>
And Also
window.print();
I have also tried setting the Image as the background of the
<div class="reCodeBlock" style="border: 0px solid #7f9db9; overflow-y: auto;">
<div style="background-color: #ffffff;"><span style="margin-left: 0px !important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">div</code> <code style="color: #808080;">style</code><code style="color: #000000;">=</code><code style="color: blue;">"background-image:My Image"</code><code style="color: #000000;">&gt;&lt;/</code><code style="color: #006699; font-weight: bold;">div</code><code style="color: #000000;">&gt;</code></span></div>
</div>
There is not any issue in printing the Html page, but the issue is the image is not getting displayed in all the three methods tried above. Using <strong>plug-In</strong> is out of scope of my <strong>application</strong>. I want to print the entire HTML that is available in the Div with the <strong>ID=Printable_Div</strong>
Is there any solution to display the image in the print as well.</code></span></span></div>
</div>
<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10473722/how-to-print-html-page-with-image-using-jquery.aspx" target="_self">read more</a>]]></description><pubDate>Wed, 08 May 2013 06:28:04 GMT</pubDate></item><item><title><![CDATA[i would like to add a record in access from javascript and HTML page give me sample pls..]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10473557/i-would-like-to-add-a-record-in-access-from-javascript-and-html-page-give-me-sample-pls.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10473557/i-would-like-to-add-a-record-in-access-from-javascript-and-html-page-give-me-sample-pls.aspx]]></link><description><![CDATA[i&nbsp; would like to add a record in access from javascript and HTML page give me sample pls..<br />
<br />
w3 school example not workoing...<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10473557/i-would-like-to-add-a-record-in-access-from-javascript-and-html-page-give-me-sample-pls.aspx" target="_self">read more</a>]]></description><pubDate>Sat, 27 Apr 2013 06:09:24 GMT</pubDate></item><item><title><![CDATA[How to expand and collapse asp treeview in javascript ?]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10473469/how-to-expand-and-collapse-asp-treeview-in-javascript-.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10473469/how-to-expand-and-collapse-asp-treeview-in-javascript-.aspx]]></link><description><![CDATA[<p>hi</p>
<p>&nbsp; I need sample code for expand and collapse for asp treeview ,i use treeview with enable checkbox,if i click the parent node checkbox it expand all child node ,if i uncheck the parent node it collapse the child node,pls reply asap.</p>
<p>Note : not use "+" symbol for expand and collapse,enable the checkbox ture in treeview,using that checkbox only expand and collapse the nodes.In JavaScriipt</p>
<p>Thanx</p>
<p>&nbsp; Aravind</p>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10473469/how-to-expand-and-collapse-asp-treeview-in-javascript-.aspx" target="_self">read more</a>]]></description><pubDate>Wed, 24 Apr 2013 01:00:35 GMT</pubDate></item><item><title><![CDATA[Google Map Autozoom and Automatic find location]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10473221/google-map-autozoom-and-automatic-find-location.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10473221/google-map-autozoom-and-automatic-find-location.aspx]]></link><description><![CDATA[Hi Everyone,<br />
<br />
I have one javascript requirement.<br />
I want to do it with javascript for my html page.<br />
<br />
Here are the requirements:<br />
I want to have a map on my home page&nbsp;<br />
- I want to auto detect my location (Google or Flash maps)&nbsp;<br />
- Highlight the area on may (zoom) for 3 seconds<br />
- Then redirect to another page<br />
<div><br />
Please help me in doing the above using Javascript !<br />
<br />
Thanks in advance.</div>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10473221/google-map-autozoom-and-automatic-find-location.aspx" target="_self">read more</a>]]></description><pubDate>Mon, 08 Apr 2013 15:04:12 GMT</pubDate></item><item><title><![CDATA[Browser back button functionality not working on Safari on html pages]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10472731/browser-back-button-functionality-not-working-on-safari-on-html-pages.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10472731/browser-back-button-functionality-not-working-on-safari-on-html-pages.aspx]]></link><description><![CDATA[Hi , I&nbsp; have two pages PageA.html and PageB.html ,I navigate from PageA to PageB, the <strong>problem</strong> is<br />
<br />
while&nbsp; I'm on PageB and I use the browser back to go to PageA, the browser back on Safari(browser and&nbsp; mobile)doesn't work , instead it refreshes the page. The behavior is intermittent. Please suggest some solutions for the same.<br />
<br />
The code used for navigation is as below<br />
&nbsp;&lt;a href="Termsandconditions.html"&gt;*Terms &amp; Conditions&lt;/a&gt;<br />
<br />
<br />
Any help is appreciated<br />
<br />
Thanks &amp; Regards<br />
Megha Nagpal,<br />
<br />
<div id="_dyhb23rg4374"></div>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10472731/browser-back-button-functionality-not-working-on-safari-on-html-pages.aspx" target="_self">read more</a>]]></description><pubDate>Tue, 12 Mar 2013 07:55:46 GMT</pubDate></item><item><title><![CDATA[google adsense not showing on my website]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10472718/google-adsense-not-showing-on-my-website.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10472718/google-adsense-not-showing-on-my-website.aspx]]></link><description><![CDATA[i add google adsence on my website and it display but after some months google adsence not display.plz help if anybody know.&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10472718/google-adsense-not-showing-on-my-website.aspx" target="_self">read more</a>]]></description><pubDate>Tue, 12 Mar 2013 00:08:59 GMT</pubDate></item><item><title><![CDATA[Preventing CausesValidation on button Click event if one radio button is ckecked]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10472679/preventing-causesvalidation-on-button-click-event-if-one-radio-button-is-ckecked.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10472679/preventing-causesvalidation-on-button-click-event-if-one-radio-button-is-ckecked.aspx]]></link><description><![CDATA[<span style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px; white-space: normal;">Hi,</span><br style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px;" />
<span style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px; white-space: normal;">I have 2 radio Buttons with IDs rdoYes and rdoNo on my Page,</span><br style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px;" />
<span style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px; white-space: normal;">then what I want is if radio button with id rdoYes is checked then when the user Click on the button it should not causes Validation on my page(has RequeiredFieldvalidator)</span><br style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px;" />
<span style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px; white-space: normal;">This is this code I am using but it is not working,it is still causing validation:</span><br style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px;" />
<br style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px;" />
<span style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px; white-space: normal;">$('#btnContinue').click(function(e) {</span><br style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px;" />
<span style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px; white-space: normal;">if ($('#&lt;%=rdoYes.ClientID %&gt;').attr('checked', 'checked'))</span><br style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px;" />
<span style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px; white-space: normal;">e.preventDefault();</span><br style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px;" />
<span style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px; white-space: normal;">});</span><br style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px;" />
<span style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px; white-space: normal;">&nbsp;</span><br style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px;" />
<span style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px; white-space: normal;">By the way btnContinue is the ID of the button that causesvalidation OnClick event.<br />
</span><span style="color: #111111; font-family: 'segoe ui', arial, sans-serif; font-size: 14px; white-space: normal;">Help!</span><br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10472679/preventing-causesvalidation-on-button-click-event-if-one-radio-button-is-ckecked.aspx" target="_self">read more</a>]]></description><pubDate>Fri, 08 Mar 2013 08:00:45 GMT</pubDate></item><item><title><![CDATA[send sms using jsp]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10472114/send-sms-using-jsp.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10472114/send-sms-using-jsp.aspx]]></link><description><![CDATA[how to send sms using jsp<br />
with help of this link<br />
<code class="plain"></code><code class="string">"http://ubaid.tk/sms/sms.aspx?uid="</code> <code class="plain">+ uid + </code><code class="string">"&amp;pwd="</code> <code class="plain">+ password + </code><code class="string">"&amp;msg="</code> <code class="plain">+ message + </code><code class="string">"&amp;phone="</code> <code class="plain">+ no + </code><code class="string">"&amp;provider=way2sms"</code><br />
i dont want to open this link just process it <br />
help&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10472114/send-sms-using-jsp.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:12 GMT</pubDate></item><item><title><![CDATA[create datagridview in jsp]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10472113/create-datagridview-in-jsp.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10472113/create-datagridview-in-jsp.aspx]]></link><description><![CDATA[how to create datagridview in jsp<br />
i want to create a datagridview fill it using sql database<br />
help me with sample of code&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10472113/create-datagridview-in-jsp.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:12 GMT</pubDate></item><item><title><![CDATA[i have problem related to jquery time]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10472068/i-have-problem-related-to-jquery-time.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10472068/i-have-problem-related-to-jquery-time.aspx]]></link><description><![CDATA[&nbsp;i new to mvc3 . i have implemented a timer to my application using jquery to show automatic reminder.It work but all the other page is not working problem &nbsp;i have put all my jquery code into layout page.here is the code<br />
&lt;script type="text/javascript"&gt;<br />
&nbsp; &nbsp; $(document).ready(function () {<br />
<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; var $ReminderUrl = window.location.toString().split("/")[2];<br />
&nbsp; &nbsp; &nbsp; &nbsp; var $dialogOkFunction = Edit;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; var $id = '';<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; var $dialog = $('&lt;div&gt;&lt;/div&gt;')<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .dialog({<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; autoOpen: false,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; modal: true,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; height: 300,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; width: 480,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; title: 'Reminder',<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buttons: {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Snooze": function () {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Pause();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //$TimerStartFunction = Pause;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($("#Snooze").val() &gt; 0) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //return true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Edit(true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert('Please select few &nbsp;mintue')<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(this).dialog("close");<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Start();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Dismissed": function () {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Pause();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $TimerStartFunction = Pause;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Edit(false);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(this).dialog("close");<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Start();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; open: function () {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(this).parents('.ui-dialog-buttonpane button:eq(1)').focus();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; var $timer = $.timer(function () {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $.ajax({<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; type: "GET",<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cache: false,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; url: "http://" + $ReminderUrl + "/" + "AMC/Reminder/ReminderBox",<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; success: function (data) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (data.Status == '@MapleTree.Common.ResultStatus.Success.ToString()') {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // $TimerPauseFunction = Pause;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $dialog.html(data.Html);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $dialogOkFunction = Edit;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $id = data.id;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $JobNum = data.JobNum;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $RemainderTypeID = data.RemainderTypeID;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $ScheduleTypeID = data.ScheduleTypeID;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $EventTime = data.EventTime;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $Subject = data.Subject;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $Message = data.Message;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $RemainderTime = data.RemainderTime;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $StartTime = data.StartTime;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $EndTime = data.EndTime;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $Remarks = data.Remarks;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //$Snooze = data.Snooze;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $dialog.dialog('open');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(data.Html);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //$dialog.html(data.Htmll);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; error: function () {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $dialog.html("Error Ocured while processing the request.")<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $dialog.dialog('open');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //$dialog.dialog('open');<br />
&nbsp; &nbsp; &nbsp; &nbsp; });<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; // &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var $TimerStartFunction = Start;<br />
&nbsp; &nbsp; &nbsp; &nbsp; // &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var $TimerPauseFunction = Pause;<br />
<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $timer.set({ time: 60000, autostart: true });<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; function Start() { $timer.play(); }<br />
&nbsp; &nbsp; &nbsp; &nbsp; function Pause() { $timer.pause(); }<br />
<br />
<br />
<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; function Edit(reminderAction) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var ReminderData = {};<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var setTime = new Date();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ReminderData["JobNum"] = $JobNum;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ReminderData["ScheduleTypeID"] = $ScheduleTypeID;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ReminderData["EventTime"] = $EventTime;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ReminderData["Subject"] = $Subject;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ReminderData["Message"] = $Message;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ReminderData["StartTime"] = $StartTime;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ReminderData["EndTime"] = $EndTime;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ReminderData["Remarks"] = $Remarks;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ReminderData["Snooze"] = $('#Snooze option:selected').text();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var SnoozeTime = $('#Snooze option:selected').text();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; switch (SnoozeTime) {<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 'Five':<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setTime.setMinutes(setTime.getMinutes() + 5);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 'Ten':<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setTime.setMinutes(setTime.getMinutes() + 10);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 'Fifteen':<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setTime.setMinutes(setTime.getMinutes() + 15);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 'Twenty':<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setTime.setMinutes(setTime.getMinutes() + 20);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setTime.setMinutes(setTime.getMinutes() + 60);<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(SnoozeTime);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ReminderData["RemainderTime"] = setTime;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (reminderAction)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ReminderData["IsActive"] = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ReminderData["IsActive"] = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ReminderData["Id"] = $id;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var DTO = { reminder: ReminderData };<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $.ajax({<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; type: "POST",<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dataType: "json",<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; data: JSON.stringify(DTO),<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cache: false,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; url: "http://" + $ReminderUrl + "/" + "AMC/Reminder/ReminderBox/" + $id,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; contentType: "application/json; charset=utf-8",<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; success: function (data) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (data.Status == '@MapleTree.Common.ResultStatus.Success.ToString()') {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $dialog.dialog('close');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(this).dialog("close");<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; error: function () {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert("An error has occurred during processing your request.");<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
waht is problem because all other page is not working .it show some jquery issue<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $(".select").click(function () {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(".nav-outer-repeat-Type .nav-outer .nav .current").removeClass('current').addClass("select")<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(this).removeClass('select').addClass("current");<br />
&nbsp; &nbsp; &nbsp; &nbsp; });<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $(".current").click(function () {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(".nav-outer-repeat-Type .nav-outer .nav .current").removeClass('current').addClass("select")<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(this).removeClass('select').addClass("current");<br />
&nbsp; &nbsp; &nbsp; &nbsp; });<br />
<br />
<br />
&nbsp; &nbsp; });<br />
<br />
<br />
<br />
<br />
&nbsp; &nbsp; &lt;/script&gt;&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10472068/i-have-problem-related-to-jquery-time.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:12 GMT</pubDate></item><item><title><![CDATA[jquery mathquill expression evalution]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10470865/jquery-mathquill-expression-evalution.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10470865/jquery-mathquill-expression-evalution.aspx]]></link><description><![CDATA[Hi,<br />
<br />
I used mathquill plugin for calculate square root ad some other operation..<br />
I was included the plugin..its working fine...its formed the expression in perfect..<br />
but i cant evaluate the expression..any one aware of this functionality please share your knowledge..&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10470865/jquery-mathquill-expression-evalution.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:12 GMT</pubDate></item><item><title><![CDATA[How to validate two digits after decimal and after 3 digits like 12.347]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10470710/how-to-validate-two-digits-after-decimal-and-after-3-digits-like-12347.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10470710/how-to-validate-two-digits-after-decimal-and-after-3-digits-like-12347.aspx]]></link><description><![CDATA[Hi to all,<br />
<br />
&nbsp; I need to validate percentage filed,in that accepting 2 digits ,after decimal, after maximum 3 digits like 12.3,12.32,12.321 using javascript.Please let me know if my question was not clear.<br />
<br />
Regards,<br />
Teja.&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10470710/how-to-validate-two-digits-after-decimal-and-after-3-digits-like-12347.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:13 GMT</pubDate></item><item><title><![CDATA[I am getting this error..Webpage error details]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10470576/i-am-getting-this-errorwebpage-error-details.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10470576/i-am-getting-this-errorwebpage-error-details.aspx]]></link><description><![CDATA[<p>Webpage error details</p>
<p>User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)<br />
Timestamp: Wed, 16 Jan 2013 06:55:44 UTC</p>
<p >Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)<br />
Line: 0<br />
Char: 0<br />
Code: 0</p>
<br />
<br />
so my ie8 browser is slowing down..why..?<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10470576/i-am-getting-this-errorwebpage-error-details.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:14 GMT</pubDate></item><item><title><![CDATA[Flickering effect while using Jquery Ui Accordion on expanding and collapsing]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10470435/flickering-effect-while-using-jquery-ui-accordion-on-expanding-and-collapsing.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10470435/flickering-effect-while-using-jquery-ui-accordion-on-expanding-and-collapsing.aspx]]></link><description><![CDATA[Hi&nbsp; All,<br />
<br />
I'm new to Jquery and I'm using a Jquery Ui accordion , the problem is that<br />
&nbsp;there is <strong>some flickering effect</strong> while I expand and collapse the headers thereby meaning that the transition/animation is not smooth.<br />
The problem becomes more dominant while testing the application on Iphone4.<br />
<br />
<br />
The second problem is that I have plus and minus icons in the header, and I want that the <strong>accordion should collapse and expand by clicking on only those icons not on the entire header.</strong><br />
<br />
<br />
Any help is appreciated.<br />
<br />
Thanks&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10470435/flickering-effect-while-using-jquery-ui-accordion-on-expanding-and-collapsing.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:15 GMT</pubDate></item><item><title><![CDATA[using javascipt function to check index]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10470410/using-javascipt-function-to-check-index.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10470410/using-javascipt-function-to-check-index.aspx]]></link><description><![CDATA[&nbsp;function sindex()<br />
&nbsp;{<br />
&nbsp; if (sel_agefrom.SelectedIndex == &nbsp;0 || sel_ageto.SelectedIndex==0)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp;alert ("Select from and to age");<br />
&nbsp; &nbsp; &nbsp; &nbsp;return false;<br />
&nbsp; &nbsp; }<br />
&nbsp;}<br />
<br />
i have above script with dropdown &nbsp;and a command button on page<br />
the command button has &nbsp;OnClick event which eexecutes code behind<br />
<br />
if the drop down has selected index as 0 the above alert should popup and the onclick shld not get executed&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10470410/using-javascipt-function-to-check-index.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:15 GMT</pubDate></item><item><title><![CDATA[I am adding to new rows to gridview using Javascript but it shows only for few seconds]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10470123/i-am-adding-to-new-rows-to-gridview-using-javascript-but-it-shows-only-for-few-seconds.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10470123/i-am-adding-to-new-rows-to-gridview-using-javascript-but-it-shows-only-for-few-seconds.aspx]]></link><description><![CDATA[hi,<br />
<br />
I am adding to new rows to gridview using Javascript but it shows only for few seconds and then it gets disappear.<br />
<br />
I calling the javascript method onClientClick in asp.net C# application.<br />
<br />
<br />
How can you fix the disappearance issue?<br />
<br />
Any suggestions and thank you in advance!&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10470123/i-am-adding-to-new-rows-to-gridview-using-javascript-but-it-shows-only-for-few-seconds.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:16 GMT</pubDate></item><item><title><![CDATA[how to preview the page in popup  when anchor tag mouce over r click]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10470079/how-to-preview-the-page-in-popup--when-anchor-tag-mouce-over-r-click.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10470079/how-to-preview-the-page-in-popup--when-anchor-tag-mouce-over-r-click.aspx]]></link><description><![CDATA[Dear Friends,<br />
&nbsp;&nbsp; i have small requirement i.e i have displayed 1 to 10 link<br />
like<br />
<br />
&lt;a href=""&gt;link 1&lt;/a&gt;<br />
&lt;a href=""&gt;link 1&lt;/a&gt;<br />
&lt;a href=""&gt;link 1&lt;/a&gt;<br />
&lt;a href=""&gt;link 1&lt;/a&gt;<br />
&lt;a href=""&gt;link 1&lt;/a&gt;<br />
&lt;a href=""&gt;link 1&lt;/a&gt;<br />
.<br />
.<br />
.<br />
..<br />
<br />
when i click on link1 it will show popup with page priview(or open dialog box also better)<br />
like google..when enter text it will display 1 to 10&nbsp; link ..on link right side have an arrow...when mouse over r click on that it will preview the page in popup...<br />
<br />
exact i need that solution..<br />
<br />
<br />
PLZ any one knows well in functionality help me.<br />
<br />
Regards<br />
Venkat&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10470079/how-to-preview-the-page-in-popup--when-anchor-tag-mouce-over-r-click.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:16 GMT</pubDate></item><item><title><![CDATA[Function is not working in IE?]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10470078/function-is-not-working-in-ie.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10470078/function-is-not-working-in-ie.aspx]]></link><description><![CDATA[Hi,<br />
<br />
I am calling a javascript function from xslt say display('$a','$b'),<br />
<br />
here "a" and "b" comes from xml . In this function i have implemented some logic like hide when the link is clicked...<br />
<br />
in variable "b" sometimes i will get some huge data. The function is working in Firefox irrespective to data,<br />
but in IE when the data is more the function is not even getting called..<br />
<br />
Can any one help me in this<br />
<br />
<br />
Thanks in Advance....&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10470078/function-is-not-working-in-ie.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:16 GMT</pubDate></item><item><title><![CDATA[Incase of the free jqgrid Asp.net MVC do we have multiple column filter functionality or w]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10469987/incase-of-the-free-jqgrid-aspnet-mvc-do-we-have-multiple-column-filter-functionality-or-w.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10469987/incase-of-the-free-jqgrid-aspnet-mvc-do-we-have-multiple-column-filter-functionality-or-w.aspx]]></link><description><![CDATA[<li>Incase of the <strong>free</strong> jqgrid Asp.net MVC do we have multiple column filter functionality or we have to customize the .js files? If yes, Please send suitable link.</li>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10469987/incase-of-the-free-jqgrid-aspnet-mvc-do-we-have-multiple-column-filter-functionality-or-w.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:17 GMT</pubDate></item><item><title><![CDATA[Remembering previously selected radio selection]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10469840/remembering-previously-selected-radio-selection.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10469840/remembering-previously-selected-radio-selection.aspx]]></link><description><![CDATA[<div class="reCodeBlock" style="overflow-y: auto;border: #7f9db9 0px solid;">
<div style="background-color: #fff;"><span style="margin-left: 0px !important;"><code style="font-weight: bold; color: #069;">Hi,<br />
If anyone can advise me how I can include the code that is not inside the function into the function if this is possible?. As I have it at the moment if there is radio button that is selected when a user edits the doc and then they change the radio selection it applies a class_plrs to the already selected radio and a different&nbsp;class_y to the newly selected radio&nbsp;and applies a class_n to all radio that are not selected. and or is there a way I can pass the Element Name to the code outside the function.<br />
If anyone can advise please.<br />
<br />
<br />
<br />
<br />
for</code> <code style="color: #000;">(</code><code style="font-weight: bold; color: #069;">var</code> <code style="color: #000;">x = 0; x &lt; document.fJobFUedit.x_Inv.length; x++) { </code></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 12px !important;"><code style="font-weight: bold; color: #069;">var</code> <code style="color: #000;">cur_sel_radio = document.fJobFUedit.x_Inv[x].checked; </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 12px !important;"><code style="font-weight: bold; color: #069;">if</code> <code style="color: #000;">(cur_sel_radio == </code><code style="font-weight: bold; color: #069;">true</code><code style="color: #000;">) { </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="font-weight: bold; color: #069;">var</code> <code style="color: #000;">plrs_n = x;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="color: #008200;">//alert(" ************** get selected radio on page load = " + cur_sel_radio + " = " + plrs_n + " **************"); </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 12px !important;"><code style="color: #000;">} </code><code style="font-weight: bold; color: #069;">else</code> <code style="font-weight: bold; color: #069;">if</code> <code style="color: #000;">(!cur_sel_radio == </code><code style="font-weight: bold; color: #069;">true</code><code style="color: #000;">) { </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="font-weight: bold; color: #069;">var</code> <code style="color: #000;">plrs_n = 0;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="color: #008200;">//alert(" ************** get selected radio on page load = " + cur_sel_radio + " = " + plrs_n + " **************"); </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 12px !important;"><code style="color: #000;">} </code></span></span></div>
<div style="background-color: #fff;"><span style="margin-left: 0px !important;"><code style="color: #000;">} </code></span></div>
<div style="background-color: #fff;"><span style="margin-left: 0px !important;"><code style="font-weight: bold; color: #069;">function</code> <code style="color: #000;">SelectedRadio(Use_Id) {&nbsp;&nbsp;&nbsp; </code></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 12px !important;"><code style="font-weight: bold; color: #069;">for</code> <code style="color: #000;">(</code><code style="font-weight: bold; color: #069;">var</code> <code style="color: #000;">i = 0; i &lt; document.getElementsByName(Use_Id).length; i++) { </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="font-weight: bold; color: #069;">if</code> <code style="color: #000;">(document.getElementsByName(Use_Id)[i].checked) { </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 36px !important;"><code style="color: #000;">document.getElementsByName(Use_Id)[i].className = </code><code style="color: blue;">'Radio_Y'</code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <code style="color: #008200;">//Apply Class to newly Selected Radio </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 36px !important;"><code style="color: #000;">document.getElementsByName(Use_Id)[plrs_n].className = </code><code style="color: blue;">'Radio_Plrs'</code>&nbsp;&nbsp;&nbsp;&nbsp; <code style="color: #008200;">//Apply Class to Selected Radio on Page Load </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 36px !important;"><code style="color: #000;">alert(</code><code style="color: blue;">" ############## "</code> <code style="color: #000;">+ i + </code><code style="color: blue;">" = "</code> <code style="color: #000;">+ plrs_n + </code><code style="color: blue;">" ############## "</code><code style="color: #000;">); </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="color: #000;">} </code><code style="font-weight: bold; color: #069;">else</code> <code style="font-weight: bold; color: #069;">if</code> <code style="color: #000;">(!document.getElementsByName(Use_Id)[i].checked) {&nbsp; </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 36px !important;"><code style="color: #000;">document.getElementsByName(Use_Id)[i].className = </code><code style="color: blue;">'Radio_N'</code><code style="color: #000;">;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </code><code style="color: #008200;">//Apply Class to Not Selected Radio's </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 36px !important;"><code style="color: #000;">document.getElementsByName(Use_Id)[plrs_n].className = </code><code style="color: blue;">'Radio_Plrs'</code><code style="color: #000;">;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </code><code style="color: #008200;">//Apply Class to Selected Radio on Page Load </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 36px !important;"><code style="color: #008200;">//alert(" ************** " + i + " = " + plrs_n + " ************** "); </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="color: #000;">}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 12px !important;"><code style="color: #000;">} </code></span></span></div>
<div style="background-color: #fff;"><span style="margin-left: 0px !important;"><code style="color: #000;">}&nbsp; </code></span></div>
</div>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10469840/remembering-previously-selected-radio-selection.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:18 GMT</pubDate></item><item><title><![CDATA[required ready made project on jsp]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10468796/required-ready-made-project-on-jsp.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10468796/required-ready-made-project-on-jsp.aspx]]></link><description><![CDATA[required ready made project on jsp<br />
if any one could provide me the link of latest topics project from where i can download<br />
or if could mail me <br />
projects on jsp unique topic required<br />
please help urgent&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10468796/required-ready-made-project-on-jsp.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:18 GMT</pubDate></item><item><title><![CDATA[Compare system date with database date using JQuery?]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10467554/compare-system-date-with-database-date-using-jquery.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10467554/compare-system-date-with-database-date-using-jquery.aspx]]></link><description><![CDATA[Hi All,<br />
<br />
I have system current date format like: "Wednesday, Oct 17, 2012" and I have Database date format like: 2012 - 10 - 17. Now I want to put these two dates in if condition like: <br />
if(Database date&lt;=system current date)<br />
{ <br />
.......<br />
.......<br />
}<br />
<br />
I have to do this thing using JQUERY script only.<br />
can any one&nbsp;help me out.<br />
<br />
Thanks,<br />
var&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10467554/compare-system-date-with-database-date-using-jquery.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:52 GMT</pubDate></item><item><title><![CDATA[When the Radibuttonlist is checked error prompt doesn't get hidden?]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10467535/when-the-radibuttonlist-is-checked-error-prompt-doesnt-get-hidden.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10467535/when-the-radibuttonlist-is-checked-error-prompt-doesnt-get-hidden.aspx]]></link><description><![CDATA[<div class="reCodeBlock" style="border: 0px solid #7f9db9; overflow-y: auto;">
<div style="background-color: #ffffff;"><span style="margin-left: 0px !important;"><code style="color: #000000;">- RadioButtonList</code></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;</code><span style="margin-left: 3px !important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">asp:radiobuttonlist</code> <code style="color: #808080;">id</code><code style="color: #000000;">=</code><code style="color: blue;">"rblControl1"</code> <code style="color: #808080;">runat</code><code style="color: #000000;">=</code><code style="color: blue;">"server"</code> <code style="color: #808080;">CssClass</code><code style="color: #000000;">=</code><code style="color: blue;">"rblControl1Class"</code><code style="color: #000000;">&gt;&nbsp;&nbsp;&nbsp; &lt;</code><code style="color: #006699; font-weight: bold;">asp:listitem</code><code style="color: #000000;">&gt;one&lt;/</code><code style="color: #006699; font-weight: bold;">asp:listitem</code><code style="color: #000000;">&gt;&nbsp;&nbsp;&nbsp; &lt;</code><code style="color: #006699; font-weight: bold;">asp:listitem</code><code style="color: #000000;">&gt;two&lt;/</code><code style="color: #006699; font-weight: bold;">asp:listitem</code><code style="color: #000000;">&gt;&nbsp;&nbsp;&nbsp; &lt;</code><code style="color: #006699; font-weight: bold;">asp:listitem</code><code style="color: #000000;">&gt;three&lt;/</code><code style="color: #006699; font-weight: bold;">asp:listitem</code><code style="color: #000000;">&gt;&nbsp;&nbsp;&nbsp; &lt;</code><code style="color: #006699; font-weight: bold;">asp:listitem</code><code style="color: #000000;">&gt;four&lt;/</code><code style="color: #006699; font-weight: bold;">asp:listitem</code><code style="color: #000000;">&gt;&lt;/</code><code style="color: #006699; font-weight: bold;">asp:radiobuttonlist</code><code style="color: #000000;">&gt; </code></span></span></div>
<div style="background-color: #ffffff;"><span style="margin-left: 0px !important;">&nbsp;</span></div>
<div style="background-color: #fff;"><span style="margin-left: 0px !important;"><code style="color: #000000;">var rbl1 = $('input[name=&lt;%= rblControl1.ClientID %&gt;]:checked').val();</code></span></div>
<div style="background-color: #ffffff;"><span style="margin-left: 0px !important;"><code style="color: #000000;">if (!rbl1) </code></span></div>
<div style="background-color: #fff;"><span style="margin-left: 0px !important;"><code style="color: #000000;">{&nbsp;&nbsp;&nbsp; </code></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;</code><span style="margin-left: 3px !important;"><code style="color: #000000;">result = false;&nbsp; </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 6px !important;"><code style="color: #000000;">$('.rblControl1Class').validationEngine('showPrompt', '* This field is required', null, null, true);} </code></span></span></div>
<div style="background-color: #ffffff;"><span style="margin-left: 0px !important;"><code style="color: #000000;">else {&nbsp; </code></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 6px !important;"><code style="color: #000000;">$('.rblControl1Class').validationEngine('hide');</code></span></span></div>
<div style="background-color: #ffffff;"><span style="margin-left: 0px !important;"><code style="color: #000000;">} </code></span></div>
</div>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10467535/when-the-radibuttonlist-is-checked-error-prompt-doesnt-get-hidden.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:52 GMT</pubDate></item><item><title><![CDATA[i have a doubt in java script]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10467529/i-have-a-doubt-in-java-script.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10467529/i-have-a-doubt-in-java-script.aspx]]></link><description><![CDATA[&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10467529/i-have-a-doubt-in-java-script.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:52 GMT</pubDate></item><item><title><![CDATA[why Sigma.Grid.render is not working in javascript function in Internet explorer]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10467511/why-sigmagridrender-is-not-working-in-javascript-function-in-internet-explorer.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10467511/why-sigmagridrender-is-not-working-in-javascript-function-in-internet-explorer.aspx]]></link><description><![CDATA[<p>HI,<br />
I am loading a sigma grid in modal window.In firefox it is working fine but in IE the render function is not working.Bcoz of this render, the modal window itslef is not loading.please help me in this<br />
<br />
&lt;head&gt;<br />
&lt;script&gt;&nbsp;<br />
&nbsp;function planObjectiveModal(){<br />
&nbsp;&nbsp; <br />
&nbsp;&nbsp; document.getElementById("planObjModal"+[selectedIndex]).style.display="block";<br />
&nbsp;<br />
&nbsp;&nbsp;&nbsp; var grid_demo_id = "myModalGridCustom"+[selectedIndex];<br />
&nbsp;&nbsp;&nbsp; var dsOption1Custom = {<br />
&nbsp;<br />
&nbsp;&nbsp;&nbsp; &nbsp;fields : [ {<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;name : 'variable'<br />
&nbsp;&nbsp;&nbsp; &nbsp;}, {<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;name : 'weights'<br />
&nbsp;&nbsp;&nbsp; &nbsp;}<br />
&nbsp;&nbsp;&nbsp; &nbsp;],<br />
&nbsp;&nbsp;&nbsp; &nbsp;recordType : 'object',<br />
&nbsp;&nbsp;&nbsp; &nbsp;data : objectiveList[selectedIndex]<br />
&nbsp;&nbsp;&nbsp; };<br />
&nbsp;<br />
&nbsp;&nbsp;&nbsp;var colsOption1Custom = [<br />
&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;id : 'variable',<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;header : "variable",<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;width : 140,<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;resizable : false<br />
&nbsp;&nbsp;&nbsp; &nbsp;},<br />
&nbsp;&nbsp;&nbsp; &nbsp;{<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;id : 'weights',<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;header : "weights",<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;width : 105<br />
&nbsp;&nbsp;&nbsp; &nbsp;<br />
&nbsp;&nbsp;&nbsp;]; &nbsp;</p>
<p>&nbsp;&nbsp;var gridOption1Custom = {</p>
<p>&nbsp;&nbsp; &nbsp;&nbsp;id : grid_demo_id,<br />
&nbsp;&nbsp; &nbsp;&nbsp;width : "244", <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;height : "262", <br />
&nbsp;&nbsp; &nbsp;&nbsp;container : "out_gridboxCustom"+[selectedIndex],<br />
&nbsp;&nbsp; &nbsp;&nbsp;dataset : dsOption1Custom,<br />
&nbsp;&nbsp; &nbsp;&nbsp;columns : colsOption1Custom,<br />
&nbsp;&nbsp; &nbsp;&nbsp;toolbarPosition : null,<br />
&nbsp;&nbsp; &nbsp;&nbsp;skin:"vista"<br />
&nbsp;&nbsp; &nbsp;&nbsp;<br />
&nbsp;&nbsp; };<br />
&nbsp;&nbsp;<br />
&nbsp;&nbsp; myModalGridCustom[selectedIndex] = new Sigma.Grid(gridOption1Custom);<br />
&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp; Sigma.Grid.render(myModalGridCustom[selectedIndex])(); <br />
&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;//Sigma.Util.onLoad(Sigma.Grid.render(myModalGridCustom[selectedIndex]));<br />
&nbsp;&nbsp;&nbsp;</p>
<p>&nbsp;</p>
<p style="text-align: left;">&nbsp;</p>
<p style="text-align: left;"><b><span style="color: #7f0055; font-size: 13px;">var</span></b><span style="font-size: 13px;"> planModalWindow=$(</span><span style="color: #2a00ff; font-size: 13px;">'#planObjModal'</span>+[selectedIndex]).dialog( {</p>
<p>&nbsp;</p>
<p style="text-align: left;">&nbsp;</p>
<p style="text-align: left;">draggable : </p>
<p style="text-align: left;"><b><span style="color: #7f0055; font-size: 13px;">false</span></b>,</p>
<p>&nbsp;</p>
<p style="text-align: left;">&nbsp;</p>
<p style="text-align: left;">resizable : </p>
<p style="text-align: left;"><b><span style="color: #7f0055; font-size: 13px;">false</span></b>,</p>
<p>&nbsp;</p>
<p style="text-align: left;">&nbsp;</p>
<p style="text-align: left;">autoOpen : </p>
<p style="text-align: left;"><b><span style="color: #7f0055; font-size: 13px;">false</span></b>,</p>
<p>&nbsp;</p>
<p style="text-align: left;">&nbsp;</p>
<p style="text-align: left;">modal : </p>
<p style="text-align: left;"><b><span style="color: #7f0055; font-size: 13px;">true</span></b>,</p>
<p>&nbsp;</p>
<p style="text-align: left;">&nbsp;</p>
<p style="text-align: left;">width :380,</p>
<p style="text-align: left;">&nbsp;</p>
<p style="text-align: left;">height : 460,</p>
<p style="text-align: left;">&nbsp;</p>
<p style="text-align: left;">open : </p>
<p style="text-align: left;"><b><span style="color: #7f0055; font-size: 13px;">function</span></b>(event, ui) {</p>
<p>&nbsp;</p>
<p style="text-align: left;">&nbsp;</p>
<p style="text-align: left;">$(</p>
<p style="text-align: left;"><span style="color: #2a00ff; font-size: 13px;">'body'</span><span style="font-size: 13px;">).css(</span><span style="color: #2a00ff; font-size: 13px;">'overflow'</span><span style="font-size: 13px;">, </span><span style="color: #2a00ff; font-size: 13px;">'hidden'</span>);</p>
<p>&nbsp;</p>
<p style="text-align: left;">&nbsp;</p>
<p style="text-align: left;">$(</p>
<p style="text-align: left;"><span style="color: #2a00ff; font-size: 13px;">'#planObjModal'</span><span style="font-size: 13px;">+[selectedIndex]).css(</span><span style="color: #2a00ff; font-size: 13px;">'overflow'</span><span style="font-size: 13px;">, </span><span style="color: #2a00ff; font-size: 13px;">'hidden'</span>);</p>
<p>&nbsp;</p>
<p style="text-align: left;">&nbsp;</p>
<p style="text-align: left;">&nbsp;</p>
<p style="text-align: left;">}</p>
<p style="text-align: left;">&nbsp;</p>
<p>&nbsp;</p>
<p style="text-align: left;">});</p>
<p>&nbsp;</p>
<p>}<br />
<br />
<br />
&lt;script/&gt;<br />
&lt;head/&gt;<br />
&lt;body&gt;<br />
----<br />
---<br />
&lt;input type="submit" id="ddlistobjective" onclick="planObjectiveModal();" value="Custom"/&gt;<br />
---<br />
---<br />
&lt;/body&gt;</p>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10467511/why-sigmagridrender-is-not-working-in-javascript-function-in-internet-explorer.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:52 GMT</pubDate></item><item><title><![CDATA[Creating a dijit.MenuBar dynamically getting menu details from the user]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10467238/creating-a-dijitmenubar-dynamically-getting-menu-details-from-the-user.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10467238/creating-a-dijitmenubar-dynamically-getting-menu-details-from-the-user.aspx]]></link><description><![CDATA[&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10467238/creating-a-dijitmenubar-dynamically-getting-menu-details-from-the-user.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:54 GMT</pubDate></item><item><title><![CDATA[How to Validate Dynamic binded and a normal checkboxlist of asp?]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10466460/how-to-validate-dynamic-binded-and-a-normal-checkboxlist-of-asp.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10466460/how-to-validate-dynamic-binded-and-a-normal-checkboxlist-of-asp.aspx]]></link><description><![CDATA[&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10466460/how-to-validate-dynamic-binded-and-a-normal-checkboxlist-of-asp.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:57 GMT</pubDate></item><item><title><![CDATA[how to implement menu and submenu  realationship using css or jquery ?]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10466370/how-to-implement-menu-and-submenu--realationship-using-css-or-jquery-.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10466370/how-to-implement-menu-and-submenu--realationship-using-css-or-jquery-.aspx]]></link><description><![CDATA[&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10466370/how-to-implement-menu-and-submenu--realationship-using-css-or-jquery-.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:57 GMT</pubDate></item><item><title><![CDATA[footer validation]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10466330/footer-validation.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10466330/footer-validation.aspx]]></link><description><![CDATA[<br />
<br />
hi sir...&nbsp;<br />
<span class="Apple-tab-span" style="white-space: pre;">		</span>i want footer template validation in java script, using textbox.&nbsp;<br />
<br />
&nbsp;<span class="Apple-tab-span" style="white-space: pre;">		</span>i have a code for&nbsp;<br />
<span class="Apple-tab-span" style="white-space: pre;">				</span><br />
<span class="Apple-tab-span" style="white-space: pre;">			</span>document.getelementbyId('&lt;% = txtname.ClientID %&gt;')<br />
<br />
i get error <br />
<span class="Apple-tab-span" style="white-space: pre;">		</span>txtname.ClientID &nbsp;does not exit in the current context<br />
<span class="Apple-tab-span" style="white-space: pre;">			</span><br />
<span class="Apple-tab-span" style="white-space: pre;">		</span>pls sir kindly help me sir.&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10466330/footer-validation.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:57 GMT</pubDate></item><item><title><![CDATA[using JqAuto binding for an array of objects...its not working]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10466298/using-jqauto-binding-for-an-array-of-objectsits-not-working.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10466298/using-jqauto-binding-for-an-array-of-objectsits-not-working.aspx]]></link><description><![CDATA[I'm using MVVM/MCV and on the view we have dropdowns with JqAuto data-bind for the list. The source array is of type ValueItem. &nbsp;ValueItem has ID and Name.<br />
<br />
The binding seems to be working somewhat but the list is not getting populated with ValueItem.Name<br />
<br />
Here is the code:<br />
<br />
<pre style="font-family: consolas; color: black; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial;"><span style="color: blue;">&lt;</span><span style="color: maroon;">input</span>&nbsp;<span style="color: red;">id</span><span style="color: blue;">=</span><span style="color: blue;">"agencyStatusInput"</span>&nbsp;<span style="color: red;">class</span><span style="color: blue;">=</span><span style="color: blue;">"column&nbsp;restrictedAutoComplete&nbsp;smallInputBox&nbsp;ui-widget-content&nbsp;ui-corner-all"</span>&nbsp;<span style="color: red;">data-bind</span><span style="color: blue;">=</span><span style="color: blue;">"jqAuto:&nbsp;{&nbsp;autoFocus:&nbsp;true,&nbsp;minLength:&nbsp;0&nbsp;},
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;jqAutoSource:&nbsp;viewModel.InitializationValues().AvailableAgencyStatusRulesArray(),
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;jqAutoValue:&nbsp;viewModel.AgencyInfoVM().agencySearchCriteria().Status,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; jqAutoSourceInputValue:&nbsp;'Name',
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;jqAutoSourceValue:&nbsp;'ID'"</span>&nbsp;<span style="color: blue;">/&gt;</span></pre>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10466298/using-jqauto-binding-for-an-array-of-objectsits-not-working.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:57 GMT</pubDate></item><item><title><![CDATA[Jqgrid column selection]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10466196/jqgrid-column-selection.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10466196/jqgrid-column-selection.aspx]]></link><description><![CDATA[Hi,<br />
I had jqgrid with 2 columns..that second column have one image...<br />
when i click that image that selected row will select..<br />
how will select that full row ?<br />
i used this kind of coding<br />
&nbsp; var sel_id = $('#Packagelist').jqGrid('getGridParam', 'selrow');<br />
&nbsp;&nbsp;&nbsp; var rowData = $("#Packagelist").getRowData(sel_id);<br />
<br />
but its returns null..<br />
when i select the row and then click that&nbsp; button means its working fine...<br />
please share some idea?<br />
<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10466196/jqgrid-column-selection.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:57 GMT</pubDate></item><item><title><![CDATA[How to validate asp.net  RADIO BUTTON LIST using jqery only]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10466132/how-to-validate-aspnet--radio-button-list-using-jqery-only.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10466132/how-to-validate-aspnet--radio-button-list-using-jqery-only.aspx]]></link><description><![CDATA[How to validate asp.net&nbsp; RADIO BUTTON LIST using jqery only in master page<br />
<br />
&nbsp;&nbsp; &lt;asp:RadioButtonList ID="rtbrelprincpemp"&nbsp; runat="server" RepeatDirection="Horizontal" &gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;asp:ListItem Value="0"&gt;No&lt;/asp:ListItem&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;asp:ListItem Value="1"&gt;Yes&lt;/asp:ListItem&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/asp:RadioButtonList&gt;<br />
<br />
&nbsp;&nbsp;&nbsp; &lt;asp:Button ID="btnsubmit" runat="server" Text="Submit" OnClick="btnsubmit_Click1"&nbsp; /&gt;&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10466132/how-to-validate-aspnet--radio-button-list-using-jqery-only.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:58 GMT</pubDate></item><item><title><![CDATA[Info message box in web application: how to obtain it?]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10465751/info-message-box-in-web-application-how-to-obtain-it.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10465751/info-message-box-in-web-application-how-to-obtain-it.aspx]]></link><description><![CDATA[<p style="margin: 0cm 0cm 10pt;"><span style="line-height: 115%; font-family: verdana, sans-serif; color: #000000; font-size: 10pt;">javascript - INFO message box in vb.net - server side - web application created with Visual studio</span></p>
<p style="margin: 0cm 0cm 10pt; vertical-align: top;"><span style="color: #000000;"><span style="line-height: 115%; font-family: verdana, sans-serif; font-size: 10pt;">This code displays a message from server after page postback with an OK button.&nbsp; Message appears like an alert, with his yellow triangle and the </span><span style="line-height: 115%; font-family: verdana, sans-serif; color: #333333; font-size: 10pt;">exclamation mark. </span><span style="line-height: 115%; font-family: verdana, sans-serif; font-size: 10pt;">It goes very well.</span></span></p>
<p><span style="color: #000000;"><span style="font-family: courier new; color: blue; font-size: 10pt;">Dim</span><span style="font-family: courier new; font-size: 10pt;"> lbl <span style="color: blue;">As</span> <span style="color: blue;">New</span> System.Web.UI.WebControls.Label</span></span></p>
<p><span style="color: #000000;"><span style="font-family: courier new; font-size: 10pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-family: courier new; font-size: 10pt;">lbl.Text = <span style="color: #a31515;">"&lt;script language='javascript'&gt;"</span> &amp; Environment.NewLine _</span></span></p>
<p><span style="color: #000000;"><span style="font-family: courier new; font-size: 10pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</span><span style="font-family: courier new; font-size: 10pt;">&amp; <span style="color: #a31515;">"window.alert("</span> &amp; <span style="color: #a31515;">"'"</span> &amp; strMsg &amp; <span style="color: #a31515;">"'"</span> &amp; <span style="color: #a31515;">")&lt;/script&gt;"</span></span></span></p>
<p style="margin: 0cm 0cm 10pt;"><span style="line-height: 115%; font-family: courier new; color: #000000; font-size: 10pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Page.Controls.Add(lbl)</span></p>
<p style="margin: 0cm 0cm 10pt; vertical-align: top;"><span style="color: #000000;"><span style="line-height: 115%; font-family: verdana, sans-serif; color: black; font-size: 10pt;">If I use </span><span style="line-height: 115%; font-family: verdana, sans-serif; color: #a31515; font-size: 10pt;">window.confirm </span><span style="line-height: 115%; font-family: verdana, sans-serif; color: black; font-size: 10pt;">instaed </span><span style="line-height: 115%; font-family: verdana, sans-serif; color: #a31515; font-size: 10pt;">window.alert</span><span style="line-height: 115%; font-family: verdana, sans-serif; color: black; font-size: 10pt;">, it appears a point of demand.</span></span></p>
<p style="margin: 0cm 0cm 10pt; vertical-align: top;"><span style="color: #000000;"><span style="line-height: 115%; font-family: verdana, sans-serif; font-size: 10pt;"><strong>However I need to obtain a simple INFO MESSAGE</strong> <span style="text-decoration: underline;"><strong>without </strong></span></span><span style="line-height: 115%; font-family: verdana, sans-serif; color: #333333; font-size: 10pt;"><strong>exclamation mark &nbsp;and <span style="text-decoration: underline;">without</span> point of demand: but I CAN NOT !!!</strong></span></span></p>
<p style="margin: 0cm 0cm 10pt; vertical-align: top;"><span style="line-height: 115%; font-family: verdana, sans-serif; color: #000000; font-size: 10pt;">Can anyone help me?</span></p>
<p style="margin: 0cm 0cm 10pt; vertical-align: top;"><span style="color: #000000;"><span style="line-height: 115%; font-family: verdana, sans-serif; color: #333333; font-size: 10pt;">Thanks!</span>&nbsp; Tappat</span></p>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10465751/info-message-box-in-web-application-how-to-obtain-it.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:02:00 GMT</pubDate></item><item><title><![CDATA[How to hide the google translate bar]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10465627/how-to-hide-the-google-translate-bar.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10465627/how-to-hide-the-google-translate-bar.aspx]]></link><description><![CDATA[Hi friends,<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;I have used google translate plug in for my website to have multiple languages. When i select a language and the google translation is also shown. how to hide the google translation bar using javascript.<br />
<br />
With Regards,<br />
Dinesh&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10465627/how-to-hide-the-google-translate-bar.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:02:00 GMT</pubDate></item><item><title><![CDATA[how to create a  pop up on image click event]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10465619/how-to-create-a--pop-up-on-image-click-event.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10465619/how-to-create-a--pop-up-on-image-click-event.aspx]]></link><description><![CDATA[i want to create a pop up on image click ..how can i create ?????/&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10465619/how-to-create-a--pop-up-on-image-click-event.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:02:00 GMT</pubDate></item><item><title><![CDATA[Error: Printing]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10465492/error-printing.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10465492/error-printing.aspx]]></link><description><![CDATA[<p>Hi, Hope you can help,<br />
<br />
</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>I have a print button which when clicked pop up the box containing a list of printers. When you select a printer a print message pops up saying you stuff has been sent to the printer.</p>
<p>&nbsp;</p>
<p>Then a yellow popup box appears saying</p>
<p>&nbsp;</p>
<p >Char:1</p>
<p>The data area passed to a system call is too small</p>
<p>&nbsp;</p>
<p>Code:0</p>
<p>Url res://iframe.dll preview.Js<br />
<br />
I'm using the code<br />
<br />
</p>
<p>&nbsp;</p>
<p>&lt;</p>
<p>&nbsp;</p>
<p><span style="color: #a31515; font-size: 13px;">a</span><span style="font-size: 13px;"> </span><span style="color: #ff0000; font-size: 13px;">href</span>="javascript:window.print()"&gt; </p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span style="color: #0000ff; font-size: 13px;">&lt;</span><span style="color: #a31515; font-size: 13px;">asp</span><span style="color: #0000ff; font-size: 13px;">:</span><span style="color: #a31515; font-size: 13px;">Image</span><span style="font-size: 13px;"> </span><span style="color: #ff0000; font-size: 13px;">ID</span><span style="color: #0000ff; font-size: 13px;">="imgPrintIcon"</span><span style="font-size: 13px;"> </span><span style="color: #ff0000; font-size: 13px;">runat</span><span style="color: #0000ff; font-size: 13px;">="server"</span><span style="font-size: 13px;"> </span><span style="color: #ff0000; font-size: 13px;">ImageUrl</span><span style="color: #0000ff; font-size: 13px;">="~/AppImages/Buttons/BtnPrint.gif"</span><span style="font-size: 13px;"> </span><span style="color: #ff0000; font-size: 13px;">Width</span><span style="color: #0000ff; font-size: 13px;">="54px"</span><span style="font-size: 13px;"> </span><span style="color: #ff0000; font-size: 13px;">Height</span><span style="color: #0000ff; font-size: 13px;">="19px"</span><span style="font-size: 13px;"> </span><span style="color: #ff0000; font-size: 13px;">BorderWidth</span><span style="color: #0000ff; font-size: 13px;">="0px"</span><span style="font-size: 13px;"> </span><span style="color: #ff0000; font-size: 13px;">BorderStyle</span><span style="color: #0000ff; font-size: 13px;">="None"</span><span style="font-size: 13px;"> </span><span style="color: #ff0000; font-size: 13px;">AlternateText</span><span style="color: #0000ff; font-size: 13px;">="Print page"</span><span style="font-size: 13px;"> </span><span style="color: #ff0000; font-size: 13px;">ToolTip</span><span style="color: #0000ff; font-size: 13px;">="Print page"</span><span style="font-size: 13px;"> </span>/&gt; </p>
<p>&nbsp;</p>
<p>&lt;/</p>
<p>&nbsp;</p>
<p><span style="color: #a31515; font-size: 13px;">a</span>&gt;<br />
<br />
All the best AnnieX </p>
<p>&nbsp;</p>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10465492/error-printing.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:02:01 GMT</pubDate></item><item><title><![CDATA[Browser compatibility(IE, Chrome, Firefox) count down timer in javascript....]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10465420/browser-compatibilityie-chrome-firefox-count-down-timer-in-javascript.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10465420/browser-compatibilityie-chrome-firefox-count-down-timer-in-javascript.aspx]]></link><description><![CDATA[I need a count down timer using javascript&nbsp;in all browser and in all version&nbsp;such as IE, Chrome, Firefox.&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10465420/browser-compatibilityie-chrome-firefox-count-down-timer-in-javascript.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:02:01 GMT</pubDate></item><item><title><![CDATA[Jquery to compare Data in Gridview]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10465406/jquery-to-compare-data-in-gridview.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10465406/jquery-to-compare-data-in-gridview.aspx]]></link><description><![CDATA[i am having grid view. and one dropdown ddlcompany which contains company name..<br />
Now when i select any company in <span style="white-space: normal;">ddlcompany&nbsp;</span>&nbsp;<br />
and press ADD button,i want to check whether that company value same as first row value in grid ..<br />
if yes then don't allow him to add it..&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10465406/jquery-to-compare-data-in-gridview.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:02:02 GMT</pubDate></item><item><title><![CDATA[how to customize 'my tasks' by giving the issues different colors based on due date]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10465113/how-to-customize-my-tasks-by-giving-the-issues-different-colors-based-on-due-date.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10465113/how-to-customize-my-tasks-by-giving-the-issues-different-colors-based-on-due-date.aspx]]></link><description><![CDATA[how to prioritize issues in my tasks so that user gets to know which has to be done I am using the following code, i added it to the content editor webpart. it doesn seem to work . <br />
<div class="reCodeBlock" style="overflow-y: auto;border: #7f9db9 0px solid;">
<div style="background-color: #fff;"><span style="margin-left: 0px !important;"><code style="color: #000;">&lt;script type=</code><code style="color: blue;">"text/javascript"</code> <code style="color: #000;">language=</code><code style="color: blue;">"javascript"</code><code style="color: #000;">&gt;&nbsp; </code></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 6px !important;"><code style="color: #069; font-weight: bold;">var</code> <code style="color: #000;">x = document.getElementsByTagName(</code><code style="color: blue;">"TD"</code><code style="color: #000;">); </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;</code><span style="margin-left: 3px !important;"><code style="color: #069; font-weight: bold;">var</code> <code style="color: #000;">colDueDate = 2; </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 6px !important;"><code style="color: #069; font-weight: bold;">var</code> <code style="color: #000;">i=0;&nbsp; </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 6px !important;"><code style="color: #069; font-weight: bold;">for</code> <code style="color: #000;">(i=0;i&lt;x.length;i++)&nbsp; </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 6px !important;"><code style="color: #000;">{&nbsp; </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 12px !important;"><code style="color: #069; font-weight: bold;">if</code> <code style="color: #000;">(x[i].className==</code><code style="color: blue;">"ms-vb2"</code><code style="color: #000;">) </code></span></span></div>
<div style="background-color: #fff;"><span style="margin-left: 0px !important;"><code style="color: #000;">{&nbsp; </code></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 18px !important;"><code style="color: #069; font-weight: bold;">if</code> <code style="color: #000;">(x[i].innerHTML==</code><code style="color: blue;">"12/5/2011 12:00 AM"</code><code style="color: #000;">)&nbsp; </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 18px !important;"><code style="color: #000;">{&nbsp; </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="color: #000;">x[i].parentNode.style.backgroundColor=</code><code style="color: blue;">'Red'</code><code style="color: #000;">;&nbsp; </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 18px !important;"><code style="color: #000;">}&nbsp; </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 33px !important;">&nbsp;</span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 18px !important;"><code style="color: #069; font-weight: bold;">if</code> <code style="color: #000;">(x[i].innerHTML==</code><code style="color: blue;">"&lt;NOBR&gt;8/30/2012 12:00 AM&lt;/NOBR&gt;"</code><code style="color: #000;">)&nbsp; </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 18px !important;"><code style="color: #000;">{&nbsp; </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="color: #000;">x[i].parentNode.style.backgroundColor=</code><code style="color: blue;">'Yellow'</code><code style="color: #000;">;&nbsp; </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 18px !important;"><code style="color: #000;">}&nbsp; </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 12px !important;"><code style="color: #000;">}&nbsp; </code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 6px !important;"><code style="color: #000;">}&nbsp; </code></span></span></div>
<div style="background-color: #fff;"><span style="margin-left: 0px !important;"><code style="color: #000;">&lt;/script&gt;</code></span></div>
</div>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10465113/how-to-customize-my-tasks-by-giving-the-issues-different-colors-based-on-due-date.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:02:07 GMT</pubDate></item><item><title><![CDATA[If anyone knows how to externalize this Javascript (J Query)]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10464960/if-anyone-knows-how-to-externalize-this-javascript-j-query.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10464960/if-anyone-knows-how-to-externalize-this-javascript-j-query.aspx]]></link><description><![CDATA[<div style="overflow-y: auto;border: #7f9db9 0px solid;" class="reCodeBlock">
<div style="background-color: #fff;"><code style="text-align: right; width: 3em; padding-right: 0.3em; display: block; float: left; color: #5c5c5c;">01.</code><span style="margin-left: 0px !important;"><code style="color: #000;">&lt;PRE&gt;- </code><code style="color: #008200;">//&lt;script&gt; </code></span></div>
<div style="background-color: #fff;"><code style="text-align: right; width: 3em; padding-right: 0.3em; display: block; float: left; color: #5c5c5c;">02.</code><span style="margin-left: 0px !important;"><code style="color: #000;">$(</code><code style="color: #069; font-weight: bold;">function</code><code style="color: #000;">() { </code></span></div>
<div style="background-color: #fff;"><code style="text-align: right; width: 3em; padding-right: 0.3em; display: block; float: left; color: #5c5c5c;">03.</code><span style="margin-left: 0px !important;"><code style="color: #000;">$(</code><code style="color: blue;">'#footer a'</code><code style="color: #000;">).on(</code><code style="color: blue;">'click'</code><code style="color: #000;">, </code><code style="color: #069; font-weight: bold;">function</code><code style="color: #000;">(e){ </code></span></div>
<div style="background-color: #fff;"><code style="text-align: right; width: 3em; padding-right: 0.3em; display: block; float: left; color: #5c5c5c;">04.</code><span style="margin-left: 0px !important;"><code style="color: #000;">$(</code><code style="color: blue;">'.overlay'</code><code style="color: #000;">).hide(50); </code></span></div>
<div style="background-color: #fff;"><code style="text-align: right; width: 3em; padding-right: 0.3em; display: block; float: left; color: #5c5c5c;">05.</code><span style="margin-left: 0px !important;"><code style="color: #069; font-weight: bold;">var</code> <code style="color: #000;">target = </code><code style="color: blue;">'.overlay.'</code> <code style="color: #000;">+ $(</code><code style="color: #069; font-weight: bold;">this</code><code style="color: #000;">).attr(</code><code style="color: blue;">'class'</code><code style="color: #000;">); </code></span></div>
<div style="background-color: #fff;"><code style="text-align: right; width: 3em; padding-right: 0.3em; display: block; float: left; color: #5c5c5c;">06.</code><span style="margin-left: 0px !important;"><code style="color: #000;">...</code><code style="color: #069; font-weight: bold;">if</code><code style="color: #000;">($(target).css(</code><code style="color: blue;">'display'</code><code style="color: #000;">)==</code><code style="color: blue;">'none'</code><code style="color: #000;">) { </code></span></div>
<div style="background-color: #fff;"><code style="text-align: right; width: 3em; padding-right: 0.3em; display: block; float: left; color: #5c5c5c;">07.</code><span style="margin-left: 0px !important;"><code style="color: #000;">$(target).show(50); </code></span></div>
<div style="background-color: #fff;"><code style="text-align: right; width: 3em; padding-right: 0.3em; display: block; float: left; color: #5c5c5c;">08.</code><span style="margin-left: 0px !important;"><code style="color: #000;">} </code></span></div>
<div style="background-color: #fff;"><code style="text-align: right; width: 3em; padding-right: 0.3em; display: block; float: left; color: #5c5c5c;">09.</code><span style="margin-left: 0px !important;"><code style="color: #000;">}); </code></span></div>
<div style="background-color: #fff;"><code style="text-align: right; width: 3em; padding-right: 0.3em; display: block; float: left; color: #5c5c5c;">10.</code><span style="margin-left: 0px !important;"><code style="color: #000;">$(</code><code style="color: blue;">".ui-mobile-viewport"</code><code style="color: #000;">).on(</code><code style="color: blue;">"click"</code><code style="color: #000;">,</code><code style="color: #069; font-weight: bold;">function</code><code style="color: #000;">(event){ </code></span></div>
<div style="background-color: #fff;"><code style="text-align: right; width: 3em; padding-right: 0.3em; display: block; float: left; color: #5c5c5c;">11.</code><span style="margin-left: 0px !important;"><code style="color: #069; font-weight: bold;">var</code> <code style="color: #000;">target = event.target; </code></span></div>
<div style="background-color: #fff;"><code style="text-align: right; width: 3em; padding-right: 0.3em; display: block; float: left; color: #5c5c5c;">12.</code><span><code>&nbsp;</code><span style="margin-left: 3px !important;">&nbsp;</span></span></div>
<div style="background-color: #fff;"><code style="text-align: right; width: 3em; padding-right: 0.3em; display: block; float: left; color: #5c5c5c;">13.</code><span style="margin-left: 0px !important;"><code style="color: #069; font-weight: bold;">if</code><code style="color: #000;">($(</code><code style="color: blue;">'#show-overlay'</code><code style="color: #000;">).find(target).length==0 &amp;&amp; $(</code><code style="color: blue;">'.overlay'</code><code style="color: #000;">).find(target).length==0) { </code></span></div>
<div style="background-color: #fff;"><code style="text-align: right; width: 3em; padding-right: 0.3em; display: block; float: left; color: #5c5c5c;">14.</code><span style="margin-left: 0px !important;"><code style="color: #000;">$(</code><code style="color: blue;">".overlay"</code><code style="color: #000;">).hide(50); </code></span></div>
<div style="background-color: #fff;"><code style="text-align: right; width: 3em; padding-right: 0.3em; display: block; float: left; color: #5c5c5c;">15.</code><span style="margin-left: 0px !important;"><code style="color: #000;">} </code></span></div>
<div style="background-color: #fff;"><code style="text-align: right; width: 3em; padding-right: 0.3em; display: block; float: left; color: #5c5c5c;">16.</code><span style="margin-left: 0px !important;"><code style="color: #000;">}); </code></span></div>
<div style="background-color: #fff;"><code style="text-align: right; width: 3em; padding-right: 0.3em; display: block; float: left; color: #5c5c5c;">17.</code><span style="margin-left: 0px !important;"><code style="color: #000;">}); </code></span></div>
<div style="background-color: #fff;"><code style="text-align: right; width: 3em; padding-right: 0.3em; display: block; float: left; color: #5c5c5c;">18.</code><span style="margin-left: 0px !important;"><code style="color: #000;">&lt;/script&gt;&lt;/PRE&gt;<br />
<br />
<br />
If anyone knows how to externalize this Javascript (J Query) function to display a new div overlay for a mobile app with "onload" instead of "onclick"....I'm all ears. Been working on it since Friday <br />
<br />
</code></span></div>
</div>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10464960/if-anyone-knows-how-to-externalize-this-javascript-j-query.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:02:37 GMT</pubDate></item><item><title><![CDATA[Export html table to excel using JavaScript]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10464709/export-html-table-to-excel-using-javascript.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10464709/export-html-table-to-excel-using-javascript.aspx]]></link><description><![CDATA[<span style="color: #000000; font-family: verdana, arial, sans-serif; white-space: normal;">Hi All ,</span><br style="color: #000000; font-family: verdana, arial, sans-serif;" />
<span style="color: #000000; font-family: verdana, arial, sans-serif; white-space: normal;">I want to export html table to excel using JavaScript and i am done .</span><br style="color: #000000; font-family: verdana, arial, sans-serif;" />
<span style="color: #000000; font-family: verdana, arial, sans-serif; white-space: normal;">But when i am exporting it is directly showing to excel page, actually i want it to first it should show a dialog box with "Open","Save" and "Cancel" option . But i am not able to find the solution . please help me out for this .</span><br style="color: #000000; font-family: verdana, arial, sans-serif;" />
<span style="color: #000000; font-family: verdana, arial, sans-serif; white-space: normal;">JavaScript code is given below :</span><br style="color: #000000; font-family: verdana, arial, sans-serif;" />
<div class="pre-action-link" id="premain0" width="100%" style="font-size: 0.8em; text-align: right; color: #004cd5; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #cccccc; font-family: verdana, arial, sans-serif;"><br />
</div>
<pre lang="Javascript" id="pre0" style="background-color: #fbedbb; padding: 6px; font-size: 9pt; font-family: 'courier new', courier, mono; border: 1px solid #fbedbb; overflow: auto; word-wrap: break-word; color: #000000;"><span class="code-keyword" style="color: blue;">function</span> write_to_excel() {
    str = <span class="code-string" style="color: purple;">"</span><span class="code-string" style="color: purple;">"</span>;
    <span class="code-keyword" style="color: blue;">var</span> mytable = document.getElementById(<span class="code-string" style="color: purple;">"</span><span class="code-string" style="color: purple;">tbExport"</span>);
    <span class="code-keyword" style="color: blue;">var</span> rowCount = mytable.rows.length;
    <span class="code-keyword" style="color: blue;">var</span> colCount = mytable.getElementsByTagName(<span class="code-string" style="color: purple;">"</span><span class="code-string" style="color: purple;">tr"</span>)[<span class="code-digit" style="color: navy;">0</span>].getElementsByTagName(<span class="code-string" style="color: purple;">"</span><span class="code-string" style="color: purple;">th"</span>).length;
    <span class="code-keyword" style="color: blue;">var</span> ExcelApp = <span class="code-keyword" style="color: blue;">new</span> ActiveXObject(<span class="code-string" style="color: purple;">"</span><span class="code-string" style="color: purple;">Excel.Application"</span>);
    <span class="code-keyword" style="color: blue;">var</span> ExcelSheet = <span class="code-keyword" style="color: blue;">new</span> ActiveXObject(<span class="code-string" style="color: purple;">"</span><span class="code-string" style="color: purple;">Excel.Sheet"</span>);
    <span class="code-comment" style="color: #008000; font-style: italic;">//</span><span class="code-comment" style="color: #008000; font-style: italic;">ExcelSheet.Application.Visible = true;
</span>    <span class="code-keyword" style="color: blue;">for</span> (<span class="code-keyword" style="color: blue;">var</span> i = <span class="code-digit" style="color: navy;">0</span>; i &lt; rowCount; i++) {
        <span class="code-keyword" style="color: blue;">for</span> (<span class="code-keyword" style="color: blue;">var</span> j = <span class="code-digit" style="color: navy;">0</span>; j &lt; colCount; j++) {
            <span class="code-keyword" style="color: blue;">if</span> (i == <span class="code-digit" style="color: navy;">0</span>) {
                str = mytable.getElementsByTagName(<span class="code-string" style="color: purple;">"</span><span class="code-string" style="color: purple;">tr"</span>)[i].getElementsByTagName(<span class="code-string" style="color: purple;">"</span><span class="code-string" style="color: purple;">th"</span>)[j].innerText;
            }
            <span class="code-keyword" style="color: blue;">else</span> {
                str = mytable.getElementsByTagName(<span class="code-string" style="color: purple;">"</span><span class="code-string" style="color: purple;">tr"</span>)[i].getElementsByTagName(<span class="code-string" style="color: purple;">"</span><span class="code-string" style="color: purple;">td"</span>)[j].innerText;
            }
            ExcelSheet.ActiveSheet.Cells(i + <span class="code-digit" style="color: navy;">1</span>, j + <span class="code-digit" style="color: navy;">1</span>).Value = str;
        }
    }
    ExcelSheet.autofit;
    ExcelSheet.Application.Visible = <span class="code-keyword" style="color: blue;">true</span>;
    DisplayAlerts = <span class="code-keyword" style="color: blue;">true</span>;
    CollectGarbage();
}

Thanks &amp; Regards</pre>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10464709/export-html-table-to-excel-using-javascript.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:02:38 GMT</pubDate></item><item><title><![CDATA[how to creating auto complete text box without using a plugin?]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10464612/how-to-creating-auto-complete-text-box-without-using-a-plugin.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10464612/how-to-creating-auto-complete-text-box-without-using-a-plugin.aspx]]></link><description><![CDATA[&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10464612/how-to-creating-auto-complete-text-box-without-using-a-plugin.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:02:38 GMT</pubDate></item><item><title><![CDATA[i want to raise an event when user cliks on browser close button]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10464366/i-want-to-raise-an-event-when-user-cliks-on-browser-close-button.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10464366/i-want-to-raise-an-event-when-user-cliks-on-browser-close-button.aspx]]></link><description><![CDATA[Hi all<br />
<br />
I want to show a massage to the user when he clicked on browser close button. i got some code but it is showing the massage when clicking on refresh also. <br />
<br />
Thanks<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10464366/i-want-to-raise-an-event-when-user-cliks-on-browser-close-button.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:02:40 GMT</pubDate></item><item><title><![CDATA[how to insert an image to a dojo text editor from local machine as well asfrom remote]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10464342/how-to-insert-an-image-to-a-dojo-text-editor-from-local-machine-as-well-asfrom-remote.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10464342/how-to-insert-an-image-to-a-dojo-text-editor-from-local-machine-as-well-asfrom-remote.aspx]]></link><description><![CDATA[<br />
<br />
Hi,<br />
<br />
I am using dojo 1.6 and i want to extend my dojo text editor. I want to insert images to my text editor from local as well as remote.<br />
<br />
i tried using<span class="s2"> dijit._editor.plugins.LinkDialog</span> but it allow only url like http://www.example.com/pic.jpg but not local urls.<br />
<br />
Thanks&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10464342/how-to-insert-an-image-to-a-dojo-text-editor-from-local-machine-as-well-asfrom-remote.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:02:40 GMT</pubDate></item><item><title><![CDATA[scrolling images]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10464311/scrolling-images.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10464311/scrolling-images.aspx]]></link><description><![CDATA[hi all<br />
<br />
I have a .js file which will scroll the images right to left, but i need to scroll it bottom up manner, below given is my .js file<br />
<br />
<br />
(function(i){i.fn.jcarousel=function(a){if(typeof a=="string"){var c=i(this).data("jcarousel"),b=Array.prototype.slice.call(arguments,1);return c[a].apply(c,b)}else return this.each(function(){i(this).data("jcarousel",new h(this,a))})};var p={vertical:false,rtl:false,start:1,offset:1,size:null,scroll:3,visible:null,animation:"normal",easing:"swing",auto:0,wrap:null,initCallback:null,reloadCallback:null,itemLoadCallback:null,itemFirstInCallback:null,itemFirstOutCallback:null,itemLastInCallback:null, itemLastOutCallback:null,itemVisibleInCallback:null,itemVisibleOutCallback:null,buttonNextHTML:"&lt;div&gt;&lt;/div&gt;",buttonPrevHTML:"&lt;div&gt;&lt;/div&gt;",buttonNextEvent:"click",buttonPrevEvent:"click",buttonNextCallback:null,buttonPrevCallback:null,itemFallbackDimension:null},q=false;i(window).bind("load.jcarousel",function(){q=true});i.jcarousel=function(a,c){this.options=i.extend({},p,c||{});this.locked=false;this.buttonPrev=this.buttonNext=this.list=this.clip=this.container=null;if(!c||c.rtl===undefined)this.options.rtl= (i(a).attr("dir")||i("html").attr("dir")||"").toLowerCase()=="rtl";this.wh=!this.options.vertical?"width":"height";this.lt=!this.options.vertical?this.options.rtl?"right":"left":"top";for(var b="",d=a.className.split(" "),e=0;e&lt;d.length;e++)if(d[e].indexOf("jcarousel-skin")!=-1){i(a).removeClass(d[e]);b=d[e];break}if(a.nodeName.toUpperCase()=="UL"||a.nodeName.toUpperCase()=="OL"){this.list=i(a);this.container=this.list.parent();if(this.container.hasClass("jcarousel-clip")){if(!this.container.parent().hasClass("jcarousel-container"))this.container= this.container.wrap("&lt;div&gt;&lt;/div&gt;");this.container=this.container.parent()}else if(!this.container.hasClass("jcarousel-container"))this.container=this.list.wrap("&lt;div&gt;&lt;/div&gt;").parent()}else{this.container=i(a);this.list=this.container.find("ul,ol").eq(0)}b!=""&amp;&amp;this.container.parent()[0].className.indexOf("jcarousel-skin")==-1&amp;&amp;this.container.wrap('&lt;div class=" '+b+'"&gt;&lt;/div&gt;');this.clip=this.list.parent();if(!this.clip.length||!this.clip.hasClass("jcarousel-clip"))this.clip=this.list.wrap("&lt;div&gt;&lt;/div&gt;").parent(); this.buttonNext=i(".jcarousel-next",this.container);if(this.buttonNext.size()==0&amp;&amp;this.options.buttonNextHTML!=null)this.buttonNext=this.clip.after(this.options.buttonNextHTML).next();this.buttonNext.addClass(this.className("jcarousel-next"));this.buttonPrev=i(".jcarousel-prev",this.container);if(this.buttonPrev.size()==0&amp;&amp;this.options.buttonPrevHTML!=null)this.buttonPrev=this.clip.after(this.options.buttonPrevHTML).next();this.buttonPrev.addClass(this.className("jcarousel-prev"));this.clip.addClass(this.className("jcarousel-clip")).css({overflow:"hidden", position:"relative"});this.list.addClass(this.className("jcarousel-list")).css({overflow:"hidden",position:"relative",top:0,margin:0,padding:0}).css(this.options.rtl?"right":"left",0);this.container.addClass(this.className("jcarousel-container")).css({position:"relative"});!this.options.vertical&amp;&amp;this.options.rtl&amp;&amp;this.container.addClass("jcarousel-direction-rtl").attr("dir","rtl");var f=this.options.visible!=null?Math.ceil(this.clipping()/this.options.visible):null;b=this.list.children("li");var g= this;if(b.size()&gt;0){var j=0;e=this.options.offset;b.each(function(){g.format(this,e++);j+=g.dimension(this,f)});this.list.css(this.wh,j+100+"px");if(!c||c.size===undefined)this.options.size=b.size()}this.container.css("display","block");this.buttonNext.css("display","block");this.buttonPrev.css("display","block");this.funcNext=function(){g.next()};this.funcPrev=function(){g.prev()};this.funcResize=function(){g.reload()};this.options.initCallback!=null&amp;&amp;this.options.initCallback(this,"init");if(!q&amp;&amp; i.browser.safari){this.buttons(false,false);i(window).bind("load.jcarousel",function(){g.setup()})}else this.setup()};var h=i.jcarousel;h.fn=h.prototype={jcarousel:"0.2.5"};h.fn.extend=h.extend=i.extend;h.fn.extend({setup:function(){this.prevLast=this.prevFirst=this.last=this.first=null;this.animating=false;this.tail=this.timer=null;this.inTail=false;if(!this.locked){this.list.css(this.lt,this.pos(this.options.offset)+"px");var a=this.pos(this.options.start);this.prevFirst=this.prevLast=null;this.animate(a, false);i(window).unbind("resize.jcarousel",this.funcResize).bind("resize.jcarousel",this.funcResize)}},reset:function(){this.list.empty();this.list.css(this.lt,"0px");this.list.css(this.wh,"10px");this.options.initCallback!=null&amp;&amp;this.options.initCallback(this,"reset");this.setup()},reload:function(){this.tail!=null&amp;&amp;this.inTail&amp;&amp;this.list.css(this.lt,h.intval(this.list.css(this.lt))+this.tail);this.tail=null;this.inTail=false;this.options.reloadCallback!=null&amp;&amp;this.options.reloadCallback(this);if(this.options.visible!= null){var a=this,c=Math.ceil(this.clipping()/this.options.visible),b=0,d=0;this.list.children("li").each(function(e){b+=a.dimension(this,c);if(e+1&lt;a.first)d=b});this.list.css(this.wh,b+"px");this.list.css(this.lt,-d+"px")}this.scroll(this.first,false)},lock:function(){this.locked=true;this.buttons()},unlock:function(){this.locked=false;this.buttons()},size:function(a){if(a!=undefined){this.options.size=a;this.locked||this.buttons()}return this.options.size},has:function(a,c){if(c==undefined||!c)c= a;if(this.options.size!==null&amp;&amp;c&gt;this.options.size)c=this.options.size;for(var b=a;b&lt;=c;b++){var d=this.get(b);if(!d.length||d.hasClass("jcarousel-item-placeholder"))return false}return true},get:function(a){return i(".jcarousel-item-"+a,this.list)},add:function(a,c){var b=this.get(a),d=0,e=i(c);if(b.length==0){var f;b=this.create(a);for(var g=h.intval(a);f=this.get(--g);)if(g&lt;=0||f.length){g&lt;=0?this.list.prepend(b):f.after(b);break}}else d=this.dimension(b);if(e.get(0).nodeName.toUpperCase()=="LI"){b.replaceWith(e); b=e}else b.empty().append(c);this.format(b.removeClass(this.className("jcarousel-item-placeholder")),a);e=this.options.visible!=null?Math.ceil(this.clipping()/this.options.visible):null;d=this.dimension(b,e)-d;a&gt;0&amp;&amp;a&lt;this.first&amp;&amp;this.list.css(this.lt,h.intval(this.list.css(this.lt))-d+"px");this.list.css(this.wh,h.intval(this.list.css(this.wh))+d+"px");return b},remove:function(a){var c=this.get(a);if(!(!c.length||a&gt;=this.first&amp;&amp;a&lt;=this.last)){var b=this.dimension(c);a&lt;this.first&amp;&amp;this.list.css(this.lt, h.intval(this.list.css(this.lt))+b+"px");c.remove();this.list.css(this.wh,h.intval(this.list.css(this.wh))-b+"px")}},next:function(){this.stopAuto();this.tail!=null&amp;&amp;!this.inTail?this.scrollTail(false):this.scroll((this.options.wrap=="both"||this.options.wrap=="last")&amp;&amp;this.options.size!=null&amp;&amp;this.last==this.options.size?1:this.first+this.options.scroll)},prev:function(){this.stopAuto();this.tail!=null&amp;&amp;this.inTail?this.scrollTail(true):this.scroll((this.options.wrap=="both"||this.options.wrap== "first")&amp;&amp;this.options.size!=null&amp;&amp;this.first==1?this.options.size:this.first-this.options.scroll)},scrollTail:function(a){if(!(this.locked||this.animating||!this.tail)){var c=h.intval(this.list.css(this.lt));!a?c-=this.tail:c+=this.tail;this.inTail=!a;this.prevFirst=this.first;this.prevLast=this.last;this.animate(c)}},scroll:function(a,c){this.locked||this.animating||this.animate(this.pos(a),c)},pos:function(a){var c=h.intval(this.list.css(this.lt));if(this.locked||this.animating)return c;if(this.options.wrap!= "circular")a=a&lt;1?1:this.options.size&amp;&amp;a&gt;this.options.size?this.options.size:a;for(var b=this.first&gt;a,d=this.options.wrap!="circular"&amp;&amp;this.first&lt;=1?1:this.first,e=b?this.get(d):this.get(this.last),f=b?d:d-1,g=null,j=0,l=false,k=0;b?--f&gt;=a:++f&lt;a;){g=this.get(f);l=!g.length;if(g.length==0){g=this.create(f).addClass(this.className("jcarousel-item-placeholder"));e[b?"before":"after"](g);if(this.first!=null&amp;&amp;this.options.wrap=="circular"&amp;&amp;this.options.size!==null&amp;&amp;(f&lt;=0||f&gt;this.options.size)){e=this.get(this.index(f)); if(e.length)g=this.add(f,e.clone(true))}}e=g;k=this.dimension(g);if(l)j+=k;if(this.first!=null&amp;&amp;(this.options.wrap=="circular"||f&gt;=1&amp;&amp;(this.options.size==null||f&lt;=this.options.size)))c=b?c+k:c-k}d=this.clipping();var o=[],n=0;f=a;var m=0;for(e=this.get(a-1);++n;){g=this.get(f);l=!g.length;if(g.length==0){g=this.create(f).addClass(this.className("jcarousel-item-placeholder"));e.length==0?this.list.prepend(g):e[b?"before":"after"](g);if(this.first!=null&amp;&amp;this.options.wrap=="circular"&amp;&amp;this.options.size!== null&amp;&amp;(f&lt;=0||f&gt;this.options.size)){e=this.get(this.index(f));if(e.length)g=this.add(f,e.clone(true))}}e=g;k=this.dimension(g);if(k==0)throw Error("jCarousel: No width/height set for items. This will cause an infinite loop. Aborting...");if(this.options.wrap!="circular"&amp;&amp;this.options.size!==null&amp;&amp;f&gt;this.options.size)o.push(g);else if(l)j+=k;m+=k;if(m&gt;=d)break;f++}for(g=0;g&lt;o.length;g++)o[g].remove();if(j&gt;0){this.list.css(this.wh,this.dimension(this.list)+j+"px");if(b){c-=j;this.list.css(this.lt,h.intval(this.list.css(this.lt))- j+"px")}}j=a+n-1;if(this.options.wrap!="circular"&amp;&amp;this.options.size&amp;&amp;j&gt;this.options.size)j=this.options.size;if(f&gt;j){n=0;f=j;for(m=0;++n;){g=this.get(f--);if(!g.length)break;m+=this.dimension(g);if(m&gt;=d)break}}f=j-n+1;if(this.options.wrap!="circular"&amp;&amp;f&lt;1)f=1;if(this.inTail&amp;&amp;b){c+=this.tail;this.inTail=false}this.tail=null;if(this.options.wrap!="circular"&amp;&amp;j==this.options.size&amp;&amp;j-n+1&gt;=1){b=h.margin(this.get(j),!this.options.vertical?"marginRight":"marginBottom");if(m-b&gt;d)this.tail=m-d-b}for(;a-- &gt; f;)c+=this.dimension(this.get(a));this.prevFirst=this.first;this.prevLast=this.last;this.first=f;this.last=j;return c},animate:function(a,c){if(!(this.locked||this.animating)){this.animating=true;var b=this,d=function(){b.animating=false;a==0&amp;&amp;b.list.css(b.lt,0);if(b.options.wrap=="circular"||b.options.wrap=="both"||b.options.wrap=="last"||b.options.size==null||b.last&lt;b.options.size)b.startAuto();b.buttons();b.notify("onAfterAnimation");if(b.options.wrap=="circular"&amp;&amp;b.options.size!==null)for(var e= b.prevFirst;e&lt;=b.prevLast;e++)if(e!==null&amp;&amp;!(e&gt;=b.first&amp;&amp;e&lt;=b.last)&amp;&amp;(e&lt;1||e&gt;b.options.size))b.remove(e)};this.notify("onBeforeAnimation");if(!this.options.animation||c==false){this.list.css(this.lt,a+"px");d()}else this.list.animate(!this.options.vertical?this.options.rtl?{right:a}:{left:a}:{top:a},this.options.animation,this.options.easing,d)}},startAuto:function(a){if(a!=undefined)this.options.auto=a;if(this.options.auto==0)return this.stopAuto();if(this.timer==null){var c=this;this.timer=setTimeout(function(){c.next()}, this.options.auto*1E3)}},stopAuto:function(){if(this.timer!=null){clearTimeout(this.timer);this.timer=null}},buttons:function(a,c){if(a==undefined||a==null){a=!this.locked&amp;&amp;this.options.size!==0&amp;&amp;(this.options.wrap&amp;&amp;this.options.wrap!="first"||this.options.size==null||this.last&lt;this.options.size);if(!this.locked&amp;&amp;(!this.options.wrap||this.options.wrap=="first")&amp;&amp;this.options.size!=null&amp;&amp;this.last&gt;=this.options.size)a=this.tail!=null&amp;&amp;!this.inTail}if(c==undefined||c==null){c=!this.locked&amp;&amp;this.options.size!== 0&amp;&amp;(this.options.wrap&amp;&amp;this.options.wrap!="last"||this.first&gt;1);if(!this.locked&amp;&amp;(!this.options.wrap||this.options.wrap=="last")&amp;&amp;this.options.size!=null&amp;&amp;this.first==1)c=this.tail!=null&amp;&amp;this.inTail}var b=this;this.buttonNext[a?"bind":"unbind"](this.options.buttonNextEvent+".jcarousel",this.funcNext)[a?"removeClass":"addClass"](this.className("jcarousel-next-disabled")).attr("disabled",a?false:true);this.buttonPrev[c?"bind":"unbind"](this.options.buttonPrevEvent+".jcarousel",this.funcPrev)[c?"removeClass": "addClass"](this.className("jcarousel-prev-disabled")).attr("disabled",c?false:true);this.options.buttonNextCallback!=null&amp;&amp;this.buttonNext.data("jcarouselstate")!=a&amp;&amp;this.buttonNext.each(function(){b.options.buttonNextCallback(b,this,a)}).data("jcarouselstate",a);this.options.buttonPrevCallback!=null&amp;&amp;this.buttonPrev.data("jcarouselstate")!=c&amp;&amp;this.buttonPrev.each(function(){b.options.buttonPrevCallback(b,this,c)}).data("jcarouselstate",c)},notify:function(a){var c=this.prevFirst==null?"init":this.prevFirst&lt; this.first?"next":"prev";this.callback("itemLoadCallback",a,c);if(this.prevFirst!==this.first){this.callback("itemFirstInCallback",a,c,this.first);this.callback("itemFirstOutCallback",a,c,this.prevFirst)}if(this.prevLast!==this.last){this.callback("itemLastInCallback",a,c,this.last);this.callback("itemLastOutCallback",a,c,this.prevLast)}this.callback("itemVisibleInCallback",a,c,this.first,this.last,this.prevFirst,this.prevLast);this.callback("itemVisibleOutCallback",a,c,this.prevFirst,this.prevLast, this.first,this.last)},callback:function(a,c,b,d,e,f,g){if(!(this.options[a]==undefined||typeof this.options[a]!="object"&amp;&amp;c!="onAfterAnimation")){var j=typeof this.options[a]=="object"?this.options[a][c]:this.options[a];if(i.isFunction(j)){var l=this;if(d===undefined)j(l,b,c);else if(e===undefined)this.get(d).each(function(){j(l,this,d,b,c)});else for(var k=d;k&lt;=e;k++)k!==null&amp;&amp;!(k&gt;=f&amp;&amp;k&lt;=g)&amp;&amp;this.get(k).each(function(){j(l,this,k,b,c)})}}},create:function(a){return this.format("&lt;li&gt;&lt;/li&gt;",a)},format:function(a, c){a=i(a);for(var b=a.get(0).className.split(" "),d=0;d&lt;b.length;d++)b[d].indexOf("jcarousel-")!=-1&amp;&amp;a.removeClass(b[d]);a.addClass(this.className("jcarousel-item")).addClass(this.className("jcarousel-item-"+c)).css({"float":this.options.rtl?"right":"left","list-style":"none"}).attr("jcarouselindex",c);return a},className:function(a){return a+" "+a+(!this.options.vertical?"-horizontal":"-vertical")},dimension:function(a,c){var b=a.jquery!=undefined?a[0]:a,d=!this.options.vertical?(b.offsetWidth|| h.intval(this.options.itemFallbackDimension))+h.margin(b,"marginLeft")+h.margin(b,"marginRight"):(b.offsetHeight||h.intval(this.options.itemFallbackDimension))+h.margin(b,"marginTop")+h.margin(b,"marginBottom");if(c==undefined||d==c)return d;d=!this.options.vertical?c-h.margin(b,"marginLeft")-h.margin(b,"marginRight"):c-h.margin(b,"marginTop")-h.margin(b,"marginBottom");i(b).css(this.wh,d+"px");return this.dimension(b)},clipping:function(){return!this.options.vertical?this.clip[0].offsetWidth-h.intval(this.clip.css("borderLeftWidth"))- h.intval(this.clip.css("borderRightWidth")):this.clip[0].offsetHeight-h.intval(this.clip.css("borderTopWidth"))-h.intval(this.clip.css("borderBottomWidth"))},index:function(a,c){if(c==undefined)c=this.options.size;return Math.round(((a-1)/c-Math.floor((a-1)/c))*c)+1}});h.extend({defaults:function(a){return i.extend(p,a||{})},margin:function(a,c){if(!a)return 0;var b=a.jquery!=undefined?a[0]:a;if(c=="marginRight"&amp;&amp;i.browser.safari){var d={display:"block","float":"none",width:"auto"},e,f;i.swap(b,d, function(){e=b.offsetWidth});d.marginRight=0;i.swap(b,d,function(){f=b.offsetWidth});return f-e}return h.intval(i.css(b,c))},intval:function(a){a=parseInt(a);return isNaN(a)?0:a}})})(jQuery);<br />
<br />
<br />
<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10464311/scrolling-images.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:02:40 GMT</pubDate></item><item><title><![CDATA[How can we read the JSON file in a Folder using jQuery in ASP.NET?]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10464186/how-can-we-read-the-json-file-in-a-folder-using-jquery-in-aspnet.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10464186/how-can-we-read-the-json-file-in-a-folder-using-jquery-in-aspnet.aspx]]></link><description><![CDATA[<strong>Hi All,<br />
<br />
<br />
Can any one help me about How to read the JSON file in a Folder using jQuery?<br />
<br />
I have tried like this but always my cursor going to the Failure Method.<br />
<br />
</strong>
<div class="reCodeBlock" style="border: 0px solid #7f9db9; overflow-y: auto;">
<div style="background-color: #ffffff;"><span style="margin-left: 0px !important;"><strong><code style="color: #006699;">var</code> <code style="color: #000000;">urlJSON = </code><code style="color: blue;">'&lt;%=ResolveUrl("example.json") %&gt;'</code><code style="color: #000000;">;</code></strong></span></div>
<div style="background-color: #fff;"><span><strong><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 21px !important;"><code style="color: #000000;">$(document).ready(</code><code style="color: #006699;">function</code> <code style="color: #000000;">() {</code></span></strong></span></div>
<div style="background-color: #ffffff;"><span><strong><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 33px !important;"><code style="color: #000000;">$(</code><code style="color: blue;">'#btnLoad'</code><code style="color: #000000;">).click(</code><code style="color: #006699;">function</code> <code style="color: #000000;">() {</code></span></strong></span></div>
<div style="background-color: #fff;"><span><strong><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 45px !important;"><code style="color: #000000;">$.ajax({</code></span></strong></span></div>
<div style="background-color: #ffffff;"><span><strong><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 57px !important;"><code style="color: #000000;">url: urlJSON,</code></span></strong></span></div>
<div style="background-color: #fff;"><span><strong><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 57px !important;"><code style="color: #000000;">dataType: </code><code style="color: blue;">"json"</code><code style="color: #000000;">,</code></span></strong></span></div>
<div style="background-color: #ffffff;"><span><strong><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 57px !important;"><code style="color: #000000;">type: </code><code style="color: blue;">"POST"</code><code style="color: #000000;">,</code></span></strong></span></div>
<div style="background-color: #fff;"><span><strong><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 57px !important;"><code style="color: #000000;">contentType: </code><code style="color: blue;">"application/json;charset=utf-8"</code><code style="color: #000000;">,</code></span></strong></span></div>
<div style="background-color: #ffffff;"><span><strong><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 57px !important;"><code style="color: #000000;">success: AjaxSucceeded,</code></span></strong></span></div>
<div style="background-color: #fff;"><span><strong><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 57px !important;"><code style="color: #000000;">error: AjaxFailed</code></span></strong></span></div>
<div style="background-color: #ffffff;"><span><strong><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 45px !important;"><code style="color: #000000;">});</code></span></strong></span></div>
<div style="background-color: #fff;"><span><strong><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 33px !important;"><code style="color: #000000;">});</code></span></strong></span></div>
<div style="background-color: #ffffff;"><span><strong><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 21px !important;"><code style="color: #000000;">});</code></span></strong></span></div>
<div style="background-color: #fff;"><span style="margin-left: 0px !important;"><strong>&nbsp;</strong></span></div>
<div style="background-color: #ffffff;"><span><strong><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 21px !important;"><code style="color: #006699;">function</code> <code style="color: #000000;">AjaxSucceeded(result) {</code></span></strong></span></div>
<div style="background-color: #fff;"><span><strong><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 33px !important;"><code style="color: #000000;">alert(result.d);</code></span></strong></span></div>
<div style="background-color: #ffffff;"><span><strong><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 21px !important;"><code style="color: #000000;">}</code></span></strong></span></div>
<div style="background-color: #fff;"><span><strong><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 21px !important;"><code style="color: #006699;">function</code> <code style="color: #000000;">AjaxFailed(result) {</code></span></strong></span></div>
<div style="background-color: #ffffff;"><span><strong><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 33px !important;"><code style="color: #000000;">alert(result.status + </code><code style="color: blue;">' '</code> <code style="color: #000000;">+ result.statusText);</code></span></strong></span></div>
<div style="background-color: #fff;"><span><strong><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 21px !important;"><code style="color: #000000;">}</code></span></strong></span></div>
</div>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10464186/how-can-we-read-the-json-file-in-a-folder-using-jquery-in-aspnet.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:02:41 GMT</pubDate></item><item><title><![CDATA[scroll bar scrolling up automatically when user selects text from dropdownlist in Fck edit]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10464176/scroll-bar-scrolling-up-automatically-when-user-selects-text-from-dropdownlist-in-fck-edit.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10464176/scroll-bar-scrolling-up-automatically-when-user-selects-text-from-dropdownlist-in-fck-edit.aspx]]></link><description><![CDATA[<p>iam using fck editor in my application....here iam facing problem with scrollbar in fck editor in Internet explorer.. </p>
<p>i have an dropdownlist in html editor..i placed that dropdownlist at the very end in the fck editor (text area) ...if user selects any text from dropdownlist the cursor position is at right location i mean at the very end ... where as scroll bar scrolling up automatically......actually i want the scroll bar be at cursor location itself....but it is scrolling to top automatically ...pls help me out..very urgent plssss...is there anything we have to change in fckconfig.js or ckconfig.js? </p>
<br />
<br />
pls go through this link <br />
<br />
https://dev.ckeditor.com/ticket/9165&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10464176/scroll-bar-scrolling-up-automatically-when-user-selects-text-from-dropdownlist-in-fck-edit.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:02:41 GMT</pubDate></item><item><title><![CDATA[how we bind repeater controal with Json object]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10464172/how-we-bind-repeater-controal-with-json-object.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10464172/how-we-bind-repeater-controal-with-json-object.aspx]]></link><description><![CDATA[hi ,everyone<br />
<br />
I want to bind my repeater controal with Json(jquey) &nbsp;with database.....please provide any idea or code ASAP....&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10464172/how-we-bind-repeater-controal-with-json-object.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:02:41 GMT</pubDate></item><item><title><![CDATA[If Sum returns NaN ,the result textbox should have "Invalid"]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10464157/if-sum-returns-nan-the-result-textbox-should-have-invalid.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/javascript/3/10464157/if-sum-returns-nan-the-result-textbox-should-have-invalid.aspx]]></link><description><![CDATA[I wrote a javascript for sum of two nos,Now I want that if result is NaN Then result textbox should have a string "Invalid"...But its not working.whats the mistake<br />
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;<br />
<br />
<br />
&lt;html&gt;<br />
&lt;head&gt;&nbsp;<br />
&lt;script language="JavaScript"&gt;<br />
&lt;!--<br />
&nbsp; &nbsp; function do_addition() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; var num1, num2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; num1 = document.Form1.first.value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; num2 = document.Form1.second.value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; result = parseFloat(num1) + parseFloat(num2);<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (isNaN(result))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.Form1.Answer.value = "Invalid";<br />
&nbsp; &nbsp; &nbsp; &nbsp; document.Form1.Answer.value = result;<br />
&nbsp; &nbsp; }<br />
//--&gt;<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;form name="Form1"&gt;<br />
First Number:<br />
&lt;input type="text" name="first" size="20"&gt;&lt;br&gt;<br />
Second Number:<br />
&lt;input type="text" name="second" size="20"&gt;&lt;br&gt;<br />
&lt;input type="button" value="Add" name="add"&nbsp;<br />
onClick="do_addition()"&gt;&lt;br&gt;&lt;br&gt;<br />
Answer:<br />
&lt;input type="text" name="Answer" size="20"&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/javascript/3/10464157/if-sum-returns-nan-the-result-textbox-should-have-invalid.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:02:41 GMT</pubDate></item></channel></rss>