518 Posted Topics

Member Avatar for itsjareds
Member Avatar for fizmo

Another Demo: We'l just start with the first 4 cheboxes in your form, you can then continue adding those remaining checkboxes inside the table collection(s). Here's the code : [code]<?xml version="1.0" encoding="utf-8" standalone="no"?> <?xml-stylesheet type="text/css" href="#ccs21" media="all"?> <!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"> …

Member Avatar for fizmo
0
140
Member Avatar for schwarznavy

Lost in the archive section, but this may come in handy for the other viewers' on this site. This is a revision of the first posted version of the crossFader script, and now comes with a text rotator upgrade. [code]<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> …

Member Avatar for FeralReason
0
1K
Member Avatar for Kligham

You can try this one, but don't trust my PHP syntax. [code]<script type="text/javascript"> <!-- var jsArray = [ ]; <?php $phpArray = new Array("pOne", "pTwo", "pThree"); foreach( $phpArray as $toJsArray => $convert ) { echo "jsArray[ $toJsArray ] = $convert"; } ?> // jsArray now hold items from the phpArrays. …

Member Avatar for Kligham
0
184
Member Avatar for jyotiu

Try this demo: [code]<?xml version="1.0" encoding="utf-8" standalone="no"?> <?xml-stylesheet type="text/css" href="#ccs21" media="all"?> <!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-Style-Type" content="text/css" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <title>Free Live Help!</title> <style …

Member Avatar for essential
0
170
Member Avatar for nzcreativeweb

You can simply define your own tags using a plain [b]XML[/b] document, and then collaborate its way using simple scripts that will evaluates your tags on the browser. Here's simple tag examples created in plain [b]XML[/b] document format: [code=xml]<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE myevents [ <!ELEMENT myevents (event*)> <!ELEMENT event (#PCDATA|hour|minute|info)*> …

Member Avatar for Airshow
0
100
Member Avatar for Merlin33069

Try this first on the image that corresponds to your ajax call: [code]<img src='../images/loading.gif' style="display : block; width : auto; height : auto; margin : 0 auto;" />[/code]

Member Avatar for Merlin33069
0
127
Member Avatar for Xessa

You can try this demo: [code]<?xml version="1.0" encoding="utf-8" standalone="no"?> <?xml-stylesheet type="text/css" href="#ccs21" media="all"?> <!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-Style-Type" content="text/css" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <title>Free Live …

Member Avatar for essential
0
127
Member Avatar for samarudge

Here's the modified version of your code: [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-Style-Type" content="text/css" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <title>Free Live Help!</title> <script …

Member Avatar for essential
0
161
Member Avatar for Xessa

If you where just referring back to the parent window, then you can do the following code: [code]<script id="script15" type="text/javascript"> <!-- window.onload = function() { window.open("somepage.html"); top.focus(); // gains back the focus to the parent window. }; // --> </script>[/code]

Member Avatar for essential
0
86
Member Avatar for sussy123

You'll need to provide different stylesheet's, that handles layout(s) in different types of browsers.

Member Avatar for MJ Pieterse
0
79
Member Avatar for jay.barnes

This is one of the two lines' that causing you all the troubles, in your [icode]<select></select>[/icode] elements. [code]<select name="Origin_Country"onChange="showStates([b]this.value[/b] /* undefined value: since select element cannot provide value itself.*/ )">[/code] Change the above code into this format: [code]<select name="Origin_Country" [color=green]onchange[/color]="showStates( [color=red]this.options[ this.selectedIndex ].value[/color] );">[/code] Do the same thing with other …

Member Avatar for jay.barnes
0
317
Member Avatar for gagan22

Try to apply this with your select element: [code]<select id="sel" name="sel" style="min-width: 300px; max-width: 300px; width : 300px;" size="1">[/code] you can do the same thing with height.

Member Avatar for almostbob
0
99
Member Avatar for cguan_77

Simple table layout sample: controlling table layout using CSS and also serves as a valid XHTML 1.0 Strict document. [code]<?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/css" href="#internal" media="all"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html 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 …

Member Avatar for essential
0
155
Member Avatar for Dio1080

I've shortened out your code and skipped some of the unecessary lines inside the two constructors. You'll need to run this entire document, to see the actual effects of the two functions. Here's the code: [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"> …

Member Avatar for Dio1080
0
155
Member Avatar for Xessa

Here's Another example: [color=green]checknum.js[/color] [code]var checknum = function( form ) { var val = form.num.value; // Get the UI value. var typ = (( isNaN( val ) ) ? val + " is a string." : val + " is a number." ); // Defines the type of UI value. …

Member Avatar for essential
0
136
Member Avatar for asemakula

Try this one out and run the whole document, and see if it will fit what you need: [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-Script-Type" content="text/javascript"> <title>Free Live Help!</title> <style type="text/css"> <!-- div#main { color : …

Member Avatar for asemakula
0
179
Member Avatar for ankitjain_dce

Getting variables or functions from external script, requires page caching, so accessing this file via dynamic insertion, is impossible without reloading the page for caching its content -- And also reloading the page is not part of this idea. But there's 2 options to acomplish this: [b]1.[/b] is to make …

Member Avatar for ankitjain_dce
0
7K
Member Avatar for nikk

Here's a short example of controlling divs display using a single function. All codes is as follows: [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="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta …

Member Avatar for essential
0
216
Member Avatar for ghaith

Im not sure if this what you need, but i hope it helps. [code]<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html id="xhtml10T" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" > <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <jdoc:include type="head" /> <style type="text/css"> /* <![CDATA[ */ img { border : none; } …

Member Avatar for essential
0
111
Member Avatar for Xessa
Member Avatar for essential
0
107
Member Avatar for sw41

Im not sure if this is what you exactly need! But i hope this will help [code=javascript]<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <title>Test Page</title> <style type="text/css"> /* …

Member Avatar for infamousjre
0
1K
Member Avatar for lavipc

Did you mean, a link on every cities? Could you be more specific on explaining the concept of your issue. Because, If you are just referring for a link on particular city, then you can simply use anchors to do it: e.g. [icode]<a href="someCity.html">Go to someCity</a>[/icode]

Member Avatar for aashishn86
0
147
Member Avatar for Potato.Head

You can center the whole div without spending too much time on the script. Just add this [b]rule[/b] inside your main div ("MyDiv") that holds the entire content, [icode]margin : 0 auto;[/icode]. If it does solved the issue, don't forget to marked your thread solved. Thanks...

Member Avatar for essential
0
128
Member Avatar for realnsleo

Go with this simple pattern [icode]/^[a-zA-Z\.\s]+$/;[/icode] , and also excluding the use of digits in the field. This pattern will allow the user to enter character's from [color=red]A-Z, a-z[/color] including dots and white spaces. Hope it helps...

Member Avatar for essential
0
85
Member Avatar for Potato.Head

Try something like this: [code]<div style="width: 375px; max-width : 376px; height : 250px; max-height : 251px;"><div style="border : 1px solid #048ab6; overflow: hidden; background-color : #f7f7f7"><img src="Warning.png" style="border : none; margin : 0 auto 1em auto; display: block;" alt="test pic"> <img src="pagerror.png" style="border : none; margin : 0 auto 1em …

Member Avatar for Potato.Head
0
106
Member Avatar for neclark2

Try to implement this on your divs that shows and hide's different contents: [code]var someDiv = (( document.getElementById ) ? document.getElementById("yourDivId") : (( document.all && !document.getElementById ) ? document.all["yourDivId"] : document.layers["yourDivId"] )); someDiv.className = "someClassName"; alert( someDiv.id ); // You can call it, any way you want. >>[/code]

Member Avatar for neclark2
0
116
Member Avatar for 7gakki

Excluding the use of bugFixing tools-- you can simply remove all [icode]<script></script>[/icode] blocks inside your page and bring them back one by one, test the page then refresh your browser. If you find the block, simply post it back here again for help...

Member Avatar for essential
0
166
Member Avatar for itisnot_me
Member Avatar for BigGJonsey

This will achieved what you entirely needed! To be able to work on this script, you must obtained the following procedure. [b]INSTRUCTION:[/b] All (x)HTML documents' that will be loaded inside the iframe, including the iframe page, must include the [color=red]resize.js[/color] inside its content using [icode]<script type="text/javascript" src="./[color=red]resize.js[/color]"></script>[/icode] block. [b]NOTE[/b] Supported …

Member Avatar for Airshow
0
209
Member Avatar for davidomurchu

If you're creating a Web document ( or htm/html/xhtml etc. ) in a text editor and want view the file that you're working on, simply save your work and open the file in your browser. You can then continue to edit, save your work, and view the results, switching back …

Member Avatar for MidiMagic
0
69
Member Avatar for ingrammusic

Just provide wrapper's or tubes inside your floated div to preserved the whole layout. Try this one: [code=html]<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html id="xhtml10" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <title>Floating div</title> <style …

Member Avatar for MidiMagic
0
145
Member Avatar for arvindikchari

You'll need to set it right floated, instead of having it floated on the left. e.g. [code]#col { float : right; clear : right; /* your next rule */ }[/code]

Member Avatar for essential
0
95
Member Avatar for Bob Arctor

Here's another example, that allow's you to inject elements inside the targeted div and also lets you clear the whole injected content, by clicking on the same link again. Comes with a single function [icode]ChangeText()[/icode]. All codes is as follows: [code]<html> <head> <title>Test Page</title> <script type="text/javascript"> function ChangeText( ids ) …

Member Avatar for Bob Arctor
0
516
Member Avatar for vishalkhialani

Controlling page layout's in different browsers is a big mess, but you can apply some workaround to get over it... Here's a simple layout sample, which you can run for testing: Assuming that you have the following layout order. [code] <html> <head> <title>Site Title</title> <style type="text/css"> <!-- /* CSS RULE …

Member Avatar for vishalkhialani
0
57
Member Avatar for bufospro

This is much better if handled in [b]PHP[/b]. If you just want to get bits of data in your form, using PHP. simply do this format: [b]formMailer[/b] [code]<input type="text" id="subject" name="subject" value="" />[/code] now if you want to get the value in the subject input field, then try this code …

Member Avatar for Airshow
0
228
Member Avatar for starengineer

It is the same as creating link's inside your page. e.g. [icode]<a href="yourXMLfile.xml">Link to XML File</a>[/icode]. If you need full information about [b]XML[/b], visit: [url=http://www.w3.org/TR/1998/REC-xml-19980210]http://www.w3.org/TR/1998/REC-xml-19980210[/url]

Member Avatar for essential
0
75
Member Avatar for adaykin

Or you could just create the whole table+elements, instead of having it preloaded in the page. [code]<html> <head> <style type="text/css"> td { font-size: 200%; } </style> <script type="text/javascript"> function removeTables() { document.getElementById("test").removeChild(document.getElementById("myTable")); } function addTables() { cTable = document.createElement("table"); cTable.id = "myTable"; cTable.border = "2"; for ( var i = …

Member Avatar for adaykin
0
221
Member Avatar for bwbwings

Here's a simple demo--on how you can validate userInput against your array lists. I simplify the code works by matching a color inside an array against user inputted value. If it matched any value inside the array collection then it will return true. [code=javascript]<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD …

Member Avatar for Airshow
0
110
Member Avatar for deathlemon

If you are referring this with javascript, then you might want to try out this code to validate your fields. [code]<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <title>Form …

Member Avatar for aashishn86
0
122
Member Avatar for hi.meral

JQuery lets you write javascript program in a shorter, faster way and also making you dumb... e.g. [code]var obj = document.getElementById("someId"); // This is a Javascript format. var jQobj = $("someId"); // This is a JQuery implementation, seems alot shorter, compared to Javascript format.[/code] It's up for you to decide …

Member Avatar for hi.meral
0
118
Member Avatar for sean_khan
Member Avatar for ericbux

Put some argument inside your callFunction. [code]function callFuntion( eb ) { // some statement. } [/code] now call it with your form [icode]onsubmit="return callFunction( this );"[/icode]

Member Avatar for ericbux
0
105
Member Avatar for itisnot_me

Try this appending order: [code] td.appendChild( input ); tr.appendChild( td ); field_area.appendChild(tr);[/code]

Member Avatar for essential
0
201
Member Avatar for jimbob90

Hi Jimbo, The [icode]document.write[/icode] method won't work if you are using the [b].xhtml[/b] extention in your document. But if you want to stick using this method, then simply change your (x)HTML document using the [b].html[/b] extention. Good day...

Member Avatar for essential
0
132
Member Avatar for jimmiller96

Here's a simple demo... You can set/get different ( values or variables ) using hidden field's, asside from the values supplied by the combo boxes. [b]Form page[/b] [code=javascript]<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Script-Type" …

Member Avatar for jimmiller96
0
146
Member Avatar for kavithakesav

Another way to call your icon, implemented in W3C standards: [code=html]<head profile="http://www.w3.org/2005/10/profile"> <!-- Must be implemented if you are using any icon inside your (x)HTML document. --> <title>Your Site</title> <link rel="icon" type="image/ico" href="pathToIcon/yourfavicon.ico" />[/code]

Member Avatar for essential
0
156
Member Avatar for adaykin

This might get what you need. An example of passing the arguments ( or parameter ) to another function. [code=javascript]<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <title>Getting Javascript …

Member Avatar for essential
0
139
Member Avatar for bas_brain

If you just need good tutorial sites for [b]AJAX[/b], try out the following links: — [url=https://developer.mozilla.org/en/AJAX/Getting_Started]MDC AJAX Tutorial[/url] — [url=http://www.w3schools.com/ajax]w3schools AJAX Tutorial[/url] &#8212; [url=http://www.ajaxtoolbox.com/request/documentation.php]AJAX Toolbox[/url]

Member Avatar for Alxandr
0
88
Member Avatar for re-volter

Here's another simple demo--on how you can strip keywords in the URL string. [code=javascript]<script type="text/javascript"> <!-- var siteurl; var getLocation; getLocation = function( url ) { url = url.split(/[\s\,]+/i); dummy = "http://site.example.com/page1/page2"; siteurl = String( location.href ); for ( var x = 0; x < url.length; x++ ) { document.write( …

Member Avatar for mail2saion
0
108

The End.