|
Does this problem show up on all of your IE6 machines or just one. If just one, then maybe it is not the javascript, but possibly a virus or trojan.
|
|
|
|
|
All computers across our company recently updated by IT.
|
|
|
|
|
I think your problem may be with CSS rather than Javescript, check out the script on a separate empty page and see if it work
|
|
|
|
|
This may be the fix, I've only had a few minutes to check, but it might be. I'm curious, why would this be?
|
|
|
|
|
IE6 has some MAJOR issues with CSS as it adds margins sometimes and misses out transparency, luckily it's dying out tho and you really shouldn't worry too much about it these days
|
|
|
|
|
Greetings,
I would like to know if anyone has any code or even VB script, Perl etc that can simply be run from a command line to download whatever page is on a browser and write the raw HTML to a file, it can also be MHT for that matter.
I know about using - Navigate etc for a specific web page. This is different. The page I go to require authentication with word art and user name and password etc. Then once there you must click a few times to get where you are going for the data. Therefore running a script to direct me to a certain webpage will not work. The page has to be displayed first and then downloaded.
So, I just want to take whatever is currently on the browser, mainly due to catch refreshes of new data. Understand the page I am getting data from is generated as from a database so I can not simply run a script file to download that page. The program must be able to simple be activated and write to disk what ever is displayed on the browser at the time the program is run.
I have a seperate data extractor to run against the new file to find the data I need. This file can always have the same name as well and be overwritten.
Thanks,
Antone
|
|
|
|
|
|
hi David,
thanks for the quick response,but that is not what I want to do. Imagine a webpage displayed, but you do not know the web address it is just displayed on the browser then the scehduler turns on and downloads the HTML of the page to a file.
Thanks,
Antone
|
|
|
|
|
Does anybody have experience with a robust html parser (either commercial or free), that can parse into a DOM model, and hopefully also supports xpath query?
Wout
modified on Wednesday, July 8, 2009 11:08 PM
|
|
|
|
|
How about
MIL HTML Parser[^]
From... The Code Project!
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
wout de zeeuw wrote: Does anybody have experience with a robust html parser (either commercial or free), that can parse into a DOM model, and hopefully also supports xpath query?
How about the COM interfaces exposed by the WebBrowser control? They should parse anything on the web.
xacc.ideIronScheme - 1.0 beta 3 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
If only you hadn't put the .NET in the title.....
I would have suggested using libxml2, as it has an HTML parser (which constructs an XML-ish DOM internally, IIUC) and also XPath support.
.....but you put .NET in the title, so I haven't suggested that
(A quick Google[^] indicates this[^] - which is commercial)
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I did see the acrux thing, and I was tempted for a bit. But the price was just a little on the high side for what I think should cost maybe $100-$200. So I ended up trying htmlagilitypack[^], and it works perfectly for what I needed. Only downside is that it looks like a dead project, like so many open source projects end up. But it was absolutely easy to use, and the xpath works fine too. Later on I might revive this dead project when we move to .NET 3.5 or so next year, it's a pity to let a piece of decent code rot away.
Wout
|
|
|
|
|
I find it difficult to believe that the BCL doesn't include an HTML parser...but it doesn't.
Oh - I found something in Java that would probably have fitted what you want - TagSoup[^] - a SAX compliant HTML parser. If you had a .NET equivalent, I bet you could hook it up to the right bits of System.XML and intermix HTML parsing with XPath querying.
I feel like saying How difficult could it possibly be to port to C#...but I suspect that's a dangerous statement to make
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I call an Window(ASP Page) from an ASP Web Page using Javascript.
window.open('http://localhost:1146/RecordBatch.aspx','Batch Record','width=1000,height=700,left=100,top=50,screenX=100,screenY=50');
I wanna get Access(change value) of some controls in ASP Web Page from my called Window using javascript or C#/VB .Net Code.
modified on Tuesday, July 7, 2009 6:44 AM
|
|
|
|
|
|
i have a wen application using asp .net 2 and ajax extensions. I'm using ajax to show some text boxes when selecting items from combo box without refreshing the page. the code works normally on local machine, when uploading it to the hosting server i noticed that when selecting item from combo it take about 14 sec to show the text boxes.
how can i decrease the delay between Ajax request and response?or this delay is normal ?
|
|
|
|
|
Use a serverside solution.
For example, with JQuery, something like this:
<asp:DropDown ID="MyDropDown" runat="server"/>
<asp:TextBox ID="MyTextBox" runat="server"/>
<script type="text/javascript">
$(document).ready(function(){
$('<%=MyDropDown.ClientID%>').change(function(){
$('<%=MyTextBox.ClientID%>').val('<=MyDropDown.ClientID%').val());
});
})
</script>
Basically, once the page is loaded, you are binding a function to the change event on the drop down. The change event sets the value of the textbox using the value of the drop down.
It's a little more involved without JQuery, you would use $get() to reference the controls and have to iterate the drop down to get the selected value.
Jeremy Likness
http://csharperimage.jeremylikness.com/
|
|
|
|
|
I've wrote a basic ISAPI extension:
BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) { return TRUE; }
BOOL WINAPI GetExtensionVersion(HSE_VERSION_INFO *pVer) {
pVer->dwExtensionVersion = HSE_VERSION;
strncpy(pVer->lpszExtensionDesc, "UL Receiver", HSE_MAX_EXT_DLL_NAME_LEN);
return TRUE; }
DWORD WINAPI HttpExtensionProc(EXTENSION_CONTROL_BLOCK *pECB) {
char * szStr = "<HTML><BODY>Hello, world!</BODY></HTML>";
DWORD dwBytes = sizeof(char) * strlen(szStr);
pECB->WriteClient(pECB->ConnID, szStr, &dwBytes, HSE_IO_SYNC);
return HSE_STATUS_SUCCESS; }
Next I made a form directed at the extension:
<html>
<body>
<form action="http://localhost/my.dll" method="post">
<input type="text" name="atextbox"><br>
<input type="checkbox" name="acheckbox"><br>
<input type="submit" name="Submit"><br>
</form>
</body>
</html>
If I access the extension directly, like: http://localhost/my.dll, it displays Hello, World! , as it should. But when I submit the form I get (null) 0 instead of Hello, World!
This is my first foray into ISAPI extensions, and I'm not sure what's going wrong or where to look next...
Can someone point me in the right direction, please ?
Any help is greatly appreciated! -MZR
|
|
|
|
|
if client don't have font that exist on server . So how to display that information on client with that font .
Sorry for my english !
|
|
|
|
|
The TTF file need to be on the system running only the web browser right? BTW, did you investigate into the feasibility of Unicode?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
hi every body
i want to know how can i stream videos from my server to client page
like youtube.com
can any body help me ???
|
|
|
|
|
to my knowldge , i think there is an ptin to paly audio video files using ActiveX Shell components..
sabarimd
|
|
|
|
|
I believe there is software that does it.
its a video/flash module that you can download. Having trouble remembering the name of it right now, sorry
|
|
|
|
|
Hi,
I have this code in JSP for Uploading multiple files :
This is the server side code snippet
<jsp:useBean id="upBean" scope="page" class="javazoom.upload.UploadBean" >
<jsp:setProperty name="upBean" property="folderstore" value="F:/Program Files/CA/Unicenter Service Delivery/view/webapps/upload/Attach_doc"/>
</jsp:useBean>
<!-- <jsp:useBean id="bean" scope="page" class="javazoom.upload.attach" ></jsp:useBean> -->
<head>
<title>Samples : Simple Upload</title>
<style TYPE="text/css">
<!--
.style1 {
font-size: 12px;
font-family: Verdana;
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body onload="parent.resizeTo('300','500'); moveTo(0,0);" background = 'background.JPG'>
<ul class="style1">
<%
String i1=request.getParameter("req");
out.println(i1);
int i2=Integer.parseInt(request.getParameter("role"));
%>
<%
if (MultipartFormDataRequest.isMultipartFormData(request))
{
MultipartFormDataRequest mrequest = new MultipartFormDataRequest(request);
String todo = null;
String userid="";
if (mrequest != null) { todo = mrequest.getParameter("todo"); userid = mrequest.getParameter("Userid");}
if ( (todo != null) && (todo.equalsIgnoreCase("upload")) )
{ try{
String filename="";
Hashtable files = mrequest.getFiles();
if ( (files != null) && (!files.isEmpty()) )
{
UploadFile file = (UploadFile) files.get("uploadfile");
file.setFileName(file.getFileName());
filename=file.getFileName();
if (file != null) out.println("<li>Form field : uploadfile"+"<BR> Uploaded file : "+file.getFileName()+" ("+file.getFileSize()+" bytes)"+"<BR> Content Type : "+file.getContentType());
upBean.store(mrequest, "uploadfile");
}
else
{
out.println("<li>No uploaded files");
}
This is the client side code snippet
<input type="hidden" name="todo" value="upload">
</td>
<td>
<input type="file" name="uploadfile" id="uploadfile" onchange="document.getElementById('moreUploadsLink').style.display = 'block';" />
<div id="moreUploads"></div>
<div id="moreUploadsLink" style="display:none;"><a href="javascript:addFileInput();">Attach another File</a></div>
<script>
var upload_number = 2;
var test="null";
function addFileInput() {
var d = document.createElement("div");
var file = document.createElement("input");
file.setAttribute("type", "file");
file.setAttribute("name", "uploadfile"+upload_number);
d.appendChild(file);
document.getElementById("moreUploads").appendChild(d);
upload_number++;
var test = upload_number;
}
</script>
Now when ever I am clicking on the upload button only the first file is getting uploaded. Please tell me what modification I need to do in the code to upload all the files attached.
Thanks in advance
|
|
|
|