Creating dynamic sites - tutorials?
I've created many static websites, but need to QUICKLY learn
how to develop dynamic sites. I've not found many useful tutorials.
I'm also wondering if there are any useful extensions that may
streamline the process.
Here is some of what I need to do:
* Create a section that has an "Ask the expert" form w/
later-posted answers. I'd need a form and table to collect the
questions. I'd also need to be able to have the expert be able to
enter her answers and then have those questions and answers
displayed back to end users.
* Create a searchable or by-topic selection of the "ask the
expert" questions and answers.
* I need to create a back end (?) so that the "expert" can
add content, view questions, etc.
Ideas for how I can start?
thanks.
michael munson
[email protected]
http://www.adobe.com/devnet/dreamweaver/articles/develop_web_application.html
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"tgwarrior" <[email protected]> wrote in
message
news:gigkt0$1er$[email protected]..
> I've created many static websites, but need to QUICKLY
learn how to
> develop
> dynamic sites. I've not found many useful tutorials. I'm
also wondering
> if
> there are any useful extensions that may streamline the
process.
>
> Here is some of what I need to do:
>
> * Create a section that has an "Ask the expert" form w/
later-posted
> answers.
> I'd need a form and table to collect the questions. I'd
also need to be
> able
> to have the expert be able to enter her answers and then
have those
> questions
> and answers displayed back to end users.
>
> * Create a searchable or by-topic selection of the "ask
the expert"
> questions
> and answers.
>
> * I need to create a back end (?) so that the "expert"
can add content,
> view
> questions, etc.
>
> Ideas for how I can start?
>
> thanks.
>
> michael munson
> [email protected]
>
Similar Messages
-
Created PHP site and Dynamic Pages. So what next?
Hey guys,
So i have created a site. It is a simple Car Dismantlers site with 4 pages in a front end section for visitors to the site. The pages are index.php, contact.php, search.php and directions.php. I have a back end section in an admin folder where an administrator can add, update and delete records from a database which is password protected. The whole site is working fine locally but now i want to upload it and dont know where to start. I have domain name set up with Lime Domains, it is PHP and MySql ready. This is the first php site i have created and I dont really know where to start to get it up and running now.
Thanks in advance.Hey J.S,
Do you think its a bad idea to have Database admin over them web? How could i make my db admin into a program to run on a certain computer. i.e on the car breaker yard where there is no dreamweaver.
Thanks J.S -
Why is my flash content not working on my dreamweaver created html site?
This is a problem that's happening on my website I'm creating. I created a quick test website to show you the problem on the fourm. It's the same problem, and if you can provide the solution to this test website I can apply it to my main website.
Test website on server:
test331754952.net23.net
What I did:
-launched flash
-typed "test" and made it spin 360 degrees
-published swf
-launched dreamweaver
-created a site
-moved swf to site folder
-saved a html file to the site folder
-in dreamweaver, went to insert, media, swf, then selected the swf I made
-it inserted the swf, creating a gray placeholder for it
-re-saved the html document, at which point dreamweaver created a folder named script and 2 files, an swf, and a javascript file
Site Directory:
Scripts Sub-Directory:
What happens:
-when I launch the swf on my machine, it plays fine
-when I open the swf directly on the test website on the server, it plays fine
-when I open the html with the embended swf on the test website on the server, it shows a gray box, then goes white
-In dreamweaver, when I go to preview in browser and choose internet explorer, it tells me I don't have new flashplayer(I do: flashplayer 11)
Ie also pokes up a box at the bottom that says its not allowing content. When I click allow content, it creates a gray box
-In dreamweaver, when I go to preview in borwser and choose google chrome, it tells me flash player has stopped a potentionally unsafe operation. When I close this dialog box, it gives me a gray box where my swf should be embeded.
-I've tried changing global flash secuirty setting and it does nothing
-I've tried visiting the test website on multiple computers in my household to no avail
-I've tried having friends visit the site on their computer at their house to no avail
-I did't touch the code on this test website-the code is exactly what dreamweaver generated
Html Document Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>
<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="400" id="FlashID" title="test">
<param name="movie" value="test.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="15.0.0.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="test.swf" width="550" height="400">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="15.0.0.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
<script type="text/javascript">
swfobject.registerObject("FlashID");
</script>
</body>
</html>
Javascript file code(the one dreamweaver made when I inserted swf):
/*! SWFObject v2.0 <http://code.google.com/p/swfobject/>
Copyright (c) 2007 Geoff Stearns, Michael Williams, and Bobby van der Sluis
This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
var swfobject = function() {
var UNDEF = "undefined",
OBJECT = "object",
SHOCKWAVE_FLASH = "Shockwave Flash",
SHOCKWAVE_FLASH_AX = "ShockwaveFlash.ShockwaveFlash",
FLASH_MIME_TYPE = "application/x-shockwave-flash",
EXPRESS_INSTALL_ID = "SWFObjectExprInst",
win = window,
doc = document,
nav = navigator,
domLoadFnArr = [],
regObjArr = [],
timer = null,
storedAltContent = null,
storedAltContentId = null,
isDomLoaded = false,
isExpressInstallActive = false;
/* Centralized function for browser feature detection
- Proprietary feature detection (conditional compiling) is used to detect Internet Explorer's features
- User agent string detection is only used when no alternative is possible
- Is executed directly for optimal performance
var ua = function() {
var w3cdom = typeof doc.getElementById != UNDEF && typeof doc.getElementsByTagName != UNDEF && typeof doc.createElement != UNDEF && typeof doc.appendChild != UNDEF && typeof doc.replaceChild != UNDEF && typeof doc.removeChild != UNDEF && typeof doc.cloneNode != UNDEF,
playerVersion = [0,0,0],
d = null;
if (typeof nav.plugins != UNDEF && typeof nav.plugins[SHOCKWAVE_FLASH] == OBJECT) {
d = nav.plugins[SHOCKWAVE_FLASH].description;
if (d) {
d = d.replace(/^.*\s+(\S+\s+\S+$)/, "$1");
playerVersion[0] = parseInt(d.replace(/^(.*)\..*$/, "$1"), 10);
playerVersion[1] = parseInt(d.replace(/^.*\.(.*)\s.*$/, "$1"), 10);
playerVersion[2] = /r/.test(d) ? parseInt(d.replace(/^.*r(.*)$/, "$1"), 10) : 0;
else if (typeof win.ActiveXObject != UNDEF) {
var a = null, fp6Crash = false;
try {
a = new ActiveXObject(SHOCKWAVE_FLASH_AX + ".7");
catch(e) {
try {
a = new ActiveXObject(SHOCKWAVE_FLASH_AX + ".6");
playerVersion = [6,0,21];
a.AllowScriptAccess = "always"; // Introduced in fp6.0.47
catch(e) {
if (playerVersion[0] == 6) {
fp6Crash = true;
if (!fp6Crash) {
try {
a = new ActiveXObject(SHOCKWAVE_FLASH_AX);
catch(e) {}
if (!fp6Crash && a) { // a will return null when ActiveX is disabled
try {
d = a.GetVariable("$version"); // Will crash fp6.0.21/23/29
if (d) {
d = d.split(" ")[1].split(",");
playerVersion = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)];
catch(e) {}
var u = nav.userAgent.toLowerCase(),
p = nav.platform.toLowerCase(),
webkit = /webkit/.test(u) ? parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : false, // returns either the webkit version or false if not webkit
ie = false,
windows = p ? /win/.test(p) : /win/.test(u),
mac = p ? /mac/.test(p) : /mac/.test(u);
/*@cc_on
ie = true;
@if (@_win32)
windows = true;
@elif (@_mac)
mac = true;
@end
return { w3cdom:w3cdom, pv:playerVersion, webkit:webkit, ie:ie, win:windows, mac:mac };
/* Cross-browser onDomLoad
- Based on Dean Edwards' solution: http://dean.edwards.name/weblog/2006/06/again/
- Will fire an event as soon as the DOM of a page is loaded (supported by Gecko based browsers - like Firefox -, IE, Opera9+, Safari)
var onDomLoad = function() {
if (!ua.w3cdom) {
return;
addDomLoadEvent(main);
if (ua.ie && ua.win) {
try { // Avoid a possible Operation Aborted error
doc.write("<scr" + "ipt id=__ie_ondomload defer=true src=//:></scr" + "ipt>"); // String is split into pieces to avoid Norton AV to add code that can cause errors
var s = getElementById("__ie_ondomload");
if (s) {
s.onreadystatechange = function() {
if (this.readyState == "complete") {
this.parentNode.removeChild(this);
callDomLoadFunctions();
catch(e) {}
if (ua.webkit && typeof doc.readyState != UNDEF) {
timer = setInterval(function() { if (/loaded|complete/.test(doc.readyState)) { callDomLoadFunctions(); }}, 10);
if (typeof doc.addEventListener != UNDEF) {
doc.addEventListener("DOMContentLoaded", callDomLoadFunctions, null);
addLoadEvent(callDomLoadFunctions);
function callDomLoadFunctions() {
if (isDomLoaded) {
return;
if (ua.ie && ua.win) { // Test if we can really add elements to the DOM; we don't want to fire it too early
var s = createElement("span");
try { // Avoid a possible Operation Aborted error
var t = doc.getElementsByTagName("body")[0].appendChild(s);
t.parentNode.removeChild(t);
catch (e) {
return;
isDomLoaded = true;
if (timer) {
clearInterval(timer);
timer = null;
var dl = domLoadFnArr.length;
for (var i = 0; i < dl; i++) {
domLoadFnArr[i]();
function addDomLoadEvent(fn) {
if (isDomLoaded) {
fn();
else {
domLoadFnArr[domLoadFnArr.length] = fn; // Array.push() is only available in IE5.5+
/* Cross-browser onload
- Based on James Edwards' solution: http://brothercake.com/site/resources/scripts/onload/
- Will fire an event as soon as a web page including all of its assets are loaded
function addLoadEvent(fn) {
if (typeof win.addEventListener != UNDEF) {
win.addEventListener("load", fn, false);
else if (typeof doc.addEventListener != UNDEF) {
doc.addEventListener("load", fn, false);
else if (typeof win.attachEvent != UNDEF) {
win.attachEvent("onload", fn);
else if (typeof win.onload == "function") {
var fnOld = win.onload;
win.onload = function() {
fnOld();
fn();
else {
win.onload = fn;
/* Main function
- Will preferably execute onDomLoad, otherwise onload (as a fallback)
function main() { // Static publishing only
var rl = regObjArr.length;
for (var i = 0; i < rl; i++) { // For each registered object element
var id = regObjArr[i].id;
if (ua.pv[0] > 0) {
var obj = getElementById(id);
if (obj) {
regObjArr[i].width = obj.getAttribute("width") ? obj.getAttribute("width") : "0";
regObjArr[i].height = obj.getAttribute("height") ? obj.getAttribute("height") : "0";
if (hasPlayerVersion(regObjArr[i].swfVersion)) { // Flash plug-in version >= Flash content version: Houston, we have a match!
if (ua.webkit && ua.webkit < 312) { // Older webkit engines ignore the object element's nested param elements
fixParams(obj);
setVisibility(id, true);
else if (regObjArr[i].expressInstall && !isExpressInstallActive && hasPlayerVersion("6.0.65") && (ua.win || ua.mac)) { // Show the Adobe Express Install dialog if set by the web page author and if supported (fp6.0.65+ on Win/Mac OS only)
showExpressInstall(regObjArr[i]);
else { // Flash plug-in and Flash content version mismatch: display alternative content instead of Flash content
displayAltContent(obj);
else { // If no fp is installed, we let the object element do its job (show alternative content)
setVisibility(id, true);
/* Fix nested param elements, which are ignored by older webkit engines
- This includes Safari up to and including version 1.2.2 on Mac OS 10.3
- Fall back to the proprietary embed element
function fixParams(obj) {
var nestedObj = obj.getElementsByTagName(OBJECT)[0];
if (nestedObj) {
var e = createElement("embed"), a = nestedObj.attributes;
if (a) {
var al = a.length;
for (var i = 0; i < al; i++) {
if (a[i].nodeName.toLowerCase() == "data") {
e.setAttribute("src", a[i].nodeValue);
else {
e.setAttribute(a[i].nodeName, a[i].nodeValue);
var c = nestedObj.childNodes;
if (c) {
var cl = c.length;
for (var j = 0; j < cl; j++) {
if (c[j].nodeType == 1 && c[j].nodeName.toLowerCase() == "param") {
e.setAttribute(c[j].getAttribute("name"), c[j].getAttribute("value"));
obj.parentNode.replaceChild(e, obj);
/* Fix hanging audio/video threads and force open sockets and NetConnections to disconnect
- Occurs when unloading a web page in IE using fp8+ and innerHTML/outerHTML
- Dynamic publishing only
function fixObjectLeaks(id) {
if (ua.ie && ua.win && hasPlayerVersion("8.0.0")) {
win.attachEvent("onunload", function () {
var obj = getElementById(id);
if (obj) {
for (var i in obj) {
if (typeof obj[i] == "function") {
obj[i] = function() {};
obj.parentNode.removeChild(obj);
/* Show the Adobe Express Install dialog
- Reference: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=6a253b75
function showExpressInstall(regObj) {
isExpressInstallActive = true;
var obj = getElementById(regObj.id);
if (obj) {
if (regObj.altContentId) {
var ac = getElementById(regObj.altContentId);
if (ac) {
storedAltContent = ac;
storedAltContentId = regObj.altContentId;
else {
storedAltContent = abstractAltContent(obj);
if (!(/%$/.test(regObj.width)) && parseInt(regObj.width, 10) < 310) {
regObj.width = "310";
if (!(/%$/.test(regObj.height)) && parseInt(regObj.height, 10) < 137) {
regObj.height = "137";
doc.title = doc.title.slice(0, 47) + " - Flash Player Installation";
var pt = ua.ie && ua.win ? "ActiveX" : "PlugIn",
dt = doc.title,
fv = "MMredirectURL=" + win.location + "&MMplayerType=" + pt + "&MMdoctitle=" + dt,
replaceId = regObj.id;
// For IE when a SWF is loading (AND: not available in cache) wait for the onload event to fire to remove the original object element
// In IE you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work
if (ua.ie && ua.win && obj.readyState != 4) {
var newObj = createElement("div");
replaceId += "SWFObjectNew";
newObj.setAttribute("id", replaceId);
obj.parentNode.insertBefore(newObj, obj); // Insert placeholder div that will be replaced by the object element that loads expressinstall.swf
obj.style.display = "none";
win.attachEvent("onload", function() { obj.parentNode.removeChild(obj); });
createSWF({ data:regObj.expressInstall, id:EXPRESS_INSTALL_ID, width:regObj.width, height:regObj.height }, { flashvars:fv }, replaceId);
/* Functions to abstract and display alternative content
function displayAltContent(obj) {
if (ua.ie && ua.win && obj.readyState != 4) {
// For IE when a SWF is loading (AND: not available in cache) wait for the onload event to fire to remove the original object element
// In IE you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work
var el = createElement("div");
obj.parentNode.insertBefore(el, obj); // Insert placeholder div that will be replaced by the alternative content
el.parentNode.replaceChild(abstractAltContent(obj), el);
obj.style.display = "none";
win.attachEvent("onload", function() { obj.parentNode.removeChild(obj); });
else {
obj.parentNode.replaceChild(abstractAltContent(obj), obj);
function abstractAltContent(obj) {
var ac = createElement("div");
if (ua.win && ua.ie) {
ac.innerHTML = obj.innerHTML;
else {
var nestedObj = obj.getElementsByTagName(OBJECT)[0];
if (nestedObj) {
var c = nestedObj.childNodes;
if (c) {
var cl = c.length;
for (var i = 0; i < cl; i++) {
if (!(c[i].nodeType == 1 && c[i].nodeName.toLowerCase() == "param") && !(c[i].nodeType == 8)) {
ac.appendChild(c[i].cloneNode(true));
return ac;
/* Cross-browser dynamic SWF creation
function createSWF(attObj, parObj, id) {
var r, el = getElementById(id);
if (typeof attObj.id == UNDEF) { // if no 'id' is defined for the object element, it will inherit the 'id' from the alternative content
attObj.id = id;
if (ua.ie && ua.win) { // IE, the object element and W3C DOM methods do not combine: fall back to outerHTML
var att = "";
for (var i in attObj) {
if (attObj[i] != Object.prototype[i]) { // Filter out prototype additions from other potential libraries, like Object.prototype.toJSONString = function() {}
if (i == "data") {
parObj.movie = attObj[i];
else if (i.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
att += ' class=" + attObj[i] + "';
else if (i != "classid") {
att += ' ' + i + '="' + attObj[i] + '"';
var par = "";
for (var j in parObj) {
if (parObj[j] != Object.prototype[j]) { // Filter out prototype additions from other potential libraries
par += '<param name="' + j + '" value="' + parObj[j] + '" />';
el.outerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' + att + '>' + par + '</object>';
fixObjectLeaks(attObj.id); // This bug affects dynamic publishing only
r = getElementById(attObj.id);
else if (ua.webkit && ua.webkit < 312) { // Older webkit engines ignore the object element's nested param elements: fall back to the proprietary embed element
var e = createElement("embed");
e.setAttribute("type", FLASH_MIME_TYPE);
for (var k in attObj) {
if (attObj[k] != Object.prototype[k]) { // Filter out prototype additions from other potential libraries
if (k == "data") {
e.setAttribute("src", attObj[k]);
else if (k.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
e.setAttribute("class", attObj[k]);
else if (k != "classid") { // Filter out IE specific attribute
e.setAttribute(k, attObj[k]);
for (var l in parObj) {
if (parObj[l] != Object.prototype[l]) { // Filter out prototype additions from other potential libraries
if (l != "movie") { // Filter out IE specific param element
e.setAttribute(l, parObj[l]);
el.parentNode.replaceChild(e, el);
r = e;
else { // Well-behaving browsers
var o = createElement(OBJECT);
o.setAttribute("type", FLASH_MIME_TYPE);
for (var m in attObj) {
if (attObj[m] != Object.prototype[m]) { // Filter out prototype additions from other potential libraries
if (m.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
o.setAttribute("class", attObj[m]);
else if (m != "classid") { // Filter out IE specific attribute
o.setAttribute(m, attObj[m]);
for (var n in parObj) {
if (parObj[n] != Object.prototype[n] && n != "movie") { // Filter out prototype additions from other potential libraries and IE specific param element
createObjParam(o, n, parObj[n]);
el.parentNode.replaceChild(o, el);
r = o;
return r;
function createObjParam(el, pName, pValue) {
var p = createElement("param");
p.setAttribute("name", pName);
p.setAttribute("value", pValue);
el.appendChild(p);
function getElementById(id) {
return doc.getElementById(id);
function createElement(el) {
return doc.createElement(el);
function hasPlayerVersion(rv) {
var pv = ua.pv, v = rv.split(".");
v[0] = parseInt(v[0], 10);
v[1] = parseInt(v[1], 10);
v[2] = parseInt(v[2], 10);
return (pv[0] > v[0] || (pv[0] == v[0] && pv[1] > v[1]) || (pv[0] == v[0] && pv[1] == v[1] && pv[2] >= v[2])) ? true : false;
/* Cross-browser dynamic CSS creation
- Based on Bobby van der Sluis' solution: http://www.bobbyvandersluis.com/articles/dynamicCSS.php
function createCSS(sel, decl) {
if (ua.ie && ua.mac) {
return;
var h = doc.getElementsByTagName("head")[0], s = createElement("style");
s.setAttribute("type", "text/css");
s.setAttribute("media", "screen");
if (!(ua.ie && ua.win) && typeof doc.createTextNode != UNDEF) {
s.appendChild(doc.createTextNode(sel + " {" + decl + "}"));
h.appendChild(s);
if (ua.ie && ua.win && typeof doc.styleSheets != UNDEF && doc.styleSheets.length > 0) {
var ls = doc.styleSheets[doc.styleSheets.length - 1];
if (typeof ls.addRule == OBJECT) {
ls.addRule(sel, decl);
function setVisibility(id, isVisible) {
var v = isVisible ? "inherit" : "hidden";
if (isDomLoaded) {
getElementById(id).style.visibility = v;
else {
createCSS("#" + id, "visibility:" + v);
function getTargetVersion(obj) {
if (!obj)
return 0;
var c = obj.childNodes;
var cl = c.length;
for (var i = 0; i < cl; i++) {
if (c[i].nodeType == 1 && c[i].nodeName.toLowerCase() == "object") {
c = c[i].childNodes;
cl = c.length;
i = 0;
if (c[i].nodeType == 1 && c[i].nodeName.toLowerCase() == "param" && c[i].getAttribute("name") == "swfversion") {
return c[i].getAttribute("value");
return 0;
function getExpressInstall(obj) {
if (!obj)
return "";
var c = obj.childNodes;
var cl = c.length;
for (var i = 0; i < cl; i++) {
if (c[i].nodeType == 1 && c[i].nodeName.toLowerCase() == "object") {
c = c[i].childNodes;
cl = c.length;
i = 0;
if (c[i].nodeType == 1 && c[i].nodeName.toLowerCase() == "param" && c[i].getAttribute("name") == "expressinstall") {
return c[i].getAttribute("value");
return "";
return {
/* Public API
- Reference: http://code.google.com/p/swfobject/wiki/SWFObject_2_0_documentation
registerObject: function(objectIdStr, swfVersionStr, xiSwfUrlStr) {
if (!ua.w3cdom || !objectIdStr) {
return;
var obj = document.getElementById(objectIdStr);
var xi = getExpressInstall(obj);
var regObj = {};
regObj.id = objectIdStr;
regObj.swfVersion = swfVersionStr ? swfVersionStr : getTargetVersion(obj);
regObj.expressInstall = xiSwfUrlStr ? xiSwfUrlStr : ((xi != "") ? xi : false);
regObjArr[regObjArr.length] = regObj;
setVisibility(objectIdStr, false);
getObjectById: function(objectIdStr) {
var r = null;
if (ua.w3cdom && isDomLoaded) {
var o = getElementById(objectIdStr);
if (o) {
var n = o.getElementsByTagName(OBJECT)[0];
if (!n || (n && typeof o.SetVariable != UNDEF)) {
r = o;
else if (typeof n.SetVariable != UNDEF) {
r = n;
return r;
embedSWF: function(swfUrlStr, replaceElemIdStr, widthStr, heightStr, swfVersionStr, xiSwfUrlStr, flashvarsObj, parObj, attObj) {
if (!ua.w3cdom || !swfUrlStr || !replaceElemIdStr || !widthStr || !heightStr || !swfVersionStr) {
return;
widthStr += ""; // Auto-convert to string to make it idiot proof
heightStr += "";
if (hasPlayerVersion(swfVersionStr)) {
setVisibility(replaceElemIdStr, false);
var att = (typeof attObj == OBJECT) ? attObj : {};
att.data = swfUrlStr;
att.width = widthStr;
att.height = heightStr;
var par = (typeof parObj == OBJECT) ? parObj : {};
if (typeof flashvarsObj == OBJECT) {
for (var i in flashvarsObj) {
if (flashvarsObj[i] != Object.prototype[i]) { // Filter out prototype additions from other potential libraries
if (typeof par.flashvars != UNDEF) {
par.flashvars += "&" + i + "=" + flashvarsObj[i];
else {
par.flashvars = i + "=" + flashvarsObj[i];
addDomLoadEvent(function() {
createSWF(att, par, replaceElemIdStr);
if (att.id == replaceElemIdStr) {
setVisibility(replaceElemIdStr, true);
else if (xiSwfUrlStr && !isExpressInstallActive && hasPlayerVersion("6.0.65") && (ua.win || ua.mac)) {
setVisibility(replaceElemIdStr, false);
addDomLoadEvent(function() {
var regObj = {};
regObj.id = regObj.altContentId = replaceElemIdStr;
regObj.width = widthStr;
regObj.height = heightStr;
regObj.expressInstall = xiSwfUrlStr;
showExpressInstall(regObj);
getFlashPlayerVersion: function() {
return { major:ua.pv[0], minor:ua.pv[1], release:ua.pv[2] };
hasFlashPlayerVersion:hasPlayerVersion,
createSWF: function(attObj, parObj, replaceElemIdStr) {
if (ua.w3cdom && isDomLoaded) {
return createSWF(attObj, parObj, replaceElemIdStr);
else {
return undefined;
createCSS: function(sel, decl) {
if (ua.w3cdom) {
createCSS(sel, decl);
addDomLoadEvent:addDomLoadEvent,
addLoadEvent:addLoadEvent,
getQueryParamValue: function(param) {
var q = doc.location.search || doc.location.hash;
if (param == null) {
return q;
if(q) {
var pairs = q.substring(1).split("&");
for (var i = 0; i < pairs.length; i++) {
if (pairs[i].substring(0, pairs[i].indexOf("=")) == param) {
return pairs[i].substring((pairs[i].indexOf("=") + 1));
return "";
// For internal usage only
expressInstallCallback: function() {
if (isExpressInstallActive && storedAltContent) {
var obj = getElementById(EXPRESS_INSTALL_ID);
if (obj) {
obj.parentNode.replaceChild(storedAltContent, obj);
if (storedAltContentId) {
setVisibility(storedAltContentId, true);
if (ua.ie && ua.win) {
storedAltContent.style.display = "block";
storedAltContent = null;
storedAltContentId = null;
isExpressInstallActive = false;
Can someone please help! I've looked and tried prety much everything. If you can provide a solution I would GREATLY apreciate it!There is no Flash player version 15... as in your code:
<param name="swfversion" value="15.0.0.0" />
For some reason Adobe thought it would be a good idea to target a Flash player version (15) as default.....which may be out a couple years in the future. Go figure!!!
If you don't like player version 9, change to 10 or 11.... just not 15 (yet).
Best wishes,
Adninjastrator -
Creating a site for mobile devices
Good morning,
I have a number of questions relating to the creation of a
site for mobile devices. My client has given me the assignment to
re-design his current website, and to also create a sub-site
suitable for mobiles. I have spent a number of hours looking around
on the Internet and trying to gain a better understanding of these
issues. Still, a number of questions remain. if you can give me any
additional understanding, that would be great.
Question 1:
Is my understanding correct: I basically need to create two
sites, one for the wide-screen browser, and one for the mobile
browser? I can direct visitors to the mobile site using a CSS or
javascript link - if their browser identifies them as a mobile
browser?
Question 2
Mobile devices come in all sorts of shapes and sizes and
versions. PDA\s and iPhone's have different screensizes and
resolutions that smart--phones, which in turn are different again
from older and simpler phones. Should I design a site for a number
of different types of phones? That would a huge amount of work...
Question 3
I also own Device Central, an App which I should think is
very useful in this situation. But I fail to understand it! OK, so
I can see what my photo or website or flash file looks like on my
Nokia N73 - but I am not designing specifically for that phone. I
also want my design to look good on all the other phones! My client
needs a website that is not tailored to one phone, but to all
phones.
Question 4
And why does Device Central not have profiles for the iPhone?
I would think it is popular enough to warrant its own profile... (I
post this from the Netherlands, where the iPhone is not carried
yet, and so I have only ever held one in my hand). Is this because
the iphone can see regular sites just fine?
Question 5
How does Dreamweaver help me build a mobile site?
Question 6
My client wants to show video on his website. In fact, that's
what this website is all about: showing sports-videos from high
profile sporting events. Which video-formats are most suitable?
Question 7
Do all mobile phones support flash? Or only a few? Or none?
It seems to me that a flash website would allow for more creativity
in the design.
Thanks for any help you can give. Any resources you could
point me to are also very welcome...
Sincerely,
Rogier Bos
Rotterdam, The NetherlandsMacnimation wrote:
> Hi,
>
> I'm experimenting with creating a small site off a
standard site, for mobile
> phone/devices.
>
> Basically, I want to load a basic list page, which has
links to pages that
> will display and run flash movies.
>
> The flash movies, in FLV format are already at 640 x 480
which run fine in the
> main site.
>
> Is it simply to resize the movies to fit the mobile
content size , or will
> they "auto" resize?
>
> Do I have to chnage the webserver configuration in
anyway, its a standard IIS
> site at the moment, but MySQL with apache is also an
option.
>
> Would standard html do or would the pages have to be
done using xhtml or wml?
>
> I would like if possible to get this infomration first
before starting it, so
> I can possibly reduce delays.
>
> Any help or pointers to tutorials would be grateful
>
I'd like to check out the PDA scene some day soon, too. In
the meantime,
there's a recent discussion of this topic here:
http://www.sitepoint.com/forums/showthread.php?p=3288343#post3288343
www.geobop.org - Family Websites
www.invisible-republic.org - Adult political websites (Mature
adults only) -
Create dynamic directory name from form field on Sharepoint
Trying to save pdf file to sharepoint site using URL; but need to create directory (initially) and filename dynamically. After directory created addtn'l files may populate dir, so need to check for directory exists; if so just copy files to dir based on field name. I'm able to save files to hard-coded location only, based on below.
How to check and/or create dynamic directory base don field name?
// folder level JavaScript to allow access to the identity object properties
trustedIdentity = app.trustedFunction( function (sProperty)
var iProperty = "";
app.beginPriv();
iProperty = identity[sProperty];
app.endPriv();
return iProperty;
// folder level JavaScript to allow Save As population of file name
mySaveAs = app.trustPropagatorFunction(function(myForm, path)
app.beginPriv();
var myForm = event.target;
return rtn = myForm.saveAs(path);
app.endPriv();
myTrustFunct = app.trustedFunction(function(myForm, path)
app.beginPriv();
var vTest1 = event.target.xfa.resolveNode("topmostSubform[0].Page1[0].Test1[0]").rawValue.toString();
var vTest2 = event.target.xfa.resolveNode("topmostSubform[0].Page1[0].Test2[0]").rawValue.toString();
var vTest3 = event.target.xfa.resolveNode("topmostSubform[0].Page1[0].Test3[0]").rawValue.toString();
var vTest4 = event.target.xfa.resolveNode("topmostSubform[0].Page1[0].Test4[0]").rawValue.toString();
var vpdf_url=location.href;location.href='http://mysite2010.com/documents
var vPath = "/vpdf_url/" + vTest1 + Test2 + vTest3 + " .pdf";
//console.println("vPath: " + vPath);
var retn = mySaveAs(myForm, vPath);
app.endPriv();
return retn;Acrobat/Reader cannot create a directory. The directory needs to exist before Acrobat/Reader can save a PDF file to that directory.
You could create a plug-in and use that plug-in to create the directory. The plug-in should also be able to determine if the directory exists or not.
SharePoint can be tricky because it is not like most web sites. There is a special dash board that helps manage the different parts of SharePoint like list, folders, web parts, documents, etc so you may need to be aware of these features and adjust for them.
For folder level functions, I would not use any LiveCycle JavaScript variations. The folder level scripts are shared and accessible by Acrobat forms. -
....Need to brush up my tablet design in DPS (did it a few years back), can anyone recommend on the Adobe site tutorials that I can download, with artworks /buttons / actions and put it together?
See this forum post here from Bob. Best place to learn DPS is on Adobe TV http://tv.adobe.com/product/digital-publishing-suite/
If you are specifically looking to learn how to create interactive overlays, go here http://helpx.adobe.com/digital-publishing-suite/help/overview-interactive-overlays.html Watch the videos on "Folio Overlays panel, Part I & Part II" -
I need to create another site in dreamweaver and Publish it to
I make a dreamweaver site with mx 2004, well now I need to
create another site in dreamweaver and Publish it to the same site
as prior but in a NEW Directory , what to do ?> Yes,what to insert at manage site > edit >
advanced > remote info > Host
> directory ?
Try nothing at first. Connect to the remote site. Tell us
what folder
names you see there.
> I try upload [with: ftp host:ftp://www.polis-land.com
& Host
> directory:/dialup/ =thenewfolder]but shows error [when
press test at
> advanced >
> remote info] :
That's wrong. Try this -
Remote Host - www.polis-land.com
Host directory - <blank>
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"123polis123" <[email protected]> wrote in
message
news:fl0uco$qpb$[email protected]..
> Yes,what to insert at manage site > edit >
advanced > remote info > Host
> directory ?
> to manage site > edit > advanced > remote info
> ftp host ?
>
> I try upload [with: ftp host:ftp://www.polis-land.com
& Host
> directory:/dialup/ =thenewfolder]but shows error [when
press test at
> advanced >
> remote info] :
>
> An FTP error occured - cannot make connection to host .
The remote host
> cannot
> be found.
> ???
> -
Can't create new sites in Dreamweaver CS3. Help!
I am trying to create a new site in Dreamweaver CS3 but keep
getting the following error:
"The action cannot be completed because the other program is
busy.
Choose 'Switch to' to activate the program and correct the
problem"
I have tried every documented solution on the adobe website
and other discussion forums and still cannot get past the problem.
I have restarted the IIS server on my local PC as documented
on the following adobe technote:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16485&sliceId=2
Other things I have done:
1. I have followed all the advice in the links at the bottom
of the above page.
2. I have created a new user, logged into that and tried
creating a site with a "virgin" environment
and I still have the problem.
3. I have gone into the registry and renamed the site
configuration info in case something was corrupted.
This removed all my site configurations. No help!
4. I have turned of my firewall and restarted the IIS
server.
5. I have searched the web for anything even remotely
similar to this error and tried every tip out there.
I called Adobe and they referred me back to the technote
above, which I had already tried.
One last bit of info. I can't create new sites, but I can
edit web pages in my existing sites. However, I cannot change the
configuration of the website in the Manage Sites area (i.e. I can't
push the Edit button).
Has anyone had this problem? Any help would be appreciated. I
have hit a brick wall on this one and am trying to meet a deadline
on a new website I need to create.
If I can't find a solution quick, I will be an
ex-Dreamweaver user. That saddens me because I really like
Dreamweaver, but I have to perform on my job.And are you running Skype?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Murray *ACE*" <[email protected]> wrote
in message
news:ga4hba$bnv$[email protected]..
> What is your firewall?
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
> ==================
>
>
> "Steven A" <[email protected]> wrote in
message
> news:ga4ejo$8nb$[email protected]..
>>I have rebooted many times. Actually, I am the only
user that ever logs
>>in.
>> This is happening on my laptop. I just created
another user to see if it
>> was a
>> corruption issue with sites tied to my regular
login.
>>
>>
>>
> -
Can anyone recommend a tutorial which will help me set up a dynamic site using Paypal?
I have some - although not a lot - of experience with php and mySql, and have set up simple sites using Paypal buttons - I really want to learn to combine the two. I'm having trouble finding anything I can understand on the Paypal site, and googling it brings up such a lot of (mostly out of date) tutorials I don't know where to start.
Thanks,BCDoherty wrote -
All the PayPal button does is to take the data that's already on the
page for that item and send it to be processed, in this case by PayPal.
There is no magic here and no extra DB on that end of things.
On a database driven site where everything is generated dynamically for the page, you cannot use a generic code as items such as - product name, price and product code will be different for every item, this means storing that info in the database.
However, one does need a DB set up to handle the customer data - name,
address, etc. BUT NOT credit card info, as well as the details of the
order itself. Also, a single order may consist of a number of items.
Not required, all this is handled by paypal, and one can set-up a shopping cart if required using paypal, (especially useful for beginners). Storing such things as name and address also requires the site to comply with data protection legislation, (I know most do not, but that is no excuse).
PZ -
[DW + PHP + MySQL] is there an extension to create dynamic charts?
Hi all
is there an extension for DW (I have DW 8) that let you
create dynamic
chart based on a mysql database?
Once upon a time there was an interakt extension that was
created just
for this kind of applications, but now it is discontinued
(thanks
adobe) and I can't even buy it.
Is there an alternative?
Thanks in advance.
tonyCheck
http://www.webassist.com. They
have one.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"sweetman" <[email protected]> wrote in message
news:[email protected]..
> Hi all
>
> is there an extension for DW (I have DW 8) that let you
create dynamic
> chart based on a mysql database?
>
> Once upon a time there was an interakt extension that
was created just
> for this kind of applications, but now it is
discontinued (thanks
> adobe) and I can't even buy it.
>
> Is there an alternative?
>
> Thanks in advance.
>
> tony -
Uploading my dynamic site to Netfirms MySQL
I created a dynamic site in CS5.5, using XAMPP to make it locally. After putting it on my Netfirms-hosted remote server, I get an error saying:
Warning: mysql_pconnect() [function.mysql-pconnect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /hermes/bosweb26c/b2801/nf.myurl/Connections/my_url.php on line 9
Fatal error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /hermes/bosweb26c/b2801/nf.myurl/Connections/my_url.php on line 9
Basically what I did, was export all the phpMyAdmin info into the MySQL that Netfirms hosts, and this happened. Can anyone help me, please?
Thanks.I figured it out. Thanks.
-
Create dynamic image, dump on server someplace and reference in JSP?
I was thinking about creating dynamic images and referencing them on a JSP
(creating them is ok). I'm sure this is a pretty standard thing, but I
don't know how to do it. Any ideas? I tried doing a search on the BEA
support site (nice changes :>) but nothing very accurate came up.
Thanks.
Assign an ID (e.g. 1234) to the uploaded file. You should abstract the store
so that it will work on the file system or in the database.
The JSP will include an image ref to that ID, e.g.
http://www.myco.com/myapp/imageservlet?id=1234
The image servlet will retrieve and stream the image. It has to set content
type etc. You should also verify that the current user has access to the
requested image if security/privacy is an issue.
Peace,
Cameron Purdy
Tangosol, Inc.
http://www.tangosol.com/coherence.jsp
Tangosol Coherence: Clustered Replicated Cache for Weblogic
"PHenry" <[RemoveBeforeSending][email protected]> wrote in message
news:[email protected]...
> Howdy. I just thought of something. If the img is coming across via the
> stream, how do you reference it in the html/jsp file? I just thought
about
> that now as I was getting a cup of coffee. (I need to cut back! :>)
>
> Thanks.
>
>
>
>
> "Cameron Purdy" <[email protected]> wrote in message
> news:[email protected]...
> > If you write it to a file, you are writing it to an OutputStream, right?
> >
> > Instead, just write it to the OutputStream that comes from the
HttpRequest
> > object. For example:
> >
> > <img src="http://www.mysite.com/myapp/my.jsp?name=whatever">
> >
> > That would hit your JSP (it would be better to use a Servlet in this
case
> > though), and you would stream back the image.
> >
> > Peace,
> >
> > Cameron Purdy
> > Tangosol, Inc.
> > http://www.tangosol.com/coherence.jsp
> > Tangosol Coherence: Clustered Replicated Cache for Weblogic
> >
> >
> > "PHenry" <[RemoveBeforeSending][email protected]> wrote in message
> > news:[email protected]...
> > > Interesting. I'm still a bit new to this stuff. Do you have/know
where
> > to
> > > find some examples?
> >
> >
> >
>
>
-
Creating dynamic web project in flash builder 4
Hi,
How to create dynamic web project (java) in flash builder 4 ?when I navigate Help->Software Updates,I am getting No Updates Found(There are no update sites to search.Do you wish to open the "Available Software Sites" preferences?)
Please let me know if any one knows how to create dynamic java web project.
-sasiI have same problem. Why are the update sites URLs not hardcoded?
-
Re: Create dynamic widgets.
Hi Kang,
The attached pex contains a window class, which first adds a gridfield to the
window and then inserts 5 toggle fields into it. Clicks on the dynamically
created toggle fields are captured via the ChildClick event on the parent
gridfield.
The resulting window is not pretty (or even useful), but will, I hope,
provide you with some pointers.
At my site, we are working with version 3d. To my delight, I have found that
the widgets can be added to the window before it is opened. With previous
versions, the window had to be open prior to adding any widgets to it.
J. Bryan JohnsonHi,
I've attached an example of creating datafield and textgraphic dynamically. You may use it as a reference to create toggle field at run time.
Cp wong.
-----Original Message-----
From: Kang Holmes [SMTP:[email protected]]
Sent: Tuesday, August 19, 1997 2:58 AM
To: [email protected]
Subject: Create dynamic widgets.
(436.3 7-23-1997)) id 852564F7.0068E2E0 ; Mon, 18 Aug 1997 15:05:38 -0400
X-Lotus-FromDomain: WORLDBANK
Hi,
Is there anyone can give me some help on how to create dynamic widgets? I
need to build a group of toggle field at runtime and put them in a window
that is generated by Express. I could not find any documents or samples on
how to do that. Do I need to create a gridfield first and insert the
widgets into that gridfield in the tool code?
I appreciate any suggestions and/or samples.
Kang -
How to mention numbers in array while creating dynamic sql
Hi,
I am creating a dynamic sql and in that I am selecting some rows from the table and storing it into the array.
I am firing this sql statement within trigger.
But i got the error:
ORA-06502: PL/SQL: numeric or value error: character to number conversion error
I took the same sql statement (the one which was created dynamically) in the procedure and tried to run it but it gave me the same error.
=========================================================
Begin
type NewValueArray is table of varchar2(4000);
nVal_Array NewValueArray;
Begin
Select
DISCOVERYHOSTNAME,
DISCOVERYMACPRIMARYPHYSICAL,
DISCOVERYSERIALNUMBER
into
nVal_Array(1),
nVal_Array(2),
nVal_Array(3)
from ALT_42_Consolidated
where rowid = 'AAEWNEABXAAAAkxAAA';
EXCEPTION
WHEN others THEN
Raise;
End;
=========================================================
I tried using to_number but still the same error.
Can some body please inform me where I am goofing.
Thanks!I got a different error, but you need to initialise your nval_array and make sure it can hold three values. The following should work:
declare
type NewValueArray is table of varchar2(4000);
nVal_Array NewValueArray := NewValueArray();
Begin
nval_array.extend(3);
Select col1, col2, col3
into nVal_Array(1), nVal_Array(2), nVal_Array(3)
from tab1
where rowid = 'AAAGJZAAGAAAAAWAAV';
EXCEPTION
WHEN others THEN
Raise;
End;
/
Maybe you are looking for
-
DBMS_METADATA package issue
All, When I use the DBMS_METADATA.GET_DDL('INDEX',indexnm) package, I am getting the entire DB spcecifications as follows CREATE INDEX "T_OD"."XIE3OD_ORDER" ON "T_OD"."OD_ORDER" ("ORD_MNT_DTM") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS ST
-
Two airport base stations?
I'm trying to figure out if there's a way to use TWO airport base stations - in order to boost the coverage of the airport network at my home. I've got some outdoor speakers set up - and they lose signal (as does my iPhone) - and so I'm trying to opt
-
Best browser for HTML5 support on Android
Can anyone recommend a browser that actually works with Captivate HTML5 output on android devices? I get a variety of problems across Firefox, Chrome, Dolphin, and Ninesky. The main problem I get is no sound, but on some of them I get sound but the n
-
How to show all days of the year 1900
how to show all days of the year 1900
-
I've deleted my calendar. How do I restore it?
I have deleted my calendar by mistake. I thought it was backed up to iCloud but it isn't. It was backed up to Time Machine on the 8th April so am trying to restore that. However, I cannot seem to find the file to restore. Can anyone help me pleas