518 Posted Topics
Re: Hi tekkno, Try the following call with your [b]onclick[/b] event: [code]<a href="javascript:void(0);" onclick="toggle2( ["legend", ...], 'Collapse' );" onmouseover="hide();">...</a>[/code] | |
Re: Hi UncleJoe, I am not quite familiar on using this frameworks. But i suspect, the problem could be on **line #5**, in your code: var myAjax = new Ajax.Request( url, { method : 'get', // Try to provide object reference onto this label(pars). pars : pars, // (OBJECT REFERENCE)?, onComplete … | |
Re: Since we have it all here, then here's another demo that allows you to tranfer user input into selected form. Here's the document sample : [code]<?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html id="xhtml10S" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head profile="http://www.w3.org/2005/10/profile"> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <meta http-equiv="Window-Target" … | |
Re: You could try this code: [code]<?xml version="1.0" encoding="utf-8" standalone="no"?> <?xml-stylesheet type="text/css" href="#css21" media="screen"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html id="xhtml10S" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head profile="http://www.w3.org/2005/10/profile"> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <meta http-equiv="Window-target" content="_top" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <title>Free … | |
Re: You can try something like this inside the callBack function (or requestHandler). [code]var timer = 0; var requestHandler = function() { start = setTimeout( this, 1000 ); var div = document.getElementById("someDivId"); if ( timer === 10 && xmlHttp.readyState !== 4 ) { // If the countdown timer reaches its time … | |
Re: I'm really out of concept, but i hope this help: [code]<?xml version="1.0" encoding="utf-8" standalone="no"?> <?xml-stylesheet type="text/css" href="#css21" media="screen"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html id="xhtml10S" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head profile="http://www.w3.org/2005/10/profile"> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <meta http-equiv="Window-Target" content="_top" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> … | |
Re: Here's a basic sample that you can start with: [code]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <meta http-equiv="Window-target" content="_top"> <title>Free Live Help!</title> <style type="text/css"> <!-- .normal { color : #909090; } .dynamic { … | |
Re: Sorry i am unable to open your attached file. Can you post the actual code, or would you prefer a different sample? | |
Re: A simple demo that will prevent div2 of showing itself if div1 is currently visible on the page: [code]<head> <script type="text/javascript"> <!-- var showDiv = function() { var div1 = document.getElementById("div1"); var div2 = document.getElementById("div2"); if ( div1.style.display === "none" ) { div2.style.display = "block"; return; } div2.style.display = "none"; … | |
Re: Try to use the [icode]validate( /* this parameter can hold 3 classes and can be set to the following variables */ ((( this ) || ( this.id || 'formID' )) || 0 ));[/icode] function provided in this demo along with your forms. [code]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> … | |
Re: Here's a simple demo, that will evaluates all ids of created elements. [code]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html id="html40L" lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <meta http-equiv="Window-target" content="_top"> <title>Free Live Help!</title> <style type="text/css"> <!-- --> </style> <script type="text/javascript"> … | |
Re: Try to run this document inside your server w/o adding or changing anything: [code]<?xml version="1.0" encoding="utf-8" standalone="no"?> <?xml-stylesheet type="text/css" href="#css21" media="screen"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html id="xhtml10S" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head profile="http://www.w3.org/2005/10/profile"> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <meta http-equiv="Window-target" content="_top" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta … | |
Re: Here's a simple document sample, which you can incorporate inside your page: [code]<?xml version="1.0" encoding="utf-8" standalone="no"?> <?xml-stylesheet type="text/css" href="#css21" media="screen"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html id="xhtml10S" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head profile="http://www.w3.org/2005/10/profile"> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <meta http-equiv="Window-target" content="_top" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" … | |
Re: Hi mands, Would you prefer a simple demo? | |
Re: All you need is a good reference that provides brief information about the [b](X)HTML[/b] available tags, attribute usage and including live examples... [url=http://www.december.com/html/4loose/]< Learn Here! >[/url] | |
Re: I'm not sure if this will work: [color=red]startpage[/color] [code]<html> <head> <title>test page</title> <script type="text/javascript"> var submitJArray = function() { var jArray = [ "One", "Two", "Three"]; document.getElementById("hiddenF").value = jArray; };</script> </head> <body> <form id="testform" action="process.php" method="post" onsubmit="return submitJArray();"> <div> <input type="hidden" id="hiddenF" name="hiddenF" value=""> Dummy Field: <input type="text" id="txt" name="txt" … | |
Re: Sorry again [b]Airshow[/b] i've been done doing this, i thought that no one would want to post here. So here is it and throwing out things. [code]<?xml version="1.0" encoding="utf-8" standalone="no"?> <?xml-stylesheet type="text/css" href="#css21" media="screen"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html id="xhtml10S" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head profile="http://www.w3.org/2005/10/profile"> <meta … | |
Re: You should atleast provide us with some post, concerning all the functions that is not working inside your script, so that we can examine it, and give further solutions on those parts. | |
Re: Try it with some [icode]<style>[/icode] block: [code]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <meta http-equiv="Window-target" content="_top"> <title>Free Live Help!</title> <style type="text/css"> <!-- form div { width : 300px; margin : 1em auto; } … | |
Re: You could try this, if you are referring the whole thing in [b]Javascript[/b]: [code=javascript]<?xml version="1.0" encoding="utf-8" standalone="no"?> <?xml-stylesheet type="text/css" href="#css21" media="screen"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html id="xhtml10S" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head profile="http://www.w3.org/2005/10/profile"> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <meta http-equiv="Window-Target" content="_top" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta … | |
Re: Try doing this : [icode]<a href="http://www.someplace.com/" style="text-decoration : none; color : #000000;">http://www.someplace.com</a>[/icode] or if you want to apply it with all the links in your page. [code]<html> <head> <title>Some title</title> <style type="text/css"> <!-- a { text-decoration : none; color : #000; } --> </style> </head> <body> <div> <a href="http://www.link1.com/">Link1</a><br> <a … | |
Re: Using DOM tree method, you will be able to peform this requirements. Here's a simple demo: [code]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html id="html40L" lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <meta http-equiv="Window-target" content="_top"> <title>Free Live Help!</title> <style type="text/css"> <!-- … | |
![]() | Re: Try this one : You can scroll to any element(s) in your page using the [icode]crawl( [color=red]elementID[/color] );[/icode] function. [code]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html id="html40L" lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <meta http-equiv="Window-target" content="_top"> <title>Free Live Help!</title> … ![]() |
Re: Just put it on the page in, where you need those alert. Here's a quick demo that you can try : [code]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html id="html40L" lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <meta http-equiv="Window-target" content="_top"> <title>Free … | |
Re: But if you need to center certain elements in the page, based on the available scrollable width/height of the window, then you can try this demo: [code]<?xml version="1.0" encoding="utf-8" standalone="no"?> <?xml-stylesheet type="text/css" href="#css21" media="screen"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html id="xhtml10S" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head profile="http://www.w3.org/2005/10/profile"> <meta … | |
Re: Try this demo: [code]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html id="html40L" lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <meta http-equiv="Window-target" content="_top"> <title>Free Live Help!</title> </head> <body> <div id="main"> <form id="form" name="form" action="#" onsubmit="return false;"> <div> <fieldset><legend>Test Field</legend><br><br> <input type="text" id="text" … | |
Re: Try this one out: [code]<script type="text/javascript"> <!-- window.onload = function() { if ( window.status === "activated" ) { return false; } window.status = "activated"; var content = ""; content += "<div>\n"; content += '<button onclick="location.href = location.href.replace( document.stats.site.value, document.stats.site.value + '/' );"'; content += ">Search</button>\n"; content += "</div>\n"; (( "writeln" … | |
Re: Sometimes it is easier to understand the work if you understand the basic, rather than having preloaded samples. So i've decided to provide you with some useful [url=https://developer.mozilla.org/en/AJAX/Getting_Started]< LINK >[/url] that provides' short definition/usage, including live examples of [b]AJAX[/b]. But if you really need some live demo, just let us … | |
Re: You could try this demo: This will allow you to send text data on the iframe via input field. — Comes in two separated document(mainpage/iframepage) both file must be uploaded( or saved ) within the same directory. Here's the code for the [b]mainpage[/b]: [color=red]this is the sender page the one … | |
Re: The problem goes with the [b]slot[/b] argument, resulting to 0 value no matter where the count starts. I'll provide you with some brief example later... | |
Re: You could use something like this: [code]<script type="text/javascript"> <!-- var win = function() { window.open( "", "Left-Side", "height=500,width=500,left=0,top=20"); }; window.onload = win; // --> </script>[/code] | |
Re: You could also try this simple variation of using arrays instead of integer values. All codes is as follows: [code]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html id="html40L" lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <meta http-equiv="Window-target" content="_top"> <title>Free Live Help!</title> … | |
Re: Use a single function that will validate the entire fields... | |
Re: If you just want to show of some code, then do it on the snippet section -- not here...! | |
Re: You could use some ajax to strip down the links containing the SWF files. | |
Re: From the [icode]getListValue([color=red]option_object[/color])[/icode] function, try changing the whole block into this format: [code]function getListValue( option_object ) { return option_object[color=red][b].[/b]options[/color][option_object.selectedIndex].value; }[/code] | |
Re: All the 3 functions must be nested, so that it will be able to work on changing the current location of your window. From this demo, the 3 [icode]<select>[/icode] elements, have the same values and options, and copied from your posted code. - Reset all values and options as needed. … | |
Re: Try this one out: [code]<html> <head> <title>PopUp</title> <script id="script15" type="text/javascript"> <!-- var mywin = null; var popUp = function( mypage, winObj, myname, w, h ) { var win; myname = (( myname ) ? myname : document.title ); w = (( w ) ? (( screen.width ) - w ) … | |
Re: Inside the [icode]switch(evt.type) {...}[/icode] statement, you will need to replace this label [icode]case "mouseout" : ...[/icode] with this one: [code]case : "click" imgStyle = document.getElementById( imgClass + "Over" ).style; imgStyle.clip = clipVal; imgStyle.visibility = "hidden"; break;[/code] and from the last part of the label after the [icode]case "mouseup" : ...break;[/icode] … | |
Re: Text manipulation? Did you mean, changing the font ( sizes, color, typeface) and other things, concerning text formatting? | |
Re: You'll need to add some style rule in your page: [code]<html> <head> <title>Test Page</title> <style type="text/css"> <!-- @media print { /* Applies to all the links in the page */ a { display : none; } /* or if you just need to disable specific link */ a#someLinkId { display … | |
Re: You can also try this one: [code]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html id="html40L" lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <title>X-Window</title> <style type="text/css"> <!-- input { display : block; height : 15%; letter-spacing : 4px; margin : .300em 0 … | |
Re: Here's some sample: [code=html] <body> <div style="margin : 0 auto padding : 0; width : auto; overflow : hidden;"> <table style="border : none; border-collapse : collapse; width : 100%; height : auto; min-height : 30px;"> <tr> <td style="width : 30%; padding : .500em;">30% Width</td> <td style="width : 70%; padding : … | |
Re: Try this layout: [code]<?xml version="1.0" encoding="utf-8" standalone="no"?> <?xml-stylesheet type="text/css" href="#css21"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html id="xhtml10S" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head profile="http://www.w3.org/2005/10/profile"> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="Window-target" content="_top" /> <title>Free Live Help!</title> <style id="css21" type="text/css"> /* <![CDATA[ … | |
Re: There's alot of ways to do this. But try this one first, looping from the basic steps using two [icode]for(){}[/icode] statement... [code]<html> <head> <title>Test Page</title> <script type="text/javascript"> <!-- var getChilds = function( root ) { var div; var count = 0; div = document.getElementById("output"); root = document.getElementsByTagName( root ); for … | |
Re: I've done a lite modification in your [b]xml[/b] and [b]html[/b] code. Here's the overall results: [color=red]MusicianList.xml[/color] [code=xml]<?xml version="1.0" encoding="utf-8" standalone="yes" ?> <!DOCTYPE musicians [ <!ELEMENT musicians (musician*)> <!ELEMENT musician (#PCDATA|name|genre|hitsong)*> <!ELEMENT name (#PCDATA)> <!ELEMENT genre (#PCDATA)> <!ELEMENT hitsong (#PCDATA)> ]> <musicians> <musician> <name>Bruce Springsteen</name> <genre>Rock</genre> <hitsong>Born in the USA</hitsong> </musician> … | |
Re: Try this one: [code]<html> <head> <script type="text/javascript"> <!-- var inject = function( targetDiv ) { targetDiv.innerHTML = ""; var content = "<b>This is the text before script</b>\n"; var script = document.createElement("script"); script.type = "text/javascript"; script.id = "script1"; script.innerText = "function injectFunc() { document.write( '<br>This part is written via dynamic injected … | |
Re: This [icode]<br>[/icode] tag is best used in HTML format using( .html extension ) and this [icode]<br />[/icode] tag goes with XHTML (or .xhtml saved document ). | |
Re: Re-implement the following lines inside your [color=red]utility.js[/color]: [code=javascript]var userInfo; var AnalyseFaultCheck = function() { var reasonDropdownList = document.getElementById ("whatisthereasonforfaultslippage"); var statusDropdownList = document.getElementById ("status"); var updateButton = document.getElementById ("update"); var proposedActions = document.getElementById ("proposedactions"); var userInfo = ''; if ( "Duplicate TR" === reasonDropdownList.options [ reasonDropdownList.selectedIndex ].value && proposedActions.value === … | |
Re: Here's a simple demo -- on how to access variable(s) from another function: [code]<?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html id="xhtml10S" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head profile="http://www.w3.org/2005/10/profile"> <!--[if IE]> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <![endif]--> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <title>Free Live … |
The End.