without-jquery

How to invoke .net page methods from javascript without jquery ?

I've been tryin' to use call Page Methods from my own javascript code but it doesn't work. If I use JQuery AJAX Method I can sucessfully call the Page Methods, but the problem is that I need to do this from my own Javascript code because in the place where I work we can't use Third Party Javascript Lybraries and we are building our own l...

$(document).ready equivalent without jQuery

I have a script that uses $(document).ready, but doesn't use anything else from jQuery. I'd like to lighten it up by removing the jquery dependency. How can I implement that functionality without it? It does more than window.onload. ...

OnClick without jQuery

How to make OnClick without jQuery, with no extra code in html, such as: <a href="#" onclick="tramtramtram"> just using an extrnal js file? <script type="text/javascript" src="functions.js"></script> Need to replace this code: $("a.scroll-up, a.scroll-down").click(function(){SNavigate($(this).attr("href").substr(7));return fals...

How do I disable all input buttons without using jQuery?

How would I do this without jQuery? $('input[type=submit]').attr('disabled',true); It doesn't have to be cross-browser compatible; a solution that only works in Firefox is OK. ...

How can I get an object's absolute position on the page in Javascript?

I want to get an object's absolute x,y position on the page in Javascript. How can I do this? I tried obj.offsetTop and obj.offsetLeft, but those only give the position relative to the parent element. I guess I could loop through and add the parent's offset, and its parent's offset, and so on until I get to the object with no parent, ...

How do to wrap a span around a section of text WITHOUT using jQuery

<p>Lorem Ipsum <a href="#">Link</a> <div ... </div> </p> I want to put a span around 'Lorem Ipsum' without using jQuery, so the result looks like: <p><span>Lorem Ipsum </span><a href="#">Link</a> <div ... </div> </p> Any ideas? Thanks ...