516 Posted Topics
Re: I can't replicate your problem. It parses as normal html on my machine. Try to put a simple script like [icode]<?php echo "Hello world"; ?>[/icode]in as an iframe and see if that parses. | |
Re: These are inline styles. Dreamweaver will do something similar. It will create a class for the element and embed the styles in the head of the document. This will look like:[code=html] <style type="text/css"> <!-- .style1 { font-size: 18px; color: #FF0000; } --> </style> </head> <body> <p><span class="style1">TEST FONT</span></p> [/code] | |
Re: The two important ones are keywords and description. They both go in the head of the document. Metadata help search engines find content relative to what was searched for. Let's look at this page:[code=html] <meta name="keywords" content="HTML and CSS, programming forum, computer forum, programming help, computer help, tech support, technical … | |
Re: [code=php] $fp = fopen("http://www.mydomain.org/order.txt", "a+"); if($fp){ echo "file opened"; } else{ echo "file did not open"; } [/code] | |
Re: Use the header function to return the user to the first page if the variable from first page isn't filled in. [code=php] <?php if(empty($_POST['var from first page'])){ header ('Location:page1.php'); } [/code] | |
Re: Something like this should work: [code=php] <?php $content="http://www.daniweb.com/forums/thread135726.html"; $short=substr($content,0,22); $text = preg_replace('@(http://[^\s]+)@sm', '<a class="diaryUrl" target="_blank" href="$1">'.$short.'</a>', $content); echo $text; ?> [/code] | |
Re: Are you asking if they can be mixed in the same document? | |
Re: I believe you have to do something like:[code=php] $teamMbrs= array(1 =>$team1, $team2, $team3, $team4, $team5, $team6, $team7, $team8, $team9, $team10, $team11, $team12, $team13, $team14, $team15, $team16); [/code] | |
Re: Each option should have an associated value. For example: [code]<option>Actualité</option>[/code] should be [code]<option value="Actualité">Actualité</option>[/code] Also, if you want to add variables to the url, use method="get". This will automatically place the variables into the query string. | |
Re: Learn them one at a time based on your current interest. If you want to edit pictures, start with Photoshop. If you want to create nice vector graphics, start with Illustrator. All of the programs are considered the industry standard in there purpose. Just pick one and get started. There … | |
Re: It looks like you may not have published the swf prior to putting it on the web. The reason I say this is because the [URL="http://www.orisfish.com/Flash/new.swf"]file[/URL] has no content. Go to the swf that you have on your local machine and open it up. Does it work correctly? If not, … | |
Re: There are several errors on the page. Validate with [URL="http://validator.w3.org"]W3C[/URL] | |
Re: This will happen anytime that you don't close a loop. For example something like:[code=php] <?php if($this==$that){ echo "They are equal"; //loop was never closed ?> [/code] Would cause this error. The way to fix it is to find the open spot and close it: [code=php] <?php if($this==$that){ echo "They are … | |
Re: Yes, this is called an include. Includes can be either client side (JavaScript) or server side (php, asp, jsp, coldfusion...) Basically, what happens is that you save one file for your navigation bar and then include it in each page that needs the bar. Now, if you want to change … | |
Re: So you want a 50x50 image to fit inside a 25x25 cell? It sounds like you are trying to fit 48 ounces of water into a 24 ounce bottle. I'm sorry but I'm not understanding what you ask. | |
Re: Is there any reason that you are redirecting with JavaScript instead of php's header function? | |
Re: Once you get comfortable with the xhtml syntax, look into a server side language. At some point you'll find that xhtml won't full fill all of your needs and will need some server interaction. If you have no preference, I'd recommend php. Php has a wealth of documentation and tutorials … | |
Re: You can control cache in php with headers. [URL="http://www.badpenguin.org/docs/php-cache.html"]Here's[/URL] a good read. | |
Re: That's actually a function called strip_tags: [icode] $text='<p>This is some <strong>sample text</strong>. You are using</p> '; echo strip_tags($text);[/icode] | |
Re: IE is retarded. [URL="http://www.webfx.nu/dhtml/collist/implementation.html"]Here's[/URL] what I've found regarding the scrollable tbody element. | |
Re: What about just doing something like: [icode]<a href="delete.asp" onclick="return confirm('Are you sure you wish to continue?')">Delete</a>[/icode] Or, if you need a function for several links: [code=javascript]<script type="text/javascript"> function confirmSubmit(){ return confirm('Are you sure you wish to continue?'); } </script>[/code] [code=html]<a href="delete.asp" onclick="return confirmSubmit();">Delete</a>[/code] | |
Re: Here are a few scripts available to get rid of the IE click to activate problem. [url]http://www.findmotive.com/2006/10/13/ie-click-to-activate-flash-fix/[/url] [url]http://blog.deconcept.com/swfobject/[/url] | |
Re: Here's a good guide to configuring Apache on XP. [url]http://www.pcstats.com/articleview.cfm?articleID=1868[/url] | |
Re: Do you mean something like this? [url]http://www.felgall.com/jstip22.htm[/url] | |
Re: Yes, this is called a preloader. It's a movie clip that should go in at the beginning of the timeline and play until getBytesLoaded=getBytesTotal. [URL="http://www.senocular.com/flash/tutorials/preloading/"]Here's[/URL] a tutorial with many downloadable examples and actionscript which should get you going in the right direction. | |
Re: This will only work locally (and may not work at all). I have only got this to work on XP-Professional. Go to Control Panel->Administrative Tools. You may have to click Switch to Classic View to find Administrative Tools. Now go into Data Sources (ODBC). Click on MS Access Database and … | |
Re: Do you mean like: [code=php] for($i=1; $i<=3; $i++) { $abc="ABC"; $abc .=$i; $abc .=" "; echo $abc; } [/code] Outputs: ABC1 ABC2 ABC3 | |
Re: Go into the script and add your email address to the mail functions to property. | |
Re: You are treating specialevents as one value, when it is actually an array. What I would do would collect all values of the array and shove them into one variable:[code=php] $selectedevents=''; foreach($_POST['selectedevents'] as $val ) { $selectedevents .= $val.", "; } $selectedevents=substr($selectedevents,0,-2); [/code] Now the variable $selectedevents is ready to … | |
Re: Save the union query. Create a new create table query that uses the union you just created. | |
Re: Welcome to DaniWeb! This forum is specifically for JavaScript, Dynamic HTML, and AJAX. Does your problem fit into this category? If not, post your problem in the [URL="http://www.daniweb.com/forums/forum143.html"]HTML[/URL] forum. Please be as specific as possible with your problem and post the code of the suspected problem. | |
Re: It's called a textarea. [code=html] <textarea rows='5' cols='42'> Put whatever you'd like to be inside the textarea here</textarea> [/code] To make the box wider, increase the cols value. To make it taller, increase the rows value. | |
Re: I would start off at google. Search for AJAX Examples. [URL="http://www.degraeve.com/reference/simple-ajax-example.php"]Here[/URL] is a good simple example that doesn't involve a ton of code. In the example, a variable is passed to a cgi on the server using an xmlhttprequest and receives the cgi's response. If you'll notice, the url never … | |
Re: Images are very tricky for new designers. You have to understand that the html file contains a pointer ([icode] <img src="images/image1.jpg" />[/icode]) to the image. The src attribute value is the pointer that tells the browser exactly where the image to download is. In this case, the image, image1.jpg, is … | |
Re: You should be placing the variable in between the textarea tags with a conditional:[code=php] <textarea id='userInput' name="textspace" value="" cols="40" rows="3" > <?php if(isset($_POST)){ echo $textspace; } ?> </textarea> [/code] and for the edit, you've just got to read the file and assign it to a variable: [code=php] if ($_POST['edit']){ $myFile … | |
Re: I believe you have to use url encoding to get Flash to read it. For example, %26 will be displayed as &. [URL="http://us2.php.net/urlencode"]Here's[/URL] the urlencode manual. | |
Re: You could do this a number of ways. The easiest, in my opinion would be [URL="http://www.adobepress.com/articles/article.asp?p=464427&seqNum=1"]Flash[/URL]. However, if Flash isn't an option, [URL="http://www.daniweb.com/forums/thread131830.html"]JDOMP[/URL] or AJAX will do it. Both of these will require some understanding of JavaScript and the DOM. In all three however, the same basic steps occur. Variables … | |
Re: Use javascript:[icode] <script type="text/javascript"> if (navigator.appName == "Microsoft Internet Explorer") { document.write('If you are using an outdated version of internet explorer your browser may not show the images correctly. In order to prevent this please download the latest version of Microsoft Internet Explorer:<a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=9AE91EBE-3385-447C-8A30-081805B2F90B&displaylang=en"><font size="2"> Click Here for the latest … | |
Re: Tack the course name onto the query string: [icode] <a onclick="window.open('popup.php?course=Excel 2003 Level 1','', 'width=210, height=600, location=no, menubar=no, status=no,toolbar=no, scrollbars=no, resizable=no'); return false" href="">Excel 2003 Level 1</a> <a onclick="window.open('popup.php?course=Excel 2003 Level 2','', 'width=210, height=600, location=no, menubar=no, status=no,toolbar=no, scrollbars=no, resizable=no'); return false" href="">Excel 2003 Level 2</a>[/icode] Then use php in the … | |
Re: Create two forms, one for teacher, and one for student. In both, include the following dropdown menu: [code=html] <select onchange="MM_jumpMenu('parent',this,0)"> <option value="">Please select student or teacher..</option> <option value="teacher.php">Teacher</option> <option value="student.php">Student</option> </select> [/code] Include this javascript function in the head: [code=javascript] <script type="text/javascript"> function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; } … | |
Re: This will set a cookie named user which will expire in one hour: [code=php] <?php if (isset($_COOKIE["user"])){ $message= "Ouuu you already have one account!"; } else{ setcookie("user", "Current User", time()+3600); $message="Welcome new user"; } ?> <html> <head> </head> <body> <?php echo $message; ?> </body> </html> [/code] | |
Re: You are right about the onclick function. The onclick function is a JavaScript event handler so you'll need to incorporate JavaScript (else you'll have to have a page refresh after each button is clicked). [URL="http://javascript.internet.com/games/memory-by-markus.html"]Here[/URL] is a link to a memory game tutorial written in JavaScript and PHP. I believe … | |
Re: You could try checking the referring page before incrementing the Session counter. Obviously you'll have to change the url to the one you are looking for: [code=php] if($answer1==$res["ans"] && $_SERVER['HTTP_REFERER']=="http://localhost/ques2.php") { $_SESSION['ans']++; } [/code] | |
Re: Sounds like the link on the back button is wrong. Post some code or a link to the page. | |
Re: Connecting to access with php is very simple. You will need to be able to access the IIS control panel to set things up. Otherwise you need to talk to the server admin to set an ODBC Connection for you. Also, make sure that the db is on the web … | |
Re: What do you need to do? I'm sorry, but the question seems a bit vague. | |
Re: I believe this should work. Lets say that you have 2 animations that take 2 frames each(4 frames total):[code=actionscript] var randomNumber = Math.floor(Math.random()*4) if (randomNumber == 0){ gotoAndPlay(1); } if (randomNumber == 1){ gotoAndPlay(1); } if (randomNumber == 2){ gotoAndPlay(3); } if (randomNumber == 3){ gotoAndPlay(3); } [/code] | |
Re: It sounds like you need an onchange event to trigger an AJAX function. Basically, when an option from the drop down menu is selected, the appropriate elements of the form will change. Is this correct? | |
Re: Don't do this. You are going to get hammered with spam. At least use javascript to [URL="http://www.virtuallyignorant.com/fightspam.htm"]mask[/URL] your email address. You need some type of form processor on the server to validate and sanitize the mail. Your time will be much better spent figuring out whats wrong with the CGI … |
The End.