1,330 Posted Topics

Member Avatar for Auch

I'm worried about: [CODE]var tfld = trim( valfield.value ); var yfld = trim( valfield.length );[/CODE] Surely either: [CODE]var tfld = trim( valfield ); var yfld = valfield.length;[/CODE] or: [CODE]var tfld = trim( valfield.value ); var yfld = tfld.length;[/CODE] depending on what is passed in as [ICODE]valfield[/ICODE]? Also what is the …

Member Avatar for Airshow
0
100
Member Avatar for Reesho

You can simplify things a lot by placing the table within a div styled with the full width gradient pattern. This way, you don't need left/right half-patterns. [CODE=css]#container { width : 800px; position : relative; left : 50%; margin-left : -400px; background-image:url(images/Gradient_BG-800.jpg); background-repeat:repeat-y; color: #FFFFFF; } #container a { text-decoration …

Member Avatar for Airshow
0
142
Member Avatar for ablitz

Ablitz, Take a deep breath and read carefully ..... This is actually not so weird. Remember that the "A" in "AJAX" stands for "asynchronous". This means that once an AJAX request has been made, there are two "code streams". (To muddy the waters a bit, javascript is single threaded so …

Member Avatar for ablitz
0
296
Member Avatar for versatile36

I always teach it like this: DIV = General purpose block element SPAN = General purpose inline element Style them with CSS for millions of different effects. [B]Airshow[/B]

Member Avatar for MidiMagic
0
91
Member Avatar for khr2003

KHR, I'm sure you could write code to do what you describe if you really needed to, however I think it would not meet your objective to reduce load on the server. As far as I can tell, the load would increase as there is extra work for the server …

Member Avatar for khr2003
0
97
Member Avatar for samarudge

JSON is certainly the way to go for complex data but for simple, predicatable stuff you can D.I.Y. with something like the solution I posted here: [url]http://www.daniweb.com/forums/post924561.html#post924561[/url] Server-side there won't be much difference in speed/load but client-side will be (signifcantly?) less loaded by using a D.I.Y. approach. Having said that, …

Member Avatar for Airshow
0
130
Member Avatar for Lolalola

Lola, Try this: [CODE=javascript]var user = setInterval(function(){ $.get( user.php, { id : Math.random() }, function (data) { data = data.split('||'); $("name").html(data[0]); $("time").html(data[1]); }); }, 5000);[/CODE] [CODE=php]$rez= mysql_query($sql, $db) or die("Error"); $r = mysql_fetch_array($rez, MYSQL_ASSOC ); echo $r["name"] . '||' . $r["time"] exit;[/CODE] Note how '||' is used as a separator …

Member Avatar for Lolalola
0
440
Member Avatar for darthvegan117

DV, In the style sheet, delete [ICODE]#nav li #current a{}[/ICODE] and [ICODE]#nav li #current span a {}[/ICODE], then amend [ICODE]#nav li a:hover{}[/ICODE] and [ICODE]#nav li a:hover span[/ICODE] as follows: [CODE]#nav li a:hover, #nav li#current a { background: url(http://haptictheory.com/clients/jh/images/nav_back.png) no-repeat top right; color: #576d07; } #nav li a:hover span, #nav li#current …

Member Avatar for darthvegan117
0
126
Member Avatar for Zurompeta

Zurompeta, There is generally no reason why a well written AJAX application should not successfully cope with multiple users, however you are right to be considering these issues and you might like to research (e.g. Google) the following terms: [LIST][*](ajax and) memory leaks - a client-side issue by which an …

Member Avatar for Zurompeta
0
104
Member Avatar for napsternapster

Napsternapster, This behaviour may be browser-dependant, so which browser are you testing in? [B]Airshow[/B]

Member Avatar for Airshow
0
763
Member Avatar for bthaxor

Personally I would steer clear of anything like this. I don't want to lose my account with my ISP and I don't particularly warm to men in blue uniforms knocking at the door. Corporate attitudes to "file sharing" are not as liberal as they were just a few years ago. …

Member Avatar for diafol
0
101
Member Avatar for Lolalola

[url]http://www.php.net/manual/en/book.session.php[/url] [B]Airshow[/B]

Member Avatar for Airshow
0
33
Member Avatar for vytla

Vytla, I'm not familiar with asp.net so may well have got the syntax wrong, however I'm sure you can fix that. In principle, this is what you need to do: First, you must tell the menu builder funciton which menu item needs to be styled as "selected" [CODE=asp]private void GenerateMenuItems(selectedMenuName) …

Member Avatar for Airshow
0
153
Member Avatar for lisan28
Member Avatar for aditi_19

Aditi, There is a number of ways to do this and your suggested method is probably the way I would do it. It looks like you need two be able to accept parameters passed by $_POST and $_GET methods: $_POST - For when a form is originally submitted (probably but …

Member Avatar for Airshow
0
236
Member Avatar for chuffman

Chuffman, Try this: [CODE=javascript]function showElement(divID){ var divIDs = [ 'sub_other_services', 'sub_about_us', 'sub_comp_info', 'sub_cat_1', 'sub_cat_2' ];//Array of divsIDs in the group for(var i=0; i<divIDs.length; i++){//loop through the array document.getElementById(divIDs[i]).style.display = (divIDs[i] == divID) ? 'block' : 'none';//show the required div, and hide all the others } }[/CODE] For explanation, see comments …

Member Avatar for chuffman
0
109
Member Avatar for solahere

Solahere, Yes, that's quite right. The option with the selected attribute, should be selected automatically when the page loads. If "selected" is not being obeyed, then I suggest that, either there is a typographic error in the HTML, or a script is overriding the HTML setting. [B]Airshow[/B]

Member Avatar for Airshow
0
56
Member Avatar for Menster

Menster, There's a reasonable chace that the IE is making a regular, non-AJAX HTTP request that is simply causing the page to refresh. This typically happens because a form has action="" (or action is not specified) meaning that it defaults to self (the current page URL). Typical, correct course of …

Member Avatar for prime1999
0
139
Member Avatar for borntowin_786

If you hard-code a link does it work? [CODE]<a href="#namespace" onclick="pageFilter('var&page=1');">1</a>[/CODE] If not, then check that [ICODE]pageFilter[/ICODE] is being called correctly and that "#namespace" is correct. [B]Airshow[/B]

Member Avatar for Airshow
0
59
Member Avatar for XRideRed450R

XRRR, You could try adding two methods to gradientshadow; show and hide, such that dropshadows can be hidden before sliding, then shown again after they have been repositioned. [CODE]gradientshadow.hide = function(){ for (var i=0; i<gradientshadow.containers.length; i++){ for (var x=0; x<gradientshadow.depth; x++){ var shadowdiv = document.getElementById('shadow'+i+'_'+x); shadowdiv.style.display = 'none'; } } …

Member Avatar for Airshow
0
113
Member Avatar for dholt

Dholt, Your code should work in FF too and actually does so on my computer (FF 3.0.11; Win 2000) but I had to create my own PNG image first as the link to yours yielded nothing. IE doesn't care about broken img-urls but worryingly, this version of FF refuses to …

Member Avatar for dholt
0
402
Member Avatar for Julia25

Julia, Try this: [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Airshow :: Untitled</title> <style type="text/css"> #resize_me { height:15px; background-color:#e0e0e0; border:1px solid #006699; } </style> <script> var Resizer = function(){ var prev_w = 0; var dupe_count = 0; var resize_div = null; // 1024 window width ==> 15px …

Member Avatar for Julia25
0
134
Member Avatar for UncleJoe

UJ, cdiv will be [ICODE]null[/ICODE] if no DOM element has the id of the variable [ICODE]elid[/ICODE]. Either the value returned by phpScript.php is wrong (it may just need trimming) or it is correct but the div in question is wrongly id'd or doesn't exist at all. When there is a …

Member Avatar for UncleJoe
0
212
Member Avatar for dwdata

Dwdata, I can't immediately see why the page should break. The code looks good to me. Have you got the following statement somewhere up top of the page? [CODE=PHP]<?php $Letter = isset($_POST['Letter']) ? $_POST['Letter'] : ""; ?>[/CODE] It certainly won't work without this (or similar) but why only half the …

Member Avatar for Menster
0
141
Member Avatar for simons24

Simons24, You could simply take the country/state data from that site, however I would not recommend doing so. I just checked a couple of countries I know and the data is rubbish. The names that appear under "state" are a mixture of towns/cities and historical/political/administrative regions and are not mutually …

Member Avatar for sysel
0
127
Member Avatar for cjmalloy

CJ, Maybe you want something like this? [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Airshow :: Untitled</title> <style type="text/css"> .oddEvenWrapper { width:150px; } .oddEvenWrapper h1 { margin:2px 0; font-size:12pt;; } .odd { float:left; clear:left; } .even { float:right; clear:right; } </style> </head> <body> <div class="oddEvenWrapper"> <div class="odd"><h1>Odds</h1></div> …

Member Avatar for dipak_passion
0
133
Member Avatar for Venom Rush

Venom, Give the li in question a class name that is different from the other lis in the list, than address it by that class name in css. [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Airshow :: Untitled</title> <style type="text/css"> li.normal { color:green; }/*style as required*/ li.special …

Member Avatar for Airshow
0
146
Member Avatar for hollatola

I tried Googling eProject. It seems to be nothing more than a synonym for "Software Project", with emphasis on project management aspects rather than the actual analysis/coding/testing. I guess that in a school context it would mean much the same but with emphasis on analysis/coding/testing rather than project management. These …

Member Avatar for Airshow
0
79
Member Avatar for Xessa

Xessa, This is outside my experience and judging by the dearth of replies, I guess outside most other folks' experience too. Calling java from javascript is pretty unusual and not generally done because (a) it is pretty well unnecessary most of the time and (b) not universally applicable in the …

Member Avatar for Airshow
0
82
Member Avatar for xylude

Xylude, I'm amazed that [ICODE]bakeryImage.src=image;[/ICODE] works in any browser! I can only think it's picking up on the name attribute rather than the id. Names are more liberally interpreted. Try this - three goes in one line for good cross-browser compatibility plus the safety of setting null if they all …

Member Avatar for Airshow
0
145
Member Avatar for Xessa

Xessa, You have to be suspicious that something is going on behind the scenes. As far as I am aware, all modern mainstream browsers honour maxlength and with maxlength=11 the user shouldn't be able to type in more than 11 characters. However, I just ran a quick test in IE6 …

Member Avatar for Airshow
0
152
Member Avatar for Talguy

Talguy, Many web hosting providers use [URL="http://www.cpanel.net/"]cPanel[/URL] for remote control etc etc etc. The thing is modular and can inlude a mySQL control panel and various stats modules as required. Please forgive me for being a bit vague as I am only a user. Never been in a position to …

Member Avatar for Airshow
0
58
Member Avatar for kingben

Kingben, If you wish to navigate with urls of the form [url]http://somesite.com/index.html#xxx[/url] then the #xxx bit (url.hash) will navigate to a named anchor (of the form <a name="home"></a>) on the same page. If all pages are really one page (index.html) divided into sections, then you do not need a "loading" …

Member Avatar for Airshow
0
131
Member Avatar for goldy736

Goldy736, The requirement for independent resets is indeed good reason to have separate form1 and form 2. There is no particular need for a third form as you [I]could[/I] compoite reponse_1 and reponse_2 into a field within say form 2 then submit it. However, a third form is also an …

Member Avatar for essential
0
2K
Member Avatar for Tmanchester

Tman, I suspect this is to do with some javascript handler, more particularly how it is attached to one of several possible "events". Client side form-checking or pre-processing is typically invoked either when a submit button is clicked, or when the form is actually submitted. At first glance these may …

Member Avatar for Airshow
0
114
Member Avatar for mnealmneal

Mneal^2, Something like this maybe: [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>New Page 1</title> <style type="text/css"> option.disabled {color:#999999; background-color:#e0e0e0;} table.created { table-layout:fixed; margin:6px 0; background-color:#CCCC99; width:100%; height:10px; border:1px solid #999966; } table.created tr { } table.created td { padding:2px …

Member Avatar for Airshow
0
138
Member Avatar for whiteyoh
Member Avatar for sanjaypandit

Sanj, In the php while loop, [CODE=php] //-- find //while($file = readdir($dir_handle)) { //-- add before $imageArray = array(); //-- find //echo "$file<br/>"; //-- replace with $imageArray[] = sprintf('["%1$s", "%1$s", "_new", ""]', $path.'/'.$file); [/CODE] In the javascript [CODE=javascript] //-- delete /* imagearray: [ ["jadu/<? echo "$file<br/>";?>", "jadu/<? echo "$file<br/>";?>", "_new", …

Member Avatar for Airshow
0
153
Member Avatar for sookoon

Sookoon, Good and bad news. Visited your pages but can't reproduce the symptoms. They seem to behave ok. (IE6 under Win 2000). [B]Airshow[/B]

Member Avatar for vishalkhialani
0
109
Member Avatar for aashishn86

Aashishn86, All the non-working statements contain typos. Change [ICODE]e1.[/ICODE] to [ICODE]el.[/ICODE] all through. [B]Airshow[/B]

Member Avatar for aashishn86
0
110
Member Avatar for naziatarannum

Naziatarannum, I'm not sure exactly what you have in mind but this should help: [CODE=javascript]function returnSingleValue(clickTarget){ //First scoot up the dom to find the form container var el = clickTarget; while(el !== document && el.tagName.toUpperCase() !== 'FORM'){ el = el.parentNode; } //Error message if form container not found, and exit …

Member Avatar for Airshow
0
189
Member Avatar for wonderland

Wonderland, Good and bad news - I can't replicate the problem. Even the longest menu - Koledza (6 items) - load smoothly all the way to the bottom. These artifacts can be mother-board/graphics-card dependant. Some hardware handles visual effects better than others. My guess is that you won't improve it …

Member Avatar for Airshow
0
141
Member Avatar for sara10mor

sara10, It does indeed seem that Hebrew characters are the problem. Javscript is really defined as a "Latin-1" langage. Urlencode() won't help because javascript's unescape() will always convert to Latin-1 (unless things have moved on since my reference book was printed). What I suggest is that you try serving your …

Member Avatar for Airshow
0
207
Member Avatar for coleguitajuan
Member Avatar for Splower

You might like to look at XSLT. It will act directly on RSS feeds which are just XML conformng to a particular schema. XSLT is very powerful and can be applied in more than just the normal browser environment. I think you will need to run it server-side along with …

Member Avatar for Airshow
0
158
Member Avatar for dudegio

Hi, Pritaeas solution is neat but does rely on Apache MOD_REWRITE being enabled, which is not always the case. Another way to do it is to request the worker page (eg. news.php) directly and specify any content criteria in the query part of the url. For example http://www.blah.domain/feeds/news.php?s=fashion&d=5&c=france The values …

Member Avatar for Airshow
0
233
Member Avatar for CNIDog

CNIDog, If you simply need to test whether a query string is present (regardless of its content), then: [CODE]$(document).ready(function() { if(location.search.replace('?', '') !== '') { callToActionscript(params[0]); } });[/CODE] If however, you need to test for a pericular parameter in the query string then: [CODE]$(document).ready(function() { if(getQueryParameters(myParamName) == 'myValue') { callToActionscript(params[0]); …

Member Avatar for Airshow
0
136
Member Avatar for jhappy

jHappy, On the basis that [ICODE]nameId[/ICODE] is unique and names are't (there could be two John Smiths), then try this, immediately below your [ICODE]nameid==''[/ICODE] trap: [CODE] if( $('hold'+nameId) ){ alert('Patient has already been added.'); return false; }[/CODE] [B]Airshow[/B]

Member Avatar for jhappy
0
134
Member Avatar for Q8iEnG

Q8iEnG, You will find that developing a voting system is significantly more complex than you think. The majority of the work needs to be performed server-side in a language such as PHP with a database to store the votes. A voting system built entirely in javascript would be very limited …

Member Avatar for Airshow
0
336
Member Avatar for jsvanc

JSV, Firstly, pleeeeeeeease simplify [ICODE]showCols(){}[/ICODE] thus: [CODE]function showCols(thisValue) { switch(document.getElementById("type"+thisValue).value){ case "Trade": case "Meeting": document.getElementById("leavediv"+thisValue).style.display = 'none'; document.getElementById("meetingdiv"+thisValue).style.display = ''; document.getElementById("clientdiv"+thisValue).style.display = 'none'; document.getElementById("purpose"+thisValue).disabled = true; break; case "Leave": document.getElementById("leavediv"+thisValue).style.display = ''; document.getElementById("meetingdiv"+thisValue).style.display = 'none'; document.getElementById("clientdiv"+thisValue).style.display = 'none'; document.getElementById("purpose"+thisValue).disabled = true; break; case "Existing": case "Prospect": case "Office": default: document.getElementById("leavediv"+thisValue).style.display …

Member Avatar for jsvanc
0
297

The End.