ELATED: All Forums http://www.elated.com/ ELATED.com Webmaster Forums: Free Help with HTML, CSS, JavaScript, PHP and Photoshop from ELATED.com en-us Tue, 11 Jun 2013 18:53:35 GMT Tue, 11 Jun 2013 18:53:35 GMT http://blogs.law.harvard.edu/tech/rss ELATED.com feeder Re: [Authoring and Programming] Drag-and-Drop with jQuery: Your Essential Guide http://www.elated.com/forums/topic/5136/#post23476 From: noobie


@matt
I need help to show out some random card numbers after the user has pulled and dropped the first card number to the correct slots.

View » | Reply »

]]>
Tue, 11 Jun 2013 07:19:46 GMT http://www.elated.com/forums/topic/5136#post23476
Re: [Authoring and Programming] Drag-and-Drop with jQuery: Your Essential Guide http://www.elated.com/forums/topic/5136/#post23475 From: noobie


Hi,

Your Tutorial is great but i really need help to create a game using this tutorial.

I need help to show out some random cards after the user has pulled and dropped to the correct slots.

Can anybody help me?

[Edited by noobie on 11-Jun-13 01:28]

View » | Reply »

]]>
Tue, 11 Jun 2013 06:25:48 GMT http://www.elated.com/forums/topic/5136#post23475
Re: [Authoring and Programming] Build a CMS in an Afternoon with PHP and MySQL http://www.elated.com/forums/topic/5114/#post23474 From: Ryan_Lutz


I would like to know how you would write this for multiple tables

View » | Reply »

]]>
Mon, 10 Jun 2013 14:56:29 GMT http://www.elated.com/forums/topic/5114#post23474
Re: [Website Management] Lost when adding multiple pictures. http://www.elated.com/forums/topic/5182/#post23471 From: tamrakar


u can do it from photoshop or photo editer!!!

--
alif

View » | Reply »

]]>
Mon, 10 Jun 2013 12:53:36 GMT http://www.elated.com/forums/topic/5182#post23471
Re: [Webmasters' Lounge] Popup Login Code http://www.elated.com/forums/topic/5596/#post23470 From: chrishirst


And

By the way... The ONLY people who could actually change it is the hosting company.

--
Chris.
So long, and thanks for all the fish.
http://webmaster-talk.eu/


View » | Reply »

]]>
Thu, 06 Jun 2013 20:30:53 GMT http://www.elated.com/forums/topic/5596#post23470
Re: [Webmasters' Lounge] Popup Login Code http://www.elated.com/forums/topic/5596/#post23469 From: chrishirst


That really depends on HOW or WHAT the webmail application is and how the hosting is actually setup.

--
Chris.
So long, and thanks for all the fish.
http://webmaster-talk.eu/


View » | Reply »

]]>
Thu, 06 Jun 2013 20:26:36 GMT http://www.elated.com/forums/topic/5596#post23469
Re: [Your Site: Judge and Jury!] Please review http://www.elated.com/forums/topic/5592/#post23468 From: mauco


Nice website template, well done!
However, I personally would have preferred another background colour. Hope this helps

--
http://www.mauconline.net

View » | Reply »

]]>
Thu, 06 Jun 2013 16:49:43 GMT http://www.elated.com/forums/topic/5592#post23468
Re: [Authoring and Programming] Working with Blogger Variables http://www.elated.com/forums/topic/4831/#post23467 From: matt


I've removed this tutorial now since (a) it was very out of date, and (b) it used a PageKit for the example and we're no longer offering the PageKits. Sorry for any inconvenience.

Cheers,
Matt

--
Matt Doyle, Elated
3rd Edition of my jQuery Mobile book out now! Learn to build mobile web apps. Free sample chapter: http://store.elated.com/


View » | Reply »

]]>
Thu, 06 Jun 2013 02:55:23 GMT http://www.elated.com/forums/topic/4831#post23467
Re: [Authoring and Programming] Create Your Own Blogger Template http://www.elated.com/forums/topic/4825/#post23466 From: matt


I've removed this tutorial now since (a) it was very out of date, and (b) it used a PageKit for the example and we're no longer offering the PageKits. Sorry for any inconvenience.

Cheers,
Matt

--
Matt Doyle, Elated
3rd Edition of my jQuery Mobile book out now! Learn to build mobile web apps. Free sample chapter: http://store.elated.com/


View » | Reply »

]]>
Thu, 06 Jun 2013 02:54:41 GMT http://www.elated.com/forums/topic/4825#post23466
[Webmasters' Lounge] Popup Login Code http://www.elated.com/forums/topic/5596/#post23465 From: FREDONDO_9JA


Hello everyone, I use http://www.domain.com services for hosting and email. Now the challenge I have is that their webmail can only be accessed by visiting http://www.domain.com/mail/ besides setting up pop/imap. My client doesn't like this (I don't too!) but since I don't really code... I don't know what to do. What I would like is to provide a link on the site that once clicked on would bring up a popup asking for the username and password. This way, the users won't have to visit domain.com at all. Do I make sense? An example is as found here: http://helplinetelecoms.net/webmail

[Edited by FREDONDO_9JA on 03-Jun-13 16:41]

View » | Reply »

]]>
Mon, 03 Jun 2013 21:39:10 GMT http://www.elated.com/forums/topic/5596#post23465
Re: [Authoring and Programming] Drag-and-Drop with jQuery: Your Essential Guide http://www.elated.com/forums/topic/5136/#post23464 From: hitech


Never mind. After reading a bit about JQuery ui, I came to know that we can store multiple values as data with each cell, and it can be the cell location.


Code:
--------------------
$('<div>' + numbers[i]['value'] + '</div>').data('number', { x: numbers[i]['value'], y: numbers[i]['index'] }).attr('id', 'card' + numbers[i]['index']).appendTo('#cardPile').draggable({
containment: '#content',
stack: '#cardPile div',
cursor: 'move',
revert: true
});

--------------------




Code:
--------------------
$('<div>' + userAnswer[i - 1]['value'] + '</div>').data('number', { x: numbersunsorted[i - 1]['value'], y: numbersunsorted[i - 1]['index'] }).appendTo('#cardSlots').droppable({
accept: '#cardPile div',
hoverClass: 'hovered',
drop: handleCardDrop
--------------------


Then we can read it after dropping the card into the slot

Code:
--------------------
var slotNumber = $(this).data('number').x;
var slotindex = $(this).data('number').y;
var cardNumber = ui.draggable.data('number').x;
var cardindex = ui.draggable.data('number').y;
--------------------


Thanks

[Edited by hitech on 03-Jun-13 07:56]

View » | Reply »

]]>
Mon, 03 Jun 2013 12:55:28 GMT http://www.elated.com/forums/topic/5136#post23464
Re: [Authoring and Programming] How to Add Image Uploading to Your CMS http://www.elated.com/forums/topic/5492/#post23462 From: artslave


Matt,
Is there any basic solution to help solve the problem I'm having with the above post.

The Category and Image upload don't seem to work together. I kept receiving errors.

Original Post:
I used your CMS tutorial and then added the Category tutorial and everything worked great. When I went to add the images tutorial, I received error on the adding new articles page:

Warning: PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens in /Applications/MAMP/htdocs/cms/classes/Article.php on line 292

Warning: PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens in /Applications/MAMP/htdocs/cms/classes/Article.php on line 292

Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/cms/classes/Article.php:292) in /Applications/MAMP/htdocs/cms/admin.php on line 133

I wasn't sure why this error was popping up. Any solution? They seem to work independently; however, when I use the code from the image uploaded and category, it pops up with errors.

View » | Reply »

]]>
Fri, 31 May 2013 22:05:15 GMT http://www.elated.com/forums/topic/5492#post23462
Re: [Authoring and Programming] Adding a WYSIWYG HTML Editor to Your Site http://www.elated.com/forums/topic/4839/#post23461 From: faytzylox


Hi--

I feel dumb asking this since it seems fairly fundamental and no one else has mentioned it so its most likely something I'm doing wrong... but:

------------------------------------------------------
<textarea cols="80" rows="10" id="content" name="content">
&lt;h1&gt;Article Title&lt;/h1&gt;
&lt;p&gt;Here's some sample text&lt;/p&gt;
</textarea>
<script type="text/javascript">
CKEDITOR.replace( 'articleContent' );
</script>
------------------------------------------------------

It's a snippet of code from the CKEditor example that you've shown above. As you can see, the ID or Name of the textbox is "content" and if my understanding is correct, this is the ID or Name that needs to go into the CKEDITOR.replace call. In this case, "articleContent" is written there when it should be "content"? I'm kind of confused about this. Please help. Thank you.

--
-Fayt

View » | Reply »

]]>
Fri, 31 May 2013 21:03:46 GMT http://www.elated.com/forums/topic/4839#post23461
Re: [Authoring and Programming] why do i get a A when i want a http://www.elated.com/forums/topic/5594/#post23459 From: chrishirst


Change the character set to Western Europrean.

--
Chris.
So long, and thanks for all the fish.
http://webmaster-talk.eu/


View » | Reply »

]]>
Thu, 30 May 2013 17:33:45 GMT http://www.elated.com/forums/topic/5594#post23459
Re: [Authoring and Programming] Javascript display document last modified in locale date http://www.elated.com/forums/topic/5590/#post23458 From: chrishirst


Yep or use a CMS that records such information.

--
Chris.
So long, and thanks for all the fish.
http://webmaster-talk.eu/


View » | Reply »

]]>
Thu, 30 May 2013 17:28:09 GMT http://www.elated.com/forums/topic/5590#post23458
Re: [Authoring and Programming] Drag-and-Drop with jQuery: Your Essential Guide http://www.elated.com/forums/topic/5136/#post23457 From: hitech


Hi Matt,
I'm not sure if you are still following this post or not, but any how, I wanted to check with you about some tweak that I made to your code.

My goal is to use this drag and drop for sorting type of exercises for our users.

And I will include the code that i have changed here. My question is how to get the order in which the user has placed his choices in cardSlots. That is, I want to save the user's answer.

Is there any way to do this?

Thanks in advance.


Code:
--------------------
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Test.aspx.vb" Inherits="Project.Test"
EnableEventValidation="false" ValidateRequest="false" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor"
TagPrefix="cc1" %>
<!DOCTYPE html" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head runat="server">
<title>Sorting Exercise</title>
<style type="text/css">
/* Add some margin to the page and set a default font and colour */

body
{
margin: 30px;
font-family: "Georgia" , serif;
line-height: 1.8em;
color: #333;
}

/* Give headings their own font */

h1, h2, h3, h4
{
font-family: "Lucida Sans Unicode" , "Lucida Grande" , sans-serif;
}

/* Main content area */

#content
{
margin: 80px 70px;
text-align: center;
-moz-user-select: none;
-webkit-user-select: none;
user-select: none;
}

/* Header/footer boxes */

.wideBox
{
clear: both;
text-align: center;
margin: 70px;
padding: 10px;
background: #ebedf2;
border: 1px solid #333;
}

.wideBox h1
{
font-weight: bold;
margin: 20px;
color: #666;
font-size: 1.5em;
}

/* Slots for final card positions */

#cardSlots
{
margin: 50px auto 0 auto;
background: #ddf;
}

/* The initial pile of unsorted cards */

#cardPile
{
margin: 0 auto;
background: #ffd;
}

#cardSlots, #cardPile
{
width: 200px;
height: 400px;
padding: 0px;
border: 2px solid #333;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
-moz-box-shadow: 0 0 .3em rgba(0, 0, 0, .8);
-webkit-box-shadow: 0 0 .3em rgba(0, 0, 0, .8);
box-shadow: 0 0 .3em rgba(0, 0, 0, .8);
}

/* Individual cards and slots */

#cardSlots div, #cardPile div
{
float: left;
width: 80%;
height: 20px;
padding: 5px;
padding-top: 5px;
padding-bottom: 5px;
border: 2px solid #333;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
margin: 0 0 0 10px;
background: #fff;
}

#cardSlots div:first-child, #cardPile div:first-child
{
/*margin-left: 0;*/
}

#cardSlots div.hovered
{
background: #aaa;
}

#cardSlots div
{
border-style: dashed;
}

#cardPile div
{
background: #666;
color: #fff;
font-size: 12px;
text-shadow: 0 0 3px #000;
}

#cardPile div.ui-draggable-dragging
{
-moz-box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
-webkit-box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
}

/* Individually coloured cards */
#card0.correct
{
background: silver;
}
#card1.correct
{
background: red;
}
#card2.correct
{
background: brown;
}
#card3.correct
{
background: orange;
}
#card4.correct
{
background: yellow;
}
#card5.correct
{
background: green;
}
#card6.correct
{
background: cyan;
}
#card7.correct
{
background: blue;
}
#card8.correct
{
background: indigo;
}
#card9.correct
{
background: purple;
}
#card10.correct
{
background: violet;
}
#card11.correct
{
background: lime;
}
#card12.correct
{
background: Teal;
}
#card13.correct
{
background: Olive;
}
#card14.correct
{
background: White;
}
#card15.correct
{
background: Navy;
}
#card16.correct
{
background: gray;
}

/* "You did it!" message */
#successMessage
{
position: absolute;
left: 580px;
top: 250px;
width: 0;
height: 0;
z-index: 100;
background: #dfd;
border: 2px solid #333;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
-moz-box-shadow: .3em .3em .5em rgba(0, 0, 0, .8);
-webkit-box-shadow: .3em .3em .5em rgba(0, 0, 0, .8);
box-shadow: .3em .3em .5em rgba(0, 0, 0, .8);
padding: 20px;
}
</style>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script>
<script type="text/javascript">
var correctCards = 0;
$(init);
//When|we|got|to|the|concert,|the |orchestra| had|already| begun|to|play.
var numbers = [[0, 'When'], [1, 'we'], [2, 'got'], [3, 'to'], [4, 'the'], [5, 'concert'], [6, 'the'], [7, 'orchestra'], [8, 'had'], [9, 'already'], [10, 'begun'], [11, 'to'], [12, 'play']];
var numbersunsorted = [[0, 'When'], [1, 'we'], [2, 'got'], [3, 'to'], [4, 'the'], [5, 'concert'], [6, 'the'], [7, 'orchestra'], [8, 'had'], [9, 'already'], [10, 'begun'], [11, 'to'], [12, 'play']];
function init() {

// Hide the success message
$('#successMessage').hide();
$('#successMessage').css({
left: '580px',
top: '250px',
width: 0,
height: 0
});

// Reset the game
correctCards = 0;
$('#cardPile').html('');
$('#cardSlots').html('');
$('#cardPile').height(35 * numbers.length);
$('#cardSlots').height(35 * numbers.length);


// Create the pile of shuffled cards
numbers.sort(function () { return Math.random() - .5 });
for (var i = 0; i < numbers.length; i++) {
$('<div>' + numbers[i][1] + '</div>').data('number', numbers[i][1]).attr('id', 'card' + numbers[i][0]).appendTo('#cardPile').draggable({
containment: '#content',
stack: '#cardPile div',
cursor: 'move',
revert: true
});
}

// Create the card slots
var words = ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''];
for (var i = 1; i <= numbers.length; i++) {
$('<div>' + numbersunsorted[i - 1][1] + '</div>').data('number', numbersunsorted[i - 1][1]).appendTo('#cardSlots').droppable({
accept: '#cardPile div',
hoverClass: 'hovered',
drop: handleCardDrop
});
}

}

function handleCardDrop(event, ui) {
var slotNumber = $(this).data('number');
var cardNumber = ui.draggable.data('number');

// If the card was dropped to the correct slot,
// change the card colour, position it directly
// on top of the slot, and prevent it being dragged
// again
if (slotNumber == cardNumber) {
ui.draggable.addClass('correct');
ui.draggable.draggable('disable');
$(this).droppable('disable');
ui.draggable.position({ of: $(this), my: 'left top', at: 'left top' });
ui.draggable.draggable('option', 'revert', false);
correctCards++;
}


if (slotNumber != cardNumber) {
ui.draggable.addClass('incorrect');
//ui.draggable.draggable('enable');
$(this).droppable('disable');
ui.draggable.position({ of: $(this), my: 'left top', at: 'left top' });
ui.draggable.draggable('option', 'revert', false);

}
// If all the cards have been placed correctly then display a message
// and reset the cards for another go

if (correctCards == numbers.length) {
$('<div>' + 'Your Score is: ' + correctCards + ' out of ' + numbers.length + '</div>').appendTo('#successMessage')
$('#successMessage').show();
$('#successMessage').animate({
left: '380px',
top: '200px',
width: '400px',
height: '100px',
opacity: 1
});
}
}

function showResult() {

$('<div>' + 'Your Score is: ' + correctCards + ' out of ' + numbers.length + '</div>').appendTo('#Div1');
$('#Div1').show();
$('#Div1').animate({
left: '380px',
top: '200px',
width: '400px',
height: '100px',
opacity: 1
});
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div id="content" style="width: 40%">
<div id="cardPile" style="float: left;">
<div id="card4" class="ui-draggable" style="position: relative;">
4</div>
<div id="card1" class="ui-draggable" style="position: relative;">
1</div>
<div id="card2" class="ui-draggable" style="position: relative;">
2</div>
<div id="card5" class="ui-draggable" style="position: relative;">
5</div>
<div id="card3" class="ui-draggable" style="position: relative;">
3</div>
<div id="card6" class="ui-draggable" style="position: relative;">
6</div>
<div id="card7" class="ui-draggable" style="position: relative;">
7</div>
<div id="card8" class="ui-draggable" style="position: relative;">
8</div>
<div id="card9" class="ui-draggable" style="position: relative;">
9</div>
<div id="card10" class="ui-draggable" style="position: relative;">
10</div>
<div id="card11" class="ui-draggable" style="position: relative;">
11</div>
<div id="card12" class="ui-draggable" style="position: relative;">
12</div>
<div id="card13" class="ui-draggable" style="position: relative;">
13</div>
<div id="card14" class="ui-draggable" style="position: relative;">
14</div>
</div>
<div id="cardSlots">
<div class="ui-droppable">
one</div>
<div class="ui-droppable">
two</div>
<div class="ui-droppable">
three</div>
<div class="ui-droppable">
four</div>
<div class="ui-droppable">
five</div>
<div class="ui-droppable">
six</div>
<div class="ui-droppable">
seven</div>
<div class="ui-droppable">
eight</div>
<div class="ui-droppable">
nine</div>
<div class="ui-droppable">
ten</div>
<div class="ui-droppable">
Eleven</div>
<div class="ui-droppable">
Twelve</div>
<div class="ui-droppable">
Thirteen</div>
<div class="ui-droppable">
Fourteen</div>
</div>
<div id="successMessage" style="display: none; left: 580px; top: 250px; width: 0px;
height: 0px;">
<button onclick="init()">
Play Again</button>
</div>
<button onmouseover="showResult()" onmouseout="$('#Div1').hide(); $('#Div1').html('');">
Show Result</button>
<div id="Div1" style="display: none; left: 580px; top: 250px; width: 0px;
height: 0px;">
</div>

</div>
</form>
</body>
</html>

--------------------


[Edited by hitech on 30-May-13 10:53]

View » | Reply »

]]>
Thu, 30 May 2013 15:52:10 GMT http://www.elated.com/forums/topic/5136#post23457
Re: [Authoring and Programming] Javascript display document last modified in locale date http://www.elated.com/forums/topic/5590/#post23456 From: cato


Hi, just a really stupid question, so I hope you can forgive me .....

If I wanted to show the date that the web author of the webpage last did a "static" change to the site, what is the best way to do this?

Should I just "manually" type in the date I want, rather than getting a script to do it?

View » | Reply »

]]>
Thu, 30 May 2013 11:11:28 GMT http://www.elated.com/forums/topic/5590#post23456
Re: [Website Marketing] SEO for Beginners http://www.elated.com/forums/topic/4706/#post23455 From: seoxoom


Nice and informative starter guide.

--
SEO Company: http://www.hyphentechnologies.in/search-engine-optimization.php

View » | Reply »

]]>
Thu, 30 May 2013 06:59:14 GMT http://www.elated.com/forums/topic/4706#post23455
Re: [Website Marketing] Top 10 Free Ways to Build Traffic to Your Site http://www.elated.com/forums/topic/4708/#post23454 From: seoxoom


Create useful content is the best technique now a days after penguin 2.0, thanks for such a wonderful information

--
SEO Company: http://www.hyphentechnologies.in/search-engine-optimization.php

View » | Reply »

]]>
Thu, 30 May 2013 06:56:03 GMT http://www.elated.com/forums/topic/4708#post23454
Re: [Graphics and Design] Links http://www.elated.com/forums/topic/5140/#post23453 From: iyappan


I agree this code
<a href="page.html" target="_blank">Keyword </a>

--
Chennai web Development
http://www.chennaiwebdevelopment.com/


View » | Reply »

]]>
Wed, 29 May 2013 11:06:58 GMT http://www.elated.com/forums/topic/5140#post23453
Re: [Authoring and Programming] How to Make a Slick Ajax Contact Form with jQuery and PHP http://www.elated.com/forums/topic/5171/#post23452 From: mbarcala


Sorry subject field here


Code:
--------------------
$conSenderSubject = isset( $_POST['conSenderSubject'] ) ? preg_replace( "/[^\.\-\_\@a-zA-Z0-9]/", "", $_POST['conSenderSubject'] ) : "";
--------------------


View » | Reply »

]]>
Tue, 28 May 2013 15:24:33 GMT http://www.elated.com/forums/topic/5171#post23452
Re: [Authoring and Programming] How to Make a Slick Ajax Contact Form with jQuery and PHP http://www.elated.com/forums/topic/5171/#post23451 From: mbarcala


Hi Matt,

I have 2 issues for you with your form now

1- my subject field, display all word together when i receive the email?

and 2

Code:
--------------------
yours
$headers = "From: " . $senderName . " <" . $senderEmail . ">";

my
$headers = "From: " . RECIPIENT_NAME . " <" . RECIPIENT_EMAIL . ">" . "\r\n" . "Reply-to: " . $conSenderEmail;
--------------------


with your header i can't send any email with this form, alway give me an error message "There was a problem sending your message. Please try again."
with my i can send the email BUT i can't replay to the senderEmail, it just replay to my self.

what could be my problem? i'm using yahoo server PHP 5.3.6

hope you can help to figure out this situation

Best regards

mbarcala

View » | Reply »

]]>
Tue, 28 May 2013 15:23:23 GMT http://www.elated.com/forums/topic/5171#post23451
Re: [Authoring and Programming] Banish JavaScript in Web Forms with HTML5 http://www.elated.com/forums/topic/5015/#post23450 From: mmahtabsaleem


Very nice form and easy to use,
I am going to add into my blog. . . Thanks!

View » | Reply »

]]>
Tue, 28 May 2013 14:07:16 GMT http://www.elated.com/forums/topic/5015#post23450
[Authoring and Programming] why do i get a A when i want a http://www.elated.com/forums/topic/5594/#post23449 From: cockerhamgoats


hi, im using coffee cup - not impressed with it but hey thats what im using.

when i want to put in a £ sign i always get a A£ show up inthe web view and online.

why is this happening and how can i get a normal £ sign

thanks

--
sharon peacock

View » | Reply »

]]>
Tue, 28 May 2013 09:52:45 GMT http://www.elated.com/forums/topic/5594#post23449
Re: [Website Management] htaccess index.php? http://www.elated.com/forums/topic/5591/#post23448 From: chrishirst


Don't put it in the rewrite rule.

--
Chris.
So long, and thanks for all the fish.
http://webmaster-talk.eu/


View » | Reply »

]]>
Mon, 27 May 2013 21:58:09 GMT http://www.elated.com/forums/topic/5591#post23448
Re: [Authoring and Programming] Where is the WampPHP console log. http://www.elated.com/forums/topic/5589/#post23447 From: chrishirst


Explain " it displays correct without all the tags"

--
Chris.
So long, and thanks for all the fish.
http://webmaster-talk.eu/


View » | Reply »

]]>
Mon, 27 May 2013 21:52:46 GMT http://www.elated.com/forums/topic/5589#post23447
Re: [Authoring and Programming] Javascript display document last modified in locale date http://www.elated.com/forums/topic/5590/#post23446 From: chrishirst


Scripted documents ARE "last modified" on, and at, the instant they are requested and therefore created.

--
Chris.
So long, and thanks for all the fish.
http://webmaster-talk.eu/


View » | Reply »

]]>
Mon, 27 May 2013 21:50:39 GMT http://www.elated.com/forums/topic/5590#post23446
Re: [Authoring and Programming] jQuery Mobile Hosted on Server 1 and Retrieve Data from Server 2 http://www.elated.com/forums/topic/5593/#post23445 From: chrishirst


javascript HAS to be running in the context of the same domain it is hosted on.

--
Chris.
So long, and thanks for all the fish.
http://webmaster-talk.eu/


View » | Reply »

]]>
Mon, 27 May 2013 21:48:13 GMT http://www.elated.com/forums/topic/5593#post23445
[Authoring and Programming] jQuery Mobile Hosted on Server 1 and Retrieve Data from Server 2 http://www.elated.com/forums/topic/5593/#post23444 From: databuzz


I have a simple jQuery Mobile application that is hosted on one server (server1.com) which includes some php pages that query a database hosted on another server (server2.com).

This all works fine when everything (jQuery Mobile website and Database) is hosted on the same server but when they are separated it doesn't display any of the data. I've been looking at the Configuring Defaults documentation at:

http://api.jquerymobile.com/global-config/

and specifically the allowCrossDomainPages option. I've created a new script file called custom-scripting.js which contains the following:



Code:
--------------------
$(document).bind("mobileinit", function(){
$.extend( $.mobile , {
allowCrossDomainPages: true
});
});
--------------------



and the called it as recommended:



Code:
--------------------
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="custom-scripting.js"></script>
<script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>
--------------------



but my PHP page is still not making the request to server2.com. I was hoping that setting allowCrossDomainPages: true would allow the PHP page to make the request to the external server.

Anyone else setup a similar configuration with jQuery Mobile that needs to retrieve data from an external server using php?

View » | Reply »

]]>
Mon, 27 May 2013 11:05:23 GMT http://www.elated.com/forums/topic/5593#post23444
[Your Site: Judge and Jury!] Please review http://www.elated.com/forums/topic/5592/#post23443 From: paul105


Hi all,

Please take a look at www.michelledaniels.co.uk

Any constructive criticsm gratefully received.

paul.

View » | Reply »

]]>
Sun, 26 May 2013 19:30:18 GMT http://www.elated.com/forums/topic/5592#post23443
[Website Management] htaccess index.php? http://www.elated.com/forums/topic/5591/#post23442 From: paul105


Hi all,

I'm editing my htaccess to try and get rid of the index.php? in my url's that appear on the website i.e.

http://www.michelledaniels.co.uk/photos/index.php?/categories

However the best I can manage is to remove the index.php but not the question mark

My htaccess is as below, any ideas :-



Code:
--------------------
# Externally redirect client requests contains htm/html extension to extensionless URL
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*[^.]+\index.php\?

# externally redirect to extensionless URI
RewriteRule ^(([^/]+/)*[^.]+)\index.php/?$ http://www.michelledaniels.co.uk/$1 [R=301,L]

# and if requested extensionless URL-path plus ".htm" does resolve to an existing file

RewriteCond %{REQUEST_FILENAME}index.php? -f
# then append ".htm" to resolve the actual filename
RewriteRule ^(([^/]+/)*[^/]+)\?$ $1.php [L]
--------------------


Many thanks

Paul

View » | Reply »

]]>
Sun, 26 May 2013 19:18:42 GMT http://www.elated.com/forums/topic/5591#post23442
[Authoring and Programming] Javascript display document last modified in locale date http://www.elated.com/forums/topic/5590/#post23441 From: cato


I am a brand new beginner, just learning the basics of Javascript.
For days on end, I have been trying to find code that will display the date the webpage was last updated by the web author.

I have used the below function, however, I find the result defaults to UTC/GMT date when using document.lastModified (despite it being formatted to the local date). So the "look" of the date displays OK, but the date is always behind, showing UTC/GMT date, not AEST (Australian Eastern Standard Time).

I tried a few different date options, and below is how the code displays. 'a' and 'b' reference the document.last modified, but the results are not what I want. (When I updated the webpage where I placed my function, my computer clock showed it was Saturday 25 May 2013, 1:45am. (Again, I don't want the current date displayed on the browser, I want so show the date the webpage was last updated by the web author).

Also, I noticed that 'a' is updating the time each instance the browser is refreshed (which is not what I want, I want the date/time returned of the webpage last update by the web author).

This is not the result I want:
Date last updated using 'a': Fri May 24 2013 15:51:06 GMT+1000 (EST)
Date: 24 / Month: 5 / Year: 2013 / Hours: 15 / Minutes: 51 / Seconds: 6

This is not the result I want:
Date last updated using 'b': 24 May 2013

This is for reference/comparison only, showing current date:
Current date using 'c': Sat May 25 2013 01:51:06 GMT+1000 (EST)
Date: 25 / Month: 5 / Year: 2013 / Hours: 1 / Minutes: 51 / Seconds: 6

Code I used:


Code:
--------------------
function dateUpdated() {

a = new Date(document.lastModified)

b = a.toLocaleDateString()

c = new Date

document.write ( "Date last updated using 'a': " + a + "<br>" +
" Date: " + a.getDate() + " / Month: " + (a.getMonth()+1) + " / Year: " + a.getFullYear() + " / Hours: " + a.getHours() + " / Minutes: " + a.getMinutes() + " / Seconds: " + a.getSeconds() + "<p>")

document.write ( "Date last updated using 'b': " + b + "<p>" )

document.write ( "Current date using 'c': " + c+ "<br>" +
" Date: " + c.getDate() + " / Month: " + (c.getMonth()+1) + " / Year: " + c.getFullYear() + " / Hours: " + c.getHours() + " / Minutes: " + a.getMinutes() + " / Seconds: " + c.getSeconds() + "<br>")

}
--------------------


View » | Reply »

]]>
Fri, 24 May 2013 16:19:09 GMT http://www.elated.com/forums/topic/5590#post23441
[Authoring and Programming] Where is the WampPHP console log. http://www.elated.com/forums/topic/5589/#post23440 From: silverhorse1


Hi, I downloaded wamp, but then it says on the web I must open the console log and configure it.
but, all I have is the icon, then when I open it, I get a whole lot of files and folders.
How do I configure it to work, so when I put a php code in the editor, and display it in the browser, it displays correct without all the tags.
could anybody help me. thanks

View » | Reply »

]]>
Fri, 24 May 2013 03:38:18 GMT http://www.elated.com/forums/topic/5589#post23440
Re: [Website Marketing] Five simple ways to get free Website traffic http://www.elated.com/forums/topic/4906/#post23437 From: lotusindustrial


Thanks a lot

View » | Reply »

]]>
Wed, 22 May 2013 08:10:54 GMT http://www.elated.com/forums/topic/4906#post23437
Re: [Authoring and Programming] A Snazzy Animated Pie Chart with HTML5 and jQuery http://www.elated.com/forums/topic/5000/#post23435 From: zazoo24


HELLO thanks for this lovely article, my question is i want to display the info (in this case widget ...) into one place for example in a little zone just under the pie .

any help please would much appreciated

View » | Reply »

]]>
Tue, 21 May 2013 16:01:22 GMT http://www.elated.com/forums/topic/5000#post23435
Re: [Authoring and Programming] How to Add Image Uploading to Your CMS http://www.elated.com/forums/topic/5492/#post23434 From: artslave


I used your CMS tutorial and then added the Category tutorial and everything worked great. When I went to add the images tutorial, I received error on the adding new articles page:

Warning: PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens in /Applications/MAMP/htdocs/cms/classes/Article.php on line 292

Warning: PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens in /Applications/MAMP/htdocs/cms/classes/Article.php on line 292

Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/cms/classes/Article.php:292) in /Applications/MAMP/htdocs/cms/admin.php on line 133

I wasn't sure why this error was popping up. Any solution? They seem to work independently; however, when I use the code from the image uploaded and category, it pops up with errors.

View » | Reply »

]]>
Tue, 21 May 2013 00:17:11 GMT http://www.elated.com/forums/topic/5492#post23434
Re: [Authoring and Programming] How to Start a Blog http://www.elated.com/forums/topic/4718/#post23433 From: Aelynn103


Here's a good resource.

Spam REMOVED

[Edited by chrishirst on 20-May-13 07:36]

View » | Reply »

]]>
Sun, 19 May 2013 16:42:48 GMT http://www.elated.com/forums/topic/4718#post23433
Re: [Authoring and Programming] Object-Oriented PHP: Delving Deeper into Properties and Methods http://www.elated.com/forums/topic/5195/#post23432 From: anupy


Actually, I was avoiding to read what are magic methods are but now I've got a full understanding of magic method because of your article.

Thanks.

View » | Reply »

]]>
Sun, 19 May 2013 13:14:11 GMT http://www.elated.com/forums/topic/5195#post23432
Re: [Authoring and Programming] PHP Variable Scope: All You Need to Know http://www.elated.com/forums/topic/5037/#post23431 From: anupy


Basically, I understood the use of static member. The way you explained that's just great!! Thanks.

View » | Reply »

]]>
Sun, 19 May 2013 13:11:47 GMT http://www.elated.com/forums/topic/5037#post23431
Re: [Authoring and Programming] Table adjustment in the form using jQuery Mobile http://www.elated.com/forums/topic/5586/#post23430 From: chrishirst


No.

--
Chris.
So long, and thanks for all the fish.
http://webmaster-talk.eu/


View » | Reply »

]]>
Sat, 18 May 2013 20:59:00 GMT http://www.elated.com/forums/topic/5586#post23430
Re: [Authoring and Programming] Writing Your First PHP Script http://www.elated.com/forums/topic/4720/#post23429 From: chrishirst


You're a few days late for the thread's fourth birthday link drop.

--
Chris.
So long, and thanks for all the fish.
http://webmaster-talk.eu/


View » | Reply »

]]>
Sat, 18 May 2013 20:57:54 GMT http://www.elated.com/forums/topic/4720#post23429
Re: [Graphics and Design] anybody know anything about icon sets? http://www.elated.com/forums/topic/1792/#post23428 From: simon


I fear I've never done it, but I'd be really interested to know how you get on with generating icon sets and using them. I'm assuming you're using icon font sets?

Simon

--
ELATED : )
http://www.PageKits.com
Professional Website Templates


View » | Reply »

]]>
Fri, 17 May 2013 15:55:49 GMT http://www.elated.com/forums/topic/1792#post23428
Re: [Graphics and Design] Text wrap in Illustrator or photoshop http://www.elated.com/forums/topic/5587/#post23427 From: simon


Hmm, depends on the desired look, but really it sounds like you might want text on a path:

http://www.adobe.com/designcenter-archive/illustrator/articles/illcs2at_typepath.html

Simon

--
ELATED : )
http://www.PageKits.com
Professional Website Templates


View » | Reply »

]]>
Fri, 17 May 2013 15:53:53 GMT http://www.elated.com/forums/topic/5587#post23427
Re: [Website Marketing] Five simple ways to get free Website traffic http://www.elated.com/forums/topic/4906/#post23426 From: pixelfire


That's really nice information you have provided.I think social media promotion is the main source of generating the traffic.Because through social media we can target the relevant traffic.

--
http://www.pixelfire.com.au/

View » | Reply »

]]>
Fri, 17 May 2013 09:16:26 GMT http://www.elated.com/forums/topic/4906#post23426
Re: [Graphics and Design] anybody know anything about icon sets? http://www.elated.com/forums/topic/1792/#post23424 From: pixelfire


I am using a tool Fontello for icon creation.This tool can be also used to convert the photoshop files to the icon file that is .ico

--
http://www.pixelfire.com.au/

View » | Reply »

]]>
Fri, 17 May 2013 09:11:36 GMT http://www.elated.com/forums/topic/1792#post23424
[Graphics and Design] Text wrap in Illustrator or photoshop http://www.elated.com/forums/topic/5587/#post23423 From: eman


I am working on a logo for a client that needs several words wrapped around the letter L like a vine. I'm trying to figure out how to do this in illustrator (preferably) or photoshop. Does anyone have any ideas? Thanks

View » | Reply »

]]>
Fri, 17 May 2013 03:18:41 GMT http://www.elated.com/forums/topic/5587#post23423
Re: [Authoring and Programming] Writing Your First PHP Script http://www.elated.com/forums/topic/4720/#post23421 From: gopiwisen


Very understandable article

--
Co Author of Wisen Technologies Mastering PHP course material

http://wisentechnologies.com/it-courses/php-training.aspx


View » | Reply »

]]>
Thu, 16 May 2013 13:17:29 GMT http://www.elated.com/forums/topic/4720#post23421
[Authoring and Programming] Table adjustment in the form using jQuery Mobile http://www.elated.com/forums/topic/5586/#post23420 From: Ravi


Hi All,

We have a requirement where the table contains multiple rows and columns. When we inserted the table in the form, this is going beyond the view and not fitting the form screen. Is there any possibility to change the view of the table from portrait to landscape mode instead of changing the view of whole form. Please suggest any possible solution for this issue.

Regards,
Ravi G

View » | Reply »

]]>
Thu, 16 May 2013 07:53:14 GMT http://www.elated.com/forums/topic/5586#post23420
Re: [Graphics and Design] Selecting Layers in Photoshop http://www.elated.com/forums/topic/4688/#post23419 From: mguerra79


Hi guys! Thanks for the tutorial. I'm proud to say that I knew 99% of it, only one or two «tricks» that in Portuguese keyboards don't work due to keys positions. Well, even those I knew a few... lucky me, ahahah!

Cheers from Portugal!

Márcio Guerra

--
There are only 2 infinite things, the universe and mens stupidity, and Im not sure about the first one!

Or something like it...
By Albert Einstein


View » | Reply »

]]>
Tue, 14 May 2013 11:08:52 GMT http://www.elated.com/forums/topic/4688#post23419
Re: [Graphics and Design] Selecting Layers in Photoshop http://www.elated.com/forums/topic/4688/#post23417 From: Moremoe


Thx for the great article.Here is a little problem in Photoshop CS6 to use Rubber-band selection.It didn't work for me.Anyone got the same problem???

View » | Reply »

]]>
Mon, 13 May 2013 15:17:17 GMT http://www.elated.com/forums/topic/4688#post23417