Search:

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

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. jQuery Change Select Box Options

    I would suggest that you use something like this to find the element, remove all of the options, and add your new ones:

    $(#destination) = myDropdown
    myDropdown.empty();
    Then, in your loop:
    ...
  2. I have not used this script, but it looks like...

    I have not used this script, but it looks like the problem is the notorious IE cache problem. IE11 doesn't like ajax, and won't work right in most instances. Your ajax request is failing. So to fix...
  3. Replies
    6
    Views
    1,150

    Sorry, I guess I thought you could figure out...

    Sorry, I guess I thought you could figure out what you wanted to do from the example. Try this out:http://jsfiddle.net/m8ck7/25/ Just added some javascript. Personally, I like to call a function and...
  4. Replies
    6
    Views
    1,150

    Javascript in onChange

    The problem is that your onchange call is not a function. 'display' is not used correctly, but you can use a javascript function here that will alter your display properties of the blocks that you...
  5. Looks to me it looks like the variable $statement...

    Looks to me it looks like the variable $statement is not being evaluated to a boolean (true/false), and so whatever depends on this being 'true' is failing. To me, it is better to do this:
    ...
  6. Replies
    11
    Views
    2,728

    The use of filter_var() is not a good solution....

    The use of filter_var() is not a good solution. There are several things it doesn't do that are important, and there are several things it does wrong. It is not kept up-to-date and sooner than the...
  7. Replies
    32
    Views
    8,854

    Try this Validation Code - Tests for valid email address

    Here is a php function that you can use for validation in your script - place it at the bottom (There are others, of course, and I may have gotten some or all of it from Ilovejackdaniels.com):

    ...
  8. Replies
    2
    Views
    1,714

    Forget the Vimeo and you can do wonderful things...

    Forget the Vimeo and you can do wonderful things with Flowplayer and JQuery. Flowplayer has an onFinish event that can call a function (read here jquery function) to rewrite the page's html and so...
  9. Replies
    32
    Views
    8,854

    Well, I see that it is the second email that is...

    Well, I see that it is the second email that is failing; the first gets through. The second email call does not have the variable '$headers', and therefore no 'from' in the email function, so it will...
  10. I finally found some browser version detection...

    I finally found some browser version detection code in the javascript for the selection menu that I had adopted that seemed to bother things, and commented it out. Works much better in Safari and...
  11. Well, I appreciate you taking a look at this in...

    Well, I appreciate you taking a look at this in the various browsers, but there must be something else going on that slows the speed so very much in Safari and Chrome. I hesitate to publicly post the...
  12. Thank you very much. It was simple, but I...

    Thank you very much. It was simple, but I couldn't see it. BTW, now that the arrow keys work, why is the overall performance so very very slow in webkit, but fast in IE and lightning speed in FF?...
  13. Arrow keypress function to move div works in FF, but not webkit browsers

    I have this function (mostly copied from the web) that works perfectly fine in FireFox, but not Safari or Chrome. (Haven't tested in IE, and I probably won't - I just don't care anymore about IE...
  14. Print alternate: jpg from file instead of webpage

    If possible, I would like to be able to click on a link to print a image file instead of the webpage. (BTW, I'm using a image gallery that requires MooTools, and the ddsmoothmenu menu that uses...
  15. Replies
    3
    Views
    1,713

    Thanks, John, for the link. The first one had it...

    Thanks, John, for the link. The first one had it - and I was trying something like that, but had not figured out the 'do' loop. Ended up with this extracted from the first link you provided:...
  16. Replies
    3
    Views
    1,713

    Clicked Element Position

    I have an onClick event and I need to determine the screen Y position top of the <li> element that is clicked on. How can I do that? (vertical displacement from the top of the screen) The <li>...
  17. Replies
    6
    Views
    1,897

    Ummm, I think you meant to say var y = 15, ...

    Ummm, I think you meant to say
    var y = 15,
    x = wth && 240;
  18. Replies
    2
    Views
    1,393

    In PHP on the server side (not from a webpage),...

    In PHP on the server side (not from a webpage), you can do this if the file doesn't exist or you want to replace the contents:
    $myFile = "/var/www/html/somewhere/somefile.dat";
    $fh = fopen($myFile,...
  19. Replies
    30
    Views
    249,947

    Uhhhh.... It looks to me that you are missing the...

    Uhhhh.... It looks to me that you are missing the user defined function 'load()'. Now, this brings to mind the need of importing the file (since that is what the load() function is supposed to do)....
  20. Replies
    5
    Views
    2,249

    Well, I do this sort of thing on several secure...

    Well, I do this sort of thing on several secure webpages (https:). First I start a session and branch to a login page if the user has no cookie and the session has not expired. The Login page...
  21. Replies
    5
    Views
    2,249

    Why not use psftp.exe to get and put files, or...

    Why not use psftp.exe to get and put files, or putty.exe to do system work, execute php scripts, and view error_log files with vi? They can be downloaded from:...
  22. Looking for customizable CMS, sort of....

    I'm thinking of using a CMS system, but I have numerous php pages that are stand-alone, highly specialized and not suitable at all to put in wrappers, so I will have to link to them, using the CMS as...
  23. Replies
    5
    Views
    4,058

    No, there is no way to read the cookie expiry...

    No, there is no way to read the cookie expiry date using a browser's javascript once it has been created UNLESS you add a separate entry into the cookie as a value-data pair as you would do for any...
  24. Replies
    3
    Views
    1,408

    AJAX Test If Files Exist.

    Won't work that way. For the readystatechange function to be registered successfully, it doesn't look like it can be assigned to a variable because then the httprequest variable would have to be...
  25. Replies
    3
    Views
    1,408

    Javascript Error in FF3 and not FF2 (?)

    Hi,

    I'm using an Ajax syncronous call, and things work in FF2, but no longer in FF3. The problem is that global variables no longer work inside functions that are returned to onreadystatechange,...
Results 1 to 25 of 228
Page 1 of 10 1 2 3 4