Everything posted by majorp
-
Simple PHP problem. Highest number.
It's a simple XML object.
-
Simple PHP problem. Highest number.
I'm tring to get the highest number from a foreach loop: $highest = 0; foreach ($numbers->number as $number) { if($number > $highest) { $highest = $number; } } echo $highest; Now why doesn't that work? or this: $i = 0; foreach ($numbers->number as $number) { $numberarray[$i] = $number; $i++; } echo max($numberarray); Surely this is a simple thing to do?
-
Ideas/thoughts on my new twitter app
brilliant! works perfectly! Thank you bocaj.
-
Ideas/thoughts on my new twitter app
Thanks, I've changed the paragraph tags to labels. It's a bit annoying that the only thing that doesn't validate on the html side is the vimeo embed code.
-
Ideas/thoughts on my new twitter app
Just finished my new webapp/bookmarklet and would like to know your opinions. What do you think is wrong with it? How can it be improved? Am I doing anything badly. I know frames are horrible but there is no way around it. My password algorithm is strong enough to hide the user/pass from the average user but does it matter that much anyway? Somebody would need to first have access to the bookmarklet and then work out the algorithm? http://tweetpkr.com/ I know it doesn't work on IE yet, I'm working on it... I'm sure a lot of the css/xhtml may be a bit wonky. Inspired by http://www.twitlet.com/ Thanks!
-
Remove iframe from within iframe
No, my page loads up and the javascript is run that creates an iframe. In that iframe there is some information and a link that says "remove this iframe". When you click it the frame in which the link resides is removed leaving the page as it would have been if the initial javascript had not been run.
-
Remove iframe from within iframe
I'm generating an iframe with javascript iframe=document.createElement("iframe"); iframe.setAttribute("src","http://someaddress.co.uk/"); iframe.setAttribute("style","position: fixed; top: 0px; left: 0px; z-index: 99999;"); iframe.setAttribute("width","400"); iframe.setAttribute("frameborder","no"); iframe.setAttribute("height","100%"); iframe.setAttribute("id","myIframeId"); void(document.body.appendChild(iframe)); If there any way I can have a link inside this iframe that removes it from the page? Maybe something like this? <a href="java script:window.parent.document.getElementById('myIframeId').parentNode.removeChild(window.parent.document.getElementById('myIframeId'))">Close</a> Doesn't work? Thanks
-
Percentage widths and floats in IE
Oh?! ok, maybe it's something to do with parallels on osx. Thanks!
-
Percentage widths and floats in IE
Cheers! Worked brilliantly in IE7, any ideas for IE6?
-
Percentage widths and floats in IE
I have a liquid layout and for some reason my floats drop down in IE but are fine in any other browser? Any ideas? http://tinyurl.com/39exv6
-
Overflow hidden cutting off page
Ugh, still not resolved. Anybody got any ideas?
-
Overflow hidden cutting off page
I want the vertical borders of each column to stretch all the way to the bottom. On my hunt for a fix I came across somewhere that describes the same technique easier than I can. http://www.positioniseverything.net/articl...out/equalheight I think I have come across a solution too. http://www.positioniseverything.net/articl...lheightproblems Just going to give it a go.
-
Difference in browsers..
Is there a doctype declaration? Could you post the css?
-
IE6 Floated Links
Probably something to do with display: block. I can't check though on a mac. If not maybe you can just put the h1, the p and the more button in a div and float that left too?
-
Overflow hidden cutting off page
I use overflow:hidden on my column wrapper. On my columns I have padding-bottom: 20000px and margin-bottom: 20000px. I do this so borders go all the way to the bottom. The problem is if I have a link that has an id to scroll to it cuts some of the page off. Is there anyway I can fix this? Sorry it's hard to explain the problem. http://tinyurl.com/6b2c7a
-
My Freelance/blog Website Redesign
I love this site! The graphics are great, The RSS image is brilliant!
-
Portfolio / Journal - 3 Themes - Web Designer Site
Hi! First post, Just discovered this forum! There's loads of info here that would have been extremely helpful to me if only I had found it sooner o well. I ended up here because I was looking to get some feedback on my site. I've posted this elsewhere so I will just paste it in here.