Jump to content

Andrew K.

Members
  • Posts

    33
  • Joined

  • Last visited

Previous Fields

  • Languages
    xHTML, CSS, Javascript, SQL, ColdFusion, XML, XSLT, XPath, Schema

Contact Methods

  • Website URL
    http://
  • ICQ
    0

Andrew K.'s Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. className should work just fine.
  2. Hehe, that really lit up my day.
  3. It takes as much effort to do XHTML instead of HTML, why do it wrong and risk losing your page display due to the progression of browsers and loss of support for old coding languages or when in the future you need to showoff a webpage for a job or something, nobody will be impressed that you made a page in HTML when there are millions of other people that can make a page in XHTML.
  4. I completely mis-understood what he wrote, I've been doing that quite alot lately...
  5. Why not just sanitize the input from the server side before putting it in the database?
  6. Try changing document.getElementById('object').style.left="400"; to document.getElementById('object').style.left="400px"; I dunno if it will work, but it should.
  7. I believe document.body.clientHeight and document.body.clientWidth will work.
  8. Okay so I'm using ColdFusion and I'm trying to insert a date into a database.I got the Error Executing Database Query. error and I look at my query and it only makes sense that the date is being entered wrong because the only other values I am entering are numbers and I know how to enter them.So what is the correct way to insert a date (ex. #now()#) into a database?
  9. myElement.onresize = function() { //Write code here}
  10. Correct me if I am wrong but isn't it possible to reference it like this? document.formname.elements["dropdownboxname[]"] ?If you want to make an option selected just do this: document.getElementById("228").selected = 'true' But first you'll have to fix up the id's on those option tags because an id can only be used once per page.
  11. if(document.getElementById('id')) { //do whatever } Should work just fine.
  12. Try this: var xmlHttpfunction showUser(str){xmlHttp=GetXmlHttpObject()if (xmlHttp==null){alert ("Browser does not support HTTP Request")return}var url="selectusers.php"xmlHttp.onreadystatechange=stateChangedxmlHttp.open("POST",url,true)xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");xmlHttp.send("q=" + str)}function stateChanged(){if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){document.getElementById("totalusersDIV").innerHTML=xmlHttp.responseText}}function GetXmlHttpObject(){var xmlHttp=null;try{// Firefox, Opera 8.0+, SafarixmlHttp=new XMLHttpRequest();}catch (e){//Internet Explorertry { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); }catch (e) { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); }}return xmlHttp;} I believe it should work.
  13. Andrew K.

    File Writing

    Okay, thank you very much for your help.
  14. This may or may not work but you could use AJAX to call the files ( Make sure to store the requests in an array so they have a dynamic name because two requests may not be launched with the same name at once ).When the file is called just use the getResponseHeader("Last-Modified") method of the XMLHttpRequest object and it should give you the required data.For number two, AJAX will most likely not launch the files as it returns the data in a text string.
  15. Andrew K.

    File Writing

    Thank you it worked perfectly.Now all I need to know is how to redirect it to the page referrer.
×
×
  • Create New...