1,330 Posted Topics

Member Avatar for azegurb

Azegurb, I can't quite understand : a) What do you want to sum - free text (in the Title fields) can be concatenated but not summed. b) What you want to do with the result? c) Could the sum function be performed server-side after the form is submitted? [B]Airshow[/B]

Member Avatar for azegurb
0
4K
Member Avatar for cmills83

Cmills83, Are you already using [ICODE]wmode="transparent"[/ICODE] as per my solution at post #8 [URL="http://www.daniweb.com/forums/thread206595.html"]here[/URL]? I guess you are but if not, then give it a try. [B]Airshow[/B]

Member Avatar for Airshow
0
128
Member Avatar for jeffherron

Jeffherron, I'm not sure how to cure your space problem but something you should be aware of is the your page has two forms, one nested inside the other. HTML forms should not be nested as the HTML specification makes no provision for form nesting, thus browsers are free to …

Member Avatar for prateeksha
0
330
Member Avatar for ykjadeja2020
Member Avatar for innocent.boys

I can think of three reasons: [LIST=1][*]Pages are served within a Frameset [*]Content is controlled by the quesry string (as per samarudge's post above) [*]URL is "mapped" (as with eg. Zend Framework's "rewrite router") [/LIST] [B]Airshow[/B]

Member Avatar for edwinhermann
0
3K
Member Avatar for Graphix

Try, [CODE=javascript]ajax.onreadystatechange = function(){setTimeout("show_messages()", 500);}[/CODE] It is also good practise to establish the response handler before sending the request, so put lines 9/10 above 6/7. [B]Airshow[/B]

Member Avatar for Graphix
0
187
Member Avatar for mimsc

mimsc, Try closing the [ICODE]<img>[/ICODE] tag immediately before the [ICODE]<script>[/ICODE] in which [ICODE]win_up[/ICODE] is defined. It has no closing [ICODE]>[/ICODE]. [B]Airshow[/B]

Member Avatar for mimsc
0
85
Member Avatar for Baddesley

Baddesley, I can only imagine that this is the result of some FF setting - "always open windows with full title bar" or similar. If so, then you could correct it for yourself but some other users will still see the original behaviour. A workaround would be to show/hide an …

Member Avatar for Baddesley
0
1K
Member Avatar for Airshow

[B]INTRODUCTION[/B] The W3C's [URL=http://www.w3.org/TR/Window]Window Object 1.0[/URL] specification (Working Draft dated 07 April 2006 at the time of writing) defines in it's [URL=http://www.w3.org/TR/Window/#location-attributes]Location Interface[/URL] section a set of attributes (or fragments) by which a Location object may be addressed. Despite the draft status of this document, many implementations of javascript have …

0
954
Member Avatar for Jeyush

You need to arrange for the popup window to perform the following sequence: [LIST][*]Display login dialog [*]User interacts [*]Submit a login request to the server [*]Receive back login confirmation/denial (eg by re-serving different variants of the login dialog page to the popup) [*]On denial, allow user to have another go …

Member Avatar for almostbob
0
109
Member Avatar for Barman007

Barman007, At top of file your have [CODE=PHP] $apiWidth = $conArr[0]->mapHeight; $apiHeight = $conArr[0]->mapWidth; [/CODE] which looks like heigh<===>width inversion. Then you could try: [CODE=CSS]#google_map { position : relative; left : 50%; margin-left : -<?php echo $apiWidth/2; ?>px; width:<?php echo $apiWidth; ?>px; height:<?php echo $apiHeight; ?>px; overflow:hidden; clear:both; border:1px solid …

Member Avatar for Airshow
0
115
Member Avatar for stockton

Stockton, You can't use [ICODE]<div>[/ICODE] like that to segment part(s) of a table. Use [ICODE]<tbody>[/ICODE] instead. You may have as many [ICODE]<tbody>s[/ICODE] as you like within a table, each containing any number of [ICODE]<tr>s[/ICODE], each containing any number of [ICODE]<td>s[/ICODE]. [ICODE]<td>s[/ICODE] may contain [ICODE]<div>s[/ICODE] but do not generally need to …

Member Avatar for stockton
0
161
Member Avatar for napsternapster

It depends on exactly what you are trying to do? As written the PHP code will execute once before the page is served. It will dynamically add to your javascript variable [ICODE]information[/ICODE]. This will be fine (when debugged) if that's what you want. What it WON'T do is run the …

Member Avatar for Airshow
0
138
Member Avatar for vijaysoft1

Vijay, Must be browser-dependent behaviour. IE6 shows full path starting at c:\.... [B]Airshow[/B]

Member Avatar for Airshow
0
200
Member Avatar for ingeva

I think you will find this is universal - ie. occurs in all browsers. But it's hardly a limitation. Simply ensure all your css files have the .css extension. [B]Airshow[/B]

Member Avatar for ingeva
0
98
Member Avatar for icu222much

Intensive Care Unit (ICU), Suggest you create your clouds as a flash movie, with a "stop" button for folks with low powered processors/graphics cards - thus they will stand a chance of seeing accepatable performance in the main content.swf. Another approach would be to create the clouds as an animated …

Member Avatar for codejoust
0
197
Member Avatar for mstrlouis

Mstrlouis, There are several problems with the function [ICODE]g()[/ICODE] [LIST] [*]The symbol [ICODE]s[/ICODE] is reused (try using k as the loop counter). [*]In the line [ICODE]s = char.value[/ICODE], [ICODE]char[/ICODE] is not defined (it may also be a reserved word in javascript? - best avoided). [*][ICODE]s.charAt(k) = ....[/ICODE] will give the …

Member Avatar for Airshow
0
181
Member Avatar for zerogee2

Zero-G, It's all to do with [ICODE]column < row[/ICODE] always being false. But you should really be thinking in terms of a generalised function to do this sort of thing, with parameters to control the detailed behaviour. For example : [CODE=javascript] function writeAsterisks(x, y){ var i, j, n, s; for( …

Member Avatar for Airshow
0
131
Member Avatar for koyel555

But not forgetting ".style" [CODE] document.getElementById('div_id').style.color = '#999999'; [/CODE] But I'm sure FlashCreations knows that really. Koyel555, I think you might need to give your controls some more thought. You say there are several divs and several factors (font, color, size) but you only mention one control - a select …

Member Avatar for FlashCreations
0
745
Member Avatar for JerieLsky

JerieLsky, I think this is the same problem as the one reported [URL="http://www.daniweb.com/forums/thread206595.html"]here[/URL]. After a bit of research I found a completly "unguessable" solution .... [INDENT]There's an indication that swfs can be forced into the DOM as per regular html elements such that they will obey css z-index. Default behaviour …

Member Avatar for JerieLsky
0
86
Member Avatar for MarrkoR

Marrko, When in doubt, consult the API. Try this - [url]http://docs.jquery.com/Manipulation/append#content[/url] [B]Airshow[/B]

Member Avatar for Airshow
0
54
Member Avatar for feoperro

AH, In what form is your "particular text" before it is handled by JavaScript? [B]Airshow[/B]

Member Avatar for Airshow
0
85
Member Avatar for beanboy

Beanboy, I can't see your code delivering what you want. In particular, this line seems wrong: [CODE] list=this._getAllChecked(htmlNode.childNodes[i],list,mode); [/CODE] It would be much simpler, and stands a chance of working, by building the list in an array rather than a string. Try this: [CODE=javascript] dhtmlXTreeObject.prototype.getAllChecked = function(mode) { mode = …

Member Avatar for Airshow
0
138
Member Avatar for Altairzq

The simple, and conventional, solution would be to make just one AJAX call with one response containing all the info you need to display as feedback to the user (ie a confirmation message that the insertion has been made, plus the list of what's in the database). Two calls with …

Member Avatar for Airshow
0
159
Member Avatar for trtcom1

trtcom1, I think it's simple - to select a course, you need just one select menu, not two. [CODE] <SELECT NAME="course"> <OPTION VALUE="101">MATHS</OPTION> <OPTION VALUE="102">BIOLOGY</OPTION> <OPTION VALUE="103">CHEMISTRY</OPTION> </SELECT> [/CODE] All the intelligence that marries up the courseIds with courseNames should reside server-side. Hence the user knows courses by name (because …

Member Avatar for trtcom1
0
132
Member Avatar for eduardor2k

Eduardo, With respect to [B]Essential[/B] who has already started to answer your question, I wonder if a recursive solution would do the job. Recursion is where a function includes call(s) to itself. This allows a tree structure (such as a DOM) to be interrogated to any number of levels deep, …

Member Avatar for Airshow
0
310
Member Avatar for php_noob

php_noob, [QUOTE=php_noob;953314]What should I do? :([/QUOTE] You could start by posting your HTML/CSS. [B]Airshow[/B]

Member Avatar for Airshow
0
102
Member Avatar for nigelburrell

I recall all sorts of issues with inline divs. Can't remember the detail. The only CSS I know that works cross browser, as already posted on Daniweb several times, is: [code=css].DIV1 { width: 100%;/* or whatever */ height: 70px;/* or whatever */ } .DIV2 { position : relative; left : …

Member Avatar for Troy III
0
490
Member Avatar for AC-hrt

The problem is that body and html are not completely independent. I just ran some tests (in IE6) and found that background-color is independent but background-image and background-repeat are not. Other browsers may behave diferently. A safe way to achieve what you are desire is to have a repeating body …

Member Avatar for Troy III
0
123
Member Avatar for SgtMash

kk29 is right, it's just a question of getting those devilish quotes in the right place. By the way, the line break between tags won't appear as a line break in the served html. For that you need to embed "\n" (note the double quotes). For multi-line output, this is …

Member Avatar for Airshow
0
91
Member Avatar for gagan22

Gagan22, [CODE=javascript] <script> function setAction(r, url){ r.form.action = url; r.blur(); } </script> [/CODE] [CODE=html] <form name="myForm" action="myPage_1.html" method="post"> <input type="radio" id="a1" name="a" onclick="setAction(this, 'myPage_1.html')" checked="checked"><label for="a1">Page 1</label><br> <input type="radio" id="a2" name="a" onclick="setAction(this, 'myPage_2.html')"><label for="a2">Page 2</label><br> <!-- rest of your form ...... --> </form> [/CODE] [B]Airshow[/B]

Member Avatar for Airshow
0
90
Member Avatar for harry010

Harry010, This technique is generally called a "sprite". The pseudo class [ICODE]:hover[/ICODE] only applies to clickable links, not divs, therefore try : [ICODE] <a class="myImage" href="#" >My link</a> [/ICODE] If you don't want text in the link, then use [ICODE]&nbsp;[/ICODE]. If you want text in the link, then you will …

Member Avatar for harry010
0
125
Member Avatar for BlackKite

Here's a slightly obscure but highly compact way to do it : [CODE=javascript] function conversion(scale){ var D = { F : { fld:document.temp_conv.fahr, o:['C','K'], fn:function(val){ return (1.8 * val) - 459.4; } }, C : { fld:document.temp_conv.cels, o:['K','F'], fn:function(val){ return (val - 32) * 5 / 9; } }, K …

Member Avatar for BlackKite
0
185
Member Avatar for socalfoolina

Socalfoolina , I'm not sure but it may be as simple as : [CODE] function toggleDisplay(e){ for (var i=1; i<=4; i++){ document.getElementById("Div" + i).style.display = (i == e) ? 'block' : 'none'; document.getElementById("imagePM" + i).src = (i == e) ? 'fab_tabs_on.gif' : 'fab_tabs_off.gif'; document.getElementById("DivHref" + i).title = ((i == e) …

Member Avatar for Airshow
0
134
Member Avatar for sam023

Sam, If you never use document.getElementById on an element (or otherwise need to read its id) then it doesn't need one. However, if an elememt does need an id, then as you say, it should be unique. One way to ensure uniqueness in a cloned element is to add a …

Member Avatar for Troy III
0
183
Member Avatar for cg5572

cg, Whereas in the tutorials [ICODE]d.attachEvent[/ICODE] and [ICODE]d.addEventListener[/ICODE] seem sacred, most of the time you can use a much simpler syntax to attach event handlers : [ICODE] document.onmousemove = changeState; document.onmouseout = stopScrollingIfOutsideWindow; document.onmousedown = markMouseDown; document.onmouseup = unmarkMouseDown; [/ICODE] This will work cross browser. The only thing it lacks …

Member Avatar for Airshow
0
406
Member Avatar for MattTheHat

MattTheHat, I expect it's all goiing wrong at the [ICODE]pageIs=...[/ICODE] stage. There are more reliable ways to extract sections of a url. If you post an original URL string and the part you need to extract from it (as [ICODE]pageIs[/ICODE]), then I'll see if I can build some better extractor …

Member Avatar for Airshow
0
91
Member Avatar for halukakin

halukakin, I have not looked at FancyUpload in detail but the intro says: [QUOTE=digitarald.de]"..... FancyUpload is a file-input replacement which features an unobtrusive, [COLOR="Green"]multiple-file selection menu and queued upload [/COLOR]with an animated progress bar. ....."[/QUOTE] This implies that it should handle your three pictures without modification. [I]Airshow[/I]

Member Avatar for Airshow
0
172
Member Avatar for polo_coins
Member Avatar for moiseszaragoza

Moiseszaragoza, Is that client-side VB? If so, then [ICODE]boxname[/ICODE] is well and truly out of scope - it being a server-side asp|jsp (or similar) variable - and you need to address the HTML element by the [I]value[/I] of boxName. I don't know VB so can't suggest more but that may …

Member Avatar for Airshow
0
77
Member Avatar for UncleJoe

UJ, You can save heaps of string length by making a single, comma-separated string rather than an array of strings, then splitting in javascript to form an array, then prepending 'div' to each element when you loop through: [CODE=php] $div_elements='A1,A2,...,B1,B2,B3,...,C1,C2,C3'; ... <script> var elements = <?php print $div_elements; ?>; </script> …

Member Avatar for Airshow
0
1K
Member Avatar for quickbird

Quickbird, There's every chance that the forum is one of the big open source systems - eg. phpBB, phpNuke, yaBB, vBulletin etc etc. If so, then first look in the admin control panel and see if you just need to throw a switch to turn avatars on. Failing that, you …

Member Avatar for quickbird
0
201
Member Avatar for dthatsme33

Dthatsme33, You say you can "get the adds" but also that you want to be able to save them. I'm probably being thick, but this doesn't make sense. If the ads are not yet saved, then how do you "get" them and where from? [B]Airshow[/B]

Member Avatar for Airshow
0
74
Member Avatar for manizzi

Manizzi, Try [CODE=php] .... $display_string .= "<td>".$row['student_id']."</td>"; $display_string .= "<td>".$row['student_f.name']."</td>"; $display_string .= "<td>".$row['student_o.names']."</td>"; $display_string .= "<td>".$row['class']."</td>"; .... [/CODE] That should at least clear the error. [B]Airshow[/B]

Member Avatar for manizzi
0
141
Member Avatar for Phollos

Phollos, Here's a couple of ways to do it, one simple, the other smarter and more HTML-minimal. Method 1: CSS [CODE] <style> #trans { border:2px solid #999999; padding:2px; } .trans { background-color:#ccFF00; } </style> [/CODE] Method 1: Javascript [CODE] <script> //Script for simple approach function translate(txt, el){ document.getElementById('trans').innerHTML = txt; …

Member Avatar for Airshow
0
226
Member Avatar for stvrich

In an internet HTTP url, the first portion "http", is the [I]protocol[/I], followed by "://". The next portion, up to the next "/", is the [I]host[/I], comprising a [I]hostname[/I] and optional [I]port[/I], separated by a ":". The [I]hostname[/I] normally comprises a combination of a local host's name with its parent …

Member Avatar for stvrich
0
106
Member Avatar for kurtybain

Kurtybain, The keyword here is "AJAX", which allows a server-side process to be called from JavaScript and for its response to be returned into Javascript, which then executes a function to present the returned data or whatever else is required of it. An AJAX request is an alternative to form …

Member Avatar for Airshow
0
119
Member Avatar for quibbie

I would try sticking "Credit Card Processing Software Reviews" or similar into Google. [B]Airshow[/B]

Member Avatar for Airshow
0
110
Member Avatar for Toxikr3

Your php code will be something like this, though the precise query commands may differ: [CODE=php] $query = "your sql here"; $qry_result = mysql_query($query) or die(mysql_error()); $myArray = array(); while($row = mysql_fetch_array($qry_result)){ $myArray[] = $row['userName']; } [/CODE] [B]Airshow[/B]

Member Avatar for Toxikr3
0
72
Member Avatar for arunajasmine

Mmmmmm, "model", view", "controller" .... it sounds like you're using some sort of framework. It would help to know which one? [B]Airshow[/B]

Member Avatar for arunajasmine
0
149

The End.