Jump to content

joecool2005

Members
  • Posts

    245
  • Joined

  • Last visited

Everything posted by joecool2005

  1. The whole code right now is using <%@ Language=JavaScript%>. If I change it to <%@ LANGUAGE="VBSCRIPT" %>, my code will screw up.
  2. Hi,When I put this <%@ Language=JavaScript%> on my code , the following function in ASP does not work. This function is use to write text on text file.How can I fix it?<%sub writeLog(text) Dim objFSO, objFile Set objFSO=Server.CreateObject("Scripting.FileSystemObject") Set objFile=objFSO.OpenTextFile("log.txt", 8, True) objFile.WriteLine(text) objFile.Close Set objFile=Nothing Set objFSO=Nothingend sub%>
  3. When I do this, it doesn't work for the single quote.name=O'Gradyname=Replace(name,"'","''")Response.Redirect("test.asp?myName="&name)
  4. Hi,On my code, how do I pass a variable with a quote like this ?http://myPage.com/new.asp?name=O'GradyIt returned me an error all the time.Thx for your help
  5. This an example of the text area:----------------------------------------------------------------------------------------------------------------Our site is full of information about our personal income tax products including Frequently Asked Questions, a product tour and tax links. Click here to learn more about UFile Online product.Click here to read about more about UFile for Windows.If you cannot find your answer on the UFile Web site, please feel free to use this query form. ----------------------------------------------------------------------------------------------------------------if I write like, it works----------------------------------------------------------------------------------------------------------------Our site is full of information about our personal income tax products including Frequently Asked Questions, a product tour and tax links. Click here to learn more about UFile Online product. Click here to read about more about UFile for Windows. If you cannot find your answer on the UFile Web site, please feel free to use this query form.----------------------------------------------------------------------------------------------------------------
  6. Hi,When my <textarea> is too long with spaces and carriage, my asp page is not able to read all the text area?What I should do?Thx
  7. When I have this html line<input type="text" name="Using" value="windows" projectId="-214748631" folderId="-2147483608">How can I get the projectId and folderId on my asp page?Can I use the Request.Form ou Request.QueryString to get those attributes?thx
  8. Hi,When I have an error on my image, how can I replace it with another image?(I want to replace image.gif with another one)<img src="image.gif" onerror="alert('The image could not be loaded.')"> thx
  9. Hi,I have a cookie like thisResponse.Cookies("firstname")="Alex"How do I delete it?Thx
  10. Hi,I want to write something beside the table, but I'm not able to write. It always goes to the next line.How?<table > <tr> <td align=right nowrap> <input type="text" size="3" value="ee"> </td> </tr></table>testing
  11. Is it possible to determine how many decimals that I have because is not always 10.
  12. Hi,When I do the following code, it will show me 1e-10 var str=0.0000000001document.write(str)Is it possible to show 0.0000000001?Thx
  13. When the time of the session is out, how can I put back automatically to 20 min?I know that I have to do this but I don't know where and when.Session.Timeout=20
  14. Hi,When the user click on the back button on the browser, how do you clear the data on a form and make a session expired?I used this but it did not work on firefox.Response.AddHeader("pragma","no-cache");Response.AddHeader("cache-control","private");Response.CacheControl = "no-cache"; Response.Expires = -1; Thx
  15. Try this example html code<a href="java script:void(0)" onclick="window.open('https://secure.drtax.ca/ufileshop/2006/storespec.asp')">2006</a><a href="java script:void(0)" onclick="window.open('https://secure.drtax.ca/ufileshop/2005/storespec.asp?taxyear=2005')">2005</a>Click on 2006 first, a child window will open and you will see a line written "UFile 2006 for Windows". Then close the child window and click on 2005. You are suppose to see a line written "UFile 2005 for Windows". That's not the case. It showed "UFile 2006 for Windows" because of the session variable Session("year") is still alived. Both link you use the same global.asaIf you close all the windows et redo the same exercice this time by clicking on 2005 first you will see "UFile 2005 for Windows" for both link.Thx for your help
  16. Hi,How do I kill a session when the user close the window?I added these lines on my global.asa and the session is still alive.function Session_OnEnd() { Session.Contents.RemoveAll(); Session.Abandon();}ThxJoe
  17. Hi,How do you count the number of days if my expire date is 2007/02/28?
  18. I have created a page that calls ServiceWeb = "https://wwwd.tp1.mrq.gouv.qc.ca/t3services/T3Roi029.wsdl"Set soapClient3 = CreateObject("MSSOAP.SoapClient30")Call soapClient3.MSSoapInit(ServiceWeb, "", "", "")It works fine on my local machine. But when I deployed on the server, it gave me this errorWSDLReader error '80020009' WSDLReader:XML Parser failed at linenumber 1, lineposition 0, reason is: No data is available for the requested resource. HRESULT=0x1: Incorrect function. - WSDLReader:Loading of the WSDL file failed HRESULT=0x80070057: The parameter is incorrect. - Client:One of the parameters supplied is invalid. HRESULT=0x80070057: The parameter is incorrect. Can anyone help me?ThxJoe
  19. I've tried it and it did not load. It returned me an error on the load function.
  20. Hi,How do you load an xml file from a URL?I tried this and it did not work.var xmlDoc=new ActiveXObject("Microsoft.XMLDOM");xmlDoc.async="false";xmlDoc.load("http://www.w3schools.com/xml/note.xml"); ThxJoe
  21. Hi,When I call like thisdocXML.load("http://wally/test/dthost/dtupdcat.xml")it does not work. But when I test the link on the browser, it works!When I called like thisdocXML.load("E:\inetpub\test\dthost\dtupdcat.xml")it works.Can somebody tell me why I can not call the server name?ThxJoe
  22. joecool2005

    load function

    Hi,By calling this functionxmlDoc.load("note.xml")I want to know, if the function above will display on the screen the content of "note.xml"?If no, what it does?Thx Joe
  23. Hi,I have text box like this-----------------------------------------------------------------------------<table width="700"><tr><td ><input type="text" name="a1"></td><td ><input type="text" name="a2"></td><td ><input type="text" name="a3"></td><td ><input type="text" name="a4"></td></tr><tr><td ><input type="text" name="b1"></td><td ><input type="text" name="b2"></td><td ><input type="text" name="b3"></td><td ><input type="text" name="b4"></td></tr></table>-----------------------------------------------------------------------------How can I loop through all text box? Do I have to change the name for each text box to loop easier?ThxJoe
  24. Hi,When I do thisset catxmldoc = server.CreateObject("Microsoft.XMLDOM")...catxmldoc.save(Response)It displays in HTML. How do I display it in HTML?ThxJoe
  25. joecool2005

    get URL

    Hi,How do I get the URL of the current page in ASP?ThxJoe
×
×
  • Create New...