How practical would it be to use Silverlight inside of an MVC view to achieve a GUI that's rather complex with Javascript (and crippling to non-usable without Javascript)?
I know nothing about Silverlight so if this seems like a good idea, how difficult would it be to do so, or vice-versa? Would asking users to install a plugin outwei...
Hello,
I need a script which will be applied to a set of images around a circle..
Now whats required through script is that
on mouseover image around the circle should get enlarged and should move to the centre.
How to do this using Javascript and CSS.
Be specific about the attributes of CSS and functions of Javascript please I am a...
I am opening a window that is not in my domain and I can not do to maintain the focus on my window. This is the code.
The work is only for IE.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv...
I have SVG files, which I'd like to:
export and use as custom ground overlay with flat Euclidean projection (econym.org.uk/gmap/example_custommapflat.htm).
take only polygons and project them on Google Map
My SVG files have some rules in common:
they all are 4096x4096px
main objects of the map are centered
I have done some experi...
What is the essence of AJAX? For example, I want to have a link on my page such that when a user clicks this link, some information is sent to my server without the reloading of the current page. Is that AJAX?
I was able to get this behavior by using isoframes. In more details I put a link (let's say a small image) in a small isoframe. ...
Using JQuery, I'm extracting the value from what is essentially a query box for some data in a MySQL database. Knowing that most users will use an '*' (asterisk) as a wildcard value and that MySQL uses the '%' character, I want to convert any asterisks to '%'.
Normally, this would just be as simple as using
queryString = inputText.rep...
Hi,
I am a beginner to Javascript. And when I was practicing I have noticed something.
Take this function:
<script type="text/javascript">
function showChar(sSomeData, oEvent)
{
alert (oEvent.keyCode);
return true;
}
</script>
When I call this function as this:
<input type="text" id="txtTextBox" onkeypress="...
I just inherited some web pages which uses MooTools. I never used MooTools. Now I need to add some functions on the page, I wonder if it's a good idea to use jquery and mooTools on the same page?
Basically, I have 3 options,
Convert the pages to JQuery, which I have to learn MooTools to do that.
Write new functions in MooTools. I have...
UPDATE:
I've come up with a solution to this which I've written as the accepted answer below.
Another option is to apply validation rules to all elements initially, add an ".invalid" class to elements you don't want to validate. Swap this class in & out of elements you want to validate as needed.
I have a form that toggles what input ...
I am try to have a forum submits more then once when a user clicks the submit button. Why? I am try to add more then one idem to a shopping cart, The shopping cart software I am using doesn't support adding more then one product at a time and I don't want to edit there core code. The hidden forum would have the product ids like '1,2,3' I...
I want to authenticate users on a web application. The users are already logged into their Windows Network.
Notice, this is NOT Internet Information Server. I have a Java Application Server on the other side.
Is there a way using Javascript or something, so that a Windows Authentication can be taken, then sent to the server, and on the s...
Hi,
I would like to plot points in two dimensional fashion (each have an x and y coordinates). I was wondering if you know of a library or project that does this so that I don't have to build this from scratch.
Thanks,
Tam
...
Hello Everyone,
I have successfully integrated PayPal Express into a Flex application. In DoExpressCheckoutPayment.php, I have the following JavaScript line of code that will not execute:
window.opener.window.document.getElementById('index').paymentComplete();
'index' - http://mysite.com/index.html# contains index.swf
'paymentComple...
I'm implementing a "widget" that will be included on article/story pages of a 3rd-party website. This widget lives in an <iframe> hosted on our domain. It needs to gather text from the articles of its parent page (the 3rd-party website), which it then uses to make a variety of API calls to services that return related content, which is t...
Hello,
I want to have multiple video icons at the top my website's front page. I will have about 20 or so which won't fit on one line (I want to keep the videos on one like) so I thought of having two button on the right of the group and on the left of the group where you click to scroll and view more videos. Do you know an easy way to ...
That is, if I use the current time as an index into the array:
array[Date.getTime()] = value;
will the interpreter instantiate all the elements from 0 to now? Do different browsers do it differently?
I remember there used to be a bug in the AIX kernel, which would create pseudo-ttys on request, but if you did, say, "echo > /dev/pty1...
Have a form that is not being read by serialize() function.
<script type="text/javascript">
function submitTrans1(){
var formData = $('form1').serialize();
var options = {
method:'post',
postBody:'formData',
onCreate: function(){alert(formData)},
onSuccess: function(transport){alert("onSuccess alert \n" + transpo...
I am adding and removing items from a ul. However, I cannot remove items that were just added. I am assuming I need to register the event when the item is added. How to do this please?
...
How do I design a Django/Javascript application to provide for conditional Ajax responses to conventional HTTP requests?
On the server, I have a custom-built Form object. When the browser POSTS the form's data, the server checks the submitted data against existing data and rules (eg, if the form adds some entity to a database, does tha...
I have this daily image rotation script, which works great. I need the images to be clickable though. Any help is appreciated.
<!-- Begin
today = new Date();
day = today.getDay();
arday = new Array
("http://www.magnatexpumps.com/imagesnew/featured/featuredProduct_3575.jpg",
"http://www.magnatexpumps.com/imagesnew/featured/featuredPro...