Hi All,
I need to implement an autocomplete text field using JavaScript and JSF. When the user types some character in a text field, I need to make an AJAX request and get the values based on the values entered.
I've an input text field, on "keyup" I'm triggering a function which submits the value to the server side.
var timeoutid = ...
Hello,
I have a table in my php code. In the second column of the table, normally it displays "---", and after i click the submit button, it will display the calculating result in the same page.
For example,
<table>
<tr><td>1</td><td>---</td></tr>
<tr><td>2</td><td>---</td></tr>
<tr><td>3</td><td>---</td></tr>
</table>
And in the s...
I'm writing a script for a form-faces xforms product that is keyed off an event built into form faces. The event is called 'xforms-ready'. I have define 'startTime' as happening as soon as the document in 'ready'. What I want the script to do is warn the user that it is taking too long before the 'xforms-ready' happens, say if it's been ...
Hey!
I have a Lightbox clone (colorbox), which works fine and has no real issues. What I would like is an extra arguement that would say:
[pseudocode]
if (linksRel == "lightbox1") {
add stylesheet1 to this lightbox
} else {
add stylesheet2 to this lightbox
}
[/pseudocode]
Currently, I have a page with a "colorbox.css" file atta...
As you surely know Microsoft Doloto is tool which profiles you javascript code as it actually runs on the page and splits it in to two files: one file will be statically included in the footer of the page which contains stubs for all functions and loads the actual implementations (in file 2) in the background (under the assumption that o...
How to bind the datasource to gridview in javascript?
...
I am using FB.ui with the display parameter set to popup.
When the method is 'stream.publish', it autoresizes when the content is loaded. However, when using 'fbml.dialog' (in order to display a multi-friend selector) it shows a size that I'm not able to change (and the content is displayed cropped).
I have tried with the following ap...
Now i have a problem below:
i've added a div on my page to forbid user to click buttons, links or fields when user click the DOWNLOAD button. So i need to remove this div when the IE file download prompt pops up or when user clicks "save", "save as" or "cancel" on it.
How can I reach this?
IE only considered please.
...
Hi,
I wonder if it is possible to create combo box as in the picture below. The aim is that the actual text of the combo (select in HTML) would be different that items' texts that are displayed while the combo is opened.
The application is written using Google Web Toolkit so any solution in gwt or HTML/JavaScript would be great.
Tha...
By design I need an input element typed text but I do not need an input element typed submit. I want to submit what's written in the input element once the enter key pressed. How would I do that in JavaScript? Do I need tags and other stuff or could I do it without them (just using )?
...
Hi there,
I am trying to get some information of a child element of an li using mootools, essentially my html looks like this,
<li><a href="/home" id="home" class="nav-link">Home</a></li>
I am wanting to be able get the id, class and href of the a tag using mootools, so far my javascript looks similar to this,
$$('.rate').each(f...
Hi everyone
How to delete all cache in JavaScript?
Thanks a lot.
...
I'm looking to create a perl script that I will run on a JavaScript file to automatically change ( ' ) that breaks the script.
Example:
file.js
document.writeln('» <a href="/LINK1" TARGET="_blank">Lorem ipsum lorem 1</a><br>');
document.writeln('» <a href="/LINK2" TARGET="_blank">Lorem ipsum lor'em x em 2</a><br>');
docume...
Hi,
I have an edit form that uses an ajax form to submit to the controller. Depending on the data submitted I redirect the user to one of two pages (by returning a partial view). Both pages rely on javascript/jquery and neither use anything common between the pages.
What is the best way to initialise these javascripts on each page? I k...
How to make up a form that is going to be a search box and work only via Ajax? That is:
1) What to put as the form's action value? (action="what")
2) How to submit it so that nothing else happenes except for calling the JavaScript function?
...
hi,
I've 2 sets of thumbnails and in each set I'm displaying them one nearby each other in 4 columns using float:left.
I would like to "merge" the 2 sets (but I cannot change the html code) because I want the thumbnails of the second set floating right after the last thumbnail of the first set.
In other terms, if in the last row there...
Hi,
I am trying to format this line of code in my popup window, but i am facing unterminated string literal error.
Can somebody please tell me how best I could format this.
window.setTimeout("winId.document.write('<script src="../js/tiny_mce/tiny_mce.js" type="text/javascript"></script>\n')", 10);
Also point out if this particular l...
I'm using Prototype here and would like to build a simple toggler that toggles an iframe which contains the page the toggler is on to maximize to the browsers full size or minimize to its original size. Any ideas?
...
Hi,
I'm currently working on a page which makes use of the MS Ajax UpdatePanel. However I've run into a strange problem. If I simply compile and view my page, one of the button click events results in an error. However, because the button affects items inside an UpdatePanel the actual exception is hidden from me: all I'm getting is a HT...
I am trying to add css dropdowns to the navigation menu. But it is not working. I would like to know what is causing the problem. Your help is highly appreciated. Here is the link:
Drop downs to navigation bar
...