I have a flash within a holder div (flash container).
I use swfobject to insert the flash object (if it makes any difference).
I want to resize that holder div to make it smaller in width, when I achieve the "second level" in my "flash application". (with jQuery .animate() function).
What "flash application" mean: I have a human body ...
hello all,
The situation is that the user enters a value in the textbox.Now whenever user enters the value, the value is to be compared to a value(field) which has been retrieved form the database.If the value the user has entered is higher than that of the database then they should be displayed with a popup.How do i do that?The languag...
Question: I abuse a table as list of buttons, using the onclick even on each cell.
The problem is, the buttons are zoom buttons, and on clicking repeatedly too fast (doubleclick) you select the button (=table cell) text (even if you don't want to) and that looks odd.
Can I switch that off ? Can I make text in a table non-selectable ?
...
Hi,
I'm building a seating application using jQuery. I have tables with chairs around them, which may have guests seated at the chairs. Each table has a wrapper div which is draggable. Inside the table are any number of chair div's. Inside any chair div a guest may be seated. Guest are also a div which is nested inside the chair di...
i will like to get a url value upon onclick.
like this:
www.google.com/myfile.php?id=123
i want to get id and its value.
thanks
...
var arr = [];
arr.push(row1);
arr.push(row2);
...
arr.push(rown);
How to sort by row['key']?
...
Im working on a script which removes the default values in form elements using Prototype and LightView. The scripts works fine in Safari, but not at all in FireFox (3.5.5).
This fires when a lightview is triggered.
document.observe('lightview:opened', function() {
if($('contact_form')) {
var defaults = new A...
Hey all,
I'm having a bit of trouble getting the desired functionality from my function... Basically, I'm making two calls to AJAX functions (as provided by Oracle APEX, so I can't change these) but they're taking a while. I'd like to show the standard AJAXy spinning gif while the action was going on, but I'm not having much luck. He...
Hi All,
I want to create an HTML/Javascript application with can behave like an excel sheet. I'm not talking about opening an excel sheet in HTML form but instead creating HTML/javascript code that will behave like an excel sheet where the grids and all will be html code etc. I hope you got my question.
Any ideas as how I can approach ...
There is an advert displayed on this site about an API to write javascript from C#. Does anyone have the link for this?
Thanks
...
I'm trying to write some javascript that will stack objects by setting z-index.
Test Case:
http://christophermeyers.name/stacker/
I've hacked that together, but I'd like to extrapolate that behavior to something a little more logical. That is:
Given x number of elements, when element C is moved to the top, all elements above that elem...
I was gearing up for Javascript, reading the tutorials at W3Schools and came across this code:
function sortNumber(a, b)
{
return a - b;
}
var n = ["10", "5", "40", "25", "100", "1"];
document.write(n.sort(sortNumber));
It sorts the elements in the Array, pretty simple. But how can we pass sortNumber ( a function name) as a parameter...
I am trying to link from www.membersolutions.com to a press release here. All pages besides the homepage for the most part have that in-page scrollable content. Is there anyway I can link to a press release halfway down the page, I'm pretty sure you can't do it with straight HTML/CSS??
...
I want to accomplish something similar to what photoshop.com has and this site here: http://mrdoob.com/projects/chromeexperiments/google_gravity/
Does anyone know how to do this with javascript (preferably jquery) ?
...
Well
The situation is we are using mysql.We have written the queries and extracted the result from the assoc array.Now how do we access the result from javascript.
$query = "SELECT firstname FROM employees;
$result = mysql_query( $query , $resource );
$value= mysql_fetch_assoc( $result);
extract( $value );
Now does the javasc...
Some browsers cache js and css files, failing to refresh them unless you force them to. What's the easiest way.
I just implemented this solution that seems to work.
Declare a version variable on your page
public string version { get; set; }
Get the version number from web.config key
version = ConfigurationManager.AppSettings["...
I have the following:
<div id="unique" class="myclass xyz_345">...</div>
Question: How do I access what # is after xyz_, given that I have 2 css classes being applied to it? (In the example above, it would be the number 345).
I've tried the following, but it does work:
var num_after_xyz = $('unique').attr("class").substring(4);
...
I need to implement a webform (JSP, struts) featuring loads of checkboxes and textfields. Basically I have a tree made of checkboxes which has to be extendable (like adding a new node). On another page the same data is used, but refined. So you add again child nodes to the mentioned data structure using textboxes etc. I can describe the ...
How to dynamically change content of a div using JavaScript?
...
I have multiple div's that look like this:
<div><a href="our_work.html?clientid=39">
<img src="filestore/data_logos/39.gif" alt="client logo"/>
</a></div>
I am trying to get the image src if you click on the div layer:
$('#carousel div').click(function(event) {
alert($(this).children('img').attr('src'));
});
The alert always come...