ScriptManager.RegisterStartupScript
Where does RegisterStartupScript() actually put the JavaScript in the rendered document? We use this extensively to trigger JavaScript from the codebehind, and I've always wondered how the hell this works. ...
Where does RegisterStartupScript() actually put the JavaScript in the rendered document? We use this extensively to trigger JavaScript from the codebehind, and I've always wondered how the hell this works. ...
I’m currently working on this theme : http://tf.ffffffive.com/fancy/ I just need a few pointers on how to get it working in IE6 and IE7 . -The positioning is a bit off. -If you guys have a helpful blog post of maybe give me a hand with some CSS coding I would really appreciate it. Also the Javascript scrolling effect isn't working co...
I think i put the anonymous function in there wrong... when it outputs listzonebuffs it includes the function(){... part. function load(zone){ setupzonebuffs(zone); document.getElementById('zonetitle').innerHTML=zone; listzonebuffs=""; if(zonebuffs['B']!=1){listzonebuffs+="<span class=\'"+function(){if(zonebuffs["B"]>1){return "good"...
Hi, I am using this JQuery autocomplete plugin. It works, and it's simple. But there's a slight problem... $("#q").autocomplete('/misc/autocomplete/', {autoFill:false,multiple:true, multipleSeparator:''}); When that happens, everytime I push a key into #q, it will call that misc/autocomplete/ website. If I search for cat, it will ca...
var obj = {} obj.__setitem__ = function(key, value){ this[key] = value * value } obj.x = 2 // 4 obj.y = 3 // 9 JavaScript doesn't have __setitem__ and this example obviously doesn't work. In python __setitem__ works like: class CustomDict(dict): def __setitem__(self, key, value): super(CustomDict, self).__setitem__(key, val...
In Internet explorer, when there's a JavaScript error, I get a little popup that tells me so. This doesn't happen in FireFox 3. How do I enable this in FF? I realize this isn't a programming question per se (please don't close this question; forgive me!), but I'm trying to debug some JavaScript and it'd be really nice to see these messa...
Hi, I need to show an image next to about 6 textboxes...I dont want to use div tags as these vary in position with IE/firefox etc. Is there a simple way to display a small image next to a textbox? such as using :after in css? Cheers ...
Is it possible to open a custom IE window (i.e no status bar or address bar etc) from within flex? or if i call a php file or html file can the page customize itself when loaded? ...
I'm trying to output a PDF using server side javascript (ASP). The current method I'm using is: xfile=Server.MapPath(lib.fso.GetTempName()) xf=lib.fopen(xfile,"wb"); lib.fwrite(xf,this.buffer); lib.fclose(xf); outB = Server.CreateObject("ADODB.Stream") outB.Type = 1 outB.Open() outB.LoadFromFile (xfile) Response.BinaryWrite(outB.Read()...
Trying to understand how jquery works under the covers, what's the difference between: jQuery.fn and jQuery.prototype jQuery = window.jQuery = window.$ = function( selector, context ) { // The jQuery object is actually just the init constructor 'enhanced' return new jQuery.fn.init( selector, context ); }, and then: jQuery....
Hi I'm new to JQuery. I have an two issues that I can't figure out. I'm using copy and past code as I'm on a tight deadline. 1) When I hover over a link it doesn't fade back to the original color once I move my mouse away from the link. 2) If I move my mouse rapidly over the links they get stuck in a loop and fade in and out over and o...
I am doing some prototyping using HTML, JavaScript and CSS. The prototype is for an application suite to run on a mobile device. Each screen is built in it's own DIV. There is one home screen, several screens off that, et cetera. The user should be able to dump out to the home screen at any time. There are certain elements in each scree...
Lots of useful libraries have been built on top of Javascript but I never hear of any changes to the Javascript language itself. Is Javascript evolving or is it essentially frozen? ...
I have no experience with using JS to work inside a textarea. I know it's doable as I've seen it. Links anyone? ...
I have the some text loaded in light box with background faded. i want the print button in the light box so that when user click on that only the contents of light box is printed and printer box opens up. How to do that?? ...
Hey everyone - I'm having some difficulties properly getting a return value from one of my Javascript callback functions, and it looks to be dependent on a race condition, but I'm not sure: JSOBJ.container = function() { return { getName: function() { var value; companyfn.app.getInfo(callback); function callback(foo) ...
Howdy, I have a activex control that I've written using ATL, and am running into a somewhat serious and confusing problem. when iDispatch::Invoke is called with DISPATCH_PROPERTYPUT/METHOD everything is fine.. when a return a value to javascript/ie after a method call of a VT_BSTR/with a valid BSTR it works fine and has been. but wh...
I have a count down timer in javascript. Once the timer is 0 seconds, I want the page to run the code in button1_click event handler. Scenario: I am doing a quiz engine. When the time finishes, the quiz responses has to be submitted for which I want to run the button1_click event handler. Please give me some ideas. ...
Hello, Say there is a div that has content and a youtube link. I want to grab that youtube link and embed it. <div id="content"><p>Here is a cool video. Check it out: http://www.youtube.com/watch?v=oHg5SJYRHA0</p></div> I want to grab the link and replace it with the embed code with js (jquery). Update 1: This is my j...
When designing the interaction for websites and using javascript it is always important to make sure it degrades gracefully. That said, how many people cannot see content because they lack javascript. When working with ajax calls, you create pages people can be taken to when they don't have js. The practice is to default to those pages, ...