Hi,
I'm trying to write some JScript code to query a database and give the output as a pure XML file... I've found loads of help doing this with VBScript but none for JScript.
If I can get:
<%@LANGUAGE="JScript"%>
<%
response.ContentType="text/xml"...
I need to allow a user to upload an image and then automatically resize it to no larger than 300 x 225.
I've found several methods of doing this but all require "GD library" to be installed on the host. Which the hosts are at the moment unwilling to do.
is there another way to do...
I'm using Jscript and attempting to write something to strip out all "<br>" tags in a string and replace them with nothing i'm using:
Introduction = Introduction.replace("<br>", "");
however this seems to be replacing only the first <br> tag in the string.
can...
Hi,
I'm having huge trouble with some XSL.
I'm trying to output XML with alternate lines coloured differently... so far I've got this:
<xsl:variable name="row-number" select="position()"/>
<tr class="
<xsl:choose>
<xsl:when test="$row-number mod 2 =...
Hi,
I'm having trouble finding any resources to help me with this.
I need to open an XML document and display it to the screen using JSCRIPT. The web seems full of info for VBscript but unfortunately that's no good.
Any help would be great!
Emma
that's great thanks!
just solved my own problem (well that one anyway).
I needed to put the Server.MapPath that you suggested in!
thanks for your time
Emma
thanks, I've taken that bit out (moved the file to the same folder).
now I've got:
XMLDoc = Server.CreateObject("Microsoft.XMLDOM"); XMLDoc.async = false;
XMLDoc.Load(Request.Form("FileLocat"));
rootNode = XMLDoc.documentElement;
and it's telling me "Object doesn't...
Is there any reason I can't do this is Jscript?
XMLDoc = CreateObject("Microsoft.XMLDOM");
XMLDoc.async = False;
XMLDoc.load("c:\aspnet\" & Request.Form("FileLocat"));
Set rootNode = XMLDoc.documentElement;
I get this error back:
Expected ')'
/home/ViewXML.asp...
I'm having huge trouble with an aspx script. I'm really sorry if you've replied to anything like this before - please point me in the right direction.
I've written a form which sends information to a remote server, this then creates an xml file and sends me back the location as a form field...
I'm sure this is an easy one but it's driving me mad.
I'm using Jscript and have tried:
Headline = replace(Request.Form("Headline"), vbCr, "<br>");
Headline = replace(Request.Form("Headline "), lr, "<br>");
Headline = Replace(Request.Form("Headline...
can anyone suggest anything for this? It's supposed to be working soon... think I'm a little out of my depth!
- oh and again that semi-colon is not in the code...
thanks
Emma
Hi Kevin,
thanks so much for your help with this... however...
I changed the code as you suggested so now it reads:
<script language="VB" runat="server">
Sub Page_Load(sender as Object, e as EventArgs)
Dim url as String = "http://.../asp/xmltestfiles/" +...
thanks for your reply.
not sure why there was a semi-colon in the code I pasted here. There's not one in my code and it still doesn't work.
the error I get is:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more...
I *really* am a newbie at this, so appologise if I'm asking the blindingly obvious.
how would I reference a form variable in a script I've set up to run at the server?
here's the code i've got:
<script language="VB" runat="server">
Sub Page_Load(sender as Object, e as...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.