Jump to content

Zane

Administrators
  • Posts

    4,362
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Zane

  1. This may help you http://patrickfoley.com/2005/01/21/scroll-saver/
  2. if you look in the URL http://www.phpfreaks.com/forums/index.php/topic,214242.html#msg978053 this part right here ....#msg978053 tells the page how far to go down What is it? Well, if you know CSS you don't need that answer, but that's the id of one particular area on the page. You'll have to use id's to do what you're looking for.
  3. does the space happen before or after you hover over them
  4. Well, you put it above the send...so yeah now you tell me...does it work P.S. you should learn to indent your code....it helps A LOT
  5. The only reason I can see behind this shenanigan is to try to maybe "duct-tape" a watermark on an image, which seems kind of pointless. If that's what you're after, I'd look at GD Library, but I don't want to assume too much...I'm sure you have your reasoning.
  6. put this before MyHttpRequest.send MyHttpRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  7. Zane

    google

    Actually Google went out on me a few hours ago....I figured the wireless was out but indeed MSN Messenger was still up and running and so was this website. but now it's just fine..I gave it about a minute or so and it was back up.....STRANGE
  8. My immediate and instinctive answer is..No This question vexes me because why would you have one perfectly good image tag only to replace it with another non image tag? Perhaps you use display:none or visibility:hidden to get what your after....maybe
  9. show us the AjaxRequest() function did you set the setRequestHeader function for posting/forms you need it to be "Content-type", "application/x-www-form-urlencoded"
  10. Sorry, but run all that by me again just a little more detailed. Like for instance, how were you planning on sending the variable by GET in the first place and maybe we could get somewhere. In other words....what's your vbscript output....or how does it work
  11. here's some good information http://www.webmasterworld.com/forum91/5303.htm Check around for body.onClick and using event.target I'm interested to see how it all comes together....I hardly ever get to see a barebones simply laid out AJAX suggest example. I play around with this stuff a lot too. That seems a little bit of an afro-enginieering thing if you ask me...would probably work like a charm though
  12. maybe the Div doesn't have focus in the first place....... perhaps you could put an alert to tell if it has focus or not since of course onblur only works when div looses focus Edit: hell, maybe you just add the focus() function to the AJAX part of it all.....force focus on it and see if onblur works
  13. It works just fine for me, not saying it does for you There's obviously a setting wrong on your end, but when I click tiger or what not it plops the word into the textbox like I'd imagine you programmed it to do EDIT: oh nevermind I lost focus of the actual problem...lol still doesn't work
  14. thanks thorpe silly me
  15. this is a tertiary statement it's like an inline IF statement (condition) ? (what to show if true) : (what to show if false) so your sentence means if the width is greater than the height then $ref = the width else $ref = the height
  16. have you tried just submit()
  17. see if you can't attach the onblur to the div instead of the textbox that's the reason the onblur fires first, when you click on the div...you're loosing focus of the textbox probably depends on the browser support if it works or not...and if it doesn't I'm sure there's a way around it EDIT: yeah I tested it with FireBug and that works just fine
  18. /href=["\']([^"\']+)["\'].*class=["\']link["\']/
  19. heh...just a coincidence really. but if you want to think I copied you then...fine with me
  20. $Branch{$i} or you can try $varName = "Branch" . $i; echo $$varName; This is called Variable Variables
  21. sshhh..
  22. Then if you can tell me what this password is then I'll give you $500 64e55a26ea337d6ed168a96e5252272f and a brand new car
  23. Not used to seeing an $i=1 and no counter involved, caught me off guard.......he's apparently using the $i variable to hold 1 which is useless which is why I suggested imaxcharacters++ in the first place.. well, it's back to square one on this one. need some more information i guess
  24. I never really said anything was wrong. I don't even think I clearly understood the question. If the question was.............. is your code good, then yes. but you could probably just explode instead of split.
  25. I don't understand why you would want all those variable when you could just have a full array with keys but two ways I can come up with are 1. Explode and Extract //explode the the categories $CATEGORIES = "consumer electronics|phone and telecom|headsets"; $cats = explode("|",$cats); //then extract them all with a prefix "var" extract($cats, "EXTR_PREFIX_ALL", "var"); 2. Explode and Foreach it //explode the categories $CATEGORIES = "consumer electronics|phone and telecom|headsets"; $cats = explode("|",$cats); //then loop through and create each variable $i = 1; foreach($cats as $cat) { $var{$i} = $cat; $i++; } The first one will make variables like this $var_x
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.