javascript WYSIWYG HTML editors?
What are the options for something that will let users make text bold/italic/underline/etc as they are writing in a textarea and work in all browsers? ...
What are the options for something that will let users make text bold/italic/underline/etc as they are writing in a textarea and work in all browsers? ...
OS: Linux Browser : Firefox I need to read a html file content into a string variable through JavaScript ? Is it possible in javascript ? If yes, Kindly help me with syntax/method to do this ...
Could I please get a explanation of why this code produces the result it does? And a way to fix it/work around it, if possible. I dont want div 'z' and 'q' to go over 'the blue div border' on the right. Or I would like div 'x' to be consitant with 'z' and 'q' and also go over the blue right border as well. Please view result <div s...
Hi, I'm having a hard time with ie6 lately on a particular problem, here's the bit of html I'm on : <a href="http://www.mylink.com" style="display:block;width:200px;height:200px;"> <span style="display:block;width:100px;height:100px;"> <img src="img.jpg" alt="My image" /> </span> </a> Everything is fine with firefox etc, b...
i have form action file in another directory but some file send to this action file and how to get url to send action http://www.test.com -> action to http://www.123456.com/ac.php how to get http://www.test.com in http://www.123456.com/ac.php to goback http://www.test.com ...
How can i bind an OnChange event of a TextBox to function using JQuery? Am trying this and its failing ; $(document).ready(function(){ $("input#tags").bind("change",autoFill); }); function autoFill(){ $("#tags").autocomplete("/taglookup/", { width: 320, max: 4, highlight: false, mul...
Is there a way in CSS to make the background of an element semi-transparent, but still have the text of the element non-transparent? (Without separating the text and background in two elements positioned over eachother.) I've tried <p style="position:absolute;background-color:green;filter:alpha(opacity=60);opacity:.6;"><span style="colo...
Hi All, I have a problem with html code. I have tried many solutions but i haven't solved my problem. Excatly my problem is ; if i used two div inside of html page and both divs must be contains iframe element, i have never seen correct html page in browser. Note : each div must have position:fixed css attribute. Example code : <...
I am trying to generate a specific link and accompanying html depednant on the existance of a file. The code I am using to do so: if(file_exists('../images/'. $pk . '.jpg')) { $imageSrc = "../images/". $pk . ".jpg"; $imagehtml = htmlentities(json_encode("<img src=\"".$imageSrc."\" >")); $screenshotLink = "<p><a href=\"#...
I'm trying to change the value on a <textarea> element. This code works great in Firefox, but IE claims there's an error onblur and doesn't set the value. <textarea name="comment" id="comment" rows="8" cols="80" style="color:grey;" onfocus="if(this.value=='Add a comment...') {this.style.color='black'; this.v...
I am using this form as a file upload form(as part of a larger php script, $pk is sanitized in the actual thing): <?php if (isset($_GET["pk"])) { $pk = $_GET["pk"];} echo '<form action="up.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input type="file" name="file" id="file" /> <input type="hid...
To prevent impatient users from clicking on a link to a webstart application too often, I tried to disable the hyperlink for some seconds after it has been called the first time. <a href="file.jnlp" onclick="if (!this.clicked){this.clicked = true; setTimeout('this.clicked = false' ,10000); return true;} return false"> The code above ...
How do i send a trigger keypress of a particular keyCode eg. "9" event on a TextBox using JQuery programmatically? This what i intend to do; Programmatically enter a value to a TextBox and then programmatically trigger a tabkey on the TextBox to exit the field. my code $("#tags1").val("comp") // Works well $("#tags1").trigger("keypre...
I'm using this program to display a list of all html tags in a given file: #include <cstdio> #include <libxml/HTMLparser.h> #include <libxml/tree.h> #include <iostream> #include <cstring> using namespace std; static void print_element_names(htmlNodePtr a_node) { htmlNodePtr cur_node = NULL; for (cur_node = a_node; cur_node!=N...
I'm executing an external script, using a <script> inside <head>. Now since the script executes before the page has loaded, I can't access the <body>, among other things. I'd like to execute some JavaScript after the document has been "loaded" (HTML fully downloaded and in-RAM). Are there any events that I can hook onto when my script e...
I have a chunk of HTML which I'd like to add to a document at run time. How do I embed the HTML within the JS file? var p = document.createElement("div"); p.innerHTML = '<div> MY HTML <some element> </some element> <some element> </some element> </div>' The problem is that my HTML is ...
How do I get the absolute x,y coordinates for an HTML element on a page that may exist within a iFrame. The page is sometimes called on its own and sometimes is called from within an iFrame. This is the function that I wrote to figure out the x,y position based on the offsetLeft and offsetTop of the element and the offseParent. functi...
Hi, I see a lot of different point of views on internet concerning meta tags. I've been using them for a while, but I'm now wondering if I've been doing it using the current best practices. I know that the description is the most important one... <meta name="description" content="This is not a website" /> But what about other meta t...
I have a GridView that is bound with a dataset. I have my footer, whichis separated by the column lines. I want to merge 2 columns; how do I do that? <asp:TemplateField HeaderText="Name" SortExpression="Name"> <ItemTemplate> ... </ItemTemplate> <FooterTemplate > Grand Total: </div> </FooterTemplate> </asp:Templat...
I have a TextEdit widget in PyQt that I use to print out a log in HTML. I use HTML so I can separate entries into color categories (red for error, yellow for debug, blue for message, etc), but this creates a problem. Most of the debug messages are XML. When I use appendHtml on the widget, it strips out all the tags. How can I pretty pri...