<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Client Side Web Development</title><link>http://forums.asp.net/130.aspx</link><description>Client-side programming discussions, including CSS, DHTML, JScript/Javascript, etc. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=18&amp;c=16" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Help with javascript</title><link>http://forums.asp.net/thread/2755328.aspx</link><pubDate>Wed, 19 Nov 2008 14:32:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2755328</guid><dc:creator>NC01</dc:creator><author>NC01</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2755328.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2755328</wfw:commentRss><description>&lt;p&gt;As soon as the PostBack happens no more code is executed, since the page is submitted at that moment. I&amp;#39;d suggest setting the AutoPostBack property on the DDL&amp;nbsp;to false.&lt;/p&gt;
&lt;p&gt;NC...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Help with javascript</title><link>http://forums.asp.net/thread/2755307.aspx</link><pubDate>Wed, 19 Nov 2008 14:27:13 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2755307</guid><dc:creator>silver_line</dc:creator><author>silver_line</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2755307.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2755307</wfw:commentRss><description>&lt;p&gt;Can Javascript on webpage coexist on&amp;nbsp; the same page with aspx page with autopost back as true?. The reason for this is, I have a java script running on client to move images on mouse click of image and selection of a dropdown list with autopost back as true, if this is not possible, is&amp;nbsp;&amp;nbsp;the only possible alternative is to code in two different pages(pass around values in two different pages)?&lt;/p&gt;
&lt;p&gt;If(!post_back) can I use this and put all the code inside? This still not solve my problem because aspx page needs to have autopost back as true&lt;/p&gt;</description></item><item><title>Re: Help with javascript</title><link>http://forums.asp.net/thread/2755152.aspx</link><pubDate>Wed, 19 Nov 2008 13:29:15 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2755152</guid><dc:creator>NC01</dc:creator><author>NC01</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2755152.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2755152</wfw:commentRss><description>&lt;p&gt;From what you&amp;#39;ve posted, I have no idea how to help you on that. Sounds more like a design issue rather than a code issue though.&lt;/p&gt;
&lt;p&gt;NC...&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Help with javascript</title><link>http://forums.asp.net/thread/2753904.aspx</link><pubDate>Wed, 19 Nov 2008 01:11:27 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2753904</guid><dc:creator>silver_line</dc:creator><author>silver_line</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2753904.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2753904</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks a lot.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Could you also give me some suggestions for the following&lt;/p&gt;
&lt;p&gt;1) I have to select some images within a block based on some drop down selectins. I have done all the coding in c# and works great. The way I did was to have the images as invisible on aspx page and made them visible based on the selection criteria. The block i call it as enclosure.&lt;/p&gt;
&lt;p&gt;The new problem i am working on is having these images displayed on the first page with much smaller resolution. Other words, the entire enclosure should be displayed on the first page with smaller resolution.The image should also move based on other selection rules on the first page. I am thinking of moving the enclosure on the first page using java script.&lt;/p&gt;
&lt;p&gt;Not sure of how to do the first part, where display the images on second page on first page. This is not a single image, these are a collection of images based on some specific selection (almost like a formula).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please suggest me some good approaches.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;</description></item><item><title>Re: Help with javascript</title><link>http://forums.asp.net/thread/2750118.aspx</link><pubDate>Mon, 17 Nov 2008 13:06:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2750118</guid><dc:creator>NC01</dc:creator><author>NC01</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2750118.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2750118</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;silver_line:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;1) I can only move one image at a time. Not sure why I am being restricted. In aspx, I have the same function being called each with different Id&amp;#39;s.&lt;br /&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;The AnimateImage function only works when a variable named &amp;quot;flag&amp;quot; is 0 and you set it to 1 on the first call to MoveImg or MoveImgLeft and I see no where that you set it back to 0.&lt;/p&gt;
&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;silver_line:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;2) When I go to another page and come back to this page, all the javascript image moving is lost.&lt;br /&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;Of course. Web pages don&amp;#39;t remember what was done to them before! Each rendering is like new. You would need to save the positions some how and re-set them on page load.&lt;/p&gt;
&lt;p&gt;NC...&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Help with javascript</title><link>http://forums.asp.net/thread/2749963.aspx</link><pubDate>Mon, 17 Nov 2008 11:44:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2749963</guid><dc:creator>silver_line</dc:creator><author>silver_line</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2749963.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2749963</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I wrote a javscript to move an image with interval with a single click. All the images move perfectly. But the problem I am seeing is &lt;/p&gt;
&lt;p&gt;1) I can only move one image at a time. Not sure why I am being restricted. In aspx, I have the same function being called&amp;nbsp;each&amp;nbsp;with different Id&amp;#39;s.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;2)&amp;nbsp;When I go to another page and come back to this page, all the javascript image moving is lost.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please help. Attached is source code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;function&lt;/font&gt;&lt;font size="2"&gt; AnimateImage(ImgId)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;font size="2"&gt; (flag==0)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;//clearInterval(ImgTimer);&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;ImgId_tmp = ImgId;&lt;/p&gt;document.getElementById(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;#39;Enc&amp;#39;&lt;/font&gt;&lt;font size="2"&gt;+ImgId+&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;#39;_7000&amp;#39;&lt;/font&gt;&lt;font size="2"&gt;).style.left = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;440px&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;TopOrig = document.getElementById(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;#39;Enc&amp;#39;&lt;/font&gt;&lt;font size="2"&gt;+ImgId+&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;#39;_7000&amp;#39;&lt;/font&gt;&lt;font size="2"&gt;).style.pixelTop;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;//alert(&amp;quot;value is&amp;quot;, TopOrig);&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;ImgTimer = setInterval(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;MoveImg(ImgId_tmp)&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, 20);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;function&lt;/font&gt;&lt;font size="2"&gt; MoveImg(ImgId)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;ImgId_tmp = ImgId;&lt;/p&gt;document.getElementById(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;#39;Enc&amp;#39;&lt;/font&gt;&lt;font size="2"&gt;+ImgId+&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;#39;_7000&amp;#39;&lt;/font&gt;&lt;font size="2"&gt;).style.pixelTop -= 2;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;//document.write(&amp;quot;HEllo&amp;quot;);//,DDL_Move.Text);&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;//var ddlval = $get(&amp;#39;&amp;lt;%=DDL_Move %&amp;gt;&amp;#39;).SelectedIndex;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;var&lt;/font&gt;&lt;font size="2"&gt; ddl = document.getElementById(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;DDL_Move&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;var&lt;/font&gt;&lt;font size="2"&gt; ddlval = ddl.options[ddl.selectedIndex].value;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;//alert (&amp;quot;Value is &amp;quot;, +Val);&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;//document.write(&amp;quot;&amp;lt;H&amp;quot;,DDL_Move.SelectedValue,&amp;quot;&amp;gt;&amp;quot;,&amp;quot;&amp;lt;/H&amp;quot;,headLevel,&amp;quot;&amp;gt;&amp;quot;);&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;font size="2"&gt; (document.getElementById(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;#39;Enc&amp;#39;&lt;/font&gt;&lt;font size="2"&gt;+ImgId+&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;#39;_7000&amp;#39;&lt;/font&gt;&lt;font size="2"&gt;).style.pixelTop &amp;lt; (TopOrig/6-ddlval*55/6))&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;clearInterval(ImgTimer);&lt;/p&gt;ImgTimer = setInterval(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;MoveImgLeft(ImgId_tmp)&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, 20);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;//document.getElementById(&amp;quot;Enc2_7000&amp;quot;).style.left = &amp;quot;275px&amp;quot;;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;flag=1;&lt;/p&gt;
&lt;p&gt;} &lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;function&lt;/font&gt;&lt;font size="2"&gt; MoveImgLeft(ImgId)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;document.getElementById(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;#39;Enc&amp;#39;&lt;/font&gt;&lt;font size="2"&gt;+ImgId+&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;#39;_7000&amp;#39;&lt;/font&gt;&lt;font size="2"&gt;).style.pixelLeft -= 2;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;font size="2"&gt; (document.getElementById(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;#39;Enc&amp;#39;&lt;/font&gt;&lt;font size="2"&gt;+ImgId+&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;#39;_7000&amp;#39;&lt;/font&gt;&lt;font size="2"&gt;).style.pixelLeft &amp;lt; 275)&lt;/font&gt;&lt;font color="#008000" size="2"&gt;//ddlval*55-Val) &lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;clearInterval(ImgTimer);&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;//ImgTimer = setInterval(&amp;quot;MoveImgLeft()&amp;quot;, 20);&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;// document.getElementById(&amp;quot;Enc2_7000&amp;quot;).style.left = &amp;quot;275px&amp;quot;;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;flag=1;&lt;/p&gt;
&lt;p&gt;} &lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>