Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: emms
  • Order by date
  1. emms

    using Jscript to write an XML file

    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=&quot;JScript&quot;%> <% response.ContentType=&quot;text/xml&quot...
  2. emms

    resizing an image on upload

    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 &quot;GD library&quot; to be installed on the host. Which the hosts are at the moment unwilling to do. is there another way to do...
  3. emms

    problem with replace

    wow that's fantastic! thanks for your help Emma
  4. emms

    problem with replace

    I'm using Jscript and attempting to write something to strip out all &quot;<br>&quot; tags in a string and replace them with nothing i'm using: Introduction = Introduction.replace(&quot;<br>&quot;, &quot;&quot;); however this seems to be replacing only the first <br> tag in the string. can...
  5. emms

    alternating line colours

    Oh I see! thanks you're an absolute star. [sunshine] that's solved about five nagging problems I was having. Em
  6. emms

    alternating line colours

    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=&quot;row-number&quot; select=&quot;position()&quot;/> <tr class=&quot; <xsl:choose> <xsl:when test=&quot;$row-number mod 2 =...
  7. emms

    XML with Jscript

    thanks guys, managed to get it working using mostly the VB stuff... finally! thanks again for your help Emma
  8. emms

    XML with Jscript

    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
  9. emms

    open XML file

    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
  10. emms

    open XML file

    thanks, I've taken that bit out (moved the file to the same folder). now I've got: XMLDoc = Server.CreateObject(&quot;Microsoft.XMLDOM&quot;); XMLDoc.async = false; XMLDoc.Load(Request.Form(&quot;FileLocat&quot;)); rootNode = XMLDoc.documentElement; and it's telling me &quot;Object doesn't...
  11. emms

    open XML file

    Is there any reason I can't do this is Jscript? XMLDoc = CreateObject(&quot;Microsoft.XMLDOM&quot;); XMLDoc.async = False; XMLDoc.load(&quot;c:\aspnet\&quot; & Request.Form(&quot;FileLocat&quot;)); Set rootNode = XMLDoc.documentElement; I get this error back: Expected ')' /home/ViewXML.asp...
  12. emms

    XML from another server with aspx

    ... guess that means no-one knows! does anyone know of any articles that could help me at all? thanks Em
  13. emms

    XML from another server with aspx

    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...
  14. emms

    replacing line breaks with &lt;br&gt;

    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(&quot;Headline&quot;), vbCr, &quot;<br>&quot;); Headline = replace(Request.Form(&quot;Headline &quot;), lr, &quot;<br>&quot;); Headline = Replace(Request.Form(&quot;Headline...
  15. emms

    form variables in runat=&quot;server&quot;

    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
  16. emms

    form variables in runat=&quot;server&quot;

    Hi Kevin, thanks so much for your help with this... however... I changed the code as you suggested so now it reads: <script language=&quot;VB&quot; runat=&quot;server&quot;> Sub Page_Load(sender as Object, e as EventArgs) Dim url as String = &quot;http://.../asp/xmltestfiles/&quot; +...
  17. emms

    form variables in runat=&quot;server&quot;

    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...
  18. emms

    form variables in runat=&quot;server&quot;

    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=&quot;VB&quot; runat=&quot;server&quot;> Sub Page_Load(sender as Object, e as...
  19. emms

    dynamically changing a param value

    thats brilliant guys, thankyou! I'll check it all out on monday. Em

Part and Inventory Search

Back
Top