fred rosenberger wrote:Hi Koldo,
I'm sorry nobody here was able to help you. To be honest, I did read your original post, but found it hard to understand. It wasn't clear to me what you were trying to accomplish, or what the problem was.
You may want to read some of the item on our HowToAskQuestionsOnJavaRanch FAQ. These may help you get a better response the next time you have a question here. In particular, I'd suggest reading the articles AvoidRedHerrings and IsolateTheProblem.
Remember, when you ask a question here, the easier you make it for someone to help you, the more likely you are to get that help from them.
Koldo Urrutia wrote:
Thank you for putting a example at least![]()
My main "issue" is what is "callback(a)"??? That isnt declared anywhere. Thats where I think Im getting lost.
That said, you are telling me to do something like this:
Would that code work???
Eric Pascarello wrote:Basic example of what you expect to happen
What is actually happening:
What you need to do is break it up into two parts.
Eric Pascarello wrote:You need to break up your code into two parts, request to get the variable and than when the callback is returned fire off the next step.
Eric
Eric Pascarello wrote:Appears to be asynchronous callback so it is not possible to read it inline, JavaScript does not have wait.
Eric