|
Any chance I could get you to post some relevant links or some general info on using the IE control? I have a project in the offing that it might be useful in and I haven't seen any docs on using it.
Thanks!
Jason Jystad
Cito Technologies
www.citotech.net
>------------------------------------------------<
"Luckily," he went on, "you have come to exactly the right place with your interesting problem, for there is no such word as 'impossible' in my dictionary. In fact," he added, brandishing the abused book, "everything between 'herring' and 'marmalade' seems to be missing."
-- Dirk Gently (Douglas Adams)
>------------------------------------------------<
|
|
|
|
|
I am off to London now for two weeks so I wont be able to post until I get back. Soon as I get back though I will write up an article on the whole thing and notify you of it
If you need it really urgently then email me directly and I will see what I can do.
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
"We would accomplish many more things if we did not think of them as impossible."
- Chretien Malesherbes
|
|
|
|
|
That would be great. I need to write a highly controlled content editing system for an intranet. They all have IE so it sould like a good solution for me.
As far as when I need it, no rush. When you get back would be fine. Just reply on here to something of mine so that I get the reminder e-mail. Or just e-mail me directly.
Thanks a lot!
Two weeks in London. Man I need to get out of this country for a while. I really do need to find another country to work in for a few years.
Anyhow, thanks again and I look forward to the article!
Jason Jystad
Cito Technologies
www.citotech.net
>---------------------------------------------------------------------------<
"Power corrupts. Absolute power is kind of neat"
-- John Lehman, Secretary of the Navy 1981-1987
>---------------------------------------------------------------------------<
|
|
|
|
|
can somebody tell me how to use asp language to write an upload function to upload a file to the remote server?
thanks.
|
|
|
|
|
You can't do it with just plain ASP, you have to use COM, too. Take at look at this article.
Jon Sagara
Sagara Software
|
|
|
|
|
how can i set up home which refer to my web site in explorer or netscape for those people who visit my web site
|
|
|
|
|
Just thought I would share this piece of useful know-how with the world... even though many ASP developers probably already know it.
Basically accesing a HTML file is a good site quicker than accessing an ASP file, thats pretty obvious with ASPs overheads, database calls etc.
So it is often useful, with an ASP page that does not change a lot, to save the ASP output as pure HTML and then get your visitors to hit the HTML page and not the ASP page. Then, whenever you want the HTML page to change you just re-run the ASP page to re-save the HTML.
ASPTear is a great, free, little component which does the job with aplomb. You can get it here.
And a good article on how to use the component is situated on 4GuysFromRolla.com here.
If anyone wants a full article on this from me explaining things better then just ask
regards,
Paul Watson
Cape Town, South Africa
e: paulmwatson@email.com
w: vergen.org
|
|
|
|
|
Dear All,
Here is a xsl to transform the xml by grouped by "cost_type" and displays
group summary "avg hourly cost" for each cost_type, by matching to
respective <gpr_aggr> node of XML file. For purpose of matching to a specific <grp_aggr> node, I used <xsl:variable>.
Can somebody help me out with this transform and tell me why the 2nd
<xsl:value-of> meant to display value of <grp_aggr> node matching with
respective cost_type, is not matching with any node.
Any timely solution is appericiated.
Desired Output
-------
Cost type Hourly CostCTC
Billable
200 378000
150 0
50 0
Avg HCost: 133
Avg HCost: 133 (-->showing blank in actual output)
Actual
100 189000
Avg HCost: 133
Avg HCost:129 (--> showing blank in actual output)
<xsl:for-each select="./record[count(.|key('key_1',cost_type)[1]) =
1]">
<xsl:value-of select="cost_type">
<xsl:for-each select="key('key_1', cost_type )">
<xsl:value-of select="Hourly_Cost"> <xsl:value-of select="CTC">
<xsl:variable name="variable_1" select="cost_type">
Avg HCost:
<xsl:value-of select="//group[@colvalue='Billable']/grp_aggr[@id='1']">
Avg HCost:
<xsl:value-of select="//group[@colvalue=$variable_1]/grp_aggr[@id='1']">
-->
|
|
|
|
|
Dear All,
Here is a xsl to transform the xml by grouped by "cost_type" and displays
group summary "avg hourly cost" for each cost_type, by matching to
respective <gpr_aggr> node of XML file. For purpose of matching to a specific <grp_aggr> node, I used <xsl:variable>.
Can somebody help me out with this transform and tell me why the 2nd
<xsl:value-of> meant to display value of <grp_aggr> node matching with
respective cost_type, is not matching with any node.
Any timely solution is appericiated.
Desired Output
-------
Cost-type Hourly-Cost CTC
Billable
200 378000
150 0
50 0
Avg HCost: 133
Avg HCost: 133 (----> showing blank in actual output)
Actual
100 189000
Avg HCost: 133
Avg HCost:129 (----> showing blank in actual output)
XML
------
<root>
<recordset>
<record>
<hourly_cost>200
<ctc>378000
<cost_type>Billable
<record>
<hourly_cost>150
<ctc>0
<cost_type>Billable
<record>
<hourly_cost>50
<ctc>0
<cost_type>Billable
<record>
<hourly_cost>100
<ctc>189000
<cost_type>Actual
<group id="1" colname="cost_type" colvalue="Billable">
<grp_aggr id="1">133
<grp_aggr id="2">1000
<grp_aggr id="3">61944.5454
<group id="2" colname="cost_type" colvalue="Actual">
<grp_aggr id="1">129
<grp_aggr id="2">589
<grp_aggr id="3">111474.2857
XSLT
-------
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html">
<xsl:key name="key_1" match="record" use="cost_type">
<xsl:template match="text()">
<xsl:template match="//recordset">
<xsl:for-each select="./record[count(.|key('key_1',cost_type)[1]) =
1]">
<xsl:for-each select="key('key_1', cost_type )">
<xsl:variable name="variable_1" select="cost_type">
Cost type | Hourly Cost | CTC | <xsl:value-of select="cost_type"> | | <xsl:value-of select="Hourly_Cost"> | <xsl:value-of select="CTC"> | | |
Avg HCost: <xsl:value-of
select=" group[@colvalue="Billable" ]="" grp_aggr[@id="1" ]"="">
| | |
Avg HCost:<xsl:value-of
select=" group[@colvalue="$variable_1]/grp_aggr[@id='1']"/">
|
|
|
|
|
|
I have encountered a problem with a session variable I have been trying to use.
I create the variable in the global.asa file along with other variables.
var ID = 0;
I have a one page that does validation for my site with the following type of code
<br />
if( page1 )<br />
insert record...<br />
Session("ID") = RecordSet("id");<br />
Redirect("page2.asp");<br />
else if( page2 )<br />
var temp = Session("ID");<br />
<br />
Anyone have any insite into this? I use other session variables and they through this and other variables and there doesn't seem to be a problem.
|
|
|
|
|
Hmmmm... please be more specific about how you are SETTING your Session("ID") in your global.asa file. From the nfo you gave, it seems for the if(page1) you are setting your Session("ID") there, and for (page2) no Session("ID) exists because you seem to be setting it in the if(page1) part. Like I said, I can not really help until you post the section of your global.asa file where you are creating your Session("ID").
---][--SqrL--][---
|
|
|
|
|
Global.asa
var ID = 0;
function Session_OnStart()
{
Session("ID") = 9;
}
On page 1 I can do the following
Response.Write(Session("ID")); // Outputs 9
Session("ID") = 10;
Response.Redirect("page2.asp");
On page2 I get this
Response.Write(Session("ID")); // Outputs 9 not 10
|
|
|
|
|
How do you do a linebreak with the vbscript in asp?
|
|
|
|
|
Response.Write vbCrLf
Cheers,
-Erik
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My thoughts are my own and reflect on no other.
|
|
|
|
|
Does it enyone know how can I call printPreview in IE 5.5+?
|
|
|
|
|
IOleCommandTarget::Exec with OLECMDID_PRINTPREVIEW
or
IWebBrowser2::ExecWB with IDM_PRINTPREVIEW which calls the above anyway.
|
|
|
|
|
Hi ,
I have a dll , which displays a dialog box. and I need to
invoke this dialog through a HTML page. There would be a
string send from the HTML to the dialog , and after processing, from the Dialog back to the HTML page.
Can someone please tell how can I achieve this.
Thanks
Sanksy
sp
|
|
|
|
|
If this is an ActiveX/COM dll then it is not a problem. After the dll has been properly installed or download to the client machine you just have your page instantiate the object. Such as <object> tag or from scripting CreateObject or CreateActivexObject.
Is there something special about your dialog? You could use a popup or hta from the browser with needing to have a dll downloaded/installed.
|
|
|
|
|
Thanks for the help.
If the DLL happens to be a Normal DLL, so in such case how
do I handle it?
Thanks -n- Regards,
sanjay
|
|
|
|
|
I saw siteserver using two cookies. One is SITESERVER=ID=someguid and the other one is SITESERVER=GUID=someguid.
I know the second one is the guid attribute of the user. What is the first one for? I got to compute the ID myself, and do anyone of you know how to compute this ID?
Any help will be highly appricicated.
Regards,
Ravi
|
|
|
|
|
|
I am using the fileSystemObject in ASP to list the contents in a directory. Is there any EASY way to sort the files alphabetically?
thanks,
Todd
|
|
|
|
|
You could read the filenames into an array and sort the array.
|
|
|
|
|
I have a problem with a combo box on an HTML page.
The items in the combo box are larger than the control and the users can't read the
entire strings.
I'd like to be able to design the drop-down part of the combo larger
than the fixed part. How should i do?
Thanks!
|
|
|
|
|
Here's an example:
<select style=width:200;>
<option>Drums</option>
<option>Guitar</option>
<option>Computers</option>
<option>Basketball</option>
<option>Dancing</option>
</select>
Later,
Caleb
|
|
|
|