www.webdeveloper.com

Search:

Type: Posts; User: captainscall

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    471

    ah! of course. So it is equivalent to ...

    ah! of course.

    So it is equivalent to



    var ajaxreq = false;
    var ajaxCallback;
  2. Replies
    2
    Views
    471

    defining a variable...with a comma?

    I just came across this in a JS book.

    var ajaxreq = false, ajaxCallback;

    ajaxCallback is a function defined later.

    But what does that mean? Defining the variable with a comma..?
  3. Replies
    4
    Views
    1,920

    ActiveX is out of date (and only worked for...

    ActiveX is out of date (and only worked for IE).... Use...


    some_ajax_request = new XMLHttpRequest(); //Modern browsers support it.
    some_ajax_request.open("GET", yourxmlfile.xml);

    etc..

    ...
  4. Replies
    4
    Views
    903

    try myobject =...

    try


    myobject = document.getElementById('testdiv');
    if (typeof myobject != 'undefined')
    { // this means it exists and has a defined value}
    else
    { // this means the type of your object was...
  5. Fixed it. I still don't understand why the...

    Fixed it. I still don't understand why the previous code didn't work though.



    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
  6. Replies
    5
    Views
    661

    I clicked the link you gave us for the image and...

    I clicked the link you gave us for the image and apparently that URL doesn't go anywhere. 404 Error. Check your image name and file extension.
  7. Agreed with above; you can't do that without...

    Agreed with above; you can't do that without internet access. You'll need an offline database of sorts
  8. Replies
    5
    Views
    511

    Not that I know of -- but I do know that...

    Not that I know of -- but I do know that server-side code doesn't get rendered in the browser source code...directly

    like PHP, ASP and the others.

    e.g.


    <?php //you will never see me in...
  9. [RESOLVED] get CSS border to change onFocus?

    I've got a pretty simple script here... but the border property isn't changing for my elements onFocus...



    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
  10. Replies
    2
    Views
    479

    i don't know of any, but best thing i'd say to at...

    i don't know of any, but best thing i'd say to at least make it easier is create an array with all the fonts and then run a loop to spit out the options



    fontsarray = new Array('times', 'blah',...
  11. Yeah, thanks. I learned later about...

    Yeah, thanks. I learned later about this.selectedIndex
  12. Looks like you're using object-oriented...

    Looks like you're using object-oriented programming for the e-mail to yourself.. you could simply add some non OOP PHP to send the user an email too:


    $to = $_POST['email'];
    $subject = 'Thanks...
  13. OH MY GOSH. I have spend hours on this...

    OH MY GOSH. I have spend hours on this confounding problem and found that FIREFOX is to blame.

    The script runs completely fine on IE. It was because I didn't declare a DOCTYPE in firefox.
    ...
  14. Replies
    2
    Views
    1,462

    I took a brief look at this. Basically you...

    I took a brief look at this.

    Basically you need javascript if you want the totals to calculate realtime. PHP won't do it realtime
  15. i don't think buttons get 'set'. They're just...

    i don't think buttons get 'set'. They're just there, see?

    What you need is something like was_pressed($_POST[your_button])

    So PHP doesn't really deal with that as far as I know. You can use...
  16. I posted another thread revising this question...

    I posted another thread revising this question and for some reason I can't delete it so I'm marking it resolved
  17. [RESOLVED] Trying to select an option with PHP

    Ok, i just totally simplified it. I've got it narrowed to this:




    <?php
    $timeout4 = '17:00';

    $inorout = 'out';
    $x = 4;
  18. ok, I just tested that reality. apparently it...

    ok, I just tested that reality. apparently it works but my real code isn't doing what i want. Here goes:



    function makeSelect($inorout, $x)
    {
    if ($inorout == "in")
    {$output = "<select...
  19. [RESOLVED] Simple PHP question about variables

    if I have, for example

    $timein1 = 'something';

    $timeout3 = 'something else';

    $inorout = 'in';
    $n = '1';

    can I use
  20. I found the fix. Combined it all in one function...

    I found the fix. Combined it all in one function and re-defined the variables. Hope it helps somebody



    // -----------------FOR TIME LOG----------------------------

    // arrays needed
    timeins...
  21. [RESOLVED] Simple problem: how to get an array 'recognized' by my other functions?

    I've got some javascript here to calculate running totals in hours of time logged in <select> elements.

    Don't worry about figuring the code-- I know it works. My problem is that I want the totals...
  22. Easy it was. Found the solution: ...

    Easy it was. Found the solution:



    document.getElementById("myselect").options[0].value //accesses value attribute of 1st option
    document.getElementById("myselect").options[0].text //accesses...
  23. [RESOLVED] Get selected option for a by id?

    So I've got

    <select id="timein1">
    and <option value="00:00">00:00</option><option>...etc....</option>
    </select>

    How do I get the selected option's value? I am trying this:
  24. Replies
    1
    Views
    457

    for() loop THIS! (please)

    Hello...

    I'm trying to figure out how to compact this here code into a nice for loop, but it is difficult:

    I'm considering something like (notice I simply want to just make a bunch of <tr>'s):...
  25. Replies
    9
    Views
    1,905

    Heh, no problem. Sometimes it helps to have an...

    Heh, no problem. Sometimes it helps to have an extra pair of eyes.
Results 1 to 25 of 48
Page 1 of 2 1 2
HTML5 Development Center



Recent Articles