Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 202
Search took 1.02 seconds.
Search: Posts Made By: howie2009
Forum: PHP 03-04-2013, 01:57 PM
Replies: 8
Views: 342
Posted By howie2009
Perfect I will use that instead of the one I...

Perfect I will use that instead of the one I found..Thanks
Forum: PHP 03-04-2013, 01:52 PM
Replies: 8
Views: 342
Posted By howie2009
Thanks found a script <?php $str =...

Thanks found a script


<?php
$str = "John Doegdfgf - ID: 12545981QA78453478%^$^&^";
if (($tmp = strstr($str, 'ID:')) !== false) {$str = substr($tmp, 1);
echo $str;} ?>
Forum: PHP 03-04-2013, 01:22 PM
Replies: 8
Views: 342
Posted By howie2009
Thanks very much. Should the id use a non numeric...

Thanks very much. Should the id use a non numeric character how would I tweak the code please?

Eg John Doe - ID: 557ABCtux@$675567567
Forum: PHP 03-04-2013, 01:13 PM
Replies: 2
Views: 208
Posted By howie2009
Perfect! Thanks PappaJohn!

Perfect! Thanks PappaJohn!
Forum: PHP 03-04-2013, 04:40 AM
Replies: 8
Views: 342
Posted By howie2009
php substring

Hi Guys,

whats the php substring code to extract and echo all the digits after ID:

eg

full string is "John Doe - ID: 557675567567"
full string is " Jake Lee - ID: 1234A3"

etc..
Forum: PHP 03-04-2013, 03:22 AM
Replies: 2
Views: 208
Posted By howie2009
return value syntax

Hi Guys,
Total PHP newbie and trying to adjust a php script.

Lets take it screen_name holds a value like John Doe and member_id holds a value like 1234

Whats the syntax to achieve the...
Forum: JavaScript programming 10-19-2012, 12:35 AM
Replies: 3
Views: 397
Posted By howie2009
Thanks. I am using a cms and I have 2 custom...

Thanks. I am using a cms and I have 2 custom fields say date1 and date2 both which carry a time stamp. Using your code could I do something like:

html>
<body>

<script>



Date1 =...
Forum: JavaScript programming 10-18-2012, 10:42 PM
Replies: 3
Views: 397
Posted By howie2009
Difference in days,mins,hrs between 2 unix timestamps

Hi,
how do you output the difference in days,hours minutes between 2 unix time stamps. I need to be able to calculate the difference between 2 future dates.

I need to give the js a value like
...
Forum: JavaScript programming 10-02-2012, 01:10 AM
Replies: 1
Views: 265
Posted By howie2009
Clear input value on page load

Hi,
I was hoping someone could help. I need to clear a text input value when my page loads. any idea how I could do this with js or jquery? I need to set it to blank as oppose to reset it. It can...
Forum: JavaScript programming 08-09-2012, 06:36 PM
Replies: 9
Views: 693
Posted By howie2009
Thanks!

Thanks!
Forum: JavaScript programming 08-08-2012, 02:35 PM
Replies: 9
Views: 693
Posted By howie2009
Thanks xelawho for your help. Instead of alerting...

Thanks xelawho for your help. Instead of alerting the value could you document.write the value or similar. I understand that document.write is no longer recommended. What syntax would you use to...
Forum: JavaScript programming 08-07-2012, 03:16 PM
Replies: 9
Views: 693
Posted By howie2009
Hi, var str = "{wig}"; //this will have the...

Hi,

var str = "{wig}"; //this will have the value var str ="<p> test </p>" {wig} equates to <p> test </p>

function htmlEntities(str) {
return String(str).replace(/&/g, '&amp;').replace(/</g,...
Forum: JavaScript programming 08-07-2012, 02:24 PM
Replies: 9
Views: 693
Posted By howie2009
Thanks Andrew for responding When I use the...

Thanks Andrew for responding

When I use the var "wig" - lets say it contains the value <p> test </p>

The info window breaks i.e. the escaping doesnt seem to work. I dont know is it the p tags...
Forum: JavaScript programming 08-07-2012, 01:50 PM
Replies: 9
Views: 693
Posted By howie2009
Javascript and Google Map info window html escape

Hi Guys,
Working on some Google maps javascript and was wondering how to escape the html. As below I can enter text or escaped html in "my html here" section below. I am using a cms and ultimately...
Forum: JavaScript programming 07-25-2012, 02:25 AM
Replies: 2
Views: 583
Posted By howie2009
Perfect! THANKS!

Perfect! THANKS!
Forum: JavaScript programming 07-25-2012, 01:56 AM
Replies: 2
Views: 583
Posted By howie2009
form post action do nothing

Hi Guys,
How do I get

<form method="post" action="">

to have no action whatsoever when Enter button is pressed in the following textbox:

<input type="text" name="keywords"/>

I just have...
Forum: PHP 06-12-2012, 07:10 PM
Replies: 2
Views: 264
Posted By howie2009
PHP date

Hi Guys,
PHP will typically output time using %g:%i%a as 8:00pm. How do I get time to be outputted as 8 p.m if there are no minutes with a dot between p and m. Same for am.
Any ideas?
Thanks
Forum: JavaScript programming 06-08-2012, 02:35 PM
Replies: 9
Views: 1,211
Posted By howie2009
Thanks guys! Perfect

Thanks guys! Perfect
Forum: JavaScript programming 06-08-2012, 02:41 AM
Replies: 9
Views: 1,211
Posted By howie2009
only problem with above script is that when it...

only problem with above script is that when it gets to the point of refeshing it goes 2,1,0,-1,-2 all the way upto -90+. Takes forever to refresh the page. Maybe there is a better way. It does...
Forum: JavaScript programming 06-08-2012, 01:48 AM
Replies: 9
Views: 1,211
Posted By howie2009
This appears to work <html> <head> ...

This appears to work

<html>
<head>
<title>Untitled</title>
<script>
var seconds=120;
function countDown() {
if(seconds<=0) {
document.location.href="http://mysitepage.com";
Forum: Ajax and Design 06-08-2012, 12:02 AM
Replies: 1
Views: 686
Posted By howie2009
ajax refresh multiple divs

Hi Guys,
I have a user comments webpage and want the posts refreshed every say 60 seconds so the users see the latest replies to comments etc..The structure of the divs will be loosely similar to...
Forum: JavaScript programming 06-07-2012, 11:51 PM
Replies: 9
Views: 1,211
Posted By howie2009
Great guys thanks! How do I get it to refresh...

Great guys thanks! How do I get it to refresh every 3 minutes during inactivity as opposed to refreshing just once as it currently is?

It appears you have to move the mouse after each 3 min...
Forum: JavaScript programming 06-07-2012, 08:48 PM
Replies: 9
Views: 1,211
Posted By howie2009
refresh page if user is inactive

Hi Guys,

I'm looking for a script that auto refreshes a webpage after 3 mins only if the webpage itself is inactive in terms of the user moving the mouse about or typing in text etc...

Any...
Forum: JavaScript programming 03-17-2012, 11:36 AM
Replies: 20
Views: 985
Posted By howie2009
Bring back the love! Give me cheap women and beer...

Bring back the love! Give me cheap women and beer to techie disputes any day:thumbsup:
Forum: JavaScript programming 03-17-2012, 03:53 AM
Replies: 20
Views: 985
Posted By howie2009
Thanks Guys for all the help so far! In the...

Thanks Guys for all the help so far!

In the below the first piece of code evaluates to 3 and the second to 7. Would it be possible to write a piece of javascript that can add the 2 results(or more...
Showing results 1 to 25 of 202

 
Forum Jump

All times are GMT +1. The time now is 12:59 PM.