473,396 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Getting the result page from a callback function

I have a page with source code like this:
<script type="text/javascript">
function displayResult(data) {

}

}
</script>
<script type="text/javascript"
src="http://something.com/data?
hash=11111&callback=displayResult"></script>

and the displayResult will generate a list, then I use
<ul id = "list"</ul>

to display the result. say
1. chicken
2. egg

Unfortunately, the javascript let the browse do the listing rather
than html, so there
is no way to use "wget" to show the result. Is there any method for
doing this?

Apr 18 '07 #1
6 3554
Hi Yang,

On Apr 18, 8:45 am, Yang <ysongfina...@gmail.comwrote:
I have a page with source code like this:
<script type="text/javascript">
function displayResult(data) {

}

}
</script>
<script type="text/javascript"
src="http://something.com/data?
hash=11111&callback=displayResult"></script>

and the displayResult will generate a list, then I use
<ul id = "list"</ul>

to display the result. say
1. chicken
2. egg

Unfortunately, the javascript let the browse do the listing rather
than html, so there
is no way to use "wget" to show the result. Is there any method for
doing this?
I am sure that what you want to do can be accomplished. I'm a little
confused. Can you post a complete but very brief example or even
better a URL to the complete but brief example?

Peter

Apr 21 '07 #2
On Apr 20, 8:45 pm, Peter Michaux <petermich...@gmail.comwrote:
HiYang,

On Apr 18, 8:45 am,Yang<ysongfina...@gmail.comwrote:


I have a page with source code like this:
<script type="text/javascript">
function displayResult(data) {
}
}
</script>
<script type="text/javascript"
src="http://something.com/data?
hash=11111&callback=displayResult"></script>
and the displayResult will generate a list, then I use
<ul id = "list"</ul>
to display the result. say
1. chicken
2. egg
Unfortunately, the javascript let the browse do the listing rather
than html, so there
is no way to use "wget" to show the result. Is there any method for
doing this?

I am sure that what you want to do can be accomplished. I'm a little
confused. Can you post a complete but very brief example or even
better a URL to the complete but brief example?

Peter- Hide quoted text -

- Show quoted text -
it is something like the source code at the bottom of this page
http://del.icio.us/help/json/url
The results are automatically generated by the browser.

Apr 21 '07 #3
On Apr 21, 9:41 am, Yang <ysongfina...@gmail.comwrote:
>
it is something like the source code at the bottom of this pagehttp://del.icio.us/help/json/url
The results are automatically generated by the browser.
Why not just use that code if it does what you want?

I still don't understand what you are trying to do. Sorry.

Good luck.

Peter

Apr 21 '07 #4
On Apr 21, 1:55 pm, Peter Michaux <petermich...@gmail.comwrote:
On Apr 21, 9:41 am,Yang<ysongfina...@gmail.comwrote:
it is something like the source code at the bottom of this pagehttp://del.icio.us/help/json/url
The results are automatically generated by the browser.

Why not just use that code if it does what you want?

I still don't understand what you are trying to do. Sorry.

Good luck.

Peter
OK, the problem is, the data is displayed by the browser <ul id="url-
tags"></ul>, how can I get the
"url-tags" list and pass it to a JSP page or something else?

Apr 21 '07 #5
Yang said the following on 4/21/2007 5:18 PM:
On Apr 21, 1:55 pm, Peter Michaux <petermich...@gmail.comwrote:
>On Apr 21, 9:41 am,Yang<ysongfina...@gmail.comwrote:
>>it is something like the source code at the bottom of this pagehttp://del.icio.us/help/json/url
The results are automatically generated by the browser.
Why not just use that code if it does what you want?

I still don't understand what you are trying to do. Sorry.

Good luck.

Peter

OK, the problem is, the data is displayed by the browser <ul id="url-
tags"></ul>, how can I get the
"url-tags" list and pass it to a JSP page or something else?
Are you wanting the entire contents of the UL? Read it's innerHTML property.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 21 '07 #6
On Apr 21, 5:34 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
Yangsaid the following on 4/21/2007 5:18 PM:


On Apr 21, 1:55 pm, Peter Michaux <petermich...@gmail.comwrote:
On Apr 21, 9:41 am,Yang<ysongfina...@gmail.comwrote:
>it is something like the source code at the bottom of this pagehttp://del.icio.us/help/json/url
The results are automatically generated by the browser.
Why not just use that code if it does what you want?
I still don't understand what you are trying to do. Sorry.
Good luck.
Peter
OK, the problem is, the data is displayed by the browser <ul id="url-
tags"></ul>, how can I get the
"url-tags" list and pass it to a JSP page or something else?

Are you wanting the entire contents of the UL? Read it's innerHTML property.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -http://jibbering.com/faq/index.html
Javascript Best Practices -http://www.JavascriptToolbox.com/bestpractices/- Hide quoted text -

- Show quoted text -
Randy,
Can you be more specific? The code I listed has already read the
innerHTML property of url-list.

Apr 22 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Glen | last post by:
This is my first attempt as asynchronous processing. I have created a small test app as proof of concept, but I am having one proglem. In the example (code listed below), my callback routine has...
4
by: Jeremy Holt | last post by:
Hi, In a windows.forms application I would BeginInvoke a delegate on the UI thread to collect data from a database. When the call returns to the AsyncCallback, if the Control.InvokeRequired =...
3
by: Fredrik Melin | last post by:
Same problem that I had before, diffrent approach.. In my application at order-creation, the user might encounter that the item he is trying to order is locked by another user, and he have to...
2
by: bil.shah | last post by:
Hi, I am listening to a port for data but I am not able to recieve whole data, I only get truncated data. Client sends me data that exceeds 40K and the data I recieve in my callback function is...
0
by: OldMacDonald | last post by:
I have a Web Service which I call ASynchronously. The problem its not getting kicked off. This is how I am calling it over HTTP and after calling the webservice I have a redirect to another page. I...
0
by: skberen | last post by:
Issue: We have a web user control on a web page (aspx) that uses the new ASP.Net 2 feature Client Callback. The web user control is using a CheckBoxList control and button control to allow the...
1
by: kamleshsharmadts | last post by:
I am using Ajax with struts in web application. from jsp i am calling a function of ajax.js onclick of a button. code of that call function which calling from jsp given as below:- ...
3
by: tshad | last post by:
I have a page that I am getting a username and password as a random number (2 letters, one number and 4 more letters) I have 2 functions I call: *************************************************...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.