Jump to content

Search the Community

Showing results for tags 'syntax'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








Found 6 results

  1. westman

    Javascript in PHP

    $string = 'Hello and hi'; $text =' <a class="link" href = "javascript:void(0)" onclick = "document.getElementById(\'text_div\').innerHTML=\''.$string.'\';">Text</a> '; This is code I am using to print $string in text_div. What syntax (characters) can I not pass through this script?
  2. kissmecomix

    W3 css and z index syntax

    To the developers of W3.CSS thank you so much for creating a platform that in my opinion, uses less code to create a web responsive site with bells and whistles built in. I had hand coded a webpage template, but now that Google won't rank your site properly unless it is responsive, thus my template goes by the way of the 8-track. W3 provided the coding to make sites responsive, but that was still more time that I didn't have. Then, came W3.css now I can replicate my template using W3css, THANK YOU! my original template used layers via z index, placement via <div>, and in page css. My query is what is the proper syntax and use for z index within W3.css and within the container, and can multiple layers be used with a container? also can background images be used within W3.css? I see you have colors, what about images? also can the rollover feature within W3.css be used with custom images, and for non menu? based on replies, I will update your free template accordingly. Thanks once again
  3. The tutorials should use strict syntax (as a model for those who learn by example). For example, infunction myFunction(p1, p2) { return p1 * p2; // the function returns the product of p1 and p2}the semicolon is useless. The novice who does not know that the semicolon is a separator (not a terminator) will be lead to believe that it is required after the last statement.Furthermore, the equivalent formfunction myFunction (p1, p2) {return p1*p2}//returns the product of p1 and p2is more compact AND more legible. Putting a single brace on the final line may be preferred by some (even though it gobbles editing-window space up), but it should not be used so systematically that the novice will think it is a syntactical requirement.
  4. markeizer

    Javascript Syntax differences

    I'm sorry if, to many of you, this would seem like an obvious question, but I haven't been able to find a satisfying answer yet. Consider this piece of code; <button onclick="myFunction()"> Type A<button onclick="function(){myFunction()}"> Type B The first one calles the function, the second calls a function that, inside it, calles myFunction. I have notices sometimes type A and B both work, sometimes only one of them works, but I haven't been able to understand why exactly. Also applicable to: var x = document.getElementById("example")x.onclick=myFunction()var x = document.getElementById("example")x.onclick=function(){myFunction()} Can someone point out the differences for me? Would be very appreciated, I'm kinda stuck on this. Thanks in advance.
  5. dalawh

    Syntax for PHP files

    I know the syntax is "<?php ?>" if you want php in a html file, but if it is a php file, do we need the the "<?php ?>"?
  6. jimfog

    rewrite rule/map

    Following is the syntax of a rewrite rule/map contained in a .htaccess file. It does not have any effect at all. Before investigating other causes of why it does not work i want to make sure the syntax is perfectly OK, before writing the rule i did advice of course the apache pages regarding the rewrite module: RewriteMap prologizontas txt:prologizontas.txtRewriteRule ^prologizontas-ton-eafto-mou ${prologizontas:$1} Is the above syntax OK. prologizontas is the mapname and prologizontas.txt the location of the map(namely, within public_html).