hey...
i'm doing my html and javascript class project
and i want to have a msgbox welcoming the visitor asking for his name and then a welcoming msgbox shows up saying "hello (the name added)"
i know how to do that but my only problem is that if i pressed back and went to the homepage of my website again, the msg will show up again ask...
Below is a sample of a filteringSelect populated with user data. My goal is to have perform wilcard match on the displayed values. for example, if the user types 'son', the dropdown matches will be "homer simpSON' and 'carl calSON'.
By default, the match will only be on the beginning of the label.
I tried changing dijit.byId('userselec...
Apart from the legal issues..
I'd like to create a website that is the exact copy of another website (I do not own but I know will let me do this) where I change a few things, mainly swap images and hide some divs..
So my "website".. how should I build it? I thought something like an Iframe and javascript but I have no idea if this mak...
Can any one reply me which of the javascript frameworks are better to implement on my project?
jQuery or Mootools?
...
Anyone have experience with game development using javascript and the html5 canvas element?
So far I have found two libraries, are either of these worth using?
http://tommysmind.com/ (XNA Port)
http://gamequery.onaluf.org/ (jquery plugin)
Does anyone have any other resources?
...
I've created an ashx page which is going to serve me an XML document full of basic user information. I'm not sure which is the best way to go about creating and populating my custom javascript object. I've seen them created in two ways:
function User() {
this.Id;
this.FirstName;
this.LastName;
this.Title;
}
and
var User...
How do i go about creating some JQuery code which will change the selected value of an menu.
On my page i have created a drop down menu like so:
<select id="select_Day">
<option value="Monday">Monday</option>
<option value="Tuesday">Tuesday</option>
<option value="Wednesday">Wedsnesday</option>
<option value="Thursday"...
I would like to keep the contents of large UI lists cached on the client, and updated according to criterial or regularly. Client side code can then just fill the dropdowns locally, avoiding long page download times.
These lists can be close to 4k items, and dynamically filtering them without caching would result in several rather larg...
I’m in the process of creating a large single-page web-app using ext-js for the UI components with Rails on the backend. I’ve come to good solutions for transferring data using Whorm gem and Rails support of RESTful Resources.
What I haven’t come to a conclusion on is how to structure the UI and business logic aspects of the applicatio...
I'm working on my HTML and Javascript project and I wanted to add music for the website..
Is there any way I can put more than one song in the code to be played? And is there anyway that the song will continue when openning the next page?
...
Hi,
How to print a webpage in two columns or one column as per the user input/choice.
And when a take a print out I'm getting the website url on the top left side, How can we stop printing this?
Regards
...
<html>
<body>
<script language="javascript">
document.getElementById('myfileId').onchange = function(e) { alert('change'); }
</script>
<form action="" >
<input type="file" id="myfileId" name="myfile">
</form>
</body>
</html>
How can I call the JavaScript function after a file selection.
Edit: 1
<ht...
This is a fairly easy one, but I cant seem to figure it out.
Basically I have a jquery hover that fades in a div and fades out the other upon hover.
When I quickly hover on and off a few times it pulses back and forth for about 3-4 seconds to finish all those fade in/fade outs.
I generally stop these things with .stop(), but it doesn...
How to call a JavaScript function after the selection of file from the Open Dialog window close event. in HTML using HTML file type="file".
I have a file input element
<input type="file" id="fileid" >
How can i call a JavaScript function after the file open dialog window close event.
...
I have the following script tags in the <head> so that they don't prompt any security errors when going back and forth between SSL and non-SSL pages. But it just looks hairy.
Any way I can combine them or reduce some of the code?
<script type="text/javascript">document.write(["\<script src='",("https:" == document.location.protocol) ? ...
I have a main form, which has button. By clicking on this button JQuery Dialog will shown. And contains of this dialog is a javascript bing map (using VEMAP object). So there are different js documents.
How can I create a context menu for bing map, opening in jquery dialog?
Thanks!
...
Hi I am relatively new to javascript development. At the moment I have a single javascript file with lots of little misc bits of code that get called in different part of the website. For example I have an event handler for some google maps stuff that is only called on 1 single page, I have some validation stuff for my contact page etc...
Hi
I have ArrayList in my Model and want to iterate through it in my javascript. I am using following code but its giving me error : CS0103: The name 'i' does not exist in the current context
for(var i=0; i <= <%=Model.KeyList.Count%>; i++)
{
alert('<%=Model.KeyList[i]%>');
}
How to get rid of this. its ...
Hi there,
I basically want to know how to take a user entered number, then take another user entered number and times it by a predefined number and then display the result when submit is clicked.
E.g.
200 + 300 x 0.4 = xxxx
Im sure this must be fairly simple so if anyone is able to help me out it would be greatly appreciated!
If thi...
Let's say we have this code (forget about prototypes for a moment):
function A(){
var foo = 1;
this.method = function(){
return foo;
}
}
var a = new A();
is the inner function recompiled each time the function A is run? Or is it better (and why) to do it like this:
function method = function(){ return this.foo; }
function A...