|
 |
|
|
Please do not use the old Microsoft.xxxx class ids in your deployed apps. Instead to use MSXML2.XMLHTTP and MSXML2.DOMDocument to ensure correct xml parsing.
Regards, - Umut Alev [MSFT]
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Can you show me how to write code that would refresh a portion of a page similar to the following example?
On the homepage is a section of information. When the visitor leaves the homepage to visit a linked page, upon their return to the homepage would be new information in this section.
Example:
In this table would be a list of information: On first visit "RED" upon return, "BLUE." Red, Blue, Purple, Green
|
Every time the page is returned to the next item in the list is displayed.
Secondly, I would like to do the same thing only I want it to automatically to change an image to the next image in the list on a daily basis instead of a refresh.
Any thoughts?
David
|
| Sign In·View Thread·PermaLink | 2.00/5 (2 votes) |
|
|
|
 |
|
|
 |
|
|
Hi want to know if there is some method where we server pushes data to client with out client requeting for it need it urgently
sundar
|
| Sign In·View Thread·PermaLink | 2.00/5 (2 votes) |
|
|
|
 |
|
|
Dear sir, Did you get a solution to your problem below ? I have the same problem and i want it urgent can you please tell me how you solve it if you or can we share our knowledges together? my email is hazem_salem@hotmail.com i hope to see from you reply soon Thanks Forum Refresh Portion Of Your Web Page Using XMLHTTP Subject: Server to client transfer Sender: sundarbunny Date: 4:35 9 Jun '05 Hi want to know if there is some method where we server pushes data to client with out client requeting for it need it urgently
sundar
Hazem Salem
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
Use the eval() function passing what you want to run.
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
I am trying to use a XMLHTTP object to access parts of the other web pages, I am successfully accessing a page e.g yahoo weather page but I can't get only the temperature from the page, here’s how I did <% Dim objXMLHTTP, xml Set xml = Server.CreateObject("Msxml2.ServerXMLHTTP") xml.Open "GET", "http://weather.yahoo.com/forecast/UKXX0085_c.html?force_units=1", False xml.Send
Response.Write xml.responseText Set xml = Nothing %> Can anyone tell me how to do parsing so I can display for e.g only the temperature from the page.
thnx
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Hallo, I need an opinion about advantages and disadvantages of using forms submit to an hidden iframe and xmlhttp
Nidi Iacobsohn
|
| Sign In·View Thread·PermaLink | 2.00/5 (2 votes) |
|
|
|
 |
|
|
I haven't had any experience with xmlhttp, but I've had quite a bit of experience return xml data islands in an iframe, and then calling a setValues() function when the onreadystatechange fires and the readyState of the xml data island == complete. I use script to programmatically set the src of the xml data island. Really, this can be done with or without iframes. The only issue is you cannot POST, you have to GET because your src property of the xml data island is a url.
So long as you are happy specifying all your parameters in the src of the XML data island, you'll get back what you need and can then populated everything on your page when the data comes back to the island.
I've been doing this both with static html pages and using Domino 5.x agents to serve up the data to the data island after performing a query against DB2/400. Works like a charm.
Rob Pinion
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
i have an html page that attempts to pull in the output of an asp page using xmlhttp.the asp page has quite a bit of server side code and the output is dynamic dependant upon the processing of the server side code.when i try to display the results of this asp page on the html page i get nothing at all.However if i put some uncondtitional html in the asp page it shows up.Does this method run the asp page thru IIS or does it just try to pull out the html from the page?
|
| Sign In·View Thread·PermaLink | 3.00/5 (2 votes) |
|
|
|
 |
|
|
I thought your article regarding refreshing part of web page with XMLHTTP was very good, except that in your example the form not would pass any States data due to the lack of a value attribute in the option tag. How would you fix this?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
I love this piece of code, much neater than refreshing the whole screen each time, or the javascript methods.
I have re-written the states.asp page using VBscript so that it is dynamic, you might find it useful. Dreamweaver did the connections and I removed the error handling for simplicities sake. You'll have to put in your own connection info. I have a table called country, with columns country and state. My query is basically "Select state from Country where country=Country":
<%@LANGUAGE="VBSCRIPT"%> <!--#include file="YOUR CONNECTION STRING" --> <% set ObjXML = CreateObject("Microsoft.XmlDom") ObjXML.load Request set Query = ObjXML.selectSingleNode("/RequestStates") Country = Query.getAttribute("Country")
set Recordset1 = Server.CreateObject("ADODB.Recordset") Recordset1.ActiveConnection = CONNECTION STRING Recordset1.Source = "{call YOUR QUERY('" + Replace(Country, "'", "''") + "')}" Recordset1.CursorType = 0 Recordset1.CursorLocation = 2 Recordset1.LockType = 3 Recordset1.Open() Recordset1_numRows = 0
Dim Repeat1__numRows Repeat1__numRows = -1 Dim Repeat1__index Repeat1__index = 0 Recordset1_numRows = Recordset1_numRows + Repeat1__numRows
Dim responseXML responseXML = "<Response>"
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF)) responseXML = responseXML + "<State>" + (Recordset1.Fields.Item("state").Value) + "</State>" Repeat1__index=Repeat1__index+1 Repeat1__numRows=Repeat1__numRows-1 Recordset1.MoveNext() Wend
responseXML = responseXML + "</Response>" response.write(responseXML) Recordset1.Close() ObjXML = null %>
It's fairly trivial, but I thought it might save someone else re-inventing the wheel
www.tysoe.com
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Hi, i have a asp page, this page sends with response object characters like á é í, etc.
with XMLHTTP i can't get this characters , What can i do ???
I think there is a problem with encoded ( UTF-8 and Unicode) but I don´t How to resolve this problem.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Try to use Server.HTMLEncode...
Function EncodeXML(sString) 'This function replaces XML special characters If len(sString) > 0 Then EncodeXML = Server.HTMLEncode(sString) else EncodeXML = "" End If End Function
Sandro Araújo Brasília-Brasil
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
You mentioned IE as a prerequisite. Just to clarify something here, is this a client-side requirement meanting that this solution wouldn't suit sites that have to work with all browsers? If so, is there a server-side solution to this problem such that I don't have any client-side requirements?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Yep, it's a client-side requirement. Also, average browser security settings will prompt the user when using the XMLHTTP object. I've used XMLHTTP effectively for intranet applications, but wouldn't recommend it for internet.
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
|
There isn't really anything that is standard across all browsers. Refreshing the whole page isn't usually too big of an issue. You might also try to send down all the data to the client, storing it using javascript and then use DHTML to hide/show/repopulate portions of the page. This may not work so well if there is a lot of data. Also, this only works well with form fields across all browsers.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
IE 4 and up and Netscape 6 support IFRAMEs so this could be a cross browser solution. I use IFRAMEs extensively in my web apps. Makes life a lot easier.
Jason Gerard MCSD, MCSE Technology Point International, Inc.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
I briefly used IFRAME and looks like it will refresh the whole frame. Can you do selective refresh like updating states list box using IFRAME?. Further, will IFRAME work with dynamic contents?.
Thanks in advance,
--------------- Dan Ammasai ---------------
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
IFRAMES are not search engine friendly, they confuse the heck out of google. Although it is a poor mans AJAX and I have been known to use it.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Yes Tom,
People have already suggested IFRAME. But a hidden frame of ZERO size also works (you have to wrangle with cross frame scripting though).
Post any form or URL to the hidden frame. Then use an onload function in the returned page to call javascript back in the other frame to do what you want it to do.
Regards, Gary
In 100 years.... ...all new people!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |