Click here to Skip to main content
15,125,968 members

Comments by Chubby Ninja (Top 21 by date)

Chubby Ninja 5-Jan-15 4:52am View
   
Why do people not elaborate on their downvotes? I thought this was a suitable solution, any indication why it is not is welcome
Chubby Ninja 23-Dec-14 15:04pm View
   
where is $total_4bhk defined above? FYI: you can include a variable inside "double quotes" just like the OP has
Chubby Ninja 19-Dec-14 4:16am View
   
no worries Sradhanjali glad it helped :-)
Chubby Ninja 18-Dec-14 4:02am View
   
How did it go? if this solution helped you please mark it as an accepted answer
Chubby Ninja 17-Dec-14 10:26am View
   
What isn't working currently? Do you get an error from the sql query? - is it an option for you to look at prepared statements like PHP PDO?
Chubby Ninja 17-Dec-14 6:14am View
   
Glad it helped :-)
Chubby Ninja 17-Dec-14 2:35am View
   
heya Amit,

sorry about that - I've fixed it now
Chubby Ninja 16-Dec-14 9:01am View
   
Sorry for not replying instantly - was at lunch (killing zombies :-) ) - glad this helped you out!
Chubby Ninja 16-Dec-14 7:29am View
   
Are you sure? please check my http://jsfiddle.net/6o7rahmt/1/ - it is working as expected, please make sure you change both the id and the h3
Chubby Ninja 16-Dec-14 7:28am View
   
Deleted
Are you sure? please check my
Chubby Ninja 16-Dec-14 5:50am View
   
See my updated answer :-) - the HTML and JS is back to id's for you
Chubby Ninja 16-Dec-14 5:50am View
   
That's fine - I've accounted for that in my answer, just change data-id in the HTML back to id and the javascript too
Chubby Ninja 15-Dec-14 17:37pm View
   
For some reason I get an error when posting my answer, anyway, the reason you arent getting any results is because weatherzone is blocking file_get_contents.. use cURL and imitate a web browser:

$url="http://www.weatherzone.co.nz/north-island/wellington";
$agent= 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.112 Safari/534.30';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
$html = curl_exec($ch);

$doc = new DOMDocument();
$doc->loadHTML($html); // don't suppress errors

$tags = $doc->getElementsByTagName('img');

foreach ($tags as $tag) {
echo $tag->getAttribute('src');
}
Chubby Ninja 15-Dec-14 17:33pm View
   
Deleted
More than likely the weatherzone site is blocking your file_get_contents - you should try using cURL and imitating a browser's useragent.

<pre lang="PHP">$url="http://www.weatherzone.co.nz/north-island/wellington";
$agent= 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.112 Safari/534.30';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
$html = curl_exec($ch);

$doc = new DOMDocument();
$doc->loadHTML($html); // don't suppress errors

$tags = $doc->getElementsByTagName('img');

foreach ($tags as $tag) {
echo $tag->getAttribute('src');
}</pre>
Chubby Ninja 15-Dec-14 8:28am View
   
Can you link us to the animation you're talking about?
Chubby Ninja 14-Dec-14 5:52am View
   
If you open up your dev tools console do you get any errors when the vid attempts to loop? Your js looks good at first glance
Chubby Ninja 14-Dec-14 5:50am View
   
Loop just loops the video as far as I know. Not actually creating a playlist
Chubby Ninja 14-Dec-14 5:47am View
   
Can I ask what the purpose of checking 190% zoom is for? If you are concerned about users wanting larger text I would recommend having controls on site for that. That way you can still constrain certain parts of your site.
Chubby Ninja 12-Dec-14 12:34pm View
   
Do you mean the length of number1 and number2? if they are textboxes you can not be sure they will contain just a numeric value so i guess you mean length, please provide the code you've got showing us the textboxes and button (and any js you've done relating to this..)
Chubby Ninja 12-Dec-14 12:31pm View
   
I can't see where you've added <%=dialog.ClientID %> to any elements id attribute, nor <%=opener.ClientID %> - are you sure you are binding the javascript properly?

Have a look at your compiled source - $('#<%=dialog.ClientID %>') and $('#<%=dialog.ClientID %>') should have elements with the id's matching
Chubby Ninja 12-Dec-14 12:10pm View
   
That's a bummer! Although you could put a check in place to see if formData is supported - if it is use what you have, and if not use a fallback method