I have a web-site. We are using TinyMCE as our text editor. I just upgraded to the newest version and added the media plugin so our users can add videos to their enteries.The upgrade works great on Chrome, FireFox, IE7. However, it does not work with IE8. The frame around the editor disappears along with the toolbar.
I have written an asp.net usercontrol with TinyMCE as a text editor for my web application.
This control is being used on webforms. When other control(s) perform a partial page refresh, the control no more remains a texteditor, is converted back to the same old textarea control. When updatepanel is not used, there is no problem.
Is this some kind of conflict between Microsoft Ajax and TinyMCE JavaScript or am I missing something ?
The first page, default.htm, is a frameset page that uses the other two pages.
The second page, casemenu.aspx, is a form that contains an object we call "PopupManager": It has an element <xxx:PopupManager runat="server"/>. This object is dependent on the standard ScriptManager, which requires a form.
The third page, header.aspx, contains three links. Each link calls a JScript function that in turn calls a function on the Popup Manager. It makes the call to the popup manager with an expression like 'top.frames.casemenu._PopupManager'.
Now, the problem I have is that I have to change default.htm to be a normal page containing an iframe, which will refer to a new page, container.aspx, which has the original frameset. When I do that, I can no longer access the PopupManager the same way ('top.frames.casemenu._PopupManager' no longer works.)
I would like some way to refer to the PopupManager relative to header.aspx, something like "self.parent.frames.casemenu._PopupManager", but that doesn't work.
I have two radio buttons that are disabled with javascript when the page loads. RadioButton1 is checked by default. When I click the button to do a postback, the RadioButton1 is no longer checked.
I am creating a ASP.Net server control to manage locations. The control is a composite control containing several text-boxes, labels, and a link button. I use the AJAX Control Toolkit to provide a modal popup which contains a Bing map. All the Javascript is in its own file and used as an embedded web resource.
The link button is what opens the modal popup. It also needs to call a Javascript function that initializes the Bing map (onclick = "GetMap();"). There are instances when this server control is placed within an Update Panel (and there is no way to avoid this). When in an Update Panel the link button loses its onclick event. I understand that this is because during an async postback the portion of the DOM that defines the content of the Update Panel is thrown out and reinitialized, resulting in the event breaking. When the control is not in an Update Panel everything works as intended.
I have tried registering events on Page.Load and Page.Init, like so:
[Code]....
I have also tried flat out writing the function call to the page:
[Code]....
I have put breakpoints on the lines inside each delegate and they do not get hit. I am not aware of any special way to register events of a composite control's child control or the Page.Load/Page.Init events when being done inside a server control. Is there some special way to register these events? (Note: Both those code blocks above are in my CreateChildControls() method)
Below is the GetMap() Javascript function. As you can see it is pretty straight forward.
I want to check the entered email id already exists in my database or not. For that I need the Text box lost focus event so that I can call it in update panel trigger asynchronously. whereas in my event I can check whether the entered value exists in database or not.
I have a website which I host myself. I do not have a static IP address so I have all traffic for my domain forwarded with masking to my DDNS account. The resulting page looks like this...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>mydomianname.com</title> </head> <frameset rows="100%,*" border="0"> <frame src="http://myddns.dyndns.org/mydomainname" frameborder="0" /> <frame frameborder="0" noresize /> </frameset> </html>
How can I update the URL of the "parent" frame as users navigate within the "child" frame?
UPDATE: Success?
I have tried doing this with javascript but had an issue getting the correct href to my javascript function with out having adverse side effects (having two windows open up, having my main window go to the wrong location, or making it so the back button didn't work right). All I needed was an attribute of my a tag to hold a value that I could use in my javascript, but would do nothing else at all. Adding the attributed value event though it is not a native attribute to the a tag works great.
... and there are none of the previously mentioned side effects.
The only "side effect" that I would like to fix is display of the link in the info bar at the bottom of a browser window. Right now it says javascript:void(0); because that is what is written in my href attribute, but I would like it to show the updated URL when the link is hovered over... any thoughts?
It would be even better if I could scrap all of this javascript and use IIS 7 URL Rewrite 2.0 to do this instead... but I have yet to master the black art of URL rewriting.
I have already added the dll to the references in the project and I checked the code in my csproj to make sure it is correct. I modified it to make sure it had a path hint.
When I click a button that causes a postback on the UpdatePanel it calls the tinyMCE.triggerSave().
It reloads the panel and the editor show up again, but when I try to call tinyMCE.triggerSave() the second time I get the following error:
g.win.document is null
I though it was getting the old instance, but I'm also removing the control (tinyMCE.execCommand('mceRemoveControl',false,'Editor');) after I call the save. Even so it still crashes the second time.
I have a form with multiple TinyMCE instance. I created the TextArea controls dynamically using a Repeater control - They all have the same ID,but I gave each one a different class. I assigned each of the TextArea controls a TinyMCE instance using the editor_selector : option in the TinyMCE Init function.
I want to refer to a specific TinyMCE instance in a JS function and get its content. In the case when each TextArea control has a different id that could by done by using :
Is there a way to get ref to a specific TinyMCE instance content by the class assigned to it in the editor_selector option of the TinyMCE Init function ?
i am using TinyMCE AND AsyncFileUpload AND an Update Panel After Uploading , i cannot delete the Images while Adding them to tinymce content because it is being used by another process.
lock (this) { if (File.Exists(_FILE_HANDLER_)) { File.Delete(_FILE_HANDLER_); } }
I have tinymce .net control on my .net webform and the basic setup works a treat. My code behind can see the html generated my tinymce via the TextArea1.Value property. However as soon as I set the mode to textareas the value is suddenly always empty! The problem is that if the mode is not set to textareas the tinymce editor is only in simple mode and does not offer all the features.
I am using TinyMCE html editor in my web application with Asp.net 3.5 and C#. If I enter a path like http://video.test.com/test.flv in url attribute to add video in my page content, the leading slash gets stripped, and becomes "http:/video.test.com/test.flv".So that the move could not get loaded. On button click event the slash gets removed. Button click is necessary for me to save the page content into the database.
I have set up a tinyMCE textBox on an emtpy form. I will now save some written text to a .txt file. When I press the button, I receive an error page and the .txt file is not created. However if I dont write anything in the textBox and press the button, then the .txt file is created and the messageBox is shown.
i have a ASP.NET 4.0 based CMS, where i use the TinyMCE (3.4) via jQuery to edit one Textbox.In addition to this i have several other textboxes. There is also another DropDown List on the Page, which controls the Contenttype.This Control has AutoPostback enabled and sets the visibility on the textboxes regarding the selectes item.As i want to keep the Postback Validation on i have configured the TinyXML to use xml for the content serialisation (encoding: "xml").Now i have the problem, when a postback from e.g. the DropDown List occures, the re-encodes the content.
i have enabled the original textarea via css and this seems to be a problem of the TinyMCS's Save method. Does anybody have a solution, how to fix this issue maybe with a custom save_callback on the TinyMCE?
<script src="../tinymce/tinymce.min.js" type = "text/javascript"></script> <script type = "text/javascript"> tinymce.init({ language : 'fa', directionality : 'rtl', selector: "textarea#elm1",
[code]...
here I used validation for textbox that if users don't enter text it show error..now here problem is that when I enter text for firsttime it show validation error I should enter text again that it doesn't show error and insert data into database.what should I do that it doesn't show validation error when I enter text for first time it doesn't show error?