Click here to Skip to main content
15,913,685 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: control that is painted with javascript Pin
Ali Al Omairi(Abu AlHassan)22-Mar-11 9:32
professionalAli Al Omairi(Abu AlHassan)22-Mar-11 9:32 
GeneralRe: control that is painted with javascript Pin
Not Active22-Mar-11 9:51
mentorNot Active22-Mar-11 9:51 
GeneralRe: control that is painted with javascript Pin
Ali Al Omairi(Abu AlHassan)22-Mar-11 10:00
professionalAli Al Omairi(Abu AlHassan)22-Mar-11 10:00 
Questionjavascript code and css inheritance Pin
dcode2513-Mar-11 16:05
dcode2513-Mar-11 16:05 
AnswerRe: javascript code and css inheritance Pin
Ali Al Omairi(Abu AlHassan)17-Mar-11 12:08
professionalAli Al Omairi(Abu AlHassan)17-Mar-11 12:08 
QuestionIE 8 browser autocomplete Feature not working on enter button Pin
raghvendrapanda5-Mar-11 20:23
raghvendrapanda5-Mar-11 20:23 
AnswerCrosspost - ignore Pin
Richard MacCutchan5-Mar-11 21:30
mveRichard MacCutchan5-Mar-11 21:30 
QuestionNeed help with javascript and data from web service Pin
CrafterIt3-Mar-11 2:31
CrafterIt3-Mar-11 2:31 
Hi!
I’m not so familiar with java script, i got the call to the web service working but how do i store the value from the web service in var result?, HelloWorld will be replaced with another method that returns different data depending on the input.

<script type="text/javascript">
    $(document).ready(function () {
            var result;
            HelloWorld();
            // How do if store the data in result before the next line of code is executed?

            //doSomething with the result
    });

    $(document).ready(function () {
           var result2;
           HelloWorld();
           // How do if store the data in result2 before the next line of code is executed?

           // doSomething with the result
    });

    function HelloWorld() {
        Pagesettings.test(HelloWorldCallback);
    }

    function HelloWorldCallback(result) {
        alert(result);
    }

</script>


Can someone help me, thanks!
AnswerRe: Need help with javascript and data from web service Pin
Monjurul Habib4-Mar-11 10:34
professionalMonjurul Habib4-Mar-11 10:34 
GeneralRe: Need help with javascript and data from web service Pin
CrafterIt7-Mar-11 1:28
CrafterIt7-Mar-11 1:28 
Questionusing global variables Pin
Ali Al Omairi(Abu AlHassan)1-Mar-11 10:40
professionalAli Al Omairi(Abu AlHassan)1-Mar-11 10:40 
AnswerRe: using global variables Pin
Not Active1-Mar-11 11:59
mentorNot Active1-Mar-11 11:59 
GeneralRe: using global variables Pin
Ali AlOmairi (TJIC)1-Mar-11 21:00
Ali AlOmairi (TJIC)1-Mar-11 21:00 
AnswerRe: using global variables Pin
Monjurul Habib2-Mar-11 10:06
professionalMonjurul Habib2-Mar-11 10:06 
GeneralRe: using global variables Pin
Not Active3-Mar-11 12:58
mentorNot Active3-Mar-11 12:58 
GeneralRe: using global variables Pin
Ali Al Omairi(Abu AlHassan)4-Mar-11 11:05
professionalAli Al Omairi(Abu AlHassan)4-Mar-11 11:05 
GeneralRe: using global variables Pin
Monjurul Habib5-Mar-11 12:09
professionalMonjurul Habib5-Mar-11 12:09 
GeneralRe: using global variables Pin
Ali Al Omairi(Abu AlHassan)6-Mar-11 1:48
professionalAli Al Omairi(Abu AlHassan)6-Mar-11 1:48 
GeneralRe: using global variables Pin
Monjurul Habib4-Mar-11 20:56
professionalMonjurul Habib4-Mar-11 20:56 
GeneralRe: using global variables Pin
Not Active5-Mar-11 3:47
mentorNot Active5-Mar-11 3:47 
GeneralRe: using global variables Pin
Monjurul Habib5-Mar-11 7:02
professionalMonjurul Habib5-Mar-11 7:02 
GeneralRe: using global variables Pin
Not Active5-Mar-11 7:21
mentorNot Active5-Mar-11 7:21 
GeneralRe: using global variables [modified] Pin
Monjurul Habib5-Mar-11 12:05
professionalMonjurul Habib5-Mar-11 12:05 
GeneralRe: using global variables Pin
Pete O'Hanlon6-Mar-11 3:23
mvePete O'Hanlon6-Mar-11 3:23 
GeneralRe: using global variables Pin
Monjurul Habib6-Mar-11 6:44
professionalMonjurul Habib6-Mar-11 6:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.