Opening comment box in the same page - ajax

I want to open a text area when i press the comment button without page getting reloaded.Please help.I am a newbie in this field.
I have tried seeing some tutorials but not of much help.I have never used Jquery before

Use this jQuery code:
hide the textArea element by default.
$("#[buttonID]").click(function(){
$("#[textAreaID]").show();
}

Related

CKEditor - dropdowns not appended to editors

I have a weird problem with CKEditor. When I click on the styles menu, the dropdown appears, but it's not added to the editor's element, but just on the body of the document.
Thus, when I scroll the page, the dropdown stays where it's at an the editor scrolls.
Kinda hard to explain, I hope the attached screenshot helps to understand.
Anybody having an idea what could cause this?
P.S. - it's the CKEditor that comes with Typo3 and I have multiple instances of ckeditor on my page.

Text showing in one line with scroll

When I insert text into ckeditor its showing good and added into database but in edit form it showing all text into one line with scroll.
Note : I notice that this issue is only with Firefox browser
in add form it showing like this
in edit form it showing like this
Working now, I don’t know what was the issue may be some css applied on the editor. so I just download the new ckeditor and applied in my app and its working absolutely fine :)

Bootstrap Modal Ajax not working on click

Bootstrap Modal Ajax not working on click without the alert on second line.
please help
http://pastebin.com/cyXdWSPq
Try wrapping your code in a $(document).ready(function(){}) or equivalent. When I see stuff like this it's usually because the document is not fully loaded yet. Give it a shot.

jqgrid and tinyMCE or FCKEditor

I've been trying for ages to add any kind of editor to jqGrid. so basically i want to be able to select a row and a modal opens and if it's type= textarea to show the editor.
Is this possible?
I found a lot of post with vague snippets of code but no real implementation.
Any help will be much appreciated.
Thanks.
Andrés.

Gecko WebBrowser, getting the url from a selected hyperlink

This is a real 2%er but here goes, I have created a winform in VS2010 with Gecko 2.0.1-0.10 (latest release) webbrowser control, I am using a touch screen to navigate. Sometimes when clicking a hyperlink it will select text rather than navigate, on the DomMouseUp event I want to check to see if there is selected text, if so I want to see if it is a hyperlink and if it is, where that hyperlink goes to. I had a mess around with GeckoSelection but nothing looked obvious. I am looking for a way to see if what is selected within the web browser is a hyperlink, any thoughts?
I've worked it out : for anyone interested in such things, use DomFocus on the gecko control:
m_strInnerHtml = geckSel.ActiveElement.Parent.InnerHtml.ToString();
That will give you the innerhtml of the selected item, from here you can extract the href tag and get the url, navigate to it, hey presto :)
Update: An even better solution is to use (in DomFocus again)
m_strInnerHtml = geckoWebBrowser.Document.ActiveElement.GetAttribute("href");
This will return the actual hyperlink address, one thing to watch out for however is if you're on google for example and select the "Advertising" hyperlink at the bottom of the page, it may return "/advertisingpage/" which must be appended to the original url. Clicking a hyperlink away from google will return the full address however.
Very good behavior gives this call:
m_strInnerHtml = geckoWebBrowser1.Url.AbsoluteUri()

Resources