|
has anyone got an app that will translate javascript into c or vb. a guide will do.
|
|
|
|
|
I vaguely remember seeing something one day about changing the toolbar controls on IE with Java script or VB script from an HTML page. I know that will mean locking oneself into IE. If anyone knows how I would be interesting in hearing from you.
Happy programming!!
|
|
|
|
|
Not a full answer this but the changes are done using CSS and not JavaScript or VBScript.
Have a look at this article on CNET Builder about how to do it.
Happy scripting
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
|
|
|
|
|
There is a way to do it with JavaScript too.
See the article at http://www.dynamicdrive.com/dynamicindex11/scrolleffect.htm
Amusing effect.
Have fun!
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)
>------------------------------------------------<
|
|
|
|
|
Hi all,
i am experiencing a tricky problem with Internet Explorer.
To call the function execCommand("FormatBlock" [, bUserInterface] [, vValue]) I need to know the possible vValues, which are different in each language edition!!! According to MSDN these can be retrieved by:
"Call IOleCommandTarget::Exec with the IDM_GETBLOCKFMTS Command ID to obtain the current list of available block formatting commands that can be passed with the FormatBlock Command ID." (http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/constants/FormatBlock.asp)
I know JavaScript but this is absolutely beyond my (current) spheres... Please help me, I am willing to learn.
Thanks a lot!
Regards,
Dominik
|
|
|
|
|
Currently we have an online back-end Admin Suite for our site. It allows non-HTML coders to edit content on the site with ease. The control we are using is the built in HTML editor control that comes with Internet Explorer. It is pretty easy but we are finding it has some limitations i.e. Netscape support is lacking and the code it produces is not the best.
I was wondering if anyone had an alternative control or any alternative ideas?
thanks
regards,
Paul Watson
Cape Town, South Africa
e: paulmwatson@email.com
w: vergen.org
|
|
|
|
|
the code it produces is not the best
If you want finer control over the HTML, create it yourself, using the contenteditable attribute in IE 5.5 and above. Eg: <div contenteditable="true">Some editable text</div>
You can then use stuff like innerHTML do write your own HTML.
If you are using IE 5.5 or higher, you can edit this text.
What's Netscape?
"A surprise to be sure, but a welcome one."
- Senator Palpatine
|
|
|
|
|
Well the whole point of the WYSIWIG back-end tool is so that non-HTML gurus can enter in content. But thanks
LOL and I must have been on drugs when I wrote that bit about that funny programme called Netscape, I think I just made the name up... hallucinations again...
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
|
|
|
|
|
|
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.
|
|
|
|