|
Hi All,
I am designing an application using HTML.And Frames are used for that.
In my main window there are 3 rows.I need to use title bar(including minimize,
maximize and close buttons in each source in this Frameset.Means to close each frame from a frameset.
Is it possible?
Thanks In advance,
Jeeva
|
|
|
|
|
try this in a aspx page.
create every forms(html files ) in the code behind file and give the elements name properly.
for example
reponse.write("")
reponse.write("")
reponse.write("
|
|
|
|
|
Hai Satheesh,
Thanks for the reply.Can u plz specify what the JavaScript contents will be.I wrote this in a button click of .aspx page.But the code is written in the frame where the event generated.
Jeeva
|
|
|
|
|
you have to set the clicked events for a function .
sample code is like the below.
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<title>Untitled Page
function buttonClick()
{
....
}
Sathesh Pandian
|
|
|
|
|
if you are going to close the frame then you can use
document.close
Its better to use div elements instead of frames.
Sathesh Pandian
|
|
|
|
|
Why on earth would you put that in the code? or even in an aspx page? it can go in a plain old HTML page, the framesets will still get parsed by the server!
|
|
|
|
|
he only needs it. see the question.
All The Best
Sathesh Pandian
|
|
|
|
|
Hello!
How can I command browser (IE 6) to wait until the page gets loaded fully? My web pages uses asp, html, javascript and dhtml. I don't want the specific page gets loaded partially by the browser but gets displayed fully when the loading is done. Is there any statement in coding what enables or disables such feature?
Thanks
Journey
|
|
|
|
|
Maybe you can set the display of the body to none:
<body style="display:none">
and clear it via javascript when your page is fully loaded.
Wout Louwers
|
|
|
|
|
I am working on a simple page (first one), intention is to allow operator to select several file names from a list and download them. My files are listed in lstLogFiles. Without the loop a selected log file can be downloaded, with this code the first selected log file can be downloaded, but only the first. I may be not understanding something (obviously) any idea why or what I need to do?
Private Sub btnDownLoad_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDownLoad.Click<br />
Dim fullpath As String<br />
Dim i As Integer<br />
<br />
For i = 0 To lstLogFiles.Items.Count<br />
If lstLogFiles.Items.Item(i).Selected Then<br />
fullpath = lblCurrentPath.Text & lstLogFiles.SelectedItem.Text<br />
DownloadFile(fullpath, True)<br />
End If<br />
Next<br />
End Sub
Thanks in advance
|
|
|
|
|
I haven't tested this or played with it...but just looking at the code you supplied it seems like this line:
fullpath = lblCurrentPath.Text & lstLogFiles.SelectedItem.Text
should be something more like this
fullpath = lblCurrentPath.Text & lstLogFiles.Items.Item(i).ToString
|
|
|
|
|
Interesting, did not know about ToString, but it does not seem to make a difference
any other ideas? It seems like after file is downloaded the procedure exits...
|
|
|
|
|
Hmmm. I don't do a lot with List objects, so I'm not sure what is going on. You said "It seems like after file is downloaded the procedure exits"...did you debug and actually see this happen?
If that is the case then perhaps the For statement is off somehow. What does the list.count show when you debug?
You could try doing a
For Each str as String In lst.SelectedItems If the List object has that option...Other than that, perhaps there is something within the DownloadFile method that is causing a problem. Can you supply us with that code?
-- modified at 14:45 Tuesday 20th February, 2007
|
|
|
|
|
Not sure the loop is getting messed up, I jsut verified that. I call the download function below, when the .Writefile is called the user is presented with a dialogue box to save the file, as soon as "OK" is clicked the file is saved and the debugger does not allow any stepping, step out of procedure or anything.
I just placed a break point on the "Page Load" event and found that it is called as soon as I click the button, but it does not appear that impacts the selections.
Private Sub DownloadFile(ByVal fname As String, ByVal forceDownload As Boolean)<br />
Dim path As Path<br />
Dim fullpath = path.GetFullPath(fname)<br />
Dim name = path.GetFileName(fullpath)<br />
Dim ext = path.GetExtension(fullpath)<br />
Dim type As String = ""<br />
<br />
If Not IsDBNull(ext) Then<br />
ext = LCase(ext)<br />
End If<br />
<br />
Select Case ext<br />
Case ".htm", ".html"<br />
type = "text/HTML"<br />
Case ".txt"<br />
type = "text/plain"<br />
Case ".doc", ".rtf"<br />
type = "Application/msword"<br />
Case ".csv", ".xls"<br />
type = "Application/x-msexcel"<br />
Case Else<br />
type = "text/plain"<br />
End Select<br />
<br />
If (forceDownload) Then<br />
Response.AppendHeader("content-disposition", _<br />
"attachment; filename=" + name)<br />
End If<br />
If type <> "" Then<br />
Response.ContentType = type<br />
End If<br />
<br />
Response.WriteFile(fullpath)<br />
Response.End()<br />
<br />
End Sub
|
|
|
|
|
Okay. I think your problem is the Response.End statement. That statement is going to finish all processing and push the page out with whatever information it currently has. I haven't done a file download exactly like this, so I'm not sure if just removing the statement will work or if you need to replace it with something else, but you can give it a shot and see what happens.
Hope this helps.
|
|
|
|
|
I am afraid removing the .End does not help, nor does moving the essence of the subroutine back into the original button click event. If you have any other ideas I am willing to listen.
|
|
|
|
|
As far as I'm aware you can't push multiple files to a browser - in other words what you're trying to do just isn't possible.
|
|
|
|
|
hi all
can any body tell me how to include file in vbs file
SP
--
Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
|
|
|
|
|
How do you mean ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi i want to include JAVASCRIPT FILE in VBscript is it possible ? & how?
SP
--
Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
|
|
|
|
|
You're using ASP ? When I did ASP, we used VB script for the server side code. AFAIK, only javascript can run on the client. I don't believe you can mix them, for that reason. Why do you want to ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Looks like you can combine them for IE6:
<html>
<body>
hello
<script language="javascript">
var1 = 'Wibble' ;
</script>
<script language="vbscript">
call msgbox(var1)
</script>
</body>
</html> Of course, that doesn't mean that you should.
Regards
Andy
|
|
|
|
|
If you need to include a VBScript file into your web page (to run in your browser then use:
<script src="Inc/global.vbs" language="VbScript"> </script> However, you should really be using JavaScript if you want users to use anything other than IE. If you need to include a VBScript file into your ASP page (to run on your web server) then use:
<!--#include file="Inc/GenScreen.asp" --> If you are using CScript.exe to run VBS on your desktop then use:
<?xml version="1.0" standalone="yes"?>
<?job error="false" debug="false"?>
<package>
<job id="main">
<reference guid="00000205-0000-0010-8000-00AA006D2EA4"/>
<reference object="Scripting.FileSystemObject" />
<script language="vbscript" src="Utils.vbs"/>
<script language="vbscript">
<![CDATA[
'Your script goes here.
]]>
</script>
</job>
</package> If you want to get reeeeeeally frisky then you can use VBScript to create WSC COM components!!! VBScript rocks
Hope that helps.
Andy
|
|
|
|
|
hi,
I'm having problem with seeing my datagrid? Yet I set Property visible to true and I'm caling the DataBind() what could be the Problem. I mayed be forgetting something.. Could you please help?
Thanks?
|
|
|
|
|
Check in the debugger - if your data source is empty, you won't see anything.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|