I have a solution with several projects, one a web site the other a separate web server. (They will reside on different hosts.) I need to connect to the web service from some javascript in the web site. However, although this seems like an obvious, easy thing, I can't seem to get it right.
My web service works fine, I can connect to it f...
I was just wondering how I can match the value of two variable, for example if I have
var A = [1,2,3];
var b = [A,B,C];
how can I output the first value of each and second value of each and so on, so the output will become
A1,B2,C3
thanks
...
Can one use Window.Onscroll method to include detection of scroll direction?
...
Hi there,
I was looking on this post but it doesn't really help me. What I'm trying to do is to create event, or what would be even better, access current mouse screen coordinates.
I have a function with setTimeout inside it, where number of different checks on attributes are performed. In my program some of the elements are changing p...
Hi,
I have an issue with Cross-Browser native events vs CallBack events.
I have an HTML link "Click Me" with a given href="". On dom:loaded I attach a function to this link (to do Ajax Stuff).
JavaScript code is loaded at the end of the page to follow YSlow Recommandation.
Issue:
If you load this page really quickly (pressing F5) th...
Hi, this code does not work? When i try to click on the radiobutton, nothing happens. It is supposed that it is going to be disabled but nothing is disabled and enabled. Here is the code.
<script type="text/javascript">
function ann()
{
document.getElementById('butta').disabled = true;
document.getElementById('strup').disabled = true;...
Hello everybody.
Before I post my problem here, please be noted that i would really like to leave javascript and css for that menu as it is.
Now to my problem.
I have a menu in JavaScript that I am having a problem putting into asp.net page, I am having problem to produce the proper html to be more correct.
I would really appreciate i...
I need to create markers for my map that contain html. After looking at lots of tutorials, it seems like markers are made of an image, and do not allow html to be added.
InfoWindows half solve my problem, I know I can add multiple instances of them, but my problem is I need to be able to stylize them, and I don't want close buttons on ...
Hi all,
I want to create a pie chart in javascript, On searching I found the google chart api. Since we are using jQuery I found that there is a jQuery integration for google charts available.
But my problem is here the actual data is sent to the google server for creating the charts. Is there a way to prevent this or can any one sugg...
How can i use javascript (i assume) to clone a table row like ive beautifully illustrated in the picture below?
...
Is there a way to create the effect shown here on msi.com main image? Though done in flash, I'd prefer doing it with jquery. I've also tried with 'mosaic generators', but haven't been able to replicate the effect well, but use of a generator with js would be acceptable too.
[edit] I failed to mention, I'm only interested in emulated t...
I have the following DOM structure..
<input id="WorkAssignmentID_3462" type="hidden" value="3462" name="WorkAssignmentID"/>
<input id="WorkItemID_3462" type="hidden" value="3633" name="WorkItemID"/>
<input id="EmployeeID_3462" type="hidden" value="15" name="EmployeeID"/>
<input id="AssignedBy_3462" type="hidden" value="Jonathan Erickson...
I'm having trouble accessing only one XML element that has the same name as other elements (i this case, the tag "name"). How do I access ONLY the "wantedName" below using jQuery?
<sample>
<input>
<value>0.2</value>
<name>varName</name>
</input>
<name>wantedName</name>
<output>
<value>4</value>
<name>varName2</name...
I would like to be able to trap the double key press (for the Char T for example) in order to do some special processing.I would like the key presses to happen fast enough to not be interpreted as two separate presses, just like the double click.
Any ideas how i can achieve this?
...
I've got a YUI DataTable with various columns that represents a list of users. I would like to add a column that contains a button in each row with a specific label (say, "grant access") and which invokes some function when clicked. Is this possible?
I've tried checking the YUI documentation, but as far as I can see, they don't allow yo...
I am trying to define a function which can access variables which are in the scope of the function that is calling it.
( I am attempting to build a string formatter that is prettier than "a" + b, and more terse than String.format("a{0}",b). So I can get SF("a{b}"), and I don't know if it is possible )
so
function magic(str) {
re...
Is there a way to call a javascript function when the selectedIndex of a select input has been changed?
Using this code in the c# code behind file
riskSeverityDropDown.SelectedValue = Convert.ToString(planRisk.Severity);
riskSeverityDropDown.SelectedIndexChanged += new EventHandler(riskSeverityDropDown_SelectedIndexChanged);
riskSeveri...
I want to increment a url automatically using javascript and use it in Greasemonky on "Firefox"
ex:
www.google.com/id=1
www.google.com/id=01
www.google.com/id=001
www.google.com/id=0001
how can I achieve that using javascript???
here is what I wrote
var numberr = “2”;
var totall = “”;
var timeout = 12000;
setTimeout(function() {...
Classic javascript:
var myvar = document.getElementById("abc");
abc.value += "test";
abc.value += "another test";
Jquery:
$("#abc").val($("#abc").val()+"test");
$("#abc").val($("#abc").val()+"another test");
Is there a way to make my Jquery prettier, maybe with a hidden += function that I could use? I know that .val() is not an att...
This is actual code from what I am working on that takes an ID from the query string, retrieves an object and parses to json. I am going to need to store and manipulate this data client-side. What is the best way to set the generated json string to a client-side object?
Note: NewObjectCase is a class with the method Get(strID) that retu...