Search:
Type: Posts; User: GavinPearce
Search :
Search took 0.04 seconds.
Elo,
Quick one for you - how would you do the following three things in JS in IE7::
1) Capture when a user presses Alt+F4 and don't close the window.
2) Capture when a user presses the...
Nope doesn't help. Ta anyway.
Still get gaps at the bottom somtimes. :(
Hi guys,
Trying to create a div that containts a Flash movie with width and height set to 100% that "covers" 100% of the page on page load, and then exits when a user presses the close button.
...
Hi there,
Trying to hide page scrollbars using JavaScript, whilst an intro movie is shown (floating div with Flash inside). Once movie ends, it calls a JS function, which hides the DIV and reshows...
Just to explain it a littler clearer sorry ....
eg...
$other = "hello,gavin,test";
function($other);
Pretty much does function("hello,gavin,test")
I need it to do:
Hey,
I have the following code using a variable function name:
$other="checkMatch,password,postdata";
$other = explode(",", $fields[$row]["other"], 2);
Just store the PHP straight into the database as pure PH.
Its can b e good practise to store data in its raw format, and then style it as you get it out, means you can do more with the data...
No I think he is actually trying to store PHP code in the DB, to be run and executed when a user later visits the page for that article?
Thank you v. much, I see what I done now.
For anyone following this, this is the final code I have that now works
//build node for email link
var emailLink = document.createElement("a");...
OK so I added emailLink += document.createElement("br"); but this causes an error "emailLink.appendChild is not a function". Sure I'm missing something really obvious!
//build node for email...
Trying to create a <a href="mailto....">text <br /> here</a>
in JavaScript.
I can get it all on one line, how do I create the line break in the middle, but still have just the one link?
I got...
Hey all you lovely people,
I have a form where I need to limit each user from only posting once every 3 minutes. It's currently done on IP, a DB and some simple maths.
//$chktime = DB...
UK based campaign has to be shown to UK customers only.
Without going into to many details - legal restrictions on what we can show mean we have to be able to prove all visitors are UK based, rather...
I had a real quick look through and didn't find anything obvious.
But was a very quick look indeed so don't take my word for it.
I'll try and give it some more attention a bit later.
Hey all,
After all the ranges for UK IPs.
Why can't it just be simple like everything between these two numbers is in the UK. :(
Anyone know of a good list of all UK IP ranges (the...
Yup that function works perfect.
Thank you :-)
*slaps himself* :o
thanks very much guys :)
What am I doing wrong here :confused:
$operator = "randomtxt";
$i = 1;
foreach ($_GET as $key => $value) {
if (stristr($key,'phone') && (strlen($value) > 0)) {
Hey guys,
I'm being really blond here .... (I am blond so I'm allowed to say that :p )
I have this array:
Array
(
[z] => tabular
Two places you need to change when adding/removing fields:
$to = $_POST['to'];
$from = $_POST['from'];
$subject = $_POST['subject'];
$name = $_POST['name'];
$telephone =...
Changing Magento skin is really easy, I would never pay what ShopScript are asking for what there software offers.
Magento is easy to modify if you want, but it doesn't need to be modified!
It...
Didnt know if it would work myself, so if it does, im as happy as you are. :-D
Not tested, but it removes some of the obvious mistakes:
Also some huge security implications in this script that I haven't fixed.
Do you really need the users to be able to upload and email you...
Hey, im just looking into this for you now. Give me a 10 mins, tryin 2 eat as well. :p