www.webdeveloper.com

Search:

Type: Posts; User: rh_lloydnorthov

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. a) copy the javascript into a new file and save...

    a) copy the javascript into a new file and save it as 'main.js' :

    window.onload = (function()
    {
    var numberOfBackGroundImages = 5;
    return function()
    {...
  2. I'd lose the floats on the #leftControl and...

    I'd lose the floats on the #leftControl and #rightControl and try adding:

    top:50%;
    margin-top:-50px;

    to .control


    The top:50% positions the TOP of each control half way down the browser...
  3. You can use CSS to style these links: a) add a...

    You can use CSS to style these links:
    a) add a class to your links

    document.write("<a class='jsLink' href='http://www.msn.com'>MSN</a>" );
    document.write("<a class='jsLink'...
  4. Replies
    6
    Views
    1,990

    1. It depends on how the form works - Are you...

    1. It depends on how the form works - Are you just using the AJAX call to validate the from fields, and then allowing the form to submit normally if the validation is passed, or does the AJAX call...
  5. Replies
    3
    Views
    1,348

    This is a HTML *email* template - most email...

    This is a HTML *email* template - most email clients will not allow javascript attached the to the email to run.

    I'd check to see if a font size is being specified for the two blocks of text you...
  6. try: data : { "val" : itemUrl }, i.e. pass...

    try:

    data : { "val" : itemUrl },

    i.e. pass data into the AJAX call as a JSON object not a URL parameter
  7. Replies
    4
    Views
    1,292

    javascript:void in the href attribute of a link...

    javascript:void in the href attribute of a link basically means the link does nothing when clicked, except triggering a javascript function defined in an 'onclick' attribute or bound to the link by a...
  8. You are submitting the form via the POST method,...

    You are submitting the form via the POST method, but trying to read the form values via GET.
    Change the reference $_GET in checkoutcart.php to $_POST .i.e $_GET["APPS1"] should be $_POST["APPS1"]...
  9. http://blueimp.github.io/jQuery-File-Upload/

    http://blueimp.github.io/jQuery-File-Upload/
  10. Replies
    1
    Views
    911

    I'de use this method instead: var selectObject...

    I'de use this method instead:

    var selectObject = document.getElementById( sname );
    selectObject.selectedIndex = 0;

    where sname is the id attribute of the select tag.
  11. for the container div, drop the left position and...

    for the container div, drop the left position and use
    margin-left:auto;
    margin-right:auto;

    this will automatically centre the div horizontally
  12. Replies
    7
    Views
    1,222

    You need to use percent because it's the...

    You need to use percent because it's the parameter defined in the function definition, through which you are passing the font size.

    function call: divFontSize(this, '125%')

    function definition:...
  13. Replies
    7
    Views
    1,222

    Try 'percent' instead of size in the line: ...

    Try 'percent' instead of size in the line:

    id.style.fontsize = size;

    i.e.:

    id.style.fontsize = percent;
  14. Replies
    4
    Views
    1,333

    Your htaccess rule will probably look something...

    Your htaccess rule will probably look something like


    RewriteRule ^([a-z]+)/([a-z]+)/([a-z]+)$ /index.php?category1=$1&category2=$2&category3=$3

    assuming that your category parameters are...
  15. Get...

    <p><a href="#" onclick="App();">Get Timetable</a></p>

    Add:
    return false;
    as the last statement in the function App(), this will prevent the browser opening the Get timetable link


    function...
  16. Replies
    34
    Views
    6,664

    Looking at the example URL you supplied, the CSS...

    Looking at the example URL you supplied, the CSS is applying display:inline and float:left to ALL the li elements in the main nav. What you want to do is only apply these properties to the top level...
  17. You are generating three link tags in your php...

    You are generating three link tags in your php code which are not valid HTML and will very likely break your page layout or at the least prevent the link working.

    <ahref="index-1.php">home</a>
    ...
  18. Replies
    34
    Views
    6,664

    Remove the br tags between the li tags in your...

    Remove the br tags between the li tags in your main navigation, they're not valid, and you can use CSS to add a bottom margin to the li elements
  19. Replies
    3
    Views
    1,242

    your multiply function isn't returning a value so...

    your multiply function isn't returning a value so the first line of code in the function calculateTotal won't return a correct value.

    add

    return enveloppenprij;

    to the end of the multiply...
  20. THE URL provided references a jQuery plugin...

    THE URL provided references a jQuery plugin jquery.keypadlogin.js, thr first line of which is the URL:

    http://keith-wood.name/keypad.html

    This link provides download links for the most recent...
  21. I think you can shorten your function to: ...

    I think you can shorten your function to:


    function confirmBeforeDeletion()
    {
    return confirm("Are you sure to delete");
    }

    if your function returns true (the user selects 'Yes') the form...
  22. Replies
    14
    Views
    890

    Auto increment fields are supposed to be unique...

    Auto increment fields are supposed to be unique for each record in the table as they are designed to be used for record identification, and cannot be repeated.

    Since you want to have repeated...
  23. Replies
    14
    Views
    890

    I don't believe you can have two auto-increment...

    I don't believe you can have two auto-increment fields in a table, and it looks like the 'id' field is set to auto-increment.

    I think your'e going to have to
    a) query the table to see if the...
  24. The most efficient way to handle this would be to...

    The most efficient way to handle this would be to use a product template page which is then populated with the specific product information from the database.

    The template page would contain the...
  25. Replies
    4
    Views
    619

    As I understand it, most, if not all browsers run...

    As I understand it, most, if not all browsers run javascript in a secure sandbox which can only access the DOM of the current web page, or files on the *server* within the web root directory of the...
Results 1 to 25 of 36
Page 1 of 2 1 2
HTML5 Development Center



Recent Articles