I'm using the jQuery UI Autocomplete plug-in to make an ajax call and retrieve data. As well as passing the text of the input element I'm trying to pass in the 'id' attribute of the input element as an additional parameter. An extract of my code looks like this -
$("#autocomplete input").autocomplete({
source: function(requ...
I am trying to display a table with data in runtime using script.
I called the script from table header. Is that possible to call a function from table header.
</HEAD>
<BODY>
<TABLE id="dataTable" width="350px" border="1" onload="start('dataTable');">
<TR>
<THEAD>
<TR>
<TH>Select</TH>
<TH>Id</TH>
<TH>Name</TH>
<TH>Age</TH>
<TH>Dep...
Hi
I have created a ASP.NET WebForms Gridview and I need to access each row (e.g. the <TR>) of the table in javascript/jquery....
Unfortunately it looks like the <tr>'s generated by the gridview all have the same ID!
Is there a way to change this? Any ideas how I could access a particular row in javascript (basically I am trying to ca...
I copied this page's source in Aptana IDE for javascript. But, in the last lines:
<script language="JavaScript">
init();
</script>
</body>
</html>
it is showing at the init() line: syntax error, why? (when run, it works ...
I want to be able to generate private/public RSA keys with javascript only...
So far I found http://www.hanewin.net/encrypt/rsa/rsa.htm, it includes the only Javascript RSA key generator I found. I created wrappers (modifying the code from the demo page (see link)), here's the one for the keys:
function genKeys() {
rsaKeys(1024);
var...
I'm developing an iPad web app which plays sounds. From time to time multiple The movie could not be played alert box errors popup. One pops up for each sound that cannot be played, so if 10 sound bytes are (not) played then 10 alert boxes popup, which is a problem for the user. Often the only way to get rid of them is to reset the iPad....
I need a method to monitor user edit sessions, and one of the solutions I'm reviewing will have me using an unload event to send an ajax request to inform the server of the end of the edit session. (See: http://stackoverflow.com/questions/3530165/monitoring-user-sessions-to-prevent-editing-conflict)
My (rather limited) reading on the un...
Hi,
I'm trying to implement a function as a part of a firefox add-on with canvas which gives the user the ability to draw.
function draw(event,context,drawit) {
var drawx = event.layerX;
var drawy = event.layerY;
if (!drawit) {
context.beginPath();
context.strokeStyle='rgb(0,255,0)';
context.lineWidth=1;
...
I would really appreciate If anyone can explain methe following:
document.getElementById("txtHint2").innerHTML=xmlHttp.responseText;
I understand that result (right side after equal sign) will be written within div tag in this case...But what is this RESPONSETEXT actually?
I have html calling some *.js. In this I have url to php. In ...
First off, this is not a which framework is best topic.
On that note let me explain my intentions. A long time ago we have entered the "experience economy" age users are expecting more and more when they visit webpages. Most web applications delivered today have some form of dynamic functionality. This translates into more interactive w...
Hey guys,
Got a real weird issue with swfobject in all IE browser. It plays the swf file in all browsers but not all IE browsers. I need to know if I'm doing something wrong with the code. Thanks for the help.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html ...
I am trying to develop a webpage containing 2 tables whose column widths should be in sync (i.e. column widths can vary dynamically based on the tables' content but the corresponding columns'widths in both tables are to be kept the same so columns match up with each other).
For the correct calculation I need to take borders, margins, pa...
Trying to get tooltips to show for a clustered bar chart when highlighting a row to no avail. Cope below... look at the c.addSeries call:
<script type="text/javascript">
dojo.require("dojox.charting.Chart2D");
dojo.require("dojox.charting.plot2d.ClusteredBars");
dojo.require("dojox.charting.action2d.Highlight");
...
Ajax response I am getting is always empty!
Interestingly, if I copy paste that URL in browser, I do get a proper html snippet (test ad) back. I guess this is related to some cross-site call stuff. Need some help/pointers as response is not json. Its html code.
Please look at the code - http://pastie.org/1120352
...
I am looking for a simple jquery script to validate a simple form exactly like this:
in my form, i have only one checkbox, if that checkbox is checked, i want to enable the second checkbox and if the second checkbox is checked, i want to enable the third checkbox, etc. there will no more than one single checkbox for this form.
<script ...
hello,
i have this ajax function working well in firefox and not in ie6
are there some specific issues for ie?
the error is on ths line
document.getElementById(containerid).innerHTML=page_request.responseText
here is the full code i'm using
var bustcachevar=1 //bust potential caching of external pages after initial request? (1=yes...
So, I'm trying to have same data plotted based on a drop down filter, but I haven't gotten past the storing the data to the variable passing to the plotting function. my alert gives object Object, but shouldn't it be totalValue (for this example)?
the html
<select id="performance_chart_filter">
<option value="totalValue">Total by ...
I'm currently working on a new Date class with some extra clock skew features. I want to fully test it so I can guarantee it is a drop in replacement for the existing Date class.
So coming from the Ruby world - we have a rubyspec project which is a test suite for all of the standard features, so that different interpreters can easily be...
I'm using the jQuery Tooltip control, http://docs.jquery.com/Plugins/Tooltip and it works really well. However, I have a task to show the tooltip when someone types 2 characters into an autocomplete control. I have it all hooked up to do it, but I do not know how to explicitly show the jQuery tooltip plugin.
MyCompany.UI.Controls.AutoCo...
I threw my portfolio together a few months ago and now I am trying to go back and clean up the code so that it is easier to add new items etc..
My main problem is that I am using the Alen Grakalic's Easy Slider Jquery plugin to simulate a browser window and everytime I want to add a new portfolio item, I have to add a new block of code...