Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 51
Search took 0.15 seconds.
Search: Posts Made By: swiltch
Forum: JavaScript frameworks 02-11-2013, 08:52 PM
Replies: 2
Views: 344
Posted By swiltch
Detecting anchor tag on hyperlinks

Hey guys,

I'm currently using the following piece of script to add an anchor tag to URL's when they are fed into a page dynamically


jQuery.fn.mailto = function () {
return this.each(...
Forum: JavaScript frameworks 01-31-2013, 08:28 PM
Replies: 2
Views: 194
Posted By swiltch
Detect if URL has anchor tag attached

Hey guys,

I'm currently using the following piece of script to add an anchor tag to URL's when they are fed into a page dynamically


jQuery.fn.mailto = function () {
return this.each(...
Forum: JavaScript programming 09-13-2012, 09:05 AM
Replies: 5
Views: 669
Posted By swiltch
Still haven't managed to resolve this if anyone...

Still haven't managed to resolve this if anyone could please help.
Forum: JavaScript programming 09-12-2012, 02:40 PM
Replies: 5
Views: 669
Posted By swiltch
That didn't work at all, but it shows what I'm...

That didn't work at all, but it shows what I'm trying to do if someone could help further. Thanks.
Forum: JavaScript programming 09-12-2012, 12:50 PM
Replies: 5
Views: 669
Posted By swiltch
Would something like this work then? ...

Would something like this work then?


jQuery(document).ready(function(){
if (document.cookie.indexOf('visited=true') == -1) {
var fifteenDays = 1000*60*60*24*365;
var...
Forum: JavaScript programming 09-12-2012, 11:34 AM
Replies: 5
Views: 669
Posted By swiltch
Changing a cookies expiry date

Hello,

I have the following code -


jQuery(document).ready(function(){
if (document.cookie.indexOf('visited=true') == -1) {
var fifteenDays = 1000*60*60*24*365;
var...
Forum: JavaScript frameworks 08-30-2012, 10:49 AM
Replies: 6
Views: 565
Posted By swiltch
Still haven't managed to solve this, trying to...

Still haven't managed to solve this, trying to combine the two scripts.
Forum: JavaScript frameworks 08-28-2012, 03:12 PM
Replies: 6
Views: 565
Posted By swiltch
Yes my original post worked, so I'm trying to...

Yes my original post worked, so I'm trying to combine the two!

Cheers, Rich.
Forum: JavaScript frameworks 08-28-2012, 01:56 PM
Replies: 6
Views: 565
Posted By swiltch
That works perfectly for links that already have...

That works perfectly for links that already have the HTML tags, but it's now not adding the <a href to the text without HTML, what would I need to add?

EDIT: I'm guessing some sort if statement...
Forum: JavaScript frameworks 08-22-2012, 05:25 PM
Replies: 6
Views: 565
Posted By swiltch
Change plain text to URL

Hello all,

I have the following piece of code which changes any plain text to a clickable URL -

jQuery.fn.mailto = function () {
return this.each( function() {
var re =...
Forum: PHP 05-25-2012, 02:49 PM
Replies: 1
Views: 191
Posted By swiltch
What is wrong with this statement?

if(!strpos($haystack, $needle)){ ... }
Forum: JavaScript programming 03-07-2012, 11:47 AM
Replies: 3
Views: 1,845
Posted By swiltch
Ok, I have changed my first post to now show the...

Ok, I have changed my first post to now show the correct products.inc.php

Here is the HTML output for the page included in the framework...
Forum: JavaScript programming 03-07-2012, 11:00 AM
Replies: 3
Views: 1,845
Posted By swiltch
I'm really sorry, I realise now that I haven't...

I'm really sorry, I realise now that I haven't posted the correct pages. I will post them in around an hour, please check back.
Forum: JavaScript programming 03-07-2012, 10:04 AM
Replies: 3
Views: 1,845
Posted By swiltch
Cannot set property 'value' of undefined (Anonymous function)

Hello, I'm hoping someone can help me with this.

I have 3 pages that I need to put into my framework, they are products, shopping cart and billing. At the moment they work perfectly fine. Here is...
Forum: JavaScript programming 03-06-2012, 02:55 PM
Replies: 0
Views: 235
Posted By swiltch
Problem feeding PHP into framework

Hello, I'm hoping someone can help me with this.

I have 3 pages that I need to put into my framework, they are products, shopping cart and billing. At the moment they work perfectly fine. Here is...
Forum: PHP 03-06-2012, 02:54 PM
Replies: 3
Views: 495
Posted By swiltch
Yeah I am using the developer tools to inspect...

Yeah I am using the developer tools to inspect it. I'll try posting this in the Javascript forum too then thanks. I don't understand how the exact same code doesn't work inside a framework though.
Forum: PHP 03-06-2012, 02:24 PM
Replies: 3
Views: 495
Posted By swiltch
Problem feeding PHP into framework

Hello, I'm hoping someone can help me with this.

I have 3 pages that I need to put into my framework, they are products, shopping cart and billing. At the moment they work perfectly fine. Here is...
Forum: JavaScript programming 02-22-2012, 09:05 AM
Replies: 4
Views: 452
Posted By swiltch
Ok thanks for the reply, I'll try to clarify. ...

Ok thanks for the reply, I'll try to clarify.

What I need as a final outcome is 2 maps on the same page, alongside each other.

Map 1 is centered using the latitude/longitude from a specific ID...
Forum: JavaScript programming 02-21-2012, 05:51 PM
Replies: 4
Views: 452
Posted By swiltch
Just to clarify what I'm trying to do - I...

Just to clarify what I'm trying to do -

I want the map centred from latitude/longitude values in the XML, not what's already in the javascript code.

I also want to keep the placemarkers in the...
Forum: JavaScript programming 02-21-2012, 03:21 PM
Replies: 4
Views: 452
Posted By swiltch
Retrieving XML from Javascript

I think this is a relatively simple problem, instead of hard coding the latitude and longitude in map.setCenter I need it to read it in from an XML file, like the the markers do below...
Forum: PHP 02-10-2012, 12:28 PM
Replies: 4
Views: 442
Posted By swiltch
Okay, thanks very much for your help, really...

Okay, thanks very much for your help, really appreciated.
Forum: PHP 02-10-2012, 11:58 AM
Replies: 4
Views: 442
Posted By swiltch
Hey, thanks for the reply, here is the XML - ...

Hey, thanks for the reply, here is the XML -

<?xml version="1.0"?>
<config version="1.0">
<city id="0">
<name>Oxford</name>
<region>Oxfordshire</region>
<country>United...
Forum: PHP 02-10-2012, 09:46 AM
Replies: 4
Views: 442
Posted By swiltch
Reading XML problem

Hello,

I have created a mashup that reads in some key words and searches for them on eBay. This PHP file works exactly how I want it to -

Live example - richh.co.uk/dsa/ebay-uk.php

Code -
...
Forum: PHP 02-07-2012, 08:25 PM
Replies: 14
Views: 524
Posted By swiltch
It's okay I really appreciate you trying to help...

It's okay I really appreciate you trying to help me.
Forum: PHP 02-07-2012, 08:17 PM
Replies: 14
Views: 524
Posted By swiltch
Yes, by using different XML files, instead of the...

Yes, by using different XML files, instead of the keywords.

As some sort of example, here is the news page created that gets the city name and finds news for that city using the api in the...
Showing results 1 to 25 of 51

 
Forum Jump

All times are GMT +1. The time now is 12:41 AM.