Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

twseitex

@twseitex
About
Posts
62
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Bandwidth throttling with Java-script
    T twseitex

    readystatechange event ist useable for AUDIO, see http://msdn.microsoft.com/en-us/library/hh772923(v=vs.85).aspx javascript runs only on client, sou you must use interface to catch state of an element its events like readystatechange-event

    JavaScript java html design sysadmin tools

  • reference type vs. primitive type
    T twseitex

    constructor of "ype "m" is function manager(){...} m = new constructor (...) m is a pointer ! e.g. new Function(...) creates a pointer of a function new Function() is a member of Javascript predefines types (predefined constructor) so manager() runs like new Function() ? function manager() { var anObject = {prop1: 1, prop2: 2}; // local var !!!! // does not exists after the end of constructor // use global var ! . . . return { getMyObject: function(){ return anObject; } // local function !!!! // does not exists after the end of constructor // use global var to save the pointer. }

    JavaScript question javascript visual-studio

  • body onunload
    T twseitex

    BODY object in Internet Explorer, see http://msdn.microsoft.com/en-us/library/ms535205(v=vs.85).aspx

    JavaScript html tools tutorial

  • Trying to compare cancel from prompt dialog not working
    T twseitex

    prompt returns a string var to check an var take if(color!=null) ... to check the value of var take if(color!='') and so on break-statement is not a member of if-statement

    JavaScript tools help

  • Timing issue?
    T twseitex

    format of image must be compatible with browsers. Don't forget mime type (.httaccess file in folder of images) e.g. .gif image/gif .png image/png reload a page (f5) do not reload complete: browser cache may be filled. To test complete loading of page please clear browser cache at first. order of parsing a HTML page: At first HEAD included Javascript and so on AFTER and at last BODY included Javascript. In HEAD do not take a reference at this momen at this BODY must be parsed e.g. document.body object is created AFTER HEAD !! do not use document.body in Head if this reference called before BODY created (parsed).

    JavaScript javascript help tools json question

  • alt attribute displayed when mouse leave
    T twseitex

    you mean that in pure HTML and JavaScript alttt please use attribut TILE too (value of TITLE should be not hte same like value of ALT). try onmouseover for IE onmousedown Fires when the user clicks the object with either mouse button. onmouseenter Fires when the user moves the mouse pointer into the object. onmouseleave Fires when the user moves the mouse pointer outside the boundaries of the object. onmousemove Fires when the user moves the mouse over the object. onmouseout Fires when the user moves the mouse pointer outside the boundaries of the object. onmouseover Fires when the user moves the mouse pointer into the object. onmouseup Fires when the user releases a mouse button while the mouse is over the object. onmousewheel Fires when the wheel button is rotated. ALT alt Sets or retrieves a text alternative to the graphic. SRC src Sets or retrieves a URL to be loaded by the object. ---------------------------------------------------------------------------- alttt var ImgUrlOnMouseover='http://www.html-5.com/images/click-me-hover.png'; var ImgUrlOnMouseout='http://www.html-5.com/images/click-me-normal.png'; function ImgOnMouseXXX(IDOfIMG,state) // state // true onmouseover or onmouseenter // false onmouseout { // params are unchecked var PointerOfIMG; var SrcOfIMG=ImgUrlOnMouseout; // normal var PointerOfIMG=document.getElementById(IDOfIMG); if(PointerOfIMG!=null) { if(state){SrcOfIMG=ImgUrlOnMouseover); PointerOfIMG.src=SrcOfIMG; // need time to request data of img // if you want check time state use readyState } } for IE readyState Property Internet Development Index -------------------------------------------------------------------------------- Retrieves a value that indicates the current state of the object. Syntax HTML N/A Scripting [ sState = ] object.readyState Possible Values sState String that receives one of the following values.uninitialized Object is not initialized with data. loading Object is loading its data. loaded Object

    JavaScript csharp question

  • Hidden field value in javascript
    T twseitex

    check emailAddress emailAddress null pointer ? property .value exists ? range of value of .value ? HTML funktion document.getElementById() uses param during parsing of document so '<%=hfEmail.ClientID%>' must be a real ID or filled BEFORE parsing javascript. put javascript at end of body, no in head (head is parsed at first before body). .... what you want //--> </script></pre> // where is <pre>

    JavaScript csharp javascript tools question

  • Showing Questions Below Answers After The Submit Button Is Pressed?
    T twseitex

    var TrueArray=new Array // numbers only of correct inputs ( 2, // 1 so fist input is correct, 2 so second input is correct ... // false second input is correct ); var TrueArrayLength=TrueArray.length; insert function onkeypress or onmousewover ... what you want 2 foot tall function GetTrueFalse(NumberOfQuestion,NumberOfCorrectfInput) // NumberOfQuestion from 1 to TrueArrayLength // NumberOfCorrectfInput value of field of array at index pos NumberOfQuestion-1 { NumberOfQuestion--; if((NumberOfQuestion>=0) && (NumberOfQuestion0) && (NumberOfCorrectfInput<3)) // 1 or 2 { if(NumberOfCorrectfInput==TrueArray[NumberOfQuestion]) // got number of correct input ? { // correct e.g. alert("bingo!"); } else { // not correct e.g. alert("nope"); } } } } have fun.

    JavaScript question tutorial career

  • include javascript within document write
    T twseitex

    Don't use doument.write() During parsing parts of document (e.g. HEAD-part before body) browser finds script inside of BODY (browser parses body part). In this case the body object is real exist. document.write in use of Internet Explorer may create an NEW BODY and new document. To append objects inside actual document - actual body - please use Javascript functions createElement() and appendElement(). var X01=document.createElement("IMG"); if(X01!=null) {var X02=document.body.appendChild(X01); if (X02!=null) { // X02 is pointer of created object inside body } }

    JavaScript question javascript tools help

  • Please help urgent Conversion of string to array
    T twseitex

    IE String Object (literal) (JScript) Allows manipulation and formatting of text strings and determination and location of substrings within strings. String is not a collection and not array. Use operator + or method concat. To convert a JScript-string into array use method split. To convert a numeric value into String use method parseInt. Syntax newString = new String(["stringLiteral"]) Arguments newString Required. The variable name to which the String object is assigned. stringLiteral Optional. Any group of Unicode characters. Remarks String objects can be created implicitly using string literals. String objects created in this fashion (referred to as standard strings) are treated differently than String objects created using the new operator. All string literals share a common, global string object. If a property is added to a string literal, it is available to all standard string objects: var alpha, beta; alpha = "This is a string"; beta = "This is also a string"; alpha.test = 10; In the previous example, test is now defined for beta and all future string literals. In the following example, however, added properties are treated differently: var gamma, delta; gamma = new String("This is a string"); delta = new String("This is also a string"); gamma.test = 10; In this case, test is not defined for delta. Each String object declared as a new String object has its own set of members. This is the only case where String objects and string literals are handled differently. Properties constructor length prototype Methods anchor big blink bold charAt charCodeAt concat fixed fontcolor fontsize fromCharCode indexOf italics lastIndexOf link match replace search slice small split strike sub substr substring sup toLowerCase toUpperCase toString valueOf Examples // A primitive string. var string1 = "Hello"; // Two distinct String objects with the same value. var StringObject1 = new String(string1); var StringObject2 = new String(string1); // An object converts to a primitive when // comparing an object and a primitive. print(string1 == StringObject1); // Prints true. // Two distinct objects compare as different. print(StringObject1 == StringObject2); // Prints false. // Use the toString() or valueOf() methods to compare object values. print(StringObject1.valueOf() == StringObject2); // Prints true. length Property (String) Returns the length of a String object. strVariable.length "

    JavaScript csharp javascript data-structures help

  • Window.close overriding in java script
    T twseitex

    Only one way function close is a pre-defined property of window object. Please use event bubbling of close() and window. Insert a new funktion that recives this event what you want (event handler). Prototyping of a function ... try it. events of window (IE) Event Description onactivate Fires when the object is set as the active element. onafterprint Fires on the object immediately after its associated document prints or previews for printing. onbeforedeactivate Fires immediately before the activeElement is changed from the current object to another object in the parent document. onbeforeprint Fires on the object before its associated document prints or previews for printing. onbeforeunload Fires prior to a page being unloaded. onblur Fires when the object loses the input focus. oncontrolselect Fires when the user is about to make a control selection of the object. ondeactivate Fires when the activeElement is changed from the current object to another object in the parent document. onerror Fires when an error occurs during object loading. onfocus Fires when the object receives focus. onhelp Fires when the user presses the F1 key while the browser is the active window. onload Fires immediately after the browser loads the object. onmove Fires when the object moves. onmoveend Fires when the object stops moving. onmovestart Fires when the object starts to move. onresize Fires when the size of the object is about to change. onresizeend Fires when the user finishes changing the dimensions of the object in a control selection. onresizestart Fires when the user begins to change the dimensions of the object in a control selection. onscroll Fires when the user repositions the scroll box in the scroll bar on the object. onunload Fires immediately before the object is unloaded. methods of window (IE) Method Description alert Displays a dialog box containing an application-defined message. attachEvent Binds the specified function to an event, so that the function gets called whenever the event fires on the object. blur Causes the element to lose focus and fires the onblur event. clearInterval Cancels the interval previously started using the setInterval method. clearTimeout Cancels a time-out that was set with the setTimeout method. close Closes the current browser window or HTML Application (HTA). confirm Displays a confirmation dialog box that contains an optional message as well as OK and Cancel buttons. createPopup Creates a popup wind

    JavaScript c++ java tools help

  • DropDown onchange event is not working in IE
    T twseitex

    styles of object table only IE are e.g. style.display display Sets or retrieves whether the object is rendered. style.visibility visibility Sets or retrieves whether the content of the object is displayed. visibility only IE visibility Attribute | visibility Syntax HTML { visibility : sVisibility } Scripting object.style.visibility [ = sVisibility ] sVisibility String "inherit" Default "visible" "hidden" Example 1 .vis1 { visibility:visible } .vis2 { visibility:hidden }

    Move the mouse over this text to make the sphere disappear.

    Example 2 function disappear() { oSphere.style.visibility="hidden"; } function reappear() { oSphere.style.visibility="visible"; } Move the mouse over this text to see the sphere disappear. display only IE display Attribute | display Syntax HTML { display : sDisplay } Scripting object.style.display [ = sDisplay ] sDisplay String "block" IE 5.x and above "none" "inline" "inline-block" "list-item" "table-header-group" "table-footer-group" default is "inline" but default is block for ADDRESS BLOCKQUOTE BODY CENTER COL COLGROUP DD DIR DIV DL DT FIELDSET FORM Hn HR IFRAME LEGEND LI unter IE 6.x LISTING MARQUEE MENU OL P PLAINTEXT PRE TABLE TD TH TR UL XMP but default is "none" for BR FRAME nextID TBODY TFOOT THEAD but default is "list-item" for LI IE 6.x and above Example 1 This is a SPAN in a sentence.

    : Example 2 function getPets() { oRow1Cell2.style.display="none"; oRow2Cell2.style.display="block"; oRow3Cell2.style.display="none"; } :

    Horses

    Thoroughbreds

    Fast

    Dogs

    Greyhounds

    Fast

    Marsupia

    JavaScript help question

  • kill the process using javasscript
    T twseitex

    w = new ActiveXObject("WScript.Shell"); that ist Windows Host Script (WHS) and NOT Javascript. ActiveX only useable with windows. Javascript is a languange not only for browsers run unter windows. w.run("taskkill.exe /im notepad.exe"); Use WHS inside browser: Only Internet Explorer.

    JavaScript javascript html linux tools tutorial

  • how to select numbers that is not between single/double cuotes with regular expression
    T twseitex

    read out property .color may be no standadrd value exists. put 123 into container like a DIV and use property .innertext or .innerHTML of DIV</x-turndown>

    JavaScript javascript regex help tutorial

  • loading image before loading video on page
    T twseitex

    status bar otr image/progress bar must be includes by flash. So se webpage of developers of flash plugin. If you want, use HTML-5-audio or -video. For Internet Explorer see http://msdn.microsoft.com/en-us/library/ff975073(v=vs.85).aspx

    JavaScript help javascript css regex

  • Using this.id
    T twseitex

    .id is a property of html element (html DOM), not of a function this is the pointer of an instance like html element inside of html DOM. document.getElementById('A1').AddEventListener("click",Display_Info,false); --> this is the pointer of document.getElementById('A1') param of Display_Info is not exists like pointer or id-string-value

    JavaScript data-structures tools help

  • html5 and java script
    T twseitex

    playlist and player are not the same. playlist in xml format --> script for datas. player in e.g. Javascript --> script for actions in use of datas. So the end of a song --> e.g. inside of player in use of javascript function for timers (duration of song). Please take Google to ceck possible players and owned playlist formats. HTML 5 audio player is inside of every modern browser. Playlist data in different ways possible. E.g. JSon, oder Array, oder xml (in use of xml DOM) or pure html code. If you want see my webpage (twseiten.com) for HTML-5-player or BGSOUND-Player (older MS Internet Explorer). In use of plugins like Flash or Java other players possible inside of HTML-5-Webpage. visual studio2010 .... in use of MS Internet Explorer: This browser may be not compatible to other browsers (e.g. webkit-browser Firefox, Opera becomes a webkit browser). Other IDE .. Eclipse for Javascript AND webkit browser useable. Often browsers have an own GUI to edit and debug html- and javasvcript code. Often only for webkit. JavaScript Based Radio Player - see above of this entry in forum.

    JavaScript java javascript html tools tutorial

  • how to get currently running application names using JAVA Script
    T twseitex

    client and server connections - use JAVA (Oracle), not JavaScript.

    JavaScript java com sysadmin tools tutorial

  • JavaScript Based Radio Player
    T twseitex

    Streamed data Please use a server for streaming. Adobe server is not freeware. Adobe Action Script is not compatible every time (non compatibles upgrades and not cheap). WebM (HTML-5-audio) can be streamed. Ogg-format too. Security of streaming: Maybe server an folder of audio data must be on same host. Javacript only client language. WebM-player (streamed WebM too) is a component of html-5-browsers. Flash not. Player controls in use of JavaScript - yes. I have a webpage (twseiten.com) - there e.g. client side html-5-player but NOT streamed data.

    JavaScript javascript html com adobe question

  • JavaScript: How to reference user control inside content page?
    T twseitex

    Represents an open window in the browser. Members Table The following table lists the members exposed by the window object. Click a tab on the left to choose the type of member you want to view. Attributes/Properties Show: Attributes/Properties Collections Events Methods Objects Property Description closed Retrieves whether the referenced window is closed. defaultStatus Sets or retrieves the default message displayed in the status bar at the bottom of the window. dialogArguments Retrieves the variable or array of variables passed into the modal dialog window. dialogHeight Sets or retrieves the height of the modal dialog window. dialogLeft Sets or retrieves the left coordinate of the modal dialog window. dialogTop Sets or retrieves the top coordinate of the modal dialog window. dialogWidth Sets or retrieves the width of the modal dialog window. frameElement Retrieves the frame or iframe object that is hosting the window in the parent document. length Sets or retrieves the number of objects in a collection. name Sets or retrieves a value that indicates the window name. offscreenBuffering Sets or retrieves whether objects are drawn offscreen before being made visible to the user. opener Sets or retrieves a reference to the window that created the current window. parent Retrieves the parent of the window in the object hierarchy. returnValue Sets or retrieves the value returned from the modal dialog window. screenLeft Retrieves the x-coordinate of the upper left-hand corner of the browser's client area, relative to the upper left-hand corner of the screen. screenTop Retrieves the y-coordinate of the top corner of the browser's client area, relative to the top corner of the screen. self Retrieves a reference to the current window or frame. status Sets or retrieves the message in the status bar at the bottom of the window. top Retrieves the topmost ancestor window. Attributes/Properties Collections Collection Description frames Retrieves a collection of all window objects defined by the given document or defined by the document associated with the given window. Events Event Description onactivate Fires when the object is set as the active element. onafterprint Fires on the object immediately after its associated document prints or previews for printing. onbeforedeactivate Fires immediately before the activeElement is changed from the current object to another object in the parent document. onbeforeprint

    JavaScript question csharp javascript css asp-net
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups