Advanced Search

Search:

Type: Posts; User: Oziam; Keyword(s):

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,214

    thanks, but that didn't work either. However I...

    thanks, but that didn't work either.

    However I did figure it out, I just declared the formid as a global variable!
    now it works within other functions without having to redeclare it!

    Cheers!
  2. Replies
    3
    Views
    1,214

    setTimeout not passing variables

    hi,

    I am trying to set a timeout then call another function
    after timeout expires, this works OK using;

    setTimeout("processForm()", 1500);

    it works fine if I have the processForm variables...
  3. Replies
    4
    Views
    1,540

    I am pretty sure he means for upload via a FORM...

    I am pretty sure he means for upload via a FORM not FTP!
    but I might be wrong :confused:
  4. Replies
    3
    Views
    1,938

    or; $filename = "movies.zip"; $path =...

    or;


    $filename = "movies.zip";
    $path = "downloads";
    $file = fopen($path."/".$filename, "r");

    header("Pragma: public");
    header("Expires: 0");
    header("Cache-control: private");
  5. Replies
    4
    Views
    4,552

    Yeah I agree with John, ereg & eregi have been...

    Yeah I agree with John, ereg & eregi have been deprecated since PHP 5.0.3
    so you should use preg_match instead for compatability sake.

    Something like below(password must be min 4 to max 9...
  6. Replies
    8
    Views
    2,648

    My scores are below; for averages taken of...

    My scores are below; for averages taken of methods 1-3;

    Method 1:
    ========
    IE 8: 105
    Opera 11: 4
    FF 3.6: 85
    Safari 5: 168

    Method 2:
  7. Replies
    8
    Views
    2,648

    W:eek:W Ok that gives me alot to play with, it...

    W:eek:W

    Ok that gives me alot to play with, it seems that either method
    is not really an issue on CPU resources.

    Cheers!
  8. Replies
    8
    Views
    2,648

    Hmmm, Time trial always returns 0 with all 3...

    Hmmm,

    Time trial always returns 0 with all 3 methods,
    must be too quick on local server.
  9. Replies
    8
    Views
    2,648

    Ahh of course, that makes more sense, I didn't...

    Ahh of course, that makes more sense, I didn't think of using form.elements,
    yeah I think that would be a better solution.
    I wasn't sure how to do a time trial in JS,


    In PHP I use;


    <?PHP...
  10. Replies
    8
    Views
    2,648

    Well I figured out a solution that works, but...

    Well I figured out a solution that works, but once again
    I don't really know which method would be more efficient?

    Method 1: Searches ALL document tags for a match

    resetClass = function(){...
  11. Replies
    8
    Views
    2,648

    get form elements by tag name

    Hi all,
    I have a small function that will search a page for elements that contain a certain class name, if found the class name is changed!
    This works great but I feel it is inefficient due to the...
  12. Replies
    1
    Views
    669

    Hey I finally worked it out, like I said it was...

    Hey I finally worked it out, like I said it was pretty simple really,

    replaced


    document.getElementById(div_id).innerHTML = err;
    with


    document.getElementById(div_id).innerHTML =...
  13. Replies
    1
    Views
    669

    selecting a new variable problem?

    Hi,
    I am new to javascript and cannot figure this out, it is probably very simple.

    I am trying to select a new variable to write to a DIV,
    I have the error messages set to variables like below;...
  14. Replies
    1
    Views
    944

    What is $ads->getAdCode(3) ? Is this PHP code?? ...

    What is $ads->getAdCode(3) ? Is this PHP code??

    if so I am pretty sure you cannot write php code
    to the page, especially in a template, it will be shown as a literal string.
  15. Thread: global functions

    by Oziam
    Replies
    3
    Views
    990

    Yes traq execellent point I neglected to mention,...

    Yes traq execellent point I neglected to mention, otherwise you will get "Object expected" error message.
  16. Thread: global functions

    by Oziam
    Replies
    3
    Views
    990

    In a word, YES, e.g I have an AJAX formpost...

    In a word, YES,

    e.g I have an AJAX formpost script, and a form fieldcheck(sanitizer)
    script, when a user submits the form it calls a function from the fieldcheck
    script and if it passes the...
  17. Yeah it could be done but it is not advisible...

    Yeah it could be done but it is not advisible because obfuscating html using javascript
    really isn't that safe, what I mean to say is yes in its obfuscated form the code is unreadable but it is very...
  18. Hey Thanks again! It just keeps getting better, ...

    Hey Thanks again! It just keeps getting better,
    if I were a rich man(sounds like a song coming on, LOL) I would pay you well,
    but I'm not so I can just say I really appreciate your help!
    Also I...
  19. You're a CHAMPION, thanks that's perfect, aslong...

    You're a CHAMPION, thanks that's perfect, aslong as the requested page doesn't have any href css or js links things will work nicely, I doubt that will be too much of a problem though.

    Thanks...
  20. Thanks a bunch this works great it is almost...

    Thanks a bunch this works great it is almost exactly what I am looking for!

    I slightly modified the code to work with a function to add the relevant tags to the head section of the parent page,...
  21. Thread: Need Help

    by Oziam
    Replies
    4
    Views
    1,567

    This might help; ...

    This might help;

    http://net.tutsplus.com/tutorials/javascript-ajax/submit-a-form-without-page-refresh-using-jquery/

    or
    ...
  22. Thanks for the info, but unfortunately it's not...

    Thanks for the info, but unfortunately it's not what I am looking for!

    Anyway goto go and sand bank front yard, the water is coming up pretty quick :eek:, cheers!
  23. Get array of css & js links from external file(AJAX)

    Hi,
    I have an ajax script which gets an external file(html/php etc...) and loads it into an assigned DIV container, this works great, but what I am trying to do is get an array of any .js and/or...
Results 1 to 23 of 23