Hello
am totally new to Javascript , but i need it for using googlemaps in my project , am trying to set values for the latitude , longitude and map zoom for ... |
I'd like to declare some variables, an then let let a function build the actual objects and assign their reference to these previously declared variables.
The way I do it now works, ... |
I have this sample below:
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<script type="text/javascript">
function test(){
if (test.initialized=='undefined'){
test.initialized = 'true';
}
alert(test.initialized);
};
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" ...
|
I'm building a shopping cart and I would like to use a JavaScript function to validate user input when entering the quantity value in the quantity text input. I would like ... |
I have some Javascript code that needs to end with either a true or false value being returned. However, when the true/false value is computed, the original value has passed through ... |
I have got 2 javascript variables:
var list1 = "john doe|bill williams|poll bregg|michael jordan";
var list2 = "analytic|trader|doctor|athlete";
We have to take in mind, that relations between this two variables are that names and ... |
var result = Math.round(num*Math.pow(10,dec))/Math.pow(10,dec);
var resstr=result.toString();
var res=resstr.split(".");
var test=parseInt(res[1].charAt(0));
var test1=parseInt(res[1].charAt(1));
this is my code when my value in res variable is 5.90 then I alert test & test1 variable
in test alert ... |
|
I have 2 navigation buttons, 'a' and 'b', where 'a' links to page 'A' and 'b' links to page 'B'. When the page loads, page 'A' is visible by default and ... |
Let's say I have a conditional statement inside of a function that is set to fire another function with specific values each time it's run (in this case the value of ... |
i'm having a problem about my program right now. i'm practicing a program in a html that would accept an ID, and i would like that ID to be paste in ... |
I have the following script where a variable gets its value from an input field, however when I run my function its not working, returns nothing. Im new to JS so ... |
i am trying to pass an xsl variable value to a javascript function.
My xsl variable
<xsl:variable name="title" select="TITLE" />
i'm passing the value like this
<input type="button" value="view" onclick="javascript:openPage('review.html?review=$title')" />
i have tried the above ... |
I am doing a client side form validation to check if passwords match. But the validation function always returns undefined.
function validatePassword(errorMessage)
{
var password = document.getElementById("password");
var confirm_password ...
|
my page http://www.dinomuhic.com/2010/index.php loads the Showreel at the start of the page using an onLoad call in body like this:
<body onLoad="sndReq('96')">
96 is the ID of the showreel in the ... |
Not sure if this is considered best practice or if you should even do this but I have a small block of Javascript and I want to know if you can ... |
|
Hi all, i'm not sure whether this is the correct forum to post this, so please feel free to move if needed. I'm currently studying object orientated programming, via distance learning, and have come across an issue on an assignment question. Now before you ask, i am not looking for a solution,more of an aid to understanding. Obviously if this was ... |
|
Hey all, lets say I have a variable that contains a function name. How can I call that function without using eval? More specifically, I have created a grid jquery object. I want to use this on multiple pages to display different data. Depending on the page I want to have certain actions do different things. So right now I pass ... |