Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,296 members, 7,815,519 topics. Date: Thursday, 02 May 2024 at 01:50 PM

Post Your Javascript/ajax/dhtml Questions Here - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Post Your Javascript/ajax/dhtml Questions Here (899 Views)

The Greatest Programmer On Nairaland / Dhtml Pastebin / Codebin : Run Php/jscript/html Online / Post Ur Vb 6.0 Questions Here (2) (3) (4)

(1) (Reply) (Go Down)

Post Your Javascript/ajax/dhtml Questions Here by Nobody: 7:55pm On Jan 30, 2009
Post all your javascript/ajax/dhtml questions here. Beginners and pros are welcome. If you dont know as much as me, then learn from me, if u know more than me - then please teach me so i will improve.
Having said that, i will be expecting questions, on the various areas involves, this is mainly a question, thrashing out and answer section.
I will only post codes when necessary and point to relevant materials anywhere online when needed.
Everybody is welcome to participate - beginners are given priority, so you can ask any question, no matter how fooolish it may sound to you - even if your question is what is a computer and what is javascript? or is javascript same thing as java!
Re: Post Your Javascript/ajax/dhtml Questions Here by Nobody: 8:27pm On Jan 30, 2009
Meanwhile you can download some free javascripts from my website - www.mwebng.net
Re: Post Your Javascript/ajax/dhtml Questions Here by sherrif222: 9:10pm On Feb 08, 2009
pls do you know how to use hackshop(its an SQL injesction software pls pm @ danielmac1120@yahoo.com
Re: Post Your Javascript/ajax/dhtml Questions Here by Kobojunkie: 6:27pm On Feb 19, 2009
The code below thows a Sys.ArgumentUndefinedException: Value cannot be undefined


Anyidea what is with it as is?


/// <reference name="MicrosoftAjax.js"/>

Type.registerNamespace('Ajax.UserControls');

Ajax.UserControls.ImagePreview = function(element) {
//initialize the base
Ajax.UserControls.ImagePreview.initializeBase(this, [element]);

// Initialize instance level fields
this._DefaultImage = null;
this._PreviewImage = null;
this._changeHandler = null;
this._TargetImageID = null;
}

Ajax.UserControls.ImagePreview.prototype = {
//call initialize on this first
initialize: function() {
debugger;
Ajax.UserControls.ImagePreview.callBaseMethod(this, 'initialize');
// Wire up handler for onmouseover
//var sdelegate = Function.createDelegate(this, this._changeHandler);
this._changeHandler = Function.createDelegate(this, this._onChange);
$addHandler(this.get_element(), 'change', this._changeHandler);
}, //end initialize

dispose: function() {
debugger;
$removeHandler(this.get_element(), 'change', this._changeHandler);
//$clearHandlers(this.get_element());
//Add custom dispose actions here
Ajax.UserControls.ImagePreview.callBaseMethod(this, 'dispose');
}, //end dispose

//Properties

//_defaultimage
get_DefaultImage: function() {
return this._DefaultImage;
},
set_DefaultImage: function(value) {
this._DefaultImage = value;
},
//_previewimageID
get_PreviewImage: function() {
return this._PreviewImage();
},

set_PreviewImage: function(value) {
if (value != this._PreviewImage) {
this._PreviewImage = value;
this.raisePropertyChanged('PreviewImage');
}
},
//_targetImageID
get_TargetImageID: function() {
return this._TargetImageID;
},
set_TargetImageID: function(value) {
this._TargetImageID = value;
},
// Event Handlers
_changeHandler: function(e) {
debugger;
var fileuploadcontrol = this.get_element();
if (fileuploadcontrol)
{
var filename = fileuploadcontrol.value;
if (filename != null)
{
// Get a ref to the image element
var imgcontrol = $get(this._TargetImageID);
//be sure there is an imagecontrol to work with
if (imgcontrol && !imgcontrol.disabled && imgcontrol.src != this.get_PreviewImage())
{
// Set the source to the preview image
imgcontrol.src = this.get_PreviewImage();
}
else
{
if (imgcontrol.src != this.get_DefaultImage)
{
//set it to the disabled image immediately
imgcontrol.src = this.get_DefaultImage();
}
}
}//end filename!=null
}
}

}
Ajax.UserControls.ImagePreview.registerClass('Ajax.UserControls.ImagePreview', Sys.UI.Behavior);

if (typeof (Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();

(1) (Reply)

Financial Modelling & Techniques; Spss / why the unexpected $end / Having A Real Time Conversation On NL

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 13
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.