Jump to content

S Murder

Members
  • Posts

    101
  • Joined

  • Last visited

Posts posted by S Murder

  1. you could capture the onunload event
    <script>	function unloading()	{		document.getElementById("storage").value = window.location		alert()	}</script><body onunload="unloading()">	<input type="text" id="storage"></input></body>

    It doesn't unload when moving within the page though. I tried the code and the event didn't fire.
  2. oh sorry. As far as I know there is no way to detect or override this. The browser buttons are not part of the webpage. Unless the browser gives access through COM or ActiveX (which I don't think they do) there is no way to do this.Browser history is a known drawback for AJAX applications.
    I found this: http://www.siteexperts.com/tips/functions/ts18/page5.asp.It says you can override JS methods, but I can't get it to work.Can event handlers be applied to the window.location object?
  3. button.onclick ???
    I'm not sure how that would work. I'd need to access to the browser's back button.Is there an event that fires when you navigate between named anchors within a page? Is there a way to override the browser's history.back() method so that it will fire an event?
  4. I'm trying to ensure back button functionality into my AJAX web app where GET values are stored after the hash mark, preventing the page from reloading. I need an event that will fire when the user clicks the back button, but since the page won't reload I can't use onload. Any ideas?

  5. I'm making a site and will have a table that will store a user's contact info, display preferences, and more. In normal form they should all be on the same table, but I anticipate that eventually I might have a hundred rows on each profile table. Aside from being less human readable, will it be any slower? Would it be better to use separate tables with foreign keys referencing a main profile table for different categories of information? If there's less rows, won't SQL use less memory when performing table joins?

  6. The event happens first.Don't know if this applies to your situation or not, but you can stop the page+URL from changing by returning false in the onclick handler code:
    <a href="#info" onclick="somefunction(); return false">Info</a>

    In this example, only "somefunction()" would fire. The browser would not see the request to navigate to the #info anchor because we returned false out of the click handler. The way you might use this in your application could be like this:

    <a href="#info" onclick="somefunction(this.href); return false">Info</a>

    Then, rather than looking at the location.href or location.search to get the "#info", you can simply pass it into the function as a parameter.Hope this helps.

    It does, thanks.There won't actually be an #info anchor, I'll just be putting the GET values after the # in the URL to keep the page from reloading, and upon initial page load or link click the GET values after the # will be changed and the page will be altered with AJAX based on the changed variables.I was also wondering, if I do href="java script:getURL()" where getURL() returns a URL string, will the URL be followed?
  7. No, in this case the load event will not fire. Perhaps you could use the click event for the link?
    <a href="#info" onclick="somefunction();">info</a>

    I'm using anchors to pass variables to the URL without making the page reload (it's for an AJAX app) and I wanted to use regular links instead of JS so that if someone opens the link in a new tab or window or bookmarks the page it will still work. I guess using both a regular link and onclick event would work, so long as I have an onload function calling the same variable evaluation method that onclick does (for when the page is loaded).Do you know whether the page+URL would change first, or would the event fire first?
  8. The load event fires when the document loads in the browser. If your page is called "index.html" and you have a hyperlink on that page that references "index.html", then, yes, when you click on that link, the page will reload, and the load even will fire.
    What I meant was, if I'm viewing index.html and click a link to index.html#info that goes to an anchor within the page (which means it won't reload), will an event fire?
  9. Hmm, I would just use Putty, but I think you've already tried that. You can just telnet to port 25 though, wouldn't that work? If port 25 is open, it should work. Try typing this in a command line:
    telnet 69.93.253.165 25

    If it works, you should see the headers for blazecast6.rdns6.net. If it doesn't work, then port 25 is blocked.

    Thanks. It turns out the port is being blocked.
  10. You would need to communicate with the destination server, because that is the server that has the account information that you are looking for. If you worked with your server, then that would be the same thing as sending an email and watching for it to be bounced back. Testing on localhost would not tell you whether the ports are blocked, when you are connecting to localhost you aren't using the same network routing that you are using when you connect to a server on another network. You'll want to test and see if you can set up a mail client to send mail using some other server, but you would need an email account to do that. You can probably just put in a dummy name and password and try to connect, and even if the server says the name and password was wrong you would know that the connection to the server succeeded. Look up the MX records for something like Google or Yahoo and set up a mail client to try and connect.
    OK, I downloaded Thunderbird and was able to successfully send and receive messages from my Gmail account.I noticed that Gmail setup required a secure connection. Could using an ordinary Java Socket be the problem? Do you know of any SSL or TSL command line clients I could use to test this?
  11. OK, I ended up writing a Java program that basically attempts to telnet into the mail exchange servers and see if the provided email gives an error code. Problem is, the servers won't let me connect on port 25 (for SMTP), and I can't connect to most servers using Putty or the telnet command on Windows either. Any ideas?

  12. Where I work they have a problem where they sent out 3,000 emails and 2,000 bounced back. I need to write a program that will examine the bounce back emails and removed the non-existent addresses from the mailing list. Problem is, I don't see any server response codes when I look at email headers; if there were I could just check for 550 and delete the intended recipient's address from the list. Any idea of how I'd go about this?

  13. Apache is reporting that it cannot find the PHP extension DLLs. Are you giving it the correct path?
    Yeah, it has the right path in php.ini, and I installed it in C:\Program Files. The files the error logs refer to do in fact exist.
  14. Eveytime I try to access a page on my server that has php in it, Apache crashes. The error log shows the following every time it happens:

    PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_exif.dll' - The specified module could not be found.\r\n in Unknown on line 0PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_ifx.dll' - The specified module could not be found.\r\n in Unknown on line 0PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_oci8.dll' - The specified module could not be found.\r\n in Unknown on line 0PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_pdo_oci.dll' - The specified module could not be found.\r\n in Unknown on line 0PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_pdo_oci8.dll' - The specified module could not be found.\r\n in Unknown on line 0PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_pspell.dll' - The specified module could not be found.\r\n in Unknown on line 0PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_sybase_ct.dll' - The specified module could not be found.\r\n in Unknown on line 0PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_ibm_db2.dll' - The specified module could not be found.\r\n in Unknown on line 0PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_imagick.dll' - The specified module could not be found.\r\n in Unknown on line 0PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_ingres.dll' - The specified module could not be found.\r\n in Unknown on line 0PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_netools.dll' - The specified module could not be found.\r\n in Unknown on line 0PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_oracle.dll' - The specified module could not be found.\r\n in Unknown on line 0PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_svn.dll' - The specified module could not be found.\r\n in Unknown on line 0PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_yaz.dll' - The specified procedure could not be found.\r\n in Unknown on line 0PHP Notice:  Constant XML_ELEMENT_NODE already defined in Unknown on line 0PHP Notice:  Constant XML_ATTRIBUTE_NODE already defined in Unknown on line 0PHP Notice:  Constant XML_TEXT_NODE already defined in Unknown on line 0PHP Notice:  Constant XML_CDATA_SECTION_NODE already defined in Unknown on line 0PHP Notice:  Constant XML_ENTITY_REF_NODE already defined in Unknown on line 0PHP Notice:  Constant XML_ENTITY_NODE already defined in Unknown on line 0PHP Notice:  Constant XML_PI_NODE already defined in Unknown on line 0PHP Notice:  Constant XML_COMMENT_NODE already defined in Unknown on line 0PHP Notice:  Constant XML_DOCUMENT_NODE already defined in Unknown on line 0PHP Notice:  Constant XML_DOCUMENT_TYPE_NODE already defined in Unknown on line 0PHP Notice:  Constant XML_DOCUMENT_FRAG_NODE already defined in Unknown on line 0PHP Notice:  Constant XML_NOTATION_NODE already defined in Unknown on line 0PHP Notice:  Constant XML_HTML_DOCUMENT_NODE already defined in Unknown on line 0PHP Notice:  Constant XML_DTD_NODE already defined in Unknown on line 0PHP Notice:  Constant XML_ELEMENT_DECL_NODE already defined in Unknown on line 0PHP Notice:  Constant XML_ATTRIBUTE_DECL_NODE already defined in Unknown on line 0PHP Notice:  Constant XML_ENTITY_DECL_NODE already defined in Unknown on line 0PHP Notice:  Constant XML_NAMESPACE_DECL_NODE already defined in Unknown on line 0PHP Notice:  Constant XML_LOCAL_NAMESPACE already defined in Unknown on line 0PHP Notice:  Constant XML_ATTRIBUTE_CDATA already defined in Unknown on line 0PHP Notice:  Constant XML_ATTRIBUTE_ID already defined in Unknown on line 0PHP Notice:  Constant XML_ATTRIBUTE_IDREF already defined in Unknown on line 0PHP Notice:  Constant XML_ATTRIBUTE_IDREFS already defined in Unknown on line 0PHP Notice:  Constant XML_ATTRIBUTE_ENTITY already defined in Unknown on line 0PHP Notice:  Constant XML_ATTRIBUTE_NMTOKEN already defined in Unknown on line 0PHP Notice:  Constant XML_ATTRIBUTE_NMTOKENS already defined in Unknown on line 0PHP Notice:  Constant XML_ATTRIBUTE_ENUMERATION already defined in Unknown on line 0PHP Notice:  Constant XML_ATTRIBUTE_NOTATION already defined in Unknown on line 0[Mon Jan 29 23:21:59 2007] [notice] Child 7500: Child process is running[Mon Jan 29 23:21:59 2007] [notice] Child 7500: Acquired the start mutex.[Mon Jan 29 23:21:59 2007] [notice] Child 7500: Starting 250 worker threads.[Mon Jan 29 23:21:59 2007] [notice] Child 7500: Starting thread to listen on port 80.[Mon Jan 29 23:22:17 2007] [notice] Parent: child process exited with status 3221225477 -- Restarting.

  15. You said that you changed the post value from "dir" to "file_name". Did you also change that in the javascript?
    Yes. Here's the updated JS:
    //This code displays the selected file		function showFile(newListitem)		{			client = GetXmlHttpObject();			client.open("POST", "showfile.inc", true);			client.setRequestHeader("If-Modified-Since","Sat, 01 Jan 2000 00:00:00 EST");			client.onreadystatechange = fileViewerUpdate;			var sendData = "file_name=foo";			//alert(listitem.id);			client.send(sendData);		}				function fileViewerUpdate()		{			//alert(client.readyState);			if(client.readyState == 4 || client.readyState == "complete")			{				//alert(client.responseText);				fileViewer.innerHTML = client.responseText;			}		}

×
×
  • Create New...