1,330 Posted Topics
Re: 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] | |
Re: 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] | |
Re: 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 … | |
Re: 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] | |
Re: 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] | |
Re: 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] | |
Re: 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 … | |
[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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: Vijay, Must be browser-dependent behaviour. IE6 shows full path starting at c:\.... [B]Airshow[/B] | |
![]() | Re: 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] ![]() |
Re: 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 … | |
Re: 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 … | |
Re: 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( … | |
Re: 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 … | |
Re: 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 … | |
Re: Marrko, When in doubt, consult the API. Try this - [url]http://docs.jquery.com/Manipulation/append#content[/url] [B]Airshow[/B] | |
![]() | Re: AH, In what form is your "particular text" before it is handled by JavaScript? [B]Airshow[/B] |
Re: 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 = … | |
Re: 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 … | |
Re: 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 … | |
Re: 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, … | |
Re: php_noob, [QUOTE=php_noob;953314]What should I do? :([/QUOTE] You could start by posting your HTML/CSS. [B]Airshow[/B] | |
Re: 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 : … | |
Re: 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 … | |
Re: 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 … | |
Re: 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] | |
Re: 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] [/ICODE]. If you want text in the link, then you will … | |
Re: 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 … | |
Re: 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) … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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] | |
Re: Hey Ess, it that a new avatar? [B]Airshow[/B] | |
Re: 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 … | |
Re: 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> … | |
Re: 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 … | |
Re: 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] | |
Re: 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] | |
Re: 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; … | |
Re: 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 … | |
Re: 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 … | |
Re: I would try sticking "Credit Card Processing Software Reviews" or similar into Google. [B]Airshow[/B] | |
Re: 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] | |
Re: Mmmmmm, "model", view", "controller" .... it sounds like you're using some sort of framework. It would help to know which one? [B]Airshow[/B] |
The End.