Inserting select tag in Umbraco? - html

I'm currently working on a project using Umbraco and the client has asked for a drop-down menu with the states and once selected the cities in that state will be displayed.
When I'm in the text editor, it will save tables, but once I input a <select></select> tag or <option></option> tags and save the file and go back into it my coding will be converted to normal text. It doesnt seem to want to accept or is there a way to insert these, and if there is, is there a way to do it without creating a new doctype? The hours have been budgeted and I'm trying to find a quick fix if possible.
Thanx in advance.
Correction: It doesn't simply convert it to just plain text but the entire <select>/<option> tags will be completely gone and all that will remain is what was between the tags.

You cannot do this in the rich text editor, for this to work you need to create a macro (you have a choice: XSLT / Web User Control or Razor).
In said macro you will be able to render the dropdowns you want, if you're familiar with ASP.NET a user control will probably be most convenient, binding it to a datasource.
But it sounds like you're in over your head, as you haven't yet mentioned how you plan to post and save the form. You really should provide some more details on that.

Related

HTML editor for blog

Sorry for asking such a dumb question. But I am not actually getting the name by which I should search this. I need a plugin for blog writing using which user can edit fonts and add image/s. While submitting, the generated html code can be entered into mysql. Can anybody help on this issue...
there are a bunch of text editors for weblogs, but I really like ckeditor. I think your issue has two sides. In the first place you should provide a text editor for users to enter their stuffs. In the second place you should have a server side approach to get what your users entered in order to save in your database.
Try CKEditor. You can download it from http://ckeditor.com/download

using c++ can you set the output directory to a web page input box?

My brother was asking me if I could make him a program that would ask the user for info (name, address, etc) and then output it on a webpage text box that he uses. The reason for this is he has to write the same info over and over for his job so if he could enter it once and have a program fill the correct fields in that would save him hours every day. I've taken a couple semesters of c++ and I was thinking I could write a GUI program just fine that would get the info needed, my problem is I don't know if it is possible to set the output directory to a html text box. I've never messed around with html coding at all. It would be the same web page every time with the same boxes to fill. Any help would be much appreciated.
No. An input element on a web page is not a file.
An appropriate way to solve this problem would be with a Javascript browser add-on.

Windows Form to HTML

I was just wondering, did some research on internet as well, is there anyway to export a windows form which is coded in VB as HTML. Doesn't need to be directly I mean it can go over from excel to HTML or any other route which is possible. I just want my user to tick couple of check boxes and see the text which I retrieved from my database.
Thanks in advance.
You might want to try this one:
http://www.codeproject.com/Articles/15559/A-Windows-Forms-based-text-editor-with-HTML-output
There's nothing out that that I've seen that is a perfect solution.
I did see this interesting article on CodeProject which looks like it does a rough job of it, and might be sufficient.
However, if it's that simple, and you already know how to code WInForms, you could just bite the bullet and create ASP.NET pages. (Using WebForms instead ov MCV as it's more similar) The two programming/design models arean't really all that different.
there is a function in excel to export an datasheet to an HTML page.
SaveAs >>>> Html page or web page.
And the same goes for Word.
Good luck

Some HTML tags (e.g. IFRAME) and Javascript in Joomla 1.5 articles are automatically removed when using the WYSIWYG editor

When using a WYSIWYG editor in Joomla 1.5 to create website content I am not able to freely insert HTML tags, such as IFRAME as the HTML tags will be automatically removed on saving the article. I can either configure Joomla not to use a WYSIWYG editor which makes editing articles a bit of a pain, or I can force the HTML code into the article using MySQL Query Browser and altering the article content directly in the site's database. Doing this is not only cumbersome but also ineffective, because every time someone edits the article from the Joomla back end WYSIWYG editor, the inserted tags will be removed by the editor again.
Is there a way of inserting an IFRAME (or perhaps JavaScript) into a Joomla 1.5 article, without turning off the WYSIWYG editor or hacking away at the database?
I had the same problem that you are facing. I used Jumi to solve that. It works very well.
Short answer: no. Joomla knows best :P
But seriously, you can turn off the WYSIWYG for just your user. Go to the 'User Manager', select your account, and set the 'User Editor' preference to be 'Editor - No Editor'. That way you can type in whatever tags and code you want, without WYSIWYG borkage. But every other account on the site will still have access to their WYSIWYG's.
Doesn't take too long to toggle the WYWIWYG that way when you need to do a bit of precise HTML/Javascript/etc coding.
Actually, it depends on what you want to put in your IFRAME. If it is a URL, then you can create a "Wrapper" module containing the URL you want. Type a unique name into the "Position" field in the module. Then, you can display the results in an article by inserting the following where you want the results to appear {loadposition XXXX} where XXXX is the unique name you typed into the module's position field.
I think by using JCE Editor in joomla you are able to fix all these problem.
If you use the JCE Editor for joomla It will allow you to customize what tags are allowed. THe default Joomla editor will strip the tags out. I have also ran into issues if you toggle the editor at all it will remove them on submit. I have found the only way to do this is either with a wrapper, or a custom code module.

what would I have to do to get the new HTML Editor ajax control to work as a sharepoint content editor webpart?

Microsoft have just released a few new ajax controls including an ajaxed up HTML editor control.
http://www.asp.net/learn/Ajax-Control-Toolkit/tutorial-50-cs.aspx
I would like to try this in Sharepoint (as the built in Sharepoint one is awful (no cross browser at all and flaky on IE) I tried the Telerik free one but it was not very stable.
I guess that getting the control up on a page won't be too hard, but how do I make sure the resulting HTML is stored in the Sharepoint way(tm)?
Thanks
If you intend to replace the standard SharePoint rich text editor, you would likely find it much easier to use jQuery than the ajax control toolkit. The MS ajax controls have a server component - you may be able to get it into a custom column type, but it's going to be a lot easier if you just replace the textbox with something better clientside.
The standard control works in a similar way - a standard textbox containing html is created on the server, and javascript is used to hide that and connect it to the rich text editor.
There is really nothing you need to do to format the HTML for SharePoint. If you are working with a field control you can expect that SharePoint will strip out a lot of the HTML from your control.