javascript

ASP.NET: JavaScript object Component for Composite Control

Hi! I have two doubts: 1. I would like to add some client side support for my server composite control but I can't find the correct way to add JavaScript to him. 2. Another feature I would like to have for the client-side support is to have my JavaScript component object returned through $find(id, parent) (shortcut to findComponent me...

Content offset in Javascript

I want to create my own implementation of a div with scroll, without using overflow: scroll; But I can't seem to figure out how to get the content offset of a div, does anyone know? ...

createTextRange - strange behavior in IE8

Hi all, I have the following problem. In text input filed which work as an auto-completer some of suggestions it returns are wither than it. The problem comes when you leave the field. In IE the text cursor is positioned on the end of the suggested string, so you can actually see only the last part of it. So I used the code bellow to fi...

Javascript/DOM Why is does my form not support submit()?

This is my first time working with asp.net and javascript, so I don't know a lot of the nice web resources, or much about debugging javascript. I'm looking to find out why on line oFormObject.submit(); Microsoft JScript runtime error: Object doesn't support this property or method. I'm using links to function as buttons because I'm t...

Duplicate Flex Object in HTML without Re-Initializing

I am creating a flash object that does some heavy image lifting. What I am looking to do is load many flash objects onto the same page to take an image, modify it, and display it within the flash object. The problem I am running into is that when I try to add 100 flex objects to the page, the browser freezes as it tries to re-load/initi...

Javascript: attaching OOP methods to events and the 'this' keyword

I am new to OOP Javascript and am having trouble with the this keyword and events. What I'm trying to achieve is: I have multiple DOM objects and want to not only bind a common event to them, but keep some data about the aforementioned objects in a global container (to increase runtime performance). So what I do is basically this: f...

Simple String and variable problem using jQuery

I'm trying to add my var to this string: var liPad = 20; $(this).css({'width' : width , 'height' : height, 'padding' : "'0px' + liPad + 'px'"}); To make it work like this: $(this).css({'width' : width , 'height' : height, 'padding' : '0 20px'}); Can't figure out how to make it work. Any help would be appreciated. ...

call javascript from control with ValidationGroup.

How can I call a js function from the "onclientclick event" of a button if this button has a ValidationGroup set ?? <asp:Button ID="btnTest" runat="server" Text="Test" OnClick="btnTest_Click" ValidationGroup="ValidateMail" OnClientClick="javascript:return checkTest()" /> <script> checkTest() { ...

jquery attribute selector problem: Dynamic attribute selector

My code is here $("a[href=$.jqURL.url()]").hide(); $.jqURL.url() return current page url. But this code don't work Is it possible to select dynamically? ...

Scraping single table from HTML using JavaScript

Here's my problem: there's an internal issue tracking system that has a nice summary page (number of open issues broken down by developer, etc.) However, the compact summary table is surrounded by boilerplate cruft (navigational menu, search box, etc.) I'd like to embed the summary table on our team's page, but not the surrounding cruft...

ASP.NET & Ajax: query string parameters using ISO-8859-1 encoding

Hi there, folks Here's another one for you to help me solve: I have an ASP.NET website that uses AJAX (asynchronous) calls to am .ashx handler, passing a query string parameter to get some information from the database. Here's an example of how it works: Client-side (Javascript) code snippet that makes the asynchronous call to the han...

How can I preserve the page scroll position when opening a dialog in response to a link trigger?

I would like to know how I can maintain the scroll position when I open a jQuery dialog. Here is the code I'm using to open my dialog: <a class="link" onclick="openmyDialog();" href="#">Open a dialog</a> And the function : function openmyDialog() { $("#dialog").dialog('destroy'); $("#dialog").html("msg"); $("#dialog").di...

Get next date from weekday in JavaScript

Dear coding gurus, would you be so kind and tell me if this is possible in JavaScript to return the next date of given weekday (it could be either a number 0-6 or names Sunday-Saturday). Example, if today, on 16-Oct-2009 I passed in: Friday, it would return today's date 16-Oct-2009 Saturday returned 17-Oct-2009 Thursday returned 22-O...

Is there a way to get a Telerik RadEditor to not show the toolbar by default when editor.set_html(value) is called in ShowOnFocus mode?

I'm trying to simulate keypresses and clicks in jQuery, which is working to blur the toolbar in IE6 but in Firefox it seems to remain open. Is there some way to blur the editor or some setting that I'm missing that makes it so that it doesn't steal focus and show the toolbar by default? Update it is showing up because I am calling edi...

How do you store an image(itself not the path) in a javascript varialble and then render it to the web page using javascript also (all process shoul be client-side)?

Hello, all, I am trying to find out a way to put a small jpg inside a javascript variable so that it can be rendered to the webpage. Even though i think this should be possible i don't exactly know how to go about this. So all should happen in client-side. Does anyone know how to do this? Thanks in advance Mario ...

how to handle any javascript load finished event using jquery

I have a blog. I'm insert yahoo pipe. I need to remove yahoo pipe icon after script load finish. script is here>> <script src="http://l.yimg.com/a/i/us/pps/listbadge_1.1.js"&gt; {"pipe_id":"24f8f6a880eb3be0711d541","_btype":"list","width":"100%","hideHeader":true} </script> My code is here>> $("script[src=http://l.yimg.com/a/i/u...

Should I use ScriptSharp

Hi, I am developing my first ASP.NET MVC application and I beleive that Script# can help me a lot. But it cannot find the resource necessary to support my development. I could not find The codeplex site; There is only one manual, which is very good, but it is not enough; I could find very few tutorials; I know that Script# was used to ...

Javascript: Detect when move a browser window

Is there any way to know for events when move a window with "window.open"?. It may be with javascript or using jQuery Thank you. ...

Javascript + MVC + UI

Hey! I'm looking for fresh ways of programming in javascript. My goal is to create javascript application like GMail. I tried GWT but it seams so complicated and the code isn't stylish. I found MVC patteren to be a good way of programming. I always have problems organizing the code in javascript. When I use CakePHP or RoR, everything ...

all ajax ready event on jquery

i'm using $(document).ready but that will not work for all ajax ready. I need a callback event after all ajax load finished in jquery. How to write this event using jquery? ...