 |
|
 |
I am looking for something similar to your great script.
I want to give the URL in ASP.NET and get the (Target HTML Results).
Can you please rewrite the code in ASP.NET,
Your help is highly appreciated.
Thank you
In Alla We trust
|
|
|
|
 |
|
 |
Hi,
The GetSourceCode.asp is giving the following error:
MsXml3.dll (0x800C0005)
The system cannot locate the resource specified.
/GetSourceCode.asp, line 24
Can anybody help me to solve this?
Jaks
FREE! World's largest portal for 3000+ Open Access Journals
|
|
|
|
 |
|
 |
Pls Help me Emergently
HTML WYSIWYG Editor Using ASP/VBScript/JScript (IE editing)
|
|
|
|
 |
|
 |
Everytime i set up a link to open in a new window it always needs maximizing is there anyway using html that i can have my new windows open in full each time
Thanks in advance
Gary
|
|
|
|
 |
|
 |
After the page is loaded just type this into the Address bar. The beauty of this code is that it provides the actual page source code that includes the source produced by the javascripts or HTC files etc. javascript : '<xmp>' + document.documentElement.outerHTML + '</xmp>'
|
|
|
|
 |
|
 |
A small correction .... there shouldn't be a space between "javascript" and the colon see below.
javascript: '<xmp>' + document.documentElement.outerHTML + '</xmp>'
|
|
|
|
 |
|
 |
After the page is loaded just type this into the Address bar. The beauty of this code is that it provides the actual page source code that includes the source produced by the javascripts or HTC files etc. javascript:'<xmp>' + document.documentElement.outerHTML + '</xmp>'
|
|
|
|
 |
|
 |
Actually this code is working when i am giving only one url. But i have list of url in Array and i am calling the array one by one with the help of for loop. But when i executed the code it is give me error. The error is give below. Error Type: (0x80070057) One or more arguments are invalid Please help me.
|
|
|
|
 |
|
 |
Actually this code is working when i am giving only one url. But i have list of url in Array and i am calling the array one by one with the help of for loop. But when i executed the code it is give me error. The error is give below. Error Type: (0x80070057) One or more arguments are invalid Please help me.
|
|
|
|
 |
|
 |
great article here. although it turned out to be a very simple thing to do, i would have never found it on MSDN i did try the asp page here, and didn't like the overhead/setup of it, but then i read the forums here and found the view-source:sURL idea... works like a charm. then i saw the js version using an input box. for my particular situation, i have a page with security, and would rather leave it set to oncontextmenu="return false" but then when the developers are in the page, they remove it, and forget to put it back in.... so based on the security level, we now display the following icon letting them get to the view src easily: <image src="/images/icons/1370.ico" onclick="window.location.href = 'view-source:' + window.location.href;" height="12" alt="View Source on this page"> thx for the posts here.... save us some time Ivel
|
|
|
|
 |
|
|
 |
|
 |
when i run this code i get following error :
error '80004005'
Unspecified error
/Searchengine/GetHTML_src/GetSourceCode.asp, line 24
can anyone help me
|
|
|
|
 |
|
 |
I use it to open www.sohu.com but it can not display correctly , it can not support chinese gb2312 character set
How I can do?
|
|
|
|
 |
|
 |
I currently use this code to retrieve code that includes special characters from Spanish such as á and ñ. But it is not retrieving it correctly.
Any suggestion
Thanks
Santiago
|
|
|
|
 |
|
 |
Create a MyFavoriteSource.html page and save it in a handy location. (mine is on my desktop) Then with your favorite html editor create a link to the URL you wish to view the html source. Save your page. Bring up your page in your browser and right click on the link and select "Save Target As..." After you have saved the file, open the file in your editor or browser and have at it.
It helps to be organized with the sources you collect. If you see some cute code you may want to use, rename the file to a name that will remind you of why you saved that file.
|
|
|
|
 |
|
 |
Lol Nice trick too
Philip Patrick
"Two beer or not two beer?" (Shakesbeer)
Web-site: www.saintopatrick.com
|
|
|
|
 |
|
 |
I use 'about:<A HREF="<url>">link</A>' Then right-click on the link and select Save As... Think it works faster than all that view-source: was pretty nifty too
|
|
|
|
 |
|
 |
There is yet another sure fire way even if you dont have a url. As long as you can get to the page, it is saved in your cookies. (Some secure sites dont even show URL's and also disable the right click) Then copy it to your hard drive and open the source code. This one is unbeatable.
|
|
|
|
 |
|
 |
IIS doesn't support Unicode files but ADO does...
before having an ASCII file that your server will then be able to read convert the send bin data into a unicode data.
Great tip from: http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=128
Use local recordset to do that:
Response.Write BinToText(GetHTMLBin("http://Your URL goes here.whatever"), 35000)
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' Function to return binary data
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Function GetHTMLBin(strURL)
Dim objXMLHTTP, strReturn
Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")
objXMLHTTP.Open "GET", strURL, False
objXMLHTTP.Send Cstr(Rnd())
GetHTMLBin = objXMLHTTP.responseBody
Set objXMLHTTP = Nothing
End Function
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' Function to convert binary data to text
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Function BinToText(varBinData, intDataSizeInBytes) ' as String
Const adFldLong = &H00000080
Const adVarChar = 200
Set objRS = Server.CreateObject("ADODB.Recordset")
objRS.Fields.Append "txt", adVarChar, intDataSizeInBytes, adFldLong
objRS.Open
objRS.AddNew
objRS.Fields("txt").AppendChunk varBinData
BinToText = objRS("txt").Value
objRS.Close
Set objRS = Nothing
End Function
|
|
|
|
 |
|
 |
Tip: You can always press the context menu button, if you have one. (After Ctrl-Tabbing into the frame you want the source for, if necessary)
- Jason
Do you have a Pulse?
SonorkID: 100.12194
's your uncle
|
|
|
|
 |
|
 |
Thanks - it saved me from running html/asp within a frame.
|
|
|
|
 |
|
 |
It does not show the source code for some URL.
eg http://ustlib.ust.hk/search/tcomputer+network/tcomputer+network/1,50,58,B/frameset&FF=tcomputer+network+architectures&1,1
Can anyone help?
Brenda Yip
|
|
|
|
 |
|
 |
I'm having the same problem. I'm trying to get a URL with a search string. It looks like the request is being sent without the search data. For example, trying to get "http://www.me.com/index.asp?text=hello" would be sent as "http://www.me.com/index.asp". Any ideas how to get the search string to be included?
|
|
|
|
 |
|
 |
The server seems to fill up its cache or something after a while when using the GetHTML function.
Anyone get the same problem? Know why it happens?
Thanks
Anders
|
|
|
|
 |
|
 |
Have you solved the problem yet?
|
|
|
|
 |