www.webdeveloper.com

Search:

Type: Posts; User: konithomimo

Page 1 of 20 1 2 3 4

Search: Search took 0.05 seconds.

  1. Without seeing any of your code it is hard to...

    Without seeing any of your code it is hard to help, but here are a few things that you can try. The first thing is to use a regular thumbnail image popup code:



    <html>
    <head>
    <script...
  2. Replies
    5
    Views
    1,411

    To get the value of a select object you have to...

    To get the value of a select object you have to specify the option, therefore it would be a combination of the two:

    var myType =...
  3. nope. PHP curl or sockets.

    nope. PHP curl or sockets.
  4. Replies
    3
    Views
    776

    You can also place HTML/JS outside of PHP tags ...

    You can also place HTML/JS outside of PHP tags


    <?php
    .
    .
    .
    some php code here
    .
    .
  5. Replies
    4
    Views
    983

    Here is how I would do it (untested): var...

    Here is how I would do it (untested):


    var xhr;
    function RequestHandler(action, link, type) {
    {
    xhr=null;
    if (window.XMLHttpRequest)
    xhr=new XMLHttpRequest();
  6. Replies
    7
    Views
    824

    My method is part of what Logic Ali posted. By...

    My method is part of what Logic Ali posted. By anchor Fang means href="#". Anchors should be used to navigate to part of a page. The method Logic posted will not cause any problems, but it is not the...
  7. Replies
    5
    Views
    1,096

    YOu need to put the last replace after the line...

    YOu need to put the last replace after the line below it:


    <html>
    <head>
    <script type="text/javascript">
    function add(){
    var price1 = "19,99 EUR";
    price1_split = price1.split(' ');
    price1 =...
  8. Replies
    5
    Views
    1,096

    You could use the substring() method to do that,...

    You could use the substring() method to do that, or you can use split:


    var price1 = "19,99 EUR";
    price1_split = price1.split(' ');
    price1 = price1_split[0];//19,99
    cur = price1_split[1];//EUR...
  9. Try removing the "'background: url() no-repeat;"...

    Try removing the "'background: url() no-repeat;" from the homeimg div tag, and you don't need to use "window.document". Just use document. Without seeing the full code it is hard to see exactly what...
  10. where does btnon get called from?

    where does btnon get called from?
  11. Replies
    5
    Views
    1,096

    Even though this sound like a HW assignment: ...

    Even though this sound like a HW assignment:

    1.remove the " EUR" --> ex: price1=price1.replace(' EUR','');
    2. replace the comma with a period --> ex: price1=price1.replace(',','.');
    3. evaluate...
  12. Where in your code is this at?? ...

    Where in your code is this at??


    if(window.document.getElementById('homeimg')){
    homeImage();
    }

    if we could see the entire code then it should be easy enough to correct the problem.
  13. Change this:

    Change this:

    <div id='homeimg' style='background: url() no-repeat;height:275px;border:solid 0px red'>
    <a href="javascript:ldpg()" style='text-decoration:none;display:block;height:275px'...
  14. Replies
    20
    Views
    1,602

    here is your code, with the above fixes. there...

    here is your code, with the above fixes. there are a few parts that do not seem right . . . addCheckOpts creates radio buttons? you want to delete the newrow if a radio option is changed?

    ...
  15. Replies
    20
    Views
    1,602

    1. If you are going to assign an onclick for a...

    1. If you are going to assign an onclick for a button then use a normal button and not a submit button.
    2. If you use a submit button then use the onsubmit of the form and not the onclick of the...
  16. Sorry, read your post wrong (split instead of...

    Sorry, read your post wrong (split instead of substring). most likely it was meant ot be split(','). substring(,) should do nothing, or in some browsers throw and error, because both arguments will...
  17. Thread: preload?

    by konithomimo
    Replies
    10
    Views
    812

    no problem. glad to have been of service.

    no problem. glad to have been of service.
  18. To make it so the count is correct, and only...

    To make it so the count is correct, and only works when the left mouse button is down:


    <html>
    <head>
    <script type="text/javascript">
    var count = 0;

    function checkEvent(inc,event){...
  19. You can monitor the onmousedown and onmouseup of...

    You can monitor the onmousedown and onmouseup of the document and keep a counter to see which action occurred most recently, and then use that counter in your onmouseoer function. Here is an example...
  20. Of course, that will add a new object everytime...

    Of course, that will add a new object everytime the button is clicked. If it was me I would use classes instead of IDs:


    <html>
    <head>
    <script type="text/javascript">
    function clock(){
    var d...
  21. if you are editing the current document then you...

    if you are editing the current document then you need to use DOM. That would mean that this:


    if (today>=12){
    document.write("<div id='goodevening'></div>");
    }
    else{
    document.write("div...
  22. try alerting _gType and see what it gives you....

    try alerting _gType and see what it gives you. you may not be sending the proper object.
  23. or even better make it: function...

    or even better make it:


    <script>
    function typeSelOnChange(selObj)
    {
    _gType = selObj.options[selObj.selectedIndex].value;
    document.TblActionForm.submit();
    test1(_gType); ...
  24. that is because you are doing: test1(this); ...

    that is because you are doing:

    test1(this);

    instead do:

    test1(selObj);
  25. Replies
    2
    Views
    575

    As Kor said, use DOM. One more thing . . . Do...

    As Kor said, use DOM. One more thing . . .

    Do not use predefined variable names or common attribute names, such as: target, top, left, this, self, window, button, document, response, value, etc....
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles