﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebTextEditor - IFrame and hidden field ID</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/IFrame-and-hidden-field-ID/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>IFrame and hidden field ID</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/IFrame-and-hidden-field-ID/</link><pubDate>Mon, 30 Sep 2013 05:00:09 GMT</pubDate><dc:creator>bernard</dc:creator><description>&lt;p&gt;Hi Alex,&lt;/p&gt;&lt;p&gt;For the first scenario, you can put your javascript in specific IFrame by using OnInitialize client-side event. In WebTextEditor OnInitialize client-side event, WebTextEditor had been built so the content won't be changed during this event. You can also get the IFrame ID and attach a javascript to handle specific iframe's body which you couldn't get in Server-side. However, you shouldn't change the element inside WebTextEditor because it will cause error in our API.&lt;/p&gt;
&lt;p&gt;For the second scenario, after you attach onkeydown event on specific iframe's body, you can put a variable that indicate the section that you pressed had been changed. You can also compare the HTML content inside this javascript but you should save the HTML content when OnInitialize client-side event is triggered. So it won't need any HiddenField to save the state of WebTextEditor's section.&lt;/p&gt;
&lt;p&gt;I attach my sample here. Could you look in my sample and please let me know if this sample doesn't meet your requirement? You can also tell me step by step of scenario that you want to achieve by using WebTextEditor. I'll gladly help you further. Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Bernard&lt;/p&gt;</description></item><item><title>IFrame and hidden field ID</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/IFrame-and-hidden-field-ID/</link><pubDate>Fri, 27 Sep 2013 14:25:28 GMT</pubDate><dc:creator>aliard@sigma-rh.com</dc:creator><description>Hi,&lt;br /&gt;&lt;br /&gt;First, we have to add some javascipt on the IFRame in order to detect keypressed in order to disable some key on the keyboard.&lt;br /&gt;&lt;br /&gt;Also, with the IFrame, we need to change the DOM of the current selection programmatically to insert or change the content.&lt;br /&gt;&lt;br /&gt;Second, we have to know what is the hidden field in which you put the html content of the IFrame in order to moditor in javascript if it has changed or not.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Alex&lt;br /&gt;&lt;br /&gt;</description></item><item><title>IFrame and hidden field ID</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/IFrame-and-hidden-field-ID/</link><pubDate>Thu, 26 Sep 2013 23:24:43 GMT</pubDate><dc:creator>bernard</dc:creator><description>&lt;p&gt;Hi Alexandre Liard,&lt;/p&gt;&lt;p&gt;Actually, you couldn't get the IFrame's ID inside WebTextEditor because it will be created by our API in client-side. Although, you could bind the content to iframe in your server side by using this function:&lt;/p&gt;&lt;pre&gt;WebTextEditor1.LoadContentFromFile(Server.MapPath("./SampleHtml/Product Overview.html"), true);&lt;/pre&gt;
&lt;p&gt;You can see the sample in here &lt;a href="http://live.intersoftpt.com/cs/WebTextEditor/WebTextEditor/SaveAndLoadContentToFile.aspx?noframe=1&amp;amp;path=/WebTextEditor/Rich%20Text%20Editor/Advanced%20Client-side%20and%20Server-side%20Programmability" style="font-size: 10pt;"&gt;http://live.intersoftpt.com/cs/WebTextEditor/WebTextEditor/SaveAndLoadContentToFile.aspx?noframe=1&amp;amp;path=/WebTextEditor/Rich%20Text%20Editor/Advanced%20Client-side%20and%20Server-side%20Programmability&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Or you can populate the data from server side and send it to client side, then client side will set the value regarding its iframe ID. You can set the text using this SetValue function. See the sample here:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://live.intersoftpt.com/cs/WebTextEditor/WebTextEditor/SetValueFromClientSide.aspx?noframe=1&amp;amp;path=/WebTextEditor/Rich%20Text%20Editor/Advanced%20Client-side%20and%20Server-side%20Programmability"&gt;http://live.intersoftpt.com/cs/WebTextEditor/WebTextEditor/SetValueFromClientSide.aspx?noframe=1&amp;amp;path=/WebTextEditor/Rich%20Text%20Editor/Advanced%20Client-side%20and%20Server-side%20Programmability&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If this matter doesn't resolve your problem, could you explain me the scenario that you want to achieve with WebTextEditor? Maybe with your scenario I can figure out some method to achieve your scenario. Look forward to hear any feedback from you so I can help you further.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Bernard&lt;/p&gt;</description></item><item><title>IFrame and hidden field ID</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/IFrame-and-hidden-field-ID/</link><pubDate>Thu, 26 Sep 2013 08:29:28 GMT</pubDate><dc:creator>aliard@sigma-rh.com</dc:creator><description>Hi,&lt;br /&gt;&lt;br /&gt;Can you tel me how Server-side I can get the WebTextEditor's IFrame ID ?&lt;br /&gt;&lt;br /&gt;Then I will be able to add it in my Javascript.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Alex&lt;br /&gt;</description></item><item><title>IFrame and hidden field ID</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/IFrame-and-hidden-field-ID/</link><pubDate>Wed, 25 Sep 2013 23:25:09 GMT</pubDate><dc:creator>bernard</dc:creator><description>Hi Alexandre Liard,&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;You can access all HTML element with its ID in server side if you set runat property to Server value. However, when you're using IFrame you couldn't access the HiddenField or IFrame from server side which placed in different aspx. Altough there's a way you can access these element. You can access this element client side using javascript that you used right know. To access the IFrame you can use, window.frames function from javascript. Hope this helps.&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Regards,&lt;br /&gt;Bernard&lt;/div&gt;</description></item><item><title>IFrame and hidden field ID</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/IFrame-and-hidden-field-ID/</link><pubDate>Wed, 25 Sep 2013 12:24:04 GMT</pubDate><dc:creator>aliard@sigma-rh.com</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Is there a way, server-side, to get the ID of the IFrame and the hidden field?&lt;/p&gt;
&lt;p&gt;We have to add our custom javascript that needs to track changes and to replace or paste  html in the editor.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Alex&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>