User Profile

Collapse

Profile Sidebar

Collapse
Leo Smith
Leo Smith
Last Activity: Sep 23 '09, 01:50 PM
Joined: Mar 8 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Leo Smith
    replied to Cursor position in text box
    Thanks, Finding these references can be impossible if you don't know what to ask.
    See more | Go to post

    Leave a comment:


  • Leo Smith
    started a topic Cursor position in text box

    Cursor position in text box

    I would like to know how to get the current cursor position within a text box and set it when necessary. By cursor I mean the insertion point for the text being typed.

    Thanks,

    Leo Smith
    See more | Go to post

  • Leo Smith
    started a topic idle timer

    idle timer

    Hello,

    I would like to find out if anyone has setup a page to track if a page has been idle for a set amount of time. The timer would need to reset anytime something was done on the page. I have done this kind of thing with a windows application by watching the idle event, and by monitoring the root message loop. I am not as familar with the JavaScript event manager to know where to attach the event watcher to cover all events without...
    See more | Go to post

  • Leo Smith
    started a topic CSS 3.0 Style Sheets timeline

    CSS 3.0 Style Sheets timeline

    I release that CSS 3.0 is still new and currently only the latest Safari and possibly the new alpha version of Firefox has support for CSS 3.0, but does anyone know if there is a timeline in which Opera and IE may be including the new settings?



    Thanks,

    Leo Smith
    See more | Go to post

  • Leo Smith
    started a topic Float Element Positions and IE

    Float Element Positions and IE

    I am trying to get the position of an element, and have it working in all the latest browsers other than IE. I want to get the current position on the page. I am using float Left or Right for placing the elements and this has allowed me to skip using tables to layout the page. The draw back I am having, is simply IE gives me the position me the offsetTop as always 0 and I am assuming that left is relative to the current container. How can I get...
    See more | Go to post

  • Leo Smith
    replied to Default button in web form
    I have a simple question. I actually fixed the problem only because the callback for the AJAX call failed due to the event was not fired from the button click. I then took the failure and ensured that it did the click call on the button, thus sending the proper message.

    The question is which event fires when you hit return in an input element (type text)? It doesn't seem to be the onsubmit event for the form or a onkeypress event...
    See more | Go to post

    Leave a comment:


  • Leo Smith
    started a topic Default button in web form

    Default button in web form

    Is there a way to set a button as default in a web form? Current issue is that a return pressed while in the form sends a form submit. This is fine, except I do not want to send a full postback. I am trying to override the postback and use an AJAX call instead. I tried capturing the keypress event in the text box, but it still is requesting a full page submit back to the server (even though I am using an input tag with a button type).
    ...
    See more | Go to post

  • Leo Smith
    started a topic Sleep function in JavaScript

    Sleep function in JavaScript

    Is there a method to put a javascript thread to sleep for a few milliseconds? This would allow for a something to move across the screen on a thread, while still allowing for other actions within the browser to work. I know setInterval can work, but it requires relaunching the functions and writing the values as a global dataset. I would like to know if there is a simple way, that when the action starts, I can pause it without having to create...
    See more | Go to post

  • Header and Footer control with window.print()

    Is there a way to control what is seen in the header and footer of a window when you use the window.print() function? Something similar to the window.open() function that allows viewing or hiding various control bars. I would either like turning off or at least changeing these values. Currently I get the "Page 1 of 1" at the top and the window title, while the bottom gives the page link (I don't mind the date).

    Thanks,...
    See more | Go to post

  • Leo Smith
    replied to Locating my posts
    Thanks, I didn't realize that subscriptions and posts were the same.

    Leo
    See more | Go to post

    Leave a comment:


  • Leo Smith
    started a topic Locating my posts

    Locating my posts

    How do I locate my previous posts? I have a problem that relates to an old post and was already answered. To prevent asking again, I would like to find my answer. Also, how do I enable email when a response is given.

    Thanks,
    Leo Smith
    See more | Go to post

  • Leo Smith
    replied to IsCallback with XMLHttpRequest object
    in .NET
    I came up with a work around (really nothing more than a hack) to make this work. It really isn't very elegant but it gets the job done. Here is the code.

    Client Side JavaScript
    Code:
    //  Setup to use AJAX requests
    // This is function allows for asynchronous communication with server side
    // routines.  This allows for client side updates that will not require postbacks 
    // to the server.  
    var
    ...
    See more | Go to post
    Last edited by Leo Smith; Jun 28 '07, 12:32 PM. Reason: Acidently hit submit before I was ready.

    Leave a comment:


  • Leo Smith
    replied to IsCallback with XMLHttpRequest object
    in .NET
    What I am trying to do is the following code

    Code:
    var xmlRequest
    
    function CreateXMLHttpRequest()
    {
        try
        {   // Newer browsers such as Firefox, Opera and IE 7 use this object
            xmlRequest = new XMLHttpRequest();
        }
        catch(err)
        {   // This is what older versions of IE use (post IE 4)
            xmlRequest = new ActiveXObject("Microsoft.XMLHTTP");
    ...
    See more | Go to post

    Leave a comment:


  • Leo Smith
    started a topic IsCallback with XMLHttpRequest object
    in .NET

    IsCallback with XMLHttpRequest object

    How can I make a return from a standard XMLHttpRequest set the IsCallback on the server? Or how can I capture a result from a post in the OnLoad event, then return a string without having to go through the Rendor and PreRendor events? All I am trying to do is send a post to the server and return a result like the callback routines do without having to place the call on the callback stack.

    Thanks,
    Leo
    See more | Go to post

  • Thanks, this will help alot.
    See more | Go to post

    Leave a comment:


  • This is great. How about formatting the output later, like ensuring that there are decimal places for currency, or commas between thousands and hundreds?

    Thanks again,
    Leo
    See more | Go to post

    Leave a comment:


  • Simple Javascript Format and validation questions

    I need to verify that someone has input a number (any numeric value), and then format the output. What is the simplest way to convert a text value in JavaScript to a numeric, int, or float? Next question is then how can I ensure specific format like #,###.00? Also, where is the best location for JavaScript Classes like String, Boolean, Int...?

    Thanks for any help,
    Leo
    See more | Go to post

  • Leo Smith
    replied to Ajax Execution without an event
    The came when I needed to verify that the user was valid. This becomes an issue when the user has not used the application for a specified time (i.e. 15 min). You may no longer be sure that the user is the one who started the session, so you have to validate the user first. This leaves you with the possibility that the user needs to log back in before you continue the callback. Since I am running the login routine through AJAX callbacks and not...
    See more | Go to post

    Leave a comment:


  • Leo Smith
    started a topic Ajax Execution without an event

    Ajax Execution without an event

    Quick question and I am sure I just can't find the answer here. Is there a way to make an Asynch request from a browser without having to use an event? The only way I have found in ASP.NET is to create an event (i.e. onclick) then from within my javascript have it exe document.getEle mentById('myCon trol').onclick( ). This works, but I find it a bit limiting, especially if I want to make a set of stacked calls to the server, based on settings on...
    See more | Go to post

  • Leo Smith
    replied to Div problems visible in Firefox
    I am not sure this helps, since what you are saying seems a bit vague to me. But I have created a toolbar (has drop lists and/or tables in some of the toolbars) with a shadow image. This are is created with div tags and works for both the latest versions of IE and FF (MAC included). The toolbars are placed across the top of my page and are always visible. When the window is scrolled, the area that is not fixed scrolls under the toolbar area....
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...