Is it possible to create a multi-line text-input field? I need something that works as a textarea (with line-wrap) but without being able to 'return' to the next line. Or should i create a textarea and disable the enter-button?
...
HI guys,
is there any way to find which control is submitting the form through JavaScript??
also if one defined a JavaScript function to be called on the form submit event is there a way to find the control which caused the submission
Thanks a lot
...
I want to load some HTML which include a bit of javascript, using jQuery. I've tried using both load() and ajax(). The HTML is inserted nicely into the DOM, but any script-tags seems to be filtered out. If I alert() the returned HTML, the scripts are included, but when i use html() or append(), the scripts are missing.
Any ideas?
...
Hi,
I'm using jquery and uploadify to upload photos to server. After uploading photos they are added to a div container using ajax. Everything works great except DELETE button. All delete buttons work on page load but those added via ajax don't work. I suppose that's because I defined function that enables image deletion and didn't use '...
hi guys,
I have a button.In its click i hve written code for insertion.If i click on refresh in browser again insertion takes place and so the duplicate data enters to database.Is there any javascript to avoid insertion on refresh.Can anybody help?
...
I would like to know what are some downsides using too much JavaScript code in a web page?
For example, I will use a jQuery framework for my dropdown menus, tabs and accordion. And other JavaScripts for my calendar (even-though there is available calendar that uses jQuery) and other JavaScript for other stuff? What is the effect? (My o...
Does Air supports SVG and if it not possible is there another way to event sensitive graphics draw via JavaScript.
...
Is it possible that clicking on a row of a table will generate information particular to that row in a separate frame below the frame of the table? e.g. i have created following dummy table.
<table>
<script type="text/javascript">
var i =0;
for (i= 0;i<20;i++)
{
document.write("<tr><td><b>" + i);
document.wr...
I am trying to get the values to a select list for subcategories on the basis on what is chosen in categories select list. It doesn't seem to work on IE. Can anyone suggest the problem?
In the php file I have
<body onload="setSubcategories(default_value);">
In the js file I have something like
subcategories = new Array();
subcateg...
I have a code blog in which I have a user input form for submissions. Whatever goes in that form will appear on one of the pages. Now this is a coding blog, so I don't want to strip any HTML tags or javascript code from the input, but I don't want it to executed at any point. What is the best way to render any input harmless? Is replacin...
Following code displays two buttons: AJAX popup and Direct popup. They are supposed to open the same page in a new window. Direct popup calls just window.open() in onclick event. AJAX popup does AJAX call and then in stateChanged() function calls window.open() just in the same way.
Both of them work in FF, but AJAX popup doesn't in IE, ...
I have two html files information.html and employee.html.
Information.html contains two tables having IDs 'top' and 'bottom'. Employee.html is included in the <table id='top'> of information.html.
Employee.html's code, containing just a dummy <table>, is as follows:
<!-- employee.html -->
<table align = "center" border="1" height=...
I have a IXMLDOMDocument2 type document. I would like to see the xml for this document. How can I turn it in to a string so I can view it? I am using javascript. The .text properity is just "".
...
Hi ,
I wanted to change the JavaScript Execution context from parent window to child window. The different library's inline script, loaded in parent window should be made available to child window execution context. I am able to load my script objects, functions to the child window context but the third party library's is not possible ....
Hi All,
Want to know How to create modal dialog/pop up without title bar using javascript which will work on both IE and FF.
Thanks.
...
I want to bind an onclick event to an element I insert dynamically with jQuery
But It never runs the binded function. I'd be happy if you can point out why this example is not working and how I can get it to run properly:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD...
I'm writing a form validation script and would like to validate a given field when its onblur event fires. I would also like to use event bubbling so i don't have to attach an onblur event to each individual form field. Unfortunately, the onblur event doesn't bubble. Just wondering if anyone knows of an elegant solution that can produce ...
I am able to use the following to get the value of the selected radio button (of the radio button list rblReason)
var reasonId = $('#rblReason').find('input[checked]').val();
How can I get the innerText of the radio button selected?
ty
...
Hello, I have a extension that uses multithreading using worker thread as shown here .
Whenever worker thread returns value to main thread, I am updating UI and I am starting that thread again because I want to continuously execute that operation. I cannot use setInterval because inside thread is a call to C++ XPCOM component function w...
I want to be able to list the files and directories of a mercurial repository in a web browser using javascript.
...