|
On a client-side HTML Help system?
Simon
C++: Only friends can see your private parts.
Sonork ID 100.10024
|
|
|
|
|
Oups, sorry, didn't understand you right
Maybe using IFRAME tag?
Philip Patrick
"Two beer or not two beer?" (Shakesbeer)
Web-site: www.saintopatrick.com
|
|
|
|
|
Simon,
There are a lot of HTML Editors that support templates, DreamWeaver being one of them. Inside the template, you define one or more "Editable Sections".
You then create new pages, based upon that template and start filling the Editable Sections on each page.
Whenever you decide to change the layout or something, edit the template and DreamWeaver will ask you if you wish to change the depending pages as well. Easy does it!
Using DevaTools (www.devahelp.com), DreamWeaver has support for HTML Help authoring as well (just downloaded it today, so I can't tell you it's quality, but you'll get the picture.
Check out my electronic album article (in HTML Help!) as well. It features passing parameters to pages INSIDE a CHM! (http://www.codeproject.com/winhelp/htmlhelpdemoalbum.asp)
VictorV
|
|
|
|
|
I was actually thinking of using dreamweaver, but the fact that have I haven't got it put me off. Anyway, I've got around the problem by creating my own tags inside the html documents, and then using an small console app I wrote to parse the html files and replace the custom tags with the full html. Easy
Thanks anyway!
Simon
...thrilled to bits that his dodgy GDI code no longer sods up explorer.
Sonork ID 100.10024
|
|
|
|
|
For our own HTML Help files, we use our Windows-based CMS (http://www.zeta-producer.de) which can generate HHC files for the HH Workshop.
Unfortunately this application currently only has a german GUI, so it won't help you at all
Maybe you can use JavaScript to generate HTML for you? It's not the best way, but since its not for the web but for HTML Help with IE as browser, it should be OK.
Or use HTC (HTML Components) of IE. E.g. apply a behaviour to a page when it loads and then output header and footer.
--
See me: www.magerquark.de
|
|
|
|
|
I have some code that I'm considering making XML compatible. The data it manages, which I want to "XMLize", is generally diverse, some DB and some flat file. I examined the technology enough to be comfortable with it. But I do have one rather simplistic question.
Every example I've seen always begins with the existence of a large pre-built XML file. Now, obviously, these files are not being cranked out on a keyboard. They must be generated, somehow, programmatically. I can easily build properly formated "well-formed" XML files from my code.
I just wonder if this is how it is typically done. I don't see why you need the complexity of a parser to simply create the original file. Reading it, yes, but writing it would seem a rather straight forward file I/O operation. Am I out to lunch on that assumption? How do the "pros" do it? (I also realize that various database utilities exist to build from, but my data is not all stored in that format.)
"Thank you, thank you very much" Elvis.
|
|
|
|
|
|
Thanks, Steven.
I'm actually just playing around with XML out of curiosity. Something new to learn. I'm going to simply convert my old data in a couple of antique windows apps I have to XML format and than apply various parsers to it to learn how to use them properly. Who knows what might pop out? I was just curious as to how large XML files are typically constructed initially, especially from pre-existing data sets in sundry sources. Since XML, at its simplist, is nothing but an ASCII file, I see no problem with just a simple code set that sucks the data from each source and builds it into the XML format I've established.
"Thank you, thank you very much" Elvis.
|
|
|
|
|
Hai
I have rendered an xml document using the DataGrid control. The control is so cool that it handles sorting very easily for me. But when I have numbers in my xml data, it is not sorting based on number. Instead it considers the numbers as strings and does string sorting. Has anyone tried this? Can anyone help me in doing this?
My sample xml would look like this..
<authors>
<author>
<aname>Neal Stephenson</aname>
<aid>246</aid>
</author>
<author>
<aname>Roger Wilson</aname>
<aid>12</aid>
</author>
<author>
<aname>Miriam Noxville</aname>
<aid>1456</aid>
</author>
</authors>
This when displayed in a Datagrid and sorted using the aid column, it gives me...
12
1456
246
omkamal
|
|
|
|
|
I found how to do this and wrote a small article on this. Find this "Sorting XML Data using DataGrid" article useful.
omkamal
|
|
|
|
|
hi
I have a form where a person can post a message at my guestbook. But I cant figure out how to handle new lines. If the user presses 'enter' (creating a new line) it shows up like a space in the guestbook, rather than jumping to a new line.
Example:
hello how are you
im fine.
This post will show up like tihs:
hello how are you im fine.
Instead of creating a new line.
I have tried this to make it work
message = Replace(message, "", " ")
But this created a new line when pressing the space..
Help would be appriciated.. Thanks
|
|
|
|
|
Check out the code for Uwe Keim's guestbook. It does exactly what you're looking for:
Guestbook
This is basically the code that does it:
str = Replace( in_str, vbCrLf, vbCr )
str = Replace( str , vbLf , vbCr )
str = Replace( str , vbCr , "<br>" )
Jon Sagara
What about ?
|
|
|
|
|
Thanks for the help.. Works superb now...
thanks to "Uwe Keim" too
|
|
|
|
|
Sorry Im new to programming I have built a few apps in VB and probe but I'm having a problem making popup boxes in asp.net. I can use Java S but I'm trying to have a popup message dependant on IF statement based on checklist selections and can't figure it out. Can anyone help?
Frank Oldale
|
|
|
|
|
Wildcard wrote:
Sorry Im new to programming I have built a few apps in VB and probe but I'm having a problem making popup boxes in asp.net. I can use Java S but I'm trying to have a popup message dependant on IF statement based on checklist selections and can't figure it out. Can anyone help
Ahh yes, I too butted my head against the stupidty (which I soon realised was mine) of this problem.
Basically, and I don't have a lot to go on here so correct me if I am wrong, you are trying to use a messagebox() method like you would in VB, but here you are trying to do it on a web page based on an if statement?
You can do it if you use VBScript as your client side language. But that is not recommended as only IE supports client side VBScript.
So you need to do it with JavaScript as you pointed out.
This is what I would do (I have done it in normal ASP as I do not have ASP.NET handy here, if your problem is specifically with ASP.NET (and you can do it in ASP) then ignore my whole post)
<%@ Language=VBScript %>
<HTML>
<HEAD>
<SCRIPT language="JavaScript">
<%If Request.QueryString("chkOpt1") <> "" Then%>alert("Option 1 selected");<%End If%>
<%If Request.QueryString("chkOpt2") <> "" Then%>alert("Option 2 selected");<%End If%>
<%If Request.QueryString("chkOpt3") <> "" Then%>alert("Option 3 selected");<%End If%>
<%If Request.QueryString("chkOpt4") <> "" Then%>alert("Option 4 selected");<%End If%>
</SCRIPT>
</HEAD>
<BODY>
<P>
<FORM id="frmMain" name="frmMain" action="example.asp" method="get">
<INPUT type="checkbox" name="chkOpt1"> Option 1<BR>
<INPUT type="checkbox" name="chkOpt2"> Option 2<BR>
<INPUT type="checkbox" name="chkOpt3"> Option 3<BR>
<INPUT type="checkbox" name="chkOpt4"> Option 4<BR>
<INPUT type="submit" name="cmdSubmit" value="Submit">
</FORM>
</P>
</BODY>
</HTML>
It is not very elegant (you could use a Select Case instead of the Ifs and combine the alert into one) but it works.
Shout if you need the ASP.NET version, though this will work under ASP.NET.
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
"The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge
Martin Marvinski wrote:
Unfortunatly Deep Throat isn't my cup of tea
Do you Sonork? I do! 100.9903 Stormfront
|
|
|
|
|
Hey Frank, send through those files and I can help you some more
but I am flying this weekend so it will only be monday.
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
"The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge
Martin Marvinski wrote:
Unfortunatly Deep Throat isn't my cup of tea
Do you Sonork? I do! 100.9903 Stormfront
|
|
|
|
|
am trying to setup a login verification page so when a user enters username/password
it will bounce against a database table and return the "ID" if the username/password
is found in the table.
But I must be having a huge sustained brainfart because I can't figure out
how to do this with ASP.NET using VB.
Can somebody give me a hand?
Thanks
Eric S.
|
|
|
|
|
hallo everyone,
I have the follow problem:
I have a create a button. this button open a new window with a upload form. If the user use this form, I upload load a new page with the result.
I want know which form is used and which fild, to solve this problem I forward this parameters with the querystring.
My actually problem is now, to copy the path from the uploaded location into the page field with the relevant data.
thanks . . .
Roni
=================================
this is in the form:
<td>
<input value="NULL" type="text" name="uploadPicTickerEdit" class="engInput">
</td>
<td width="20">
<div align="LEFT">
<button name="uploadPicTickerEditBrowse" ONCLICK="openWindowUpload('../../../mdl/global/upload/uploadFiles.asp?targetField=uploadPicTickerEdit&targetForm=EditArticle')" title="BROWSE" type="button" disabled><img SRC="../../images/upload.gif"></button>
</div>
the function to poen the window:
function openWindowUpload(url) {
popupWin = window.open(url,'Upload','width=600,height=60,scrollbars=no')
}
upload form:
<form NAME="UPLOAD" method="POST" action="endUpload.asp?FIELD=<%=target%>&FormName=<%=targetForm%>" enctype="multipart/form-data" onsubmit="return chkUpload()">
result page:
<LINK HREF = "../../../admin/include/css/tbl.css" REL="stylesheet" TYPE="text/css">
<SCRIPT LANGUAGE="JavaScript1.2">
<!--
THIS IS THE FUNCTION FOR THE COPY
function copyBack()
{
<%
response.write( "parent.document." & copyTargetForm & "." & _
copyTargetField & ".value = '" & _
NewFileName & "';" )
%>
}
//-->
</SCRIPT>
</head>
.
.
.
==============================================
|
|
|
|
|
If I understand right...
You have to set ID of your field you want to change after uploading. Assume it will be oUploadedPic
So now you can use such script inside your Uploads window:
<br />
parent.document.getElementFromId("oUploadedPic").value = sYourUploadedPicPath;<br />
Philip Patrick
"Two beer or not two beer?" (Shakesbeer)
Web-site: www.saintopatrick.com
|
|
|
|
|
the solotion for the problem is :
opener.document.form.field.value = document.form.field.value;
thanks
Roni
|
|
|
|
|
Not exactly, this is the IE way, it won't work on Netscape prior version 6.x. The code I posted is DOM code, which is ALL browsers support.
Philip Patrick
"Two beer or not two beer?" (Shakesbeer)
Web-site: www.saintopatrick.com
|
|
|
|
|
I want to write a file from my ASP.NET page to a different machine which is on the same network where the web server is. Any ideas?? ( I havent tried this in classic ASP, so unfortunately I dont have previous experience ). Any weblinks would also be very useful.
omkamal
|
|
|
|
|
Well, it is the same as writing files to a local disk only file path is different. Following link explains basic file I/O operations in .NET: Basic File I/O.
Main consideration is security. Account that is used to execute your ASP.NET process has to have write permissions to the folder where you want to write. By default release version of .NET uses local (to your machine) account that is called "ASPNET". This account will not have any permissions to a folder located on other computer. I think it will also be impossible to grant it any permissions on the other PC since it is not a domain-wide account. You might want to use a different account to execute your ASP.NET code by modifying machine.config file, but it is a significant security risk for your network. Better idea is to use impersonation. Check out following link: ASP.NET Impersonation.
Finally, do not forget that you cannot use mapped drives. Mapped drives exist only while user is logged in to the server.
I hope this helps.
|
|
|
|
|
I have an ASP forum available at :
http://www24.brinkster.com/frogjumps/default.asp
if anyone is interested...
FrOg 8)
http://www24.brinkster.com/frogjumps/default.asp
|
|
|
|
|
In Javascript one can check if a form element exists by checking if it is 'null' and if it is then not attempting to process it.
I have a problem where we want add property to an number of elements in a form but not all of them. How can I test if the property has been defined for a particular element or not?
Happy programming!!
|
|
|
|