User Profile
Collapse
-
Thanks, Finding these references can be impossible if you don't know what to ask. -
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 -
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... -
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 -
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... -
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...Leave a comment:
-
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).
... -
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... -
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,... -
Thanks, I didn't realize that subscriptions and posts were the same.
LeoLeave a comment:
-
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 -
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
Leave a comment:
-
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");Leave a comment:
-
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 -
-
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,
LeoLeave 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 -
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...Leave a comment:
-
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... -
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....Leave a comment:
No activity results to display
Show More
Leave a comment: